re PR target/78594 (Bug in November 11th, 2016 change to rs6000.md)
[official-gcc.git] / boehm-gc / configure
blobb2ae9e8401bd194546b831ea0ab3241a7de9654d
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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="gcj_mlc.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 toolexeclibdir
606 toolexecdir
607 O0_CFLAGS
608 addtests
609 addlibs
610 addincludes
611 addobjs
612 AM_CPPFLAGS
613 CPLUSPLUS_FALSE
614 CPLUSPLUS_TRUE
615 target_all
616 EXTRA_TEST_LIBS
617 extra_ldflags_libgc
618 POWERPC_DARWIN_FALSE
619 POWERPC_DARWIN_TRUE
620 THREADLIBS
621 THREADCFLAGS
622 CXXCPP
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 OBJDUMP
630 LN_S
632 ac_ct_DUMPBIN
633 DUMPBIN
635 FGREP
636 EGREP
637 GREP
639 LIBTOOL
640 GC_CFLAGS
641 MAINT
642 MAINTAINER_MODE_FALSE
643 MAINTAINER_MODE_TRUE
644 RANLIB
647 CCASFLAGS
648 CCAS
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
655 am__fastdepCC_FALSE
656 am__fastdepCC_TRUE
657 CCDEPMODE
658 am__nodep
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 mkinstalldirs
696 target_noncanonical
697 target_os
698 target_vendor
699 target_cpu
700 target
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 multi_basedir
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_multilib
752 enable_dependency_tracking
753 enable_maintainer_mode
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_gnu_ld
759 enable_libtool_lock
760 with_target_subdir
761 with_cross_host
762 enable_parallel_mark
763 with_ecos
764 enable_gc_debug
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
770 CPPFLAGS
771 CXXCPP'
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
822 ac_prev=
823 ac_dashdash=
824 for ac_option
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
829 ac_prev=
830 continue
833 case $ac_option in
834 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 *) ac_optarg=yes ;;
836 esac
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
842 ac_dashdash=yes ;;
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
861 --config-cache | -C)
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) as_fn_error "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information."
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 esac
1179 done
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error "missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1265 /^X\(\/\/\)$/{
1266 s//\1/
1269 /^X\(\/\).*/{
1270 s//\1/
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1278 else
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1368 cat <<\_ACEOF
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1382 if test -n "$ac_init_help"; then
1384 cat <<\_ACEOF
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-multilib build many library versions (default)
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --enable-shared[=PKGS] build shared libraries [default=yes]
1396 --enable-static[=PKGS] build static libraries [default=yes]
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1400 --enable-parallel-mark parallelize marking and free list construction
1401 --enable-gc-debug include full support for pointer backtracing etc.
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409 --with-target-subdir=SUBDIR
1410 configuring with a cross compiler
1411 --with-cross-host=HOST configuring with a cross compiler
1412 --with-ecos enable runtime eCos target support
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CXX C++ compiler command
1423 CXXFLAGS C++ compiler flags
1424 CPP C preprocessor
1425 CXXCPP C++ preprocessor
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1430 Report bugs to the package provider.
1431 _ACEOF
1432 ac_status=$?
1435 if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
1441 ac_builddir=.
1443 case "$ac_dir" in
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453 esac
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1459 case $srcdir in
1460 .) # We are building in place.
1461 ac_srcdir=.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 esac
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1483 else
1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1487 done
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1492 cat <<\_ACEOF
1493 configure
1494 generated by GNU Autoconf 2.64
1496 Copyright (C) 2009 Free Software Foundation, Inc.
1497 This configure script is free software; the Free Software Foundation
1498 gives unlimited permission to copy, distribute and modify it.
1499 _ACEOF
1500 exit
1503 ## ------------------------ ##
1504 ## Autoconf initialization. ##
1505 ## ------------------------ ##
1507 # ac_fn_c_try_compile LINENO
1508 # --------------------------
1509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_compile ()
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534 else
1535 $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1538 ac_retval=1
1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1541 return $ac_retval
1543 } # ac_fn_c_try_compile
1545 # ac_fn_cxx_try_compile LINENO
1546 # ----------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_cxx_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_cxx_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1576 ac_retval=1
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 return $ac_retval
1581 } # ac_fn_cxx_try_compile
1583 # ac_fn_c_try_link LINENO
1584 # -----------------------
1585 # Try to link conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_link ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext conftest$ac_exeext
1590 if { { ac_try="$ac_link"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_link") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest$ac_exeext && {
1609 test "$cross_compiling" = yes ||
1610 $as_test_x conftest$ac_exeext
1611 }; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1617 ac_retval=1
1619 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1620 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1621 # interfere with the next link command; also delete a directory that is
1622 # left behind by Apple's compiler. We do this before executing the actions.
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 return $ac_retval
1627 } # ac_fn_c_try_link
1629 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists and can be compiled using the include files in
1632 # INCLUDES, setting the cache variable VAR accordingly.
1633 ac_fn_c_check_header_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 eval "$3=yes"
1648 else
1649 eval "$3=no"
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 } # ac_fn_c_check_header_compile
1660 # ac_fn_c_try_cpp LINENO
1661 # ----------------------
1662 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_cpp ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } >/dev/null && {
1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 }; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1690 ac_retval=1
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 return $ac_retval
1695 } # ac_fn_c_try_cpp
1697 # ac_fn_c_try_run LINENO
1698 # ----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700 # that executables *can* be run.
1701 ac_fn_c_try_run ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=$ac_status
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 return $ac_retval
1737 } # ac_fn_c_try_run
1739 # ac_fn_c_check_func LINENO FUNC VAR
1740 # ----------------------------------
1741 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1742 ac_fn_c_check_func ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 if test x$gcc_no_link = xyes; then
1751 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below.
1761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762 <limits.h> exists even on freestanding compilers. */
1764 #ifdef __STDC__
1765 # include <limits.h>
1766 #else
1767 # include <assert.h>
1768 #endif
1770 #undef $2
1772 /* Override any GCC internal prototype to avoid an error.
1773 Use char because int might match the return type of a GCC
1774 builtin and then its argument prototype would still apply. */
1775 #ifdef __cplusplus
1776 extern "C"
1777 #endif
1778 char $2 ();
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined __stub_$2 || defined __stub___$2
1783 choke me
1784 #endif
1787 main ()
1789 return $2 ();
1791 return 0;
1793 _ACEOF
1794 if ac_fn_c_try_link "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1799 rm -f core conftest.err conftest.$ac_objext \
1800 conftest$ac_exeext conftest.$ac_ext
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_check_func
1809 # ac_fn_cxx_try_cpp LINENO
1810 # ------------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_cpp ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } >/dev/null && {
1831 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1844 } # ac_fn_cxx_try_cpp
1846 # ac_fn_cxx_try_link LINENO
1847 # -------------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_link ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1890 } # ac_fn_cxx_try_link
1892 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1893 # ----------------------------------------------------
1894 # Tries to find if the field MEMBER exists in type AGGR, after including
1895 # INCLUDES, setting cache variable VAR accordingly.
1896 ac_fn_c_check_member ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1900 $as_echo_n "checking for $2.$3... " >&6; }
1901 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 main ()
1910 static $2 ac_aggr;
1911 if (ac_aggr.$3)
1912 return 0;
1914 return 0;
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 eval "$4=yes"
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 main ()
1926 static $2 ac_aggr;
1927 if (sizeof ac_aggr.$3)
1928 return 0;
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$4=yes"
1935 else
1936 eval "$4=no"
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 eval ac_res=\$$4
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_c_check_member
1948 cat >config.log <<_ACEOF
1949 This file contains any messages produced by compilers while
1950 running configure, to aid debugging if configure makes a mistake.
1952 It was created by $as_me, which was
1953 generated by GNU Autoconf 2.64. Invocation command line was
1955 $ $0 $@
1957 _ACEOF
1958 exec 5>>config.log
1960 cat <<_ASUNAME
1961 ## --------- ##
1962 ## Platform. ##
1963 ## --------- ##
1965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982 _ASUNAME
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 $as_echo "PATH: $as_dir"
1990 done
1991 IFS=$as_save_IFS
1993 } >&5
1995 cat >&5 <<_ACEOF
1998 ## ----------- ##
1999 ## Core tests. ##
2000 ## ----------- ##
2002 _ACEOF
2005 # Keep a trace of the command line.
2006 # Strip out --no-create and --no-recursion so they do not pile up.
2007 # Strip out --silent because we don't want to record it for future runs.
2008 # Also quote any args containing shell meta-characters.
2009 # Make two passes to allow for proper duplicate-argument suppression.
2010 ac_configure_args=
2011 ac_configure_args0=
2012 ac_configure_args1=
2013 ac_must_keep_next=false
2014 for ac_pass in 1 2
2016 for ac_arg
2018 case $ac_arg in
2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021 | -silent | --silent | --silen | --sile | --sil)
2022 continue ;;
2023 *\'*)
2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 esac
2026 case $ac_pass in
2027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 as_fn_append ac_configure_args1 " '$ac_arg'"
2030 if test $ac_must_keep_next = true; then
2031 ac_must_keep_next=false # Got value, back to normal.
2032 else
2033 case $ac_arg in
2034 *=* | --config-cache | -C | -disable-* | --disable-* \
2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037 | -with-* | --with-* | -without-* | --without-* | --x)
2038 case "$ac_configure_args0 " in
2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040 esac
2042 -* ) ac_must_keep_next=true ;;
2043 esac
2045 as_fn_append ac_configure_args " '$ac_arg'"
2047 esac
2048 done
2049 done
2050 { ac_configure_args0=; unset ac_configure_args0;}
2051 { ac_configure_args1=; unset ac_configure_args1;}
2053 # When interrupted or exit'd, cleanup temporary files, and complete
2054 # config.log. We remove comments because anyway the quotes in there
2055 # would cause problems or look ugly.
2056 # WARNING: Use '\'' to represent an apostrophe within the trap.
2057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058 trap 'exit_status=$?
2059 # Save into config.log some information that might help in debugging.
2061 echo
2063 cat <<\_ASBOX
2064 ## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##
2067 _ASBOX
2068 echo
2069 # The following way of writing the cache mishandles newlines in values,
2071 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in #(
2074 *${as_nl}*)
2075 case $ac_var in #(
2076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078 esac
2079 case $ac_var in #(
2080 _ | IFS | as_nl) ;; #(
2081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082 *) { eval $ac_var=; unset $ac_var;} ;;
2083 esac ;;
2084 esac
2085 done
2086 (set) 2>&1 |
2087 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088 *${as_nl}ac_space=\ *)
2089 sed -n \
2090 "s/'\''/'\''\\\\'\'''\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092 ;; #(
2094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 esac |
2097 sort
2099 echo
2101 cat <<\_ASBOX
2102 ## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##
2105 _ASBOX
2106 echo
2107 for ac_var in $ac_subst_vars
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2117 if test -n "$ac_subst_files"; then
2118 cat <<\_ASBOX
2119 ## ------------------- ##
2120 ## File substitutions. ##
2121 ## ------------------- ##
2122 _ASBOX
2123 echo
2124 for ac_var in $ac_subst_files
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2135 if test -s confdefs.h; then
2136 cat <<\_ASBOX
2137 ## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##
2140 _ASBOX
2141 echo
2142 cat confdefs.h
2143 echo
2145 test "$ac_signal" != 0 &&
2146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
2148 } >&5
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 exit $exit_status
2153 for ac_signal in 1 2 13 15; do
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 done
2156 ac_signal=0
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2161 $as_echo "/* confdefs.h */" > confdefs.h
2163 # Predefined preprocessor variables.
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 _ACEOF
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 _ACEOF
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_URL "$PACKAGE_URL"
2187 _ACEOF
2190 # Let the site file select an alternate cache file if it wants to.
2191 # Prefer an explicitly selected file to automatically selected ones.
2192 ac_site_file1=NONE
2193 ac_site_file2=NONE
2194 if test -n "$CONFIG_SITE"; then
2195 ac_site_file1=$CONFIG_SITE
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2199 else
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 test "x$ac_site_file" = xNONE && continue
2206 if test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2210 . "$ac_site_file"
2212 done
2214 if test -r "$cache_file"; then
2215 # Some versions of bash will fail to source /dev/null (special
2216 # files actually), so we avoid doing that.
2217 if test -f "$cache_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2219 $as_echo "$as_me: loading cache $cache_file" >&6;}
2220 case $cache_file in
2221 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2222 *) . "./$cache_file";;
2223 esac
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2227 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 >$cache_file
2231 # Check that the precious variables saved in the cache have kept the same
2232 # value.
2233 ac_cache_corrupted=false
2234 for ac_var in $ac_precious_vars; do
2235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
2237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
2239 case $ac_old_set,$ac_new_set in
2240 set,)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,set)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,);;
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
2251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 fi;;
2268 esac
2269 # Pass precious variables to config.status.
2270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
2272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2278 esac
2280 done
2281 if $ac_cache_corrupted; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2286 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288 ## -------------------- ##
2289 ## Main body of script. ##
2290 ## -------------------- ##
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303 # This works around the fact that libtool configuration may change LD
2304 # for this particular configuration, but some shells, instead of
2305 # keeping the changes in LD private, export them just because LD is
2306 # exported.
2307 ORIGINAL_LD_FOR_MULTILIBS=$LD
2309 # Default to --enable-multilib
2310 # Check whether --enable-multilib was given.
2311 if test "${enable_multilib+set}" = set; then :
2312 enableval=$enable_multilib; case "$enableval" in
2313 yes) multilib=yes ;;
2314 no) multilib=no ;;
2315 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2316 esac
2317 else
2318 multilib=yes
2322 # We may get other options which we leave undocumented:
2323 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2324 # See config-ml.in if you want the gory details.
2326 if test "$srcdir" = "."; then
2327 if test "$with_target_subdir" != "."; then
2328 multi_basedir="$srcdir/$with_multisrctop../.."
2329 else
2330 multi_basedir="$srcdir/$with_multisrctop.."
2332 else
2333 multi_basedir="$srcdir/.."
2337 # Even if the default multilib is not a cross compilation,
2338 # it may be that some of the other multilibs are.
2339 if test $cross_compiling = no && test $multilib = yes \
2340 && test "x${with_multisubdir}" != x ; then
2341 cross_compiling=maybe
2344 ac_config_commands="$ac_config_commands default-1"
2347 ac_aux_dir=
2348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2349 for ac_t in install-sh install.sh shtool; do
2350 if test -f "$ac_dir/$ac_t"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/$ac_t -c"
2353 break 2
2355 done
2356 done
2357 if test -z "$ac_aux_dir"; then
2358 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370 # Make sure we can run config.sub.
2371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375 $as_echo_n "checking build system type... " >&6; }
2376 if test "${ac_cv_build+set}" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 ac_build_alias=$build_alias
2380 test "x$ac_build_alias" = x &&
2381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382 test "x$ac_build_alias" = x &&
2383 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389 $as_echo "$ac_cv_build" >&6; }
2390 case $ac_cv_build in
2391 *-*-*) ;;
2392 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2393 esac
2394 build=$ac_cv_build
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_build
2397 shift
2398 build_cpu=$1
2399 build_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 build_os=$*
2404 IFS=$ac_save_IFS
2405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2409 $as_echo_n "checking host system type... " >&6; }
2410 if test "${ac_cv_host+set}" = set; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test "x$host_alias" = x; then
2414 ac_cv_host=$ac_cv_build
2415 else
2416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2417 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2422 $as_echo "$ac_cv_host" >&6; }
2423 case $ac_cv_host in
2424 *-*-*) ;;
2425 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2426 esac
2427 host=$ac_cv_host
2428 ac_save_IFS=$IFS; IFS='-'
2429 set x $ac_cv_host
2430 shift
2431 host_cpu=$1
2432 host_vendor=$2
2433 shift; shift
2434 # Remember, the first character of IFS is used to create $*,
2435 # except with old shells:
2436 host_os=$*
2437 IFS=$ac_save_IFS
2438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2442 $as_echo_n "checking target system type... " >&6; }
2443 if test "${ac_cv_target+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test "x$target_alias" = x; then
2447 ac_cv_target=$ac_cv_host
2448 else
2449 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2450 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2455 $as_echo "$ac_cv_target" >&6; }
2456 case $ac_cv_target in
2457 *-*-*) ;;
2458 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2459 esac
2460 target=$ac_cv_target
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_target
2463 shift
2464 target_cpu=$1
2465 target_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 target_os=$*
2470 IFS=$ac_save_IFS
2471 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474 # The aliases save the names the user supplied, while $host etc.
2475 # will get canonicalized.
2476 test -n "$target_alias" &&
2477 test "$program_prefix$program_suffix$program_transform_name" = \
2478 NONENONEs,x,x, &&
2479 program_prefix=${target_alias}-
2481 # Get the 'noncanonical' system names.
2482 case ${build_alias} in
2483 "") build_noncanonical=${build} ;;
2484 *) build_noncanonical=${build_alias} ;;
2485 esac
2487 case ${host_alias} in
2488 "") host_noncanonical=${build_noncanonical} ;;
2489 *) host_noncanonical=${host_alias} ;;
2490 esac
2492 case ${target_alias} in
2493 "") target_noncanonical=${host_noncanonical} ;;
2494 *) target_noncanonical=${target_alias} ;;
2495 esac
2500 # This works around an automake problem.
2501 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2504 am__api_version='1.11'
2506 # Find a good install program. We prefer a C program (faster),
2507 # so one script is as good as another. But avoid the broken or
2508 # incompatible versions:
2509 # SysV /etc/install, /usr/sbin/install
2510 # SunOS /usr/etc/install
2511 # IRIX /sbin/install
2512 # AIX /bin/install
2513 # AmigaOS /C/install, which installs bootblocks on floppy discs
2514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2517 # OS/2's system install, which has a completely different semantic
2518 # ./install, which can be erroneously created by make from ./install.sh.
2519 # Reject install programs that cannot install multiple files.
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2521 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2522 if test -z "$INSTALL"; then
2523 if test "${ac_cv_path_install+set}" = set; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 # Account for people who put trailing slashes in PATH elements.
2532 case $as_dir/ in #((
2533 ./ | .// | /[cC]/* | \
2534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2535 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2536 /usr/ucb/* ) ;;
2538 # OSF1 and SCO ODT 3.0 have their own names for install.
2539 # Don't use installbsd from OSF since it installs stuff as root
2540 # by default.
2541 for ac_prog in ginstall scoinst install; do
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2544 if test $ac_prog = install &&
2545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546 # AIX install. It has an incompatible calling convention.
2548 elif test $ac_prog = install &&
2549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2550 # program-specific install script used by HP pwplus--don't use.
2552 else
2553 rm -rf conftest.one conftest.two conftest.dir
2554 echo one > conftest.one
2555 echo two > conftest.two
2556 mkdir conftest.dir
2557 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2558 test -s conftest.one && test -s conftest.two &&
2559 test -s conftest.dir/conftest.one &&
2560 test -s conftest.dir/conftest.two
2561 then
2562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2563 break 3
2567 done
2568 done
2570 esac
2572 done
2573 IFS=$as_save_IFS
2575 rm -rf conftest.one conftest.two conftest.dir
2578 if test "${ac_cv_path_install+set}" = set; then
2579 INSTALL=$ac_cv_path_install
2580 else
2581 # As a last resort, use the slow shell script. Don't cache a
2582 # value for INSTALL within a source directory, because that will
2583 # break other packages using the cache if that directory is
2584 # removed, or if the value is a relative name.
2585 INSTALL=$ac_install_sh
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2589 $as_echo "$INSTALL" >&6; }
2591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2592 # It thinks the first close brace ends the variable substitution.
2593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2600 $as_echo_n "checking whether build environment is sane... " >&6; }
2601 # Just in case
2602 sleep 1
2603 echo timestamp > conftest.file
2604 # Reject unsafe characters in $srcdir or the absolute working directory
2605 # name. Accept space and tab only in the latter.
2606 am_lf='
2608 case `pwd` in
2609 *[\\\"\#\$\&\'\`$am_lf]*)
2610 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2611 esac
2612 case $srcdir in
2613 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2614 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2615 esac
2617 # Do `set' in a subshell so we don't clobber the current shell's
2618 # arguments. Must try -L first in case configure is actually a
2619 # symlink; some systems play weird games with the mod time of symlinks
2620 # (eg FreeBSD returns the mod time of the symlink's containing
2621 # directory).
2622 if (
2623 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2624 if test "$*" = "X"; then
2625 # -L didn't work.
2626 set X `ls -t "$srcdir/configure" conftest.file`
2628 rm -f conftest.file
2629 if test "$*" != "X $srcdir/configure conftest.file" \
2630 && test "$*" != "X conftest.file $srcdir/configure"; then
2632 # If neither matched, then we have a broken ls. This can happen
2633 # if, for instance, CONFIG_SHELL is bash and it inherits a
2634 # broken ls alias from the environment. This has actually
2635 # happened. Such a system could not be considered "sane".
2636 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2637 alias in your environment" "$LINENO" 5
2640 test "$2" = conftest.file
2642 then
2643 # Ok.
2645 else
2646 as_fn_error "newly created file is older than distributed files!
2647 Check your system clock" "$LINENO" 5
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2651 test "$program_prefix" != NONE &&
2652 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2653 # Use a double $ so make ignores it.
2654 test "$program_suffix" != NONE &&
2655 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2656 # Double any \ or $.
2657 # By default was `s,x,x', remove it if useless.
2658 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2659 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2661 # expand $ac_aux_dir to an absolute path
2662 am_aux_dir=`cd $ac_aux_dir && pwd`
2664 if test x"${MISSING+set}" != xset; then
2665 case $am_aux_dir in
2666 *\ * | *\ *)
2667 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2669 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2670 esac
2672 # Use eval to expand $SHELL
2673 if eval "$MISSING --run true"; then
2674 am_missing_run="$MISSING --run "
2675 else
2676 am_missing_run=
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2678 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2681 if test x"${install_sh}" != xset; then
2682 case $am_aux_dir in
2683 *\ * | *\ *)
2684 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2686 install_sh="\${SHELL} $am_aux_dir/install-sh"
2687 esac
2690 # Installed binaries are usually stripped using `strip' when the user
2691 # run `make install-strip'. However `strip' might not be the right
2692 # tool to use in cross-compilation environments, therefore Automake
2693 # will honor the `STRIP' environment variable to overrule this program.
2694 if test "$cross_compiling" != no; then
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_STRIP+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$STRIP"; then
2704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2719 IFS=$as_save_IFS
2723 STRIP=$ac_cv_prog_STRIP
2724 if test -n "$STRIP"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2726 $as_echo "$STRIP" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2734 if test -z "$ac_cv_prog_STRIP"; then
2735 ac_ct_STRIP=$STRIP
2736 # Extract the first word of "strip", so it can be a program name with args.
2737 set dummy strip; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$ac_ct_STRIP"; then
2744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_ac_ct_STRIP="strip"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2757 done
2758 done
2759 IFS=$as_save_IFS
2763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2764 if test -n "$ac_ct_STRIP"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2766 $as_echo "$ac_ct_STRIP" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2772 if test "x$ac_ct_STRIP" = x; then
2773 STRIP=":"
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 STRIP=$ac_ct_STRIP
2783 else
2784 STRIP="$ac_cv_prog_STRIP"
2788 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2791 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2792 if test -z "$MKDIR_P"; then
2793 if test "${ac_cv_path_mkdir+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_prog in mkdir gmkdir; do
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2804 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2805 'mkdir (GNU coreutils) '* | \
2806 'mkdir (coreutils) '* | \
2807 'mkdir (fileutils) '4.1*)
2808 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2809 break 3;;
2810 esac
2811 done
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 if test "${ac_cv_path_mkdir+set}" = set; then
2819 MKDIR_P="$ac_cv_path_mkdir -p"
2820 else
2821 # As a last resort, use the slow shell script. Don't cache a
2822 # value for MKDIR_P within a source directory, because that will
2823 # break other packages using the cache if that directory is
2824 # removed, or if the value is a relative name.
2825 test -d ./--version && rmdir ./--version
2826 MKDIR_P="$ac_install_sh -d"
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2830 $as_echo "$MKDIR_P" >&6; }
2832 mkdir_p="$MKDIR_P"
2833 case $mkdir_p in
2834 [\\/$]* | ?:[\\/]*) ;;
2835 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2836 esac
2838 for ac_prog in gawk mawk nawk awk
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_AWK+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$AWK"; then
2848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_AWK="$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2861 done
2862 done
2863 IFS=$as_save_IFS
2867 AWK=$ac_cv_prog_AWK
2868 if test -n "$AWK"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2870 $as_echo "$AWK" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2877 test -n "$AWK" && break
2878 done
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882 set x ${MAKE-make}
2883 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2884 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 cat >conftest.make <<\_ACEOF
2888 SHELL = /bin/sh
2889 all:
2890 @echo '@@@%%%=$(MAKE)=@@@%%%'
2891 _ACEOF
2892 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2893 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894 *@@@%%%=?*=@@@%%%*)
2895 eval ac_cv_prog_make_${ac_make}_set=yes;;
2897 eval ac_cv_prog_make_${ac_make}_set=no;;
2898 esac
2899 rm -f conftest.make
2901 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2903 $as_echo "yes" >&6; }
2904 SET_MAKE=
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 SET_MAKE="MAKE=${MAKE-make}"
2911 rm -rf .tst 2>/dev/null
2912 mkdir .tst 2>/dev/null
2913 if test -d .tst; then
2914 am__leading_dot=.
2915 else
2916 am__leading_dot=_
2918 rmdir .tst 2>/dev/null
2920 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2921 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2922 # is not polluted with repeated "-I."
2923 am__isrc=' -I$(srcdir)'
2924 # test to see if srcdir already configured
2925 if test -f $srcdir/config.status; then
2926 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2930 # test whether we have cygpath
2931 if test -z "$CYGPATH_W"; then
2932 if (cygpath --version) >/dev/null 2>/dev/null; then
2933 CYGPATH_W='cygpath -w'
2934 else
2935 CYGPATH_W=echo
2940 # Define the identity of the package.
2941 PACKAGE=gc
2942 VERSION=6.6
2945 # Some tools Automake needs.
2947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2961 # We need awk for the "check" target. The system "awk" is bad on
2962 # some platforms.
2963 # Always define AMTAR for backward compatibility. Yes, it's still used
2964 # in the wild :-( We should find a proper way to deprecate it ...
2965 AMTAR='$${TAR-tar}'
2967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2974 # The autoconf 2.5x version of the no-executables hack.
2977 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2978 # the wrong, non-multilib-adjusted value will be used in multilibs.
2979 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3027 if test -z "$ac_cv_prog_CC"; then
3028 ac_ct_CC=$CC
3029 # Extract the first word of "gcc", so it can be a program name with args.
3030 set dummy gcc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_ac_ct_CC="gcc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3076 else
3077 CC="$ac_cv_prog_CC"
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}cc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_CC="${ac_tool_prefix}cc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3121 if test -z "$CC"; then
3122 # Extract the first word of "cc", so it can be a program name with args.
3123 set dummy cc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 ac_prog_rejected=no
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3142 continue
3144 ac_cv_prog_CC="cc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3155 shift
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3160 shift
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$CC" && break
3219 done
3221 if test -z "$CC"; then
3222 ac_ct_CC=$CC
3223 for ac_prog in cl.exe
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3246 done
3247 done
3248 IFS=$as_save_IFS
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255 $as_echo "$ac_ct_CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$ac_ct_CC" && break
3263 done
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274 CC=$ac_ct_CC
3281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error "no acceptable C compiler found in \$PATH
3284 See \`config.log' for more details." "$LINENO" 5; }
3286 # Provide some information about the compiler.
3287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3288 set X $ac_compile
3289 ac_compiler=$2
3290 for ac_option in --version -v -V -qversion; do
3291 { { ac_try="$ac_compiler $ac_option >&5"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3299 ac_status=$?
3300 if test -s conftest.err; then
3301 sed '10a\
3302 ... rest of stderr output deleted ...
3303 10q' conftest.err >conftest.er1
3304 cat conftest.er1 >&5
3305 rm -f conftest.er1 conftest.err
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }
3309 done
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 # FIXME: Cleanup?
3323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3324 (eval $ac_link) 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 gcc_no_link=no
3329 else
3330 gcc_no_link=yes
3332 if test x$gcc_no_link = xyes; then
3333 # Setting cross_compile will disable run tests; it will
3334 # also disable AC_CHECK_FILE but that's generally
3335 # correct if we can't link.
3336 cross_compiling=yes
3337 EXEEXT=
3338 else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3343 main ()
3347 return 0;
3349 _ACEOF
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3354 # of exeext.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362 ac_rmfiles=
3363 for ac_file in $ac_files
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 esac
3369 done
3370 rm -f $ac_rmfiles
3372 if { { ac_try="$ac_link_default"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3410 break;;
3411 esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3415 else
3416 ac_file=''
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 if test -z "$ac_file"; then :
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 { as_fn_set_status 77
3427 as_fn_error "C compiler cannot create executables
3428 See \`config.log' for more details." "$LINENO" 5; }; }
3430 ac_exeext=$ac_cv_exeext
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3435 $as_echo_n "checking whether the C compiler works... " >&6; }
3436 # If not cross compiling, check that we can run a simple program.
3437 if test "$cross_compiling" != yes; then
3438 if { ac_try='./$ac_file'
3439 { { case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_try") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; }; then
3449 cross_compiling=no
3450 else
3451 if test "$cross_compiling" = maybe; then
3452 cross_compiling=yes
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error "cannot run C compiled programs.
3457 If you meant to cross compile, use \`--host'.
3458 See \`config.log' for more details." "$LINENO" 5; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 $as_echo "yes" >&6; }
3465 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3466 ac_clean_files=$ac_clean_files_save
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470 $as_echo_n "checking whether we are cross compiling... " >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472 $as_echo "$cross_compiling" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3475 $as_echo_n "checking for suffix of executables... " >&6; }
3476 if { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3488 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3489 # work properly (i.e., refer to `conftest.exe'), while it won't with
3490 # `rm'.
3491 for ac_file in conftest.exe conftest conftest.*; do
3492 test -f "$ac_file" || continue
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 break;;
3497 * ) break;;
3498 esac
3499 done
3500 else
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error "cannot compute suffix of executables: cannot compile and link
3504 See \`config.log' for more details." "$LINENO" 5; }
3506 rm -f conftest$ac_cv_exeext
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3508 $as_echo "$ac_cv_exeext" >&6; }
3510 rm -f conftest.$ac_ext
3511 EXEEXT=$ac_cv_exeext
3512 ac_exeext=$EXEEXT
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515 $as_echo_n "checking for suffix of object files... " >&6; }
3516 if test "${ac_cv_objext+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.o conftest.obj
3531 if { { ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 for ac_file in conftest.o conftest.obj conftest.*; do
3543 test -f "$ac_file" || continue;
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547 break;;
3548 esac
3549 done
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error "cannot compute suffix of object files: cannot compile
3557 See \`config.log' for more details." "$LINENO" 5; }
3559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562 $as_echo "$ac_cv_objext" >&6; }
3563 OBJEXT=$ac_cv_objext
3564 ac_objext=$OBJEXT
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3576 #ifndef __GNUC__
3577 choke me
3578 #endif
3581 return 0;
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_compiler_gnu=yes
3586 else
3587 ac_compiler_gnu=no
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if test "${ac_cv_prog_cc_g+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624 else
3625 CFLAGS=""
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3630 main ()
3634 return 0;
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3639 else
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664 $as_echo "$ac_cv_prog_cc_g" >&6; }
3665 if test "$ac_test_CFLAGS" = set; then
3666 CFLAGS=$ac_save_CFLAGS
3667 elif test $ac_cv_prog_cc_g = yes; then
3668 if test "$GCC" = yes; then
3669 CFLAGS="-g -O2"
3670 else
3671 CFLAGS="-g"
3673 else
3674 if test "$GCC" = yes; then
3675 CFLAGS="-O2"
3676 else
3677 CFLAGS=
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 ac_cv_prog_cc_c89=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <stdarg.h>
3690 #include <stdio.h>
3691 #include <sys/types.h>
3692 #include <sys/stat.h>
3693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3694 struct buf { int x; };
3695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696 static char *e (p, i)
3697 char **p;
3698 int i;
3700 return p[i];
3702 static char *f (char * (*g) (char **, int), char **p, ...)
3704 char *s;
3705 va_list v;
3706 va_start (v,p);
3707 s = g (p, va_arg (v,int));
3708 va_end (v);
3709 return s;
3712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3713 function prototypes and stuff, but not '\xHH' hex character constants.
3714 These don't provoke an error unfortunately, instead are silently treated
3715 as 'x'. The following induces an error, until -std is added to get
3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3717 array size at least. It's necessary to write '\x00'==0 to get something
3718 that's true only with -std. */
3719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722 inside strings and character constants. */
3723 #define FOO(x) 'x'
3724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3726 int test (int i, double x);
3727 struct s1 {int (*f) (int a);};
3728 struct s2 {int (*f) (double a);};
3729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 int argc;
3731 char **argv;
3733 main ()
3735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3737 return 0;
3739 _ACEOF
3740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743 CC="$ac_save_CC $ac_arg"
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_c89=$ac_arg
3747 rm -f core conftest.err conftest.$ac_objext
3748 test "x$ac_cv_prog_cc_c89" != "xno" && break
3749 done
3750 rm -f conftest.$ac_ext
3751 CC=$ac_save_CC
3754 # AC_CACHE_VAL
3755 case "x$ac_cv_prog_cc_c89" in
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758 $as_echo "none needed" >&6; } ;;
3759 xno)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761 $as_echo "unsupported" >&6; } ;;
3763 CC="$CC $ac_cv_prog_cc_c89"
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3766 esac
3767 if test "x$ac_cv_prog_cc_c89" != xno; then :
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776 DEPDIR="${am__leading_dot}deps"
3778 ac_config_commands="$ac_config_commands depfiles"
3781 am_make=${MAKE-make}
3782 cat > confinc << 'END'
3783 am__doit:
3784 @echo this is the am__doit target
3785 .PHONY: am__doit
3787 # If we don't find an include directive, just comment out the code.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3789 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3790 am__include="#"
3791 am__quote=
3792 _am_result=none
3793 # First try GNU make style include.
3794 echo "include confinc" > confmf
3795 # Ignore all kinds of additional output from `make'.
3796 case `$am_make -s -f confmf 2> /dev/null` in #(
3797 *the\ am__doit\ target*)
3798 am__include=include
3799 am__quote=
3800 _am_result=GNU
3802 esac
3803 # Now try BSD make style include.
3804 if test "$am__include" = "#"; then
3805 echo '.include "confinc"' > confmf
3806 case `$am_make -s -f confmf 2> /dev/null` in #(
3807 *the\ am__doit\ target*)
3808 am__include=.include
3809 am__quote="\""
3810 _am_result=BSD
3812 esac
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3817 $as_echo "$_am_result" >&6; }
3818 rm -f confinc confmf
3820 # Check whether --enable-dependency-tracking was given.
3821 if test "${enable_dependency_tracking+set}" = set; then :
3822 enableval=$enable_dependency_tracking;
3825 if test "x$enable_dependency_tracking" != xno; then
3826 am_depcomp="$ac_aux_dir/depcomp"
3827 AMDEPBACKSLASH='\'
3828 am__nodep='_no'
3830 if test "x$enable_dependency_tracking" != xno; then
3831 AMDEP_TRUE=
3832 AMDEP_FALSE='#'
3833 else
3834 AMDEP_TRUE='#'
3835 AMDEP_FALSE=
3840 depcc="$CC" am_compiler_list=
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D' -- because `-MD' means `put the output
3852 # in D'.
3853 rm -rf conftest.dir
3854 mkdir conftest.dir
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3858 cd conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3864 # directory.
3865 mkdir sub
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3871 am__universal=false
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874 esac
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3884 : > sub/conftest.c
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888 # Solaris 8's {/usr,}/bin/sh.
3889 touch sub/conftst$i.h
3890 done
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle `-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs
3897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
3899 case $depmode in
3900 gcc)
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3904 nosideeffect)
3905 # after this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested
3907 if test "x$enable_dependency_tracking" = xyes; then
3908 continue
3909 else
3910 break
3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914 # This compiler won't grok `-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3918 am__minus_obj=
3920 none) break ;;
3921 esac
3922 if depmode=$depmode \
3923 source=sub/conftest.c object=$am__obj \
3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926 >/dev/null 2>conftest.err &&
3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type=$depmode
3941 break
3944 done
3946 cd ..
3947 rm -rf conftest.dir
3948 else
3949 am_cv_CC_dependencies_compiler_type=none
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960 am__fastdepCC_TRUE=
3961 am__fastdepCC_FALSE='#'
3962 else
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3968 ac_ext=cpp
3969 ac_cpp='$CXXCPP $CPPFLAGS'
3970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3973 if test -z "$CXX"; then
3974 if test -n "$CCC"; then
3975 CXX=$CCC
3976 else
3977 if test -n "$ac_tool_prefix"; then
3978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_CXX+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CXX"; then
3988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CXX=$ac_cv_prog_CXX
4008 if test -n "$CXX"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4010 $as_echo "$CXX" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$CXX" && break
4018 done
4020 if test -z "$CXX"; then
4021 ac_ct_CXX=$CXX
4022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_CXX"; then
4032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_ac_ct_CXX="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4052 if test -n "$ac_ct_CXX"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4054 $as_echo "$ac_ct_CXX" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$ac_ct_CXX" && break
4062 done
4064 if test "x$ac_ct_CXX" = x; then
4065 CXX="g++"
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CXX=$ac_ct_CXX
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4081 set X $ac_compile
4082 ac_compiler=$2
4083 for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092 ac_status=$?
4093 if test -s conftest.err; then
4094 sed '10a\
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 rm -f conftest.er1 conftest.err
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102 done
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4105 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4106 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4115 #ifndef __GNUC__
4116 choke me
4117 #endif
4120 return 0;
4122 _ACEOF
4123 if ac_fn_cxx_try_compile "$LINENO"; then :
4124 ac_compiler_gnu=yes
4125 else
4126 ac_compiler_gnu=no
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4133 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4134 if test $ac_compiler_gnu = yes; then
4135 GXX=yes
4136 else
4137 GXX=
4139 ac_test_CXXFLAGS=${CXXFLAGS+set}
4140 ac_save_CXXFLAGS=$CXXFLAGS
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4142 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4143 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4147 ac_cxx_werror_flag=yes
4148 ac_cv_prog_cxx_g=no
4149 CXXFLAGS="-g"
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4154 main ()
4158 return 0;
4160 _ACEOF
4161 if ac_fn_cxx_try_compile "$LINENO"; then :
4162 ac_cv_prog_cxx_g=yes
4163 else
4164 CXXFLAGS=""
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 if ac_fn_cxx_try_compile "$LINENO"; then :
4178 else
4179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4180 CXXFLAGS="-g"
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 main ()
4189 return 0;
4191 _ACEOF
4192 if ac_fn_cxx_try_compile "$LINENO"; then :
4193 ac_cv_prog_cxx_g=yes
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4203 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4204 if test "$ac_test_CXXFLAGS" = set; then
4205 CXXFLAGS=$ac_save_CXXFLAGS
4206 elif test $ac_cv_prog_cxx_g = yes; then
4207 if test "$GXX" = yes; then
4208 CXXFLAGS="-g -O2"
4209 else
4210 CXXFLAGS="-g"
4212 else
4213 if test "$GXX" = yes; then
4214 CXXFLAGS="-O2"
4215 else
4216 CXXFLAGS=
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 depcc="$CXX" am_compiler_list=
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4228 $as_echo_n "checking dependency style of $depcc... " >&6; }
4229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4233 # We make a subdir and do the tests there. Otherwise we can end up
4234 # making bogus files that we don't know about and never remove. For
4235 # instance it was reported that on HP-UX the gcc test will end up
4236 # making a dummy file named `D' -- because `-MD' means `put the output
4237 # in D'.
4238 rm -rf conftest.dir
4239 mkdir conftest.dir
4240 # Copy depcomp to subdir because otherwise we won't find it if we're
4241 # using a relative directory.
4242 cp "$am_depcomp" conftest.dir
4243 cd conftest.dir
4244 # We will build objects and dependencies in a subdirectory because
4245 # it helps to detect inapplicable dependency modes. For instance
4246 # both Tru64's cc and ICC support -MD to output dependencies as a
4247 # side effect of compilation, but ICC will put the dependencies in
4248 # the current directory while Tru64 will put them in the object
4249 # directory.
4250 mkdir sub
4252 am_cv_CXX_dependencies_compiler_type=none
4253 if test "$am_compiler_list" = ""; then
4254 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4256 am__universal=false
4257 case " $depcc " in #(
4258 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4259 esac
4261 for depmode in $am_compiler_list; do
4262 # Setup a source with many dependencies, because some compilers
4263 # like to wrap large dependency lists on column 80 (with \), and
4264 # we should not choose a depcomp mode which is confused by this.
4266 # We need to recreate these files for each test, as the compiler may
4267 # overwrite some of them when testing with obscure command lines.
4268 # This happens at least with the AIX C compiler.
4269 : > sub/conftest.c
4270 for i in 1 2 3 4 5 6; do
4271 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4272 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4273 # Solaris 8's {/usr,}/bin/sh.
4274 touch sub/conftst$i.h
4275 done
4276 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4278 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4279 # mode. It turns out that the SunPro C++ compiler does not properly
4280 # handle `-M -o', and we need to detect this. Also, some Intel
4281 # versions had trouble with output in subdirs
4282 am__obj=sub/conftest.${OBJEXT-o}
4283 am__minus_obj="-o $am__obj"
4284 case $depmode in
4285 gcc)
4286 # This depmode causes a compiler race in universal mode.
4287 test "$am__universal" = false || continue
4289 nosideeffect)
4290 # after this tag, mechanisms are not by side-effect, so they'll
4291 # only be used when explicitly requested
4292 if test "x$enable_dependency_tracking" = xyes; then
4293 continue
4294 else
4295 break
4298 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4299 # This compiler won't grok `-c -o', but also, the minuso test has
4300 # not run yet. These depmodes are late enough in the game, and
4301 # so weak that their functioning should not be impacted.
4302 am__obj=conftest.${OBJEXT-o}
4303 am__minus_obj=
4305 none) break ;;
4306 esac
4307 if depmode=$depmode \
4308 source=sub/conftest.c object=$am__obj \
4309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4310 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4311 >/dev/null 2>conftest.err &&
4312 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4314 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4316 # icc doesn't choke on unknown options, it will just issue warnings
4317 # or remarks (even with -Werror). So we grep stderr for any message
4318 # that says an option was ignored or not supported.
4319 # When given -MP, icc 7.0 and 7.1 complain thusly:
4320 # icc: Command line warning: ignoring option '-M'; no argument required
4321 # The diagnosis changed in icc 8.0:
4322 # icc: Command line remark: option '-MP' not supported
4323 if (grep 'ignoring option' conftest.err ||
4324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4325 am_cv_CXX_dependencies_compiler_type=$depmode
4326 break
4329 done
4331 cd ..
4332 rm -rf conftest.dir
4333 else
4334 am_cv_CXX_dependencies_compiler_type=none
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4339 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4340 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4343 test "x$enable_dependency_tracking" != xno \
4344 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4345 am__fastdepCXX_TRUE=
4346 am__fastdepCXX_FALSE='#'
4347 else
4348 am__fastdepCXX_TRUE='#'
4349 am__fastdepCXX_FALSE=
4355 if test "x$CC" != xcc; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4357 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4360 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4362 set dummy $CC; ac_cc=`$as_echo "$2" |
4363 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4364 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 # Make sure it works both with $CC and with simple cc.
4379 # We do the test twice because some compilers refuse to overwrite an
4380 # existing .o file with -o, though they will create one.
4381 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4382 rm -f conftest2.*
4383 if { { case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_try") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; } &&
4393 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4400 ac_status=$?
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; };
4403 then
4404 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4405 if test "x$CC" != xcc; then
4406 # Test first that cc exists at all.
4407 if { ac_try='cc -c conftest.$ac_ext >&5'
4408 { { case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }; }; then
4418 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4419 rm -f conftest2.*
4420 if { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; } &&
4430 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_try") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; };
4440 then
4441 # cc works too.
4443 else
4444 # cc exists but doesn't like -o.
4445 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4449 else
4450 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4452 rm -f core conftest*
4455 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4457 $as_echo "yes" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4462 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4466 # FIXME: we rely on the cache variable name because
4467 # there is no other way.
4468 set dummy $CC
4469 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4470 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4471 if test "$am_t" != yes; then
4472 # Losing compiler, so override with the script.
4473 # FIXME: It is wrong to rewrite CC.
4474 # But if we don't then we get into trouble of one sort or another.
4475 # A longer-term fix would be to have automake use am__CC in this case,
4476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4477 CC="$am_aux_dir/compile $CC"
4485 # Newer automakes demand CCAS and CCASFLAGS.
4486 : ${CCAS='$(CC)'}
4487 : ${CCASFLAGS='$(CFLAGS)'}
4491 if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4493 set dummy ${ac_tool_prefix}as; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_AS+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$AS"; then
4500 ac_cv_prog_AS="$AS" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_AS="${ac_tool_prefix}as"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 AS=$ac_cv_prog_AS
4520 if test -n "$AS"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4522 $as_echo "$AS" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4530 if test -z "$ac_cv_prog_AS"; then
4531 ac_ct_AS=$AS
4532 # Extract the first word of "as", so it can be a program name with args.
4533 set dummy as; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$ac_ct_AS"; then
4540 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_ac_ct_AS="as"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4559 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4560 if test -n "$ac_ct_AS"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4562 $as_echo "$ac_ct_AS" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4568 if test "x$ac_ct_AS" = x; then
4569 AS=""
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572 yes:)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575 ac_tool_warned=yes ;;
4576 esac
4577 AS=$ac_ct_AS
4579 else
4580 AS="$ac_cv_prog_AS"
4583 if test -n "$ac_tool_prefix"; then
4584 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4585 set dummy ${ac_tool_prefix}ar; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if test "${ac_cv_prog_AR+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$AR"; then
4592 ac_cv_prog_AR="$AR" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_AR="${ac_tool_prefix}ar"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4607 IFS=$as_save_IFS
4611 AR=$ac_cv_prog_AR
4612 if test -n "$AR"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4614 $as_echo "$AR" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4622 if test -z "$ac_cv_prog_AR"; then
4623 ac_ct_AR=$AR
4624 # Extract the first word of "ar", so it can be a program name with args.
4625 set dummy ar; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$ac_ct_AR"; then
4632 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_ac_ct_AR="ar"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4652 if test -n "$ac_ct_AR"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4654 $as_echo "$ac_ct_AR" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4660 if test "x$ac_ct_AR" = x; then
4661 AR=""
4662 else
4663 case $cross_compiling:$ac_tool_warned in
4664 yes:)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4667 ac_tool_warned=yes ;;
4668 esac
4669 AR=$ac_ct_AR
4671 else
4672 AR="$ac_cv_prog_AR"
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$RANLIB"; then
4684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 RANLIB=$ac_cv_prog_RANLIB
4704 if test -n "$RANLIB"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4706 $as_echo "$RANLIB" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4714 if test -z "$ac_cv_prog_RANLIB"; then
4715 ac_ct_RANLIB=$RANLIB
4716 # Extract the first word of "ranlib", so it can be a program name with args.
4717 set dummy ranlib; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_RANLIB"; then
4724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_RANLIB="ranlib"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4744 if test -n "$ac_ct_RANLIB"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4746 $as_echo "$ac_ct_RANLIB" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4752 if test "x$ac_ct_RANLIB" = x; then
4753 RANLIB=":"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761 RANLIB=$ac_ct_RANLIB
4763 else
4764 RANLIB="$ac_cv_prog_RANLIB"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4772 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4773 # Check whether --enable-maintainer-mode was given.
4774 if test "${enable_maintainer_mode+set}" = set; then :
4775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4776 else
4777 USE_MAINTAINER_MODE=no
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4782 if test $USE_MAINTAINER_MODE = yes; then
4783 MAINTAINER_MODE_TRUE=
4784 MAINTAINER_MODE_FALSE='#'
4785 else
4786 MAINTAINER_MODE_TRUE='#'
4787 MAINTAINER_MODE_FALSE=
4790 MAINT=$MAINTAINER_MODE_TRUE
4794 . ${srcdir}/configure.host
4796 case ${gc_basedir} in
4797 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4798 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4799 esac
4801 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4802 case "${host}" in
4803 *-*-cygwin32*)
4804 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4806 esac
4808 case "${host}" in
4809 *-*-mingw*)
4810 gc_cflags="${gc_cflags} -DGC_BUILD=1"
4812 esac
4815 GC_CFLAGS=${gc_cflags}
4818 case `pwd` in
4819 *\ * | *\ *)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822 esac
4826 macro_version='2.2.7a'
4827 macro_revision='1.3134'
4841 ltmain="$ac_aux_dir/ltmain.sh"
4843 # Backslashify metacharacters that are still active within
4844 # double-quoted strings.
4845 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4847 # Same as above, but do not quote variable references.
4848 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4850 # Sed substitution to delay expansion of an escaped shell variable in a
4851 # double_quote_subst'ed string.
4852 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4854 # Sed substitution to delay expansion of an escaped single quote.
4855 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4857 # Sed substitution to avoid accidental globbing in evaled expressions
4858 no_glob_subst='s/\*/\\\*/g'
4860 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4861 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4862 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4865 $as_echo_n "checking how to print strings... " >&6; }
4866 # Test print first, because it will be a builtin if present.
4867 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4868 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4869 ECHO='print -r --'
4870 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4871 ECHO='printf %s\n'
4872 else
4873 # Use this function as a fallback that always works.
4874 func_fallback_echo ()
4876 eval 'cat <<_LTECHO_EOF
4878 _LTECHO_EOF'
4880 ECHO='func_fallback_echo'
4883 # func_echo_all arg...
4884 # Invoke $ECHO with all args, space-separated.
4885 func_echo_all ()
4887 $ECHO ""
4890 case "$ECHO" in
4891 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4892 $as_echo "printf" >&6; } ;;
4893 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4894 $as_echo "print -r" >&6; } ;;
4895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4896 $as_echo "cat" >&6; } ;;
4897 esac
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4913 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4914 if test "${ac_cv_path_SED+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4918 for ac_i in 1 2 3 4 5 6 7; do
4919 ac_script="$ac_script$as_nl$ac_script"
4920 done
4921 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4922 { ac_script=; unset ac_script;}
4923 if test -z "$SED"; then
4924 ac_path_SED_found=false
4925 # Loop through the user's path and test for each of PROGNAME-LIST
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_prog in sed gsed; do
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4934 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4935 # Check for GNU ac_path_SED and select it if it is found.
4936 # Check for GNU $ac_path_SED
4937 case `"$ac_path_SED" --version 2>&1` in
4938 *GNU*)
4939 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4941 ac_count=0
4942 $as_echo_n 0123456789 >"conftest.in"
4943 while :
4945 cat "conftest.in" "conftest.in" >"conftest.tmp"
4946 mv "conftest.tmp" "conftest.in"
4947 cp "conftest.in" "conftest.nl"
4948 $as_echo '' >> "conftest.nl"
4949 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951 as_fn_arith $ac_count + 1 && ac_count=$as_val
4952 if test $ac_count -gt ${ac_path_SED_max-0}; then
4953 # Best one so far, save it but keep looking for a better one
4954 ac_cv_path_SED="$ac_path_SED"
4955 ac_path_SED_max=$ac_count
4957 # 10*(2^10) chars as input seems more than enough
4958 test $ac_count -gt 10 && break
4959 done
4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961 esac
4963 $ac_path_SED_found && break 3
4964 done
4965 done
4966 done
4967 IFS=$as_save_IFS
4968 if test -z "$ac_cv_path_SED"; then
4969 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4971 else
4972 ac_cv_path_SED=$SED
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4977 $as_echo "$ac_cv_path_SED" >&6; }
4978 SED="$ac_cv_path_SED"
4979 rm -f conftest.sed
4981 test -z "$SED" && SED=sed
4982 Xsed="$SED -e 1s/^X//"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4996 if test "${ac_cv_path_GREP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -z "$GREP"; then
5000 ac_path_GREP_found=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_prog in grep ggrep; do
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5011 # Check for GNU ac_path_GREP and select it if it is found.
5012 # Check for GNU $ac_path_GREP
5013 case `"$ac_path_GREP" --version 2>&1` in
5014 *GNU*)
5015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5017 ac_count=0
5018 $as_echo_n 0123456789 >"conftest.in"
5019 while :
5021 cat "conftest.in" "conftest.in" >"conftest.tmp"
5022 mv "conftest.tmp" "conftest.in"
5023 cp "conftest.in" "conftest.nl"
5024 $as_echo 'GREP' >> "conftest.nl"
5025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027 as_fn_arith $ac_count + 1 && ac_count=$as_val
5028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5029 # Best one so far, save it but keep looking for a better one
5030 ac_cv_path_GREP="$ac_path_GREP"
5031 ac_path_GREP_max=$ac_count
5033 # 10*(2^10) chars as input seems more than enough
5034 test $ac_count -gt 10 && break
5035 done
5036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037 esac
5039 $ac_path_GREP_found && break 3
5040 done
5041 done
5042 done
5043 IFS=$as_save_IFS
5044 if test -z "$ac_cv_path_GREP"; then
5045 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5047 else
5048 ac_cv_path_GREP=$GREP
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5053 $as_echo "$ac_cv_path_GREP" >&6; }
5054 GREP="$ac_cv_path_GREP"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5058 $as_echo_n "checking for egrep... " >&6; }
5059 if test "${ac_cv_path_EGREP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5063 then ac_cv_path_EGREP="$GREP -E"
5064 else
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_prog in egrep; do
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5077 # Check for GNU ac_path_EGREP and select it if it is found.
5078 # Check for GNU $ac_path_EGREP
5079 case `"$ac_path_EGREP" --version 2>&1` in
5080 *GNU*)
5081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5083 ac_count=0
5084 $as_echo_n 0123456789 >"conftest.in"
5085 while :
5087 cat "conftest.in" "conftest.in" >"conftest.tmp"
5088 mv "conftest.tmp" "conftest.in"
5089 cp "conftest.in" "conftest.nl"
5090 $as_echo 'EGREP' >> "conftest.nl"
5091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5093 as_fn_arith $ac_count + 1 && ac_count=$as_val
5094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5095 # Best one so far, save it but keep looking for a better one
5096 ac_cv_path_EGREP="$ac_path_EGREP"
5097 ac_path_EGREP_max=$ac_count
5099 # 10*(2^10) chars as input seems more than enough
5100 test $ac_count -gt 10 && break
5101 done
5102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103 esac
5105 $ac_path_EGREP_found && break 3
5106 done
5107 done
5108 done
5109 IFS=$as_save_IFS
5110 if test -z "$ac_cv_path_EGREP"; then
5111 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5113 else
5114 ac_cv_path_EGREP=$EGREP
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5120 $as_echo "$ac_cv_path_EGREP" >&6; }
5121 EGREP="$ac_cv_path_EGREP"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5125 $as_echo_n "checking for fgrep... " >&6; }
5126 if test "${ac_cv_path_FGREP+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5130 then ac_cv_path_FGREP="$GREP -F"
5131 else
5132 if test -z "$FGREP"; then
5133 ac_path_FGREP_found=false
5134 # Loop through the user's path and test for each of PROGNAME-LIST
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_prog in fgrep; do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5143 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5144 # Check for GNU ac_path_FGREP and select it if it is found.
5145 # Check for GNU $ac_path_FGREP
5146 case `"$ac_path_FGREP" --version 2>&1` in
5147 *GNU*)
5148 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5150 ac_count=0
5151 $as_echo_n 0123456789 >"conftest.in"
5152 while :
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 $as_echo 'FGREP' >> "conftest.nl"
5158 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_FGREP="$ac_path_FGREP"
5164 ac_path_FGREP_max=$ac_count
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170 esac
5172 $ac_path_FGREP_found && break 3
5173 done
5174 done
5175 done
5176 IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_FGREP"; then
5178 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5180 else
5181 ac_cv_path_FGREP=$FGREP
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5187 $as_echo "$ac_cv_path_FGREP" >&6; }
5188 FGREP="$ac_cv_path_FGREP"
5191 test -z "$GREP" && GREP=grep
5211 # Check whether --with-gnu-ld was given.
5212 if test "${with_gnu_ld+set}" = set; then :
5213 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5214 else
5215 with_gnu_ld=no
5218 ac_prog=ld
5219 if test "$GCC" = yes; then
5220 # Check if gcc -print-prog-name=ld gives a path.
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5222 $as_echo_n "checking for ld used by $CC... " >&6; }
5223 case $host in
5224 *-*-mingw*)
5225 # gcc leaves a trailing carriage return which upsets mingw
5226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5229 esac
5230 case $ac_prog in
5231 # Accept absolute paths.
5232 [\\/]* | ?:[\\/]*)
5233 re_direlt='/[^/][^/]*/\.\./'
5234 # Canonicalize the pathname of ld
5235 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5236 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5237 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5238 done
5239 test -z "$LD" && LD="$ac_prog"
5242 # If it fails, then pretend we aren't using GCC.
5243 ac_prog=ld
5246 # If it is relative, then search for the first ld in PATH.
5247 with_gnu_ld=unknown
5249 esac
5250 elif test "$with_gnu_ld" = yes; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5252 $as_echo_n "checking for GNU ld... " >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5255 $as_echo_n "checking for non-GNU ld... " >&6; }
5257 if test "${lt_cv_path_LD+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -z "$LD"; then
5261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5262 for ac_dir in $PATH; do
5263 IFS="$lt_save_ifs"
5264 test -z "$ac_dir" && ac_dir=.
5265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5266 lt_cv_path_LD="$ac_dir/$ac_prog"
5267 # Check to see if the program is GNU ld. I'd rather use --version,
5268 # but apparently some variants of GNU ld only accept -v.
5269 # Break only if it was the GNU/non-GNU ld that we prefer.
5270 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 test "$with_gnu_ld" != no && break
5275 test "$with_gnu_ld" != yes && break
5277 esac
5279 done
5280 IFS="$lt_save_ifs"
5281 else
5282 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5286 LD="$lt_cv_path_LD"
5287 if test -n "$LD"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5289 $as_echo "$LD" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5294 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5296 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5297 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5301 case `$LD -v 2>&1 </dev/null` in
5302 *GNU* | *'with BFD'*)
5303 lt_cv_prog_gnu_ld=yes
5306 lt_cv_prog_gnu_ld=no
5308 esac
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5311 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5312 with_gnu_ld=$lt_cv_prog_gnu_ld
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5323 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5324 if test "${lt_cv_path_NM+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$NM"; then
5328 # Let the user override the test.
5329 lt_cv_path_NM="$NM"
5330 else
5331 lt_nm_to_check="${ac_tool_prefix}nm"
5332 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5333 lt_nm_to_check="$lt_nm_to_check nm"
5335 for lt_tmp_nm in $lt_nm_to_check; do
5336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5337 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5338 IFS="$lt_save_ifs"
5339 test -z "$ac_dir" && ac_dir=.
5340 tmp_nm="$ac_dir/$lt_tmp_nm"
5341 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5342 # Check to see if the nm accepts a BSD-compat flag.
5343 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5344 # nm: unknown option "B" ignored
5345 # Tru64's nm complains that /dev/null is an invalid object file
5346 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5347 */dev/null* | *'Invalid file or object type'*)
5348 lt_cv_path_NM="$tmp_nm -B"
5349 break
5352 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5353 */dev/null*)
5354 lt_cv_path_NM="$tmp_nm -p"
5355 break
5358 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5359 continue # so that we can try to find one that supports BSD flags
5361 esac
5363 esac
5365 done
5366 IFS="$lt_save_ifs"
5367 done
5368 : ${lt_cv_path_NM=no}
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5372 $as_echo "$lt_cv_path_NM" >&6; }
5373 if test "$lt_cv_path_NM" != "no"; then
5374 NM="$lt_cv_path_NM"
5375 else
5376 # Didn't find any BSD compatible name lister, look for dumpbin.
5377 if test -n "$DUMPBIN"; then :
5378 # Let the user override the test.
5379 else
5380 if test -n "$ac_tool_prefix"; then
5381 for ac_prog in dumpbin "link -dump"
5383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$DUMPBIN"; then
5391 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 DUMPBIN=$ac_cv_prog_DUMPBIN
5411 if test -n "$DUMPBIN"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5413 $as_echo "$DUMPBIN" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 test -n "$DUMPBIN" && break
5421 done
5423 if test -z "$DUMPBIN"; then
5424 ac_ct_DUMPBIN=$DUMPBIN
5425 for ac_prog in dumpbin "link -dump"
5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy $ac_prog; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$ac_ct_DUMPBIN"; then
5435 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
5454 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5455 if test -n "$ac_ct_DUMPBIN"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5457 $as_echo "$ac_ct_DUMPBIN" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5464 test -n "$ac_ct_DUMPBIN" && break
5465 done
5467 if test "x$ac_ct_DUMPBIN" = x; then
5468 DUMPBIN=":"
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471 yes:)
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5475 esac
5476 DUMPBIN=$ac_ct_DUMPBIN
5480 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5481 *COFF*)
5482 DUMPBIN="$DUMPBIN -symbols"
5485 DUMPBIN=:
5487 esac
5490 if test "$DUMPBIN" != ":"; then
5491 NM="$DUMPBIN"
5494 test -z "$NM" && NM=nm
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5502 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5503 if test "${lt_cv_nm_interface+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 lt_cv_nm_interface="BSD nm"
5507 echo "int some_variable = 0;" > conftest.$ac_ext
5508 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5509 (eval "$ac_compile" 2>conftest.err)
5510 cat conftest.err >&5
5511 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5512 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5513 cat conftest.err >&5
5514 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5515 cat conftest.out >&5
5516 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5517 lt_cv_nm_interface="MS dumpbin"
5519 rm -f conftest*
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5522 $as_echo "$lt_cv_nm_interface" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5525 $as_echo_n "checking whether ln -s works... " >&6; }
5526 LN_S=$as_ln_s
5527 if test "$LN_S" = "ln -s"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5532 $as_echo "no, using $LN_S" >&6; }
5535 # find the maximum length of command line arguments
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5537 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5542 teststring="ABCD"
5544 case $build_os in
5545 msdosdjgpp*)
5546 # On DJGPP, this test can blow up pretty badly due to problems in libc
5547 # (any single argument exceeding 2000 bytes causes a buffer overrun
5548 # during glob expansion). Even if it were fixed, the result of this
5549 # check would be larger than it should be.
5550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5553 gnu*)
5554 # Under GNU Hurd, this test is not required because there is
5555 # no limit to the length of command line arguments.
5556 # Libtool will interpret -1 as no limit whatsoever
5557 lt_cv_sys_max_cmd_len=-1;
5560 cygwin* | mingw* | cegcc*)
5561 # On Win9x/ME, this test blows up -- it succeeds, but takes
5562 # about 5 minutes as the teststring grows exponentially.
5563 # Worse, since 9x/ME are not pre-emptively multitasking,
5564 # you end up with a "frozen" computer, even though with patience
5565 # the test eventually succeeds (with a max line length of 256k).
5566 # Instead, let's just punt: use the minimum linelength reported by
5567 # all of the supported platforms: 8192 (on NT/2K/XP).
5568 lt_cv_sys_max_cmd_len=8192;
5571 mint*)
5572 # On MiNT this can take a long time and run out of memory.
5573 lt_cv_sys_max_cmd_len=8192;
5576 amigaos*)
5577 # On AmigaOS with pdksh, this test takes hours, literally.
5578 # So we just punt and use a minimum line length of 8192.
5579 lt_cv_sys_max_cmd_len=8192;
5582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5583 # This has been around since 386BSD, at least. Likely further.
5584 if test -x /sbin/sysctl; then
5585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5586 elif test -x /usr/sbin/sysctl; then
5587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5588 else
5589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5591 # And add a safety zone
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5596 interix*)
5597 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5598 lt_cv_sys_max_cmd_len=196608
5601 osf*)
5602 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5603 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5604 # nice to cause kernel panics so lets avoid the loop below.
5605 # First set a reasonable default.
5606 lt_cv_sys_max_cmd_len=16384
5608 if test -x /sbin/sysconfig; then
5609 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5610 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5611 esac
5614 sco3.2v5*)
5615 lt_cv_sys_max_cmd_len=102400
5617 sysv5* | sco5v6* | sysv4.2uw2*)
5618 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5619 if test -n "$kargmax"; then
5620 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5621 else
5622 lt_cv_sys_max_cmd_len=32768
5626 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5627 if test -n "$lt_cv_sys_max_cmd_len"; then
5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5630 else
5631 # Make teststring a little bigger before we do anything with it.
5632 # a 1K string should be a reasonable start.
5633 for i in 1 2 3 4 5 6 7 8 ; do
5634 teststring=$teststring$teststring
5635 done
5636 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5637 # If test is not a shell built-in, we'll probably end up computing a
5638 # maximum length that is only half of the actual maximum length, but
5639 # we can't tell.
5640 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5641 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5642 test $i != 17 # 1/2 MB should be enough
5644 i=`expr $i + 1`
5645 teststring=$teststring$teststring
5646 done
5647 # Only check the string length outside the loop.
5648 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5649 teststring=
5650 # Add a significant safety factor because C++ compilers can tack on
5651 # massive amounts of additional arguments before passing them to the
5652 # linker. It appears as though 1/2 is a usable value.
5653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5656 esac
5660 if test -n $lt_cv_sys_max_cmd_len ; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5665 $as_echo "none" >&6; }
5667 max_cmd_len=$lt_cv_sys_max_cmd_len
5674 : ${CP="cp -f"}
5675 : ${MV="mv -f"}
5676 : ${RM="rm -f"}
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5680 # Try some XSI features
5681 xsi_shell=no
5682 ( _lt_dummy="a/b/c"
5683 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5684 = c,a/b,, \
5685 && eval 'test $(( 1 + 1 )) -eq 2 \
5686 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5687 && xsi_shell=yes
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5689 $as_echo "$xsi_shell" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5694 lt_shell_append=no
5695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5696 >/dev/null 2>&1 \
5697 && lt_shell_append=yes
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5699 $as_echo "$lt_shell_append" >&6; }
5702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5703 lt_unset=unset
5704 else
5705 lt_unset=false
5712 # test EBCDIC or ASCII
5713 case `echo X|tr X '\101'` in
5714 A) # ASCII based system
5715 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5716 lt_SP2NL='tr \040 \012'
5717 lt_NL2SP='tr \015\012 \040\040'
5719 *) # EBCDIC based system
5720 lt_SP2NL='tr \100 \n'
5721 lt_NL2SP='tr \r\n \100\100'
5723 esac
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5734 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5735 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 lt_cv_ld_reload_flag='-r'
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5741 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5742 reload_flag=$lt_cv_ld_reload_flag
5743 case $reload_flag in
5744 "" | " "*) ;;
5745 *) reload_flag=" $reload_flag" ;;
5746 esac
5747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 case $host_os in
5749 darwin*)
5750 if test "$GCC" = yes; then
5751 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5752 else
5753 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5756 esac
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$OBJDUMP"; then
5775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5788 done
5789 done
5790 IFS=$as_save_IFS
5794 OBJDUMP=$ac_cv_prog_OBJDUMP
5795 if test -n "$OBJDUMP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5797 $as_echo "$OBJDUMP" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5805 if test -z "$ac_cv_prog_OBJDUMP"; then
5806 ac_ct_OBJDUMP=$OBJDUMP
5807 # Extract the first word of "objdump", so it can be a program name with args.
5808 set dummy objdump; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$ac_ct_OBJDUMP"; then
5815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5835 if test -n "$ac_ct_OBJDUMP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5837 $as_echo "$ac_ct_OBJDUMP" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5843 if test "x$ac_ct_OBJDUMP" = x; then
5844 OBJDUMP="false"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 OBJDUMP=$ac_ct_OBJDUMP
5854 else
5855 OBJDUMP="$ac_cv_prog_OBJDUMP"
5858 test -z "$OBJDUMP" && OBJDUMP=objdump
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5869 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5870 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 lt_cv_file_magic_cmd='$MAGIC_CMD'
5874 lt_cv_file_magic_test_file=
5875 lt_cv_deplibs_check_method='unknown'
5876 # Need to set the preceding variable on all platforms that support
5877 # interlibrary dependencies.
5878 # 'none' -- dependencies not supported.
5879 # `unknown' -- same as none, but documents that we really don't know.
5880 # 'pass_all' -- all dependencies passed with no checks.
5881 # 'test_compile' -- check by making test program.
5882 # 'file_magic [[regex]]' -- check by looking for files in library path
5883 # which responds to the $file_magic_cmd with a given extended regex.
5884 # If you have `file' or equivalent on your system and you're not sure
5885 # whether `pass_all' will *always* work, you probably want this one.
5887 case $host_os in
5888 aix[4-9]*)
5889 lt_cv_deplibs_check_method=pass_all
5892 beos*)
5893 lt_cv_deplibs_check_method=pass_all
5896 bsdi[45]*)
5897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5898 lt_cv_file_magic_cmd='/usr/bin/file -L'
5899 lt_cv_file_magic_test_file=/shlib/libc.so
5902 cygwin*)
5903 # func_win32_libid is a shell function defined in ltmain.sh
5904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5905 lt_cv_file_magic_cmd='func_win32_libid'
5908 mingw* | pw32*)
5909 # Base MSYS/MinGW do not provide the 'file' command needed by
5910 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5911 # unless we find 'file', for example because we are cross-compiling.
5912 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5913 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5915 lt_cv_file_magic_cmd='func_win32_libid'
5916 else
5917 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5918 lt_cv_file_magic_cmd='$OBJDUMP -f'
5922 cegcc*)
5923 # use the weaker test based on 'objdump'. See mingw*.
5924 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5925 lt_cv_file_magic_cmd='$OBJDUMP -f'
5928 darwin* | rhapsody*)
5929 lt_cv_deplibs_check_method=pass_all
5932 freebsd* | dragonfly*)
5933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5934 case $host_cpu in
5935 i*86 )
5936 # Not sure whether the presence of OpenBSD here was a mistake.
5937 # Let's accept both of them until this is cleared up.
5938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5942 esac
5943 else
5944 lt_cv_deplibs_check_method=pass_all
5948 gnu*)
5949 lt_cv_deplibs_check_method=pass_all
5952 haiku*)
5953 lt_cv_deplibs_check_method=pass_all
5956 hpux10.20* | hpux11*)
5957 lt_cv_file_magic_cmd=/usr/bin/file
5958 case $host_cpu in
5959 ia64*)
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5963 hppa*64*)
5964 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]'
5965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5971 esac
5974 interix[3-9]*)
5975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5979 irix5* | irix6* | nonstopux*)
5980 case $LD in
5981 *-32|*"-32 ") libmagic=32-bit;;
5982 *-n32|*"-n32 ") libmagic=N32;;
5983 *-64|*"-64 ") libmagic=64-bit;;
5984 *) libmagic=never-match;;
5985 esac
5986 lt_cv_deplibs_check_method=pass_all
5989 # This must be Linux ELF.
5990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5991 lt_cv_deplibs_check_method=pass_all
5994 netbsd*)
5995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5997 else
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6002 newos6*)
6003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6004 lt_cv_file_magic_cmd=/usr/bin/file
6005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6008 *nto* | *qnx*)
6009 lt_cv_deplibs_check_method=pass_all
6012 openbsd*)
6013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6015 else
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6020 osf3* | osf4* | osf5*)
6021 lt_cv_deplibs_check_method=pass_all
6024 rdos*)
6025 lt_cv_deplibs_check_method=pass_all
6028 solaris*)
6029 lt_cv_deplibs_check_method=pass_all
6032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6033 lt_cv_deplibs_check_method=pass_all
6036 sysv4 | sysv4.3*)
6037 case $host_vendor in
6038 motorola)
6039 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]'
6040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6042 ncr)
6043 lt_cv_deplibs_check_method=pass_all
6045 sequent)
6046 lt_cv_file_magic_cmd='/bin/file'
6047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6049 sni)
6050 lt_cv_file_magic_cmd='/bin/file'
6051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6052 lt_cv_file_magic_test_file=/lib/libc.so
6054 siemens)
6055 lt_cv_deplibs_check_method=pass_all
6058 lt_cv_deplibs_check_method=pass_all
6060 esac
6063 tpf*)
6064 lt_cv_deplibs_check_method=pass_all
6066 esac
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6070 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6071 file_magic_cmd=$lt_cv_file_magic_cmd
6072 deplibs_check_method=$lt_cv_deplibs_check_method
6073 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}ar; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_AR+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 if test -n "$AR"; then
6095 ac_cv_prog_AR="$AR" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_AR="${ac_tool_prefix}ar"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6108 done
6109 done
6110 IFS=$as_save_IFS
6114 AR=$ac_cv_prog_AR
6115 if test -n "$AR"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6117 $as_echo "$AR" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6125 if test -z "$ac_cv_prog_AR"; then
6126 ac_ct_AR=$AR
6127 # Extract the first word of "ar", so it can be a program name with args.
6128 set dummy ar; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$ac_ct_AR"; then
6135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_ac_ct_AR="ar"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6148 done
6149 done
6150 IFS=$as_save_IFS
6154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155 if test -n "$ac_ct_AR"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6157 $as_echo "$ac_ct_AR" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6163 if test "x$ac_ct_AR" = x; then
6164 AR="false"
6165 else
6166 case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172 AR=$ac_ct_AR
6174 else
6175 AR="$ac_cv_prog_AR"
6178 test -z "$AR" && AR=ar
6179 test -z "$AR_FLAGS" && AR_FLAGS=cru
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}strip; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_STRIP+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$STRIP"; then
6200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6213 done
6214 done
6215 IFS=$as_save_IFS
6219 STRIP=$ac_cv_prog_STRIP
6220 if test -n "$STRIP"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6222 $as_echo "$STRIP" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6230 if test -z "$ac_cv_prog_STRIP"; then
6231 ac_ct_STRIP=$STRIP
6232 # Extract the first word of "strip", so it can be a program name with args.
6233 set dummy strip; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$ac_ct_STRIP"; then
6240 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_STRIP="strip"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6255 IFS=$as_save_IFS
6259 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6260 if test -n "$ac_ct_STRIP"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6262 $as_echo "$ac_ct_STRIP" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6268 if test "x$ac_ct_STRIP" = x; then
6269 STRIP=":"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277 STRIP=$ac_ct_STRIP
6279 else
6280 STRIP="$ac_cv_prog_STRIP"
6283 test -z "$STRIP" && STRIP=:
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$RANLIB"; then
6299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6312 done
6313 done
6314 IFS=$as_save_IFS
6318 RANLIB=$ac_cv_prog_RANLIB
6319 if test -n "$RANLIB"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6321 $as_echo "$RANLIB" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_RANLIB"; then
6330 ac_ct_RANLIB=$RANLIB
6331 # Extract the first word of "ranlib", so it can be a program name with args.
6332 set dummy ranlib; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$ac_ct_RANLIB"; then
6339 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_RANLIB="ranlib"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6359 if test -n "$ac_ct_RANLIB"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6361 $as_echo "$ac_ct_RANLIB" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_RANLIB" = x; then
6368 RANLIB=":"
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376 RANLIB=$ac_ct_RANLIB
6378 else
6379 RANLIB="$ac_cv_prog_RANLIB"
6382 test -z "$RANLIB" && RANLIB=:
6389 # Determine commands to create old-style static archives.
6390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6391 old_postinstall_cmds='chmod 644 $oldlib'
6392 old_postuninstall_cmds=
6394 if test -n "$RANLIB"; then
6395 case $host_os in
6396 openbsd*)
6397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6402 esac
6403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6406 case $host_os in
6407 darwin*)
6408 lock_old_archive_extraction=yes ;;
6410 lock_old_archive_extraction=no ;;
6411 esac
6451 # If no C compiler was specified, use CC.
6452 LTCC=${LTCC-"$CC"}
6454 # If no C compiler flags were specified, use CFLAGS.
6455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6457 # Allow CC to be a program name with arguments.
6458 compiler=$CC
6461 # Check for command to grab the raw symbol name followed by C symbol from nm.
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6463 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6464 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6468 # These are sane defaults that work on at least a few old systems.
6469 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6471 # Character class describing NM global symbol codes.
6472 symcode='[BCDEGRST]'
6474 # Regexp to match symbols that can be accessed directly from C.
6475 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6477 # Define system-specific variables.
6478 case $host_os in
6479 aix*)
6480 symcode='[BCDT]'
6482 cygwin* | mingw* | pw32* | cegcc*)
6483 symcode='[ABCDGISTW]'
6485 hpux*)
6486 if test "$host_cpu" = ia64; then
6487 symcode='[ABCDEGRST]'
6490 irix* | nonstopux*)
6491 symcode='[BCDEGRST]'
6493 osf*)
6494 symcode='[BCDEGQRST]'
6496 solaris*)
6497 symcode='[BDRT]'
6499 sco3.2v5*)
6500 symcode='[DT]'
6502 sysv4.2uw2*)
6503 symcode='[DT]'
6505 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6506 symcode='[ABDT]'
6508 sysv4)
6509 symcode='[DFNSTU]'
6511 esac
6513 # If we're using GNU nm, then use its standard symbol codes.
6514 case `$NM -V 2>&1` in
6515 *GNU* | *'with BFD'*)
6516 symcode='[ABCDGIRSTW]' ;;
6517 esac
6519 # Transform an extracted symbol line into a proper C declaration.
6520 # Some systems (esp. on ia64) link data and code symbols differently,
6521 # so use this general approach.
6522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6524 # Transform an extracted symbol line into symbol name and symbol address
6525 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6526 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'"
6528 # Handle CRLF in mingw tool chain
6529 opt_cr=
6530 case $build_os in
6531 mingw*)
6532 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6534 esac
6536 # Try without a prefix underscore, then with it.
6537 for ac_symprfx in "" "_"; do
6539 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6540 symxfrm="\\1 $ac_symprfx\\2 \\2"
6542 # Write the raw and C identifiers.
6543 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6544 # Fake it for dumpbin and say T for any non-static function
6545 # and D for any global variable.
6546 # Also find C++ and __fastcall symbols from MSVC++,
6547 # which start with @ or ?.
6548 lt_cv_sys_global_symbol_pipe="$AWK '"\
6549 " {last_section=section; section=\$ 3};"\
6550 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6551 " \$ 0!~/External *\|/{next};"\
6552 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6553 " {if(hide[section]) next};"\
6554 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6555 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6556 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6557 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6558 " ' prfx=^$ac_symprfx"
6559 else
6560 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6563 # Check to see that the pipe works correctly.
6564 pipe_works=no
6566 rm -f conftest*
6567 cat > conftest.$ac_ext <<_LT_EOF
6568 #ifdef __cplusplus
6569 extern "C" {
6570 #endif
6571 char nm_test_var;
6572 void nm_test_func(void);
6573 void nm_test_func(void){}
6574 #ifdef __cplusplus
6576 #endif
6577 int main(){nm_test_var='a';nm_test_func();return(0);}
6578 _LT_EOF
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 # Now try to grab the symbols.
6586 nlist=conftest.nm
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6588 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6589 ac_status=$?
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; } && test -s "$nlist"; then
6592 # Try sorting and uniquifying the output.
6593 if sort "$nlist" | uniq > "$nlist"T; then
6594 mv -f "$nlist"T "$nlist"
6595 else
6596 rm -f "$nlist"T
6599 # Make sure that we snagged all the symbols we need.
6600 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6601 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6602 cat <<_LT_EOF > conftest.$ac_ext
6603 #ifdef __cplusplus
6604 extern "C" {
6605 #endif
6607 _LT_EOF
6608 # Now generate the symbol file.
6609 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6611 cat <<_LT_EOF >> conftest.$ac_ext
6613 /* The mapping between symbol names and symbols. */
6614 const struct {
6615 const char *name;
6616 void *address;
6618 lt__PROGRAM__LTX_preloaded_symbols[] =
6620 { "@PROGRAM@", (void *) 0 },
6621 _LT_EOF
6622 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6623 cat <<\_LT_EOF >> conftest.$ac_ext
6624 {0, (void *) 0}
6627 /* This works around a problem in FreeBSD linker */
6628 #ifdef FREEBSD_WORKAROUND
6629 static const void *lt_preloaded_setup() {
6630 return lt__PROGRAM__LTX_preloaded_symbols;
6632 #endif
6634 #ifdef __cplusplus
6636 #endif
6637 _LT_EOF
6638 # Now try linking the two files.
6639 mv conftest.$ac_objext conftstm.$ac_objext
6640 lt_save_LIBS="$LIBS"
6641 lt_save_CFLAGS="$CFLAGS"
6642 LIBS="conftstm.$ac_objext"
6643 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6645 (eval $ac_link) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6649 pipe_works=yes
6651 LIBS="$lt_save_LIBS"
6652 CFLAGS="$lt_save_CFLAGS"
6653 else
6654 echo "cannot find nm_test_func in $nlist" >&5
6656 else
6657 echo "cannot find nm_test_var in $nlist" >&5
6659 else
6660 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6662 else
6663 echo "$progname: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 rm -rf conftest* conftst*
6668 # Do not use the global_symbol_pipe unless it works.
6669 if test "$pipe_works" = yes; then
6670 break
6671 else
6672 lt_cv_sys_global_symbol_pipe=
6674 done
6678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6679 lt_cv_sys_global_symbol_to_cdecl=
6681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6683 $as_echo "failed" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6686 $as_echo "ok" >&6; }
6711 # Check whether --enable-libtool-lock was given.
6712 if test "${enable_libtool_lock+set}" = set; then :
6713 enableval=$enable_libtool_lock;
6716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6718 # Some flags need to be propagated to the compiler or linker for good
6719 # libtool support.
6720 case $host in
6721 ia64-*-hpux*)
6722 # Find out which ABI we are using.
6723 echo 'int i;' > conftest.$ac_ext
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }; then
6729 case `/usr/bin/file conftest.$ac_objext` in
6730 *ELF-32*)
6731 HPUX_IA64_MODE="32"
6733 *ELF-64*)
6734 HPUX_IA64_MODE="64"
6736 esac
6738 rm -rf conftest*
6740 *-*-irix6*)
6741 # Find out which ABI we are using.
6742 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
6748 if test "$lt_cv_prog_gnu_ld" = yes; then
6749 case `/usr/bin/file conftest.$ac_objext` in
6750 *32-bit*)
6751 LD="${LD-ld} -melf32bsmip"
6753 *N32*)
6754 LD="${LD-ld} -melf32bmipn32"
6756 *64-bit*)
6757 LD="${LD-ld} -melf64bmip"
6759 esac
6760 else
6761 case `/usr/bin/file conftest.$ac_objext` in
6762 *32-bit*)
6763 LD="${LD-ld} -32"
6765 *N32*)
6766 LD="${LD-ld} -n32"
6768 *64-bit*)
6769 LD="${LD-ld} -64"
6771 esac
6774 rm -rf conftest*
6777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6778 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6779 # Find out which ABI we are using.
6780 echo 'int i;' > conftest.$ac_ext
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782 (eval $ac_compile) 2>&5
6783 ac_status=$?
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; }; then
6786 case `/usr/bin/file conftest.o` in
6787 *32-bit*)
6788 case $host in
6789 x86_64-*kfreebsd*-gnu)
6790 LD="${LD-ld} -m elf_i386_fbsd"
6792 x86_64-*linux*)
6793 case `/usr/bin/file conftest.o` in
6794 *x86-64*)
6795 LD="${LD-ld} -m elf32_x86_64"
6798 LD="${LD-ld} -m elf_i386"
6800 esac
6802 powerpc64le-*linux*)
6803 LD="${LD-ld} -m elf32lppclinux"
6805 powerpc64-*linux*)
6806 LD="${LD-ld} -m elf32ppclinux"
6808 s390x-*linux*)
6809 LD="${LD-ld} -m elf_s390"
6811 sparc64-*linux*)
6812 LD="${LD-ld} -m elf32_sparc"
6814 esac
6816 *64-bit*)
6817 case $host in
6818 x86_64-*kfreebsd*-gnu)
6819 LD="${LD-ld} -m elf_x86_64_fbsd"
6821 x86_64-*linux*)
6822 LD="${LD-ld} -m elf_x86_64"
6824 powerpcle-*linux*)
6825 LD="${LD-ld} -m elf64lppc"
6827 powerpc-*linux*)
6828 LD="${LD-ld} -m elf64ppc"
6830 s390*-*linux*|s390*-*tpf*)
6831 LD="${LD-ld} -m elf64_s390"
6833 sparc*-*linux*)
6834 LD="${LD-ld} -m elf64_sparc"
6836 esac
6838 esac
6840 rm -rf conftest*
6843 *-*-sco3.2v5*)
6844 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6845 SAVE_CFLAGS="$CFLAGS"
6846 CFLAGS="$CFLAGS -belf"
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6849 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 ac_ext=c
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858 if test x$gcc_no_link = xyes; then
6859 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6865 main ()
6869 return 0;
6871 _ACEOF
6872 if ac_fn_c_try_link "$LINENO"; then :
6873 lt_cv_cc_needs_belf=yes
6874 else
6875 lt_cv_cc_needs_belf=no
6877 rm -f core conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
6879 ac_ext=c
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6887 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6890 CFLAGS="$SAVE_CFLAGS"
6893 sparc*-*solaris*)
6894 # Find out which ABI we are using.
6895 echo 'int i;' > conftest.$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.o` in
6902 *64-bit*)
6903 case $lt_cv_prog_gnu_ld in
6904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6906 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6907 LD="${LD-ld} -64"
6910 esac
6912 esac
6914 rm -rf conftest*
6916 esac
6918 need_locks="$enable_libtool_lock"
6921 case $host_os in
6922 rhapsody* | darwin*)
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$DSYMUTIL"; then
6932 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6952 if test -n "$DSYMUTIL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6954 $as_echo "$DSYMUTIL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6962 if test -z "$ac_cv_prog_DSYMUTIL"; then
6963 ac_ct_DSYMUTIL=$DSYMUTIL
6964 # Extract the first word of "dsymutil", so it can be a program name with args.
6965 set dummy dsymutil; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_DSYMUTIL"; then
6972 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6991 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6992 if test -n "$ac_ct_DSYMUTIL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6994 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7000 if test "x$ac_ct_DSYMUTIL" = x; then
7001 DSYMUTIL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 DSYMUTIL=$ac_ct_DSYMUTIL
7011 else
7012 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$NMEDIT"; then
7024 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 NMEDIT=$ac_cv_prog_NMEDIT
7044 if test -n "$NMEDIT"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7046 $as_echo "$NMEDIT" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7054 if test -z "$ac_cv_prog_NMEDIT"; then
7055 ac_ct_NMEDIT=$NMEDIT
7056 # Extract the first word of "nmedit", so it can be a program name with args.
7057 set dummy nmedit; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_NMEDIT"; then
7064 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7077 done
7078 done
7079 IFS=$as_save_IFS
7083 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7084 if test -n "$ac_ct_NMEDIT"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7086 $as_echo "$ac_ct_NMEDIT" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7092 if test "x$ac_ct_NMEDIT" = x; then
7093 NMEDIT=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 NMEDIT=$ac_ct_NMEDIT
7103 else
7104 NMEDIT="$ac_cv_prog_NMEDIT"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if test "${ac_cv_prog_LIPO+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$LIPO"; then
7116 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 LIPO=$ac_cv_prog_LIPO
7136 if test -n "$LIPO"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7138 $as_echo "$LIPO" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7146 if test -z "$ac_cv_prog_LIPO"; then
7147 ac_ct_LIPO=$LIPO
7148 # Extract the first word of "lipo", so it can be a program name with args.
7149 set dummy lipo; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$ac_ct_LIPO"; then
7156 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_LIPO="lipo"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7169 done
7170 done
7171 IFS=$as_save_IFS
7175 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7176 if test -n "$ac_ct_LIPO"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7178 $as_echo "$ac_ct_LIPO" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7184 if test "x$ac_ct_LIPO" = x; then
7185 LIPO=":"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193 LIPO=$ac_ct_LIPO
7195 else
7196 LIPO="$ac_cv_prog_LIPO"
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}otool; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$OTOOL"; then
7208 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7227 OTOOL=$ac_cv_prog_OTOOL
7228 if test -n "$OTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7230 $as_echo "$OTOOL" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7238 if test -z "$ac_cv_prog_OTOOL"; then
7239 ac_ct_OTOOL=$OTOOL
7240 # Extract the first word of "otool", so it can be a program name with args.
7241 set dummy otool; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$ac_ct_OTOOL"; then
7248 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_OTOOL="otool"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7263 IFS=$as_save_IFS
7267 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7268 if test -n "$ac_ct_OTOOL"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7270 $as_echo "$ac_ct_OTOOL" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7276 if test "x$ac_ct_OTOOL" = x; then
7277 OTOOL=":"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 OTOOL=$ac_ct_OTOOL
7287 else
7288 OTOOL="$ac_cv_prog_OTOOL"
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$OTOOL64"; then
7300 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7319 OTOOL64=$ac_cv_prog_OTOOL64
7320 if test -n "$OTOOL64"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7322 $as_echo "$OTOOL64" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7330 if test -z "$ac_cv_prog_OTOOL64"; then
7331 ac_ct_OTOOL64=$OTOOL64
7332 # Extract the first word of "otool64", so it can be a program name with args.
7333 set dummy otool64; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$ac_ct_OTOOL64"; then
7340 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_OTOOL64="otool64"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7353 done
7354 done
7355 IFS=$as_save_IFS
7359 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7360 if test -n "$ac_ct_OTOOL64"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7362 $as_echo "$ac_ct_OTOOL64" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7368 if test "x$ac_ct_OTOOL64" = x; then
7369 OTOOL64=":"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377 OTOOL64=$ac_ct_OTOOL64
7379 else
7380 OTOOL64="$ac_cv_prog_OTOOL64"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7410 $as_echo_n "checking for -single_module linker flag... " >&6; }
7411 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 lt_cv_apple_cc_single_mod=no
7415 if test -z "${LT_MULTI_MODULE}"; then
7416 # By default we will add the -single_module flag. You can override
7417 # by either setting the environment variable LT_MULTI_MODULE
7418 # non-empty at configure time, or by adding -multi_module to the
7419 # link flags.
7420 rm -rf libconftest.dylib*
7421 echo "int foo(void){return 1;}" > conftest.c
7422 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7423 -dynamiclib -Wl,-single_module conftest.c" >&5
7424 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7425 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7426 _lt_result=$?
7427 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7428 lt_cv_apple_cc_single_mod=yes
7429 else
7430 cat conftest.err >&5
7432 rm -rf libconftest.dylib*
7433 rm -f conftest.*
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7437 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7439 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7440 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 lt_cv_ld_exported_symbols_list=no
7444 save_LDFLAGS=$LDFLAGS
7445 echo "_main" > conftest.sym
7446 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7447 if test x$gcc_no_link = xyes; then
7448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 lt_cv_ld_exported_symbols_list=yes
7463 else
7464 lt_cv_ld_exported_symbols_list=no
7466 rm -f core conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7468 LDFLAGS="$save_LDFLAGS"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7474 $as_echo_n "checking for -force_load linker flag... " >&6; }
7475 if test "${lt_cv_ld_force_load+set}" = set; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 lt_cv_ld_force_load=no
7479 cat > conftest.c << _LT_EOF
7480 int forced_loaded() { return 2;}
7481 _LT_EOF
7482 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7483 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7484 echo "$AR cru libconftest.a conftest.o" >&5
7485 $AR cru libconftest.a conftest.o 2>&5
7486 cat > conftest.c << _LT_EOF
7487 int main() { return 0;}
7488 _LT_EOF
7489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7491 _lt_result=$?
7492 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7493 lt_cv_ld_force_load=yes
7494 else
7495 cat conftest.err >&5
7497 rm -f conftest.err libconftest.a conftest conftest.c
7498 rm -rf conftest.dSYM
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7502 $as_echo "$lt_cv_ld_force_load" >&6; }
7503 case $host_os in
7504 rhapsody* | darwin1.[012])
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7506 darwin1.*)
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508 darwin*) # darwin 5.x on
7509 # if running on 10.5 or later, the deployment target defaults
7510 # to the OS version, if on x86, and 10.4, the deployment
7511 # target defaults to 10.4. Don't you love it?
7512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515 10.[012][,.]*)
7516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7517 10.*)
7518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7519 esac
7521 esac
7522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7523 _lt_dar_single_mod='$single_module'
7525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7527 else
7528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7530 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7531 _lt_dsymutil='~$DSYMUTIL $lib || :'
7532 else
7533 _lt_dsymutil=
7536 esac
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7545 # On Suns, sometimes $CPP names a directory.
7546 if test -n "$CPP" && test -d "$CPP"; then
7547 CPP=
7549 if test -z "$CPP"; then
7550 if test "${ac_cv_prog_CPP+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 # Double quotes because CPP needs to be expanded
7554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7556 ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7576 else
7577 # Broken: fails on valid input.
7578 continue
7580 rm -f conftest.err conftest.$ac_ext
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7596 rm -f conftest.err conftest.$ac_ext
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602 break
7605 done
7606 ac_cv_prog_CPP=$CPP
7609 CPP=$ac_cv_prog_CPP
7610 else
7611 ac_cv_prog_CPP=$CPP
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7614 $as_echo "$CPP" >&6; }
7615 ac_preproc_ok=false
7616 for ac_c_preproc_warn_flag in '' yes
7618 # Use a header file that comes with gcc, so configuring glibc
7619 # with a fresh cross-compiler works.
7620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621 # <limits.h> exists even on freestanding compilers.
7622 # On the NeXT, cc -E runs the code through the compiler's parser,
7623 # not just through cpp. "Syntax error" is here to catch this case.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 #ifdef __STDC__
7627 # include <limits.h>
7628 #else
7629 # include <assert.h>
7630 #endif
7631 Syntax error
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7635 else
7636 # Broken: fails on valid input.
7637 continue
7639 rm -f conftest.err conftest.$ac_ext
7641 # OK, works on sane cases. Now check whether nonexistent headers
7642 # can be detected and how.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ac_nonexistent.h>
7646 _ACEOF
7647 if ac_fn_c_try_cpp "$LINENO"; then :
7648 # Broken: success on invalid input.
7649 continue
7650 else
7651 # Passes both tests.
7652 ac_preproc_ok=:
7653 break
7655 rm -f conftest.err conftest.$ac_ext
7657 done
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.err conftest.$ac_ext
7660 if $ac_preproc_ok; then :
7662 else
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7666 See \`config.log' for more details." "$LINENO" 5; }
7669 ac_ext=c
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677 $as_echo_n "checking for ANSI C header files... " >&6; }
7678 if test "${ac_cv_header_stdc+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <stdlib.h>
7684 #include <stdarg.h>
7685 #include <string.h>
7686 #include <float.h>
7689 main ()
7693 return 0;
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 ac_cv_header_stdc=yes
7698 else
7699 ac_cv_header_stdc=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ac_cv_header_stdc = yes; then
7704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <string.h>
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "memchr" >/dev/null 2>&1; then :
7713 else
7714 ac_cv_header_stdc=no
7716 rm -f conftest*
7720 if test $ac_cv_header_stdc = yes; then
7721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then :
7730 else
7731 ac_cv_header_stdc=no
7733 rm -f conftest*
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then :
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <ctype.h>
7745 #include <stdlib.h>
7746 #if ((' ' & 0x0FF) == 0x020)
7747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7749 #else
7750 # define ISLOWER(c) \
7751 (('a' <= (c) && (c) <= 'i') \
7752 || ('j' <= (c) && (c) <= 'r') \
7753 || ('s' <= (c) && (c) <= 'z'))
7754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755 #endif
7757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7759 main ()
7761 int i;
7762 for (i = 0; i < 256; i++)
7763 if (XOR (islower (i), ISLOWER (i))
7764 || toupper (i) != TOUPPER (i))
7765 return 2;
7766 return 0;
7768 _ACEOF
7769 if ac_fn_c_try_run "$LINENO"; then :
7771 else
7772 ac_cv_header_stdc=no
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775 conftest.$ac_objext conftest.beam conftest.$ac_ext
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781 $as_echo "$ac_cv_header_stdc" >&6; }
7782 if test $ac_cv_header_stdc = yes; then
7784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7790 inttypes.h stdint.h unistd.h
7791 do :
7792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7795 eval as_val=\$$as_ac_Header
7796 if test "x$as_val" = x""yes; then :
7797 cat >>confdefs.h <<_ACEOF
7798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7799 _ACEOF
7803 done
7806 for ac_header in dlfcn.h
7807 do :
7808 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7810 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7811 cat >>confdefs.h <<_ACEOF
7812 #define HAVE_DLFCN_H 1
7813 _ACEOF
7817 done
7824 # Set options
7828 enable_dlopen=no
7831 enable_win32_dll=no
7834 # Check whether --enable-shared was given.
7835 if test "${enable_shared+set}" = set; then :
7836 enableval=$enable_shared; p=${PACKAGE-default}
7837 case $enableval in
7838 yes) enable_shared=yes ;;
7839 no) enable_shared=no ;;
7841 enable_shared=no
7842 # Look at the argument we got. We use all the common list separators.
7843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7844 for pkg in $enableval; do
7845 IFS="$lt_save_ifs"
7846 if test "X$pkg" = "X$p"; then
7847 enable_shared=yes
7849 done
7850 IFS="$lt_save_ifs"
7852 esac
7853 else
7854 enable_shared=yes
7865 # Check whether --enable-static was given.
7866 if test "${enable_static+set}" = set; then :
7867 enableval=$enable_static; p=${PACKAGE-default}
7868 case $enableval in
7869 yes) enable_static=yes ;;
7870 no) enable_static=no ;;
7872 enable_static=no
7873 # Look at the argument we got. We use all the common list separators.
7874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7875 for pkg in $enableval; do
7876 IFS="$lt_save_ifs"
7877 if test "X$pkg" = "X$p"; then
7878 enable_static=yes
7880 done
7881 IFS="$lt_save_ifs"
7883 esac
7884 else
7885 enable_static=yes
7897 # Check whether --with-pic was given.
7898 if test "${with_pic+set}" = set; then :
7899 withval=$with_pic; pic_mode="$withval"
7900 else
7901 pic_mode=default
7905 test -z "$pic_mode" && pic_mode=default
7913 # Check whether --enable-fast-install was given.
7914 if test "${enable_fast_install+set}" = set; then :
7915 enableval=$enable_fast_install; p=${PACKAGE-default}
7916 case $enableval in
7917 yes) enable_fast_install=yes ;;
7918 no) enable_fast_install=no ;;
7920 enable_fast_install=no
7921 # Look at the argument we got. We use all the common list separators.
7922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7923 for pkg in $enableval; do
7924 IFS="$lt_save_ifs"
7925 if test "X$pkg" = "X$p"; then
7926 enable_fast_install=yes
7928 done
7929 IFS="$lt_save_ifs"
7931 esac
7932 else
7933 enable_fast_install=yes
7946 # This can be used to rebuild libtool when needed
7947 LIBTOOL_DEPS="$ltmain"
7949 # Always use our own libtool.
7950 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7977 test -z "$LN_S" && LN_S="ln -s"
7992 if test -n "${ZSH_VERSION+set}" ; then
7993 setopt NO_GLOB_SUBST
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7997 $as_echo_n "checking for objdir... " >&6; }
7998 if test "${lt_cv_objdir+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 rm -f .libs 2>/dev/null
8002 mkdir .libs 2>/dev/null
8003 if test -d .libs; then
8004 lt_cv_objdir=.libs
8005 else
8006 # MS-DOS does not allow filenames that begin with a dot.
8007 lt_cv_objdir=_libs
8009 rmdir .libs 2>/dev/null
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8012 $as_echo "$lt_cv_objdir" >&6; }
8013 objdir=$lt_cv_objdir
8019 cat >>confdefs.h <<_ACEOF
8020 #define LT_OBJDIR "$lt_cv_objdir/"
8021 _ACEOF
8026 case $host_os in
8027 aix3*)
8028 # AIX sometimes has problems with the GCC collect2 program. For some
8029 # reason, if we set the COLLECT_NAMES environment variable, the problems
8030 # vanish in a puff of smoke.
8031 if test "X${COLLECT_NAMES+set}" != Xset; then
8032 COLLECT_NAMES=
8033 export COLLECT_NAMES
8036 esac
8038 # Global variables:
8039 ofile=libtool
8040 can_build_shared=yes
8042 # All known linkers require a `.a' archive for static linking (except MSVC,
8043 # which needs '.lib').
8044 libext=a
8046 with_gnu_ld="$lt_cv_prog_gnu_ld"
8048 old_CC="$CC"
8049 old_CFLAGS="$CFLAGS"
8051 # Set sane defaults for various variables
8052 test -z "$CC" && CC=cc
8053 test -z "$LTCC" && LTCC=$CC
8054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8055 test -z "$LD" && LD=ld
8056 test -z "$ac_objext" && ac_objext=o
8058 for cc_temp in $compiler""; do
8059 case $cc_temp in
8060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8062 \-*) ;;
8063 *) break;;
8064 esac
8065 done
8066 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8069 # Only perform the check for file, if the check method requires it
8070 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8071 case $deplibs_check_method in
8072 file_magic*)
8073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8075 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 case $MAGIC_CMD in
8080 [\\/*] | ?:[\\/]*)
8081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084 lt_save_MAGIC_CMD="$MAGIC_CMD"
8085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8087 for ac_dir in $ac_dummy; do
8088 IFS="$lt_save_ifs"
8089 test -z "$ac_dir" && ac_dir=.
8090 if test -f $ac_dir/${ac_tool_prefix}file; then
8091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8092 if test -n "$file_magic_test_file"; then
8093 case $deplibs_check_method in
8094 "file_magic "*)
8095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8098 $EGREP "$file_magic_regex" > /dev/null; then
8100 else
8101 cat <<_LT_EOF 1>&2
8103 *** Warning: the command libtool uses to detect shared libraries,
8104 *** $file_magic_cmd, produces output that libtool cannot recognize.
8105 *** The result is that libtool may fail to recognize shared libraries
8106 *** as such. This will affect the creation of libtool libraries that
8107 *** depend on shared libraries, but programs linked with such libtool
8108 *** libraries will work regardless of this problem. Nevertheless, you
8109 *** may want to report the problem to your system manager and/or to
8110 *** bug-libtool@gnu.org
8112 _LT_EOF
8113 fi ;;
8114 esac
8116 break
8118 done
8119 IFS="$lt_save_ifs"
8120 MAGIC_CMD="$lt_save_MAGIC_CMD"
8122 esac
8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if test -n "$MAGIC_CMD"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8128 $as_echo "$MAGIC_CMD" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8138 if test -z "$lt_cv_path_MAGIC_CMD"; then
8139 if test -n "$ac_tool_prefix"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8141 $as_echo_n "checking for file... " >&6; }
8142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 case $MAGIC_CMD in
8146 [\\/*] | ?:[\\/]*)
8147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8150 lt_save_MAGIC_CMD="$MAGIC_CMD"
8151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8153 for ac_dir in $ac_dummy; do
8154 IFS="$lt_save_ifs"
8155 test -z "$ac_dir" && ac_dir=.
8156 if test -f $ac_dir/file; then
8157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8158 if test -n "$file_magic_test_file"; then
8159 case $deplibs_check_method in
8160 "file_magic "*)
8161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8164 $EGREP "$file_magic_regex" > /dev/null; then
8166 else
8167 cat <<_LT_EOF 1>&2
8169 *** Warning: the command libtool uses to detect shared libraries,
8170 *** $file_magic_cmd, produces output that libtool cannot recognize.
8171 *** The result is that libtool may fail to recognize shared libraries
8172 *** as such. This will affect the creation of libtool libraries that
8173 *** depend on shared libraries, but programs linked with such libtool
8174 *** libraries will work regardless of this problem. Nevertheless, you
8175 *** may want to report the problem to your system manager and/or to
8176 *** bug-libtool@gnu.org
8178 _LT_EOF
8179 fi ;;
8180 esac
8182 break
8184 done
8185 IFS="$lt_save_ifs"
8186 MAGIC_CMD="$lt_save_MAGIC_CMD"
8188 esac
8191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8192 if test -n "$MAGIC_CMD"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8194 $as_echo "$MAGIC_CMD" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8201 else
8202 MAGIC_CMD=:
8208 esac
8210 # Use C for the default configuration in the libtool script
8212 lt_save_CC="$CC"
8213 ac_ext=c
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220 # Source file extension for C test sources.
8221 ac_ext=c
8223 # Object file extension for compiled C test sources.
8224 objext=o
8225 objext=$objext
8227 # Code to be used in simple compile tests
8228 lt_simple_compile_test_code="int some_variable = 0;"
8230 # Code to be used in simple link tests
8231 lt_simple_link_test_code='int main(){return(0);}'
8239 # If no C compiler was specified, use CC.
8240 LTCC=${LTCC-"$CC"}
8242 # If no C compiler flags were specified, use CFLAGS.
8243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8245 # Allow CC to be a program name with arguments.
8246 compiler=$CC
8248 # Save the default compiler, since it gets overwritten when the other
8249 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8250 compiler_DEFAULT=$CC
8252 # save warnings/boilerplate of simple test code
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8256 _lt_compiler_boilerplate=`cat conftest.err`
8257 $RM conftest*
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8262 _lt_linker_boilerplate=`cat conftest.err`
8263 $RM -r conftest*
8266 ## CAVEAT EMPTOR:
8267 ## There is no encapsulation within the following macros, do not change
8268 ## the running order or otherwise move them around unless you know exactly
8269 ## what you are doing...
8270 if test -n "$compiler"; then
8272 lt_prog_compiler_no_builtin_flag=
8274 if test "$GCC" = yes; then
8275 case $cc_basename in
8276 nvcc*)
8277 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8279 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8280 esac
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8283 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8284 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 lt_cv_prog_compiler_rtti_exceptions=no
8288 ac_outfile=conftest.$ac_objext
8289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290 lt_compiler_flag="-fno-rtti -fno-exceptions"
8291 # Insert the option either (1) after the last *FLAGS variable, or
8292 # (2) before a word containing "conftest.", or (3) at the end.
8293 # Note that $ac_compile itself does not contain backslashes and begins
8294 # with a dollar sign (not a hyphen), so the echo should work correctly.
8295 # The option is referenced via a variable to avoid confusing sed.
8296 lt_compile=`echo "$ac_compile" | $SED \
8297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299 -e 's:$: $lt_compiler_flag:'`
8300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8301 (eval "$lt_compile" 2>conftest.err)
8302 ac_status=$?
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 if (exit $ac_status) && test -s "$ac_outfile"; then
8306 # The compiler can only warn and ignore the option if not recognized
8307 # So say no if there are warnings other than the usual output.
8308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8311 lt_cv_prog_compiler_rtti_exceptions=yes
8314 $RM conftest*
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8318 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8320 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8322 else
8333 lt_prog_compiler_wl=
8334 lt_prog_compiler_pic=
8335 lt_prog_compiler_static=
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8340 if test "$GCC" = yes; then
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_static='-static'
8344 case $host_os in
8345 aix*)
8346 # All AIX code is PIC.
8347 if test "$host_cpu" = ia64; then
8348 # AIX 5 now supports IA64 processor
8349 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_pic='-fPIC'
8354 amigaos*)
8355 case $host_cpu in
8356 powerpc)
8357 # see comment about AmigaOS4 .so support
8358 lt_prog_compiler_pic='-fPIC'
8360 m68k)
8361 # FIXME: we need at least 68020 code to build shared libraries, but
8362 # adding the `-m68020' flag to GCC prevents building anything better,
8363 # like `-m68040'.
8364 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8366 esac
8369 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8370 # PIC is the default for these OSes.
8373 mingw* | cygwin* | pw32* | os2* | cegcc*)
8374 # This hack is so that the source file can tell whether it is being
8375 # built for inclusion in a dll (and should export symbols for example).
8376 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8377 # (--disable-auto-import) libraries
8378 lt_prog_compiler_pic='-DDLL_EXPORT'
8381 darwin* | rhapsody*)
8382 # PIC is the default on this platform
8383 # Common symbols not allowed in MH_DYLIB files
8384 lt_prog_compiler_pic='-fno-common'
8387 haiku*)
8388 # PIC is the default for Haiku.
8389 # The "-static" flag exists, but is broken.
8390 lt_prog_compiler_static=
8393 hpux*)
8394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8396 # sets the default TLS model and affects inlining.
8397 case $host_cpu in
8398 hppa*64*)
8399 # +Z the default
8402 lt_prog_compiler_pic='-fPIC'
8404 esac
8407 interix[3-9]*)
8408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8409 # Instead, we relocate shared libraries at runtime.
8412 msdosdjgpp*)
8413 # Just because we use GCC doesn't mean we suddenly get shared libraries
8414 # on systems that don't support them.
8415 lt_prog_compiler_can_build_shared=no
8416 enable_shared=no
8419 *nto* | *qnx*)
8420 # QNX uses GNU C++, but need to define -shared option too, otherwise
8421 # it will coredump.
8422 lt_prog_compiler_pic='-fPIC -shared'
8425 sysv4*MP*)
8426 if test -d /usr/nec; then
8427 lt_prog_compiler_pic=-Kconform_pic
8432 lt_prog_compiler_pic='-fPIC'
8434 esac
8436 case $cc_basename in
8437 nvcc*) # Cuda Compiler Driver 2.2
8438 lt_prog_compiler_wl='-Xlinker '
8439 lt_prog_compiler_pic='-Xcompiler -fPIC'
8441 esac
8442 else
8443 # PORTME Check for flag to pass linker flags through the system compiler.
8444 case $host_os in
8445 aix*)
8446 lt_prog_compiler_wl='-Wl,'
8447 if test "$host_cpu" = ia64; then
8448 # AIX 5 now supports IA64 processor
8449 lt_prog_compiler_static='-Bstatic'
8450 else
8451 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8455 mingw* | cygwin* | pw32* | os2* | cegcc*)
8456 # This hack is so that the source file can tell whether it is being
8457 # built for inclusion in a dll (and should export symbols for example).
8458 lt_prog_compiler_pic='-DDLL_EXPORT'
8461 hpux9* | hpux10* | hpux11*)
8462 lt_prog_compiler_wl='-Wl,'
8463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8464 # not for PA HP-UX.
8465 case $host_cpu in
8466 hppa*64*|ia64*)
8467 # +Z the default
8470 lt_prog_compiler_pic='+Z'
8472 esac
8473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8474 lt_prog_compiler_static='${wl}-a ${wl}archive'
8477 irix5* | irix6* | nonstopux*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # PIC (with -KPIC) is the default.
8480 lt_prog_compiler_static='-non_shared'
8483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8484 case $cc_basename in
8485 # old Intel for x86_64 which still supported -KPIC.
8486 ecc*)
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-KPIC'
8489 lt_prog_compiler_static='-static'
8491 # icc used to be incompatible with GCC.
8492 # ICC 10 doesn't accept -KPIC any more.
8493 icc* | ifort*)
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-fPIC'
8496 lt_prog_compiler_static='-static'
8498 # Lahey Fortran 8.1.
8499 lf95*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='--shared'
8502 lt_prog_compiler_static='--static'
8504 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505 # Portland Group compilers (*not* the Pentium gcc compiler,
8506 # which looks to be a dead project)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-fpic'
8509 lt_prog_compiler_static='-Bstatic'
8511 ccc*)
8512 lt_prog_compiler_wl='-Wl,'
8513 # All Alpha code is PIC.
8514 lt_prog_compiler_static='-non_shared'
8516 xl* | bgxl* | bgf* | mpixl*)
8517 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-qpic'
8520 lt_prog_compiler_static='-qstaticlink'
8523 case `$CC -V 2>&1 | sed 5q` in
8524 *Sun\ F* | *Sun*Fortran*)
8525 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl=''
8530 *Sun\ C*)
8531 # Sun C 5.9
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_wl='-Wl,'
8536 esac
8538 esac
8541 newsos6)
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8546 *nto* | *qnx*)
8547 # QNX uses GNU C++, but need to define -shared option too, otherwise
8548 # it will coredump.
8549 lt_prog_compiler_pic='-fPIC -shared'
8552 osf3* | osf4* | osf5*)
8553 lt_prog_compiler_wl='-Wl,'
8554 # All OSF/1 code is PIC.
8555 lt_prog_compiler_static='-non_shared'
8558 rdos*)
8559 lt_prog_compiler_static='-non_shared'
8562 solaris*)
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-Bstatic'
8565 case $cc_basename in
8566 f77* | f90* | f95*)
8567 lt_prog_compiler_wl='-Qoption ld ';;
8569 lt_prog_compiler_wl='-Wl,';;
8570 esac
8573 sunos4*)
8574 lt_prog_compiler_wl='-Qoption ld '
8575 lt_prog_compiler_pic='-PIC'
8576 lt_prog_compiler_static='-Bstatic'
8579 sysv4 | sysv4.2uw2* | sysv4.3*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8585 sysv4*MP*)
8586 if test -d /usr/nec ;then
8587 lt_prog_compiler_pic='-Kconform_pic'
8588 lt_prog_compiler_static='-Bstatic'
8592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8598 unicos*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_can_build_shared=no
8603 uts4*)
8604 lt_prog_compiler_pic='-pic'
8605 lt_prog_compiler_static='-Bstatic'
8609 lt_prog_compiler_can_build_shared=no
8611 esac
8614 case $host_os in
8615 # For platforms which do not support PIC, -DPIC is meaningless:
8616 *djgpp*)
8617 lt_prog_compiler_pic=
8620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8622 esac
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8624 $as_echo "$lt_prog_compiler_pic" >&6; }
8632 # Check to make sure the PIC flag actually works.
8634 if test -n "$lt_prog_compiler_pic"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8636 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8637 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 lt_cv_prog_compiler_pic_works=no
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8644 # Insert the option either (1) after the last *FLAGS variable, or
8645 # (2) before a word containing "conftest.", or (3) at the end.
8646 # Note that $ac_compile itself does not contain backslashes and begins
8647 # with a dollar sign (not a hyphen), so the echo should work correctly.
8648 # The option is referenced via a variable to avoid confusing sed.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
8653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654 (eval "$lt_compile" 2>conftest.err)
8655 ac_status=$?
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 if (exit $ac_status) && test -s "$ac_outfile"; then
8659 # The compiler can only warn and ignore the option if not recognized
8660 # So say no if there are warnings other than the usual output.
8661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_pic_works=yes
8667 $RM conftest*
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8671 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8673 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8674 case $lt_prog_compiler_pic in
8675 "" | " "*) ;;
8676 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8677 esac
8678 else
8679 lt_prog_compiler_pic=
8680 lt_prog_compiler_can_build_shared=no
8691 # Check to make sure the static flag actually works.
8693 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8695 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8696 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 lt_cv_prog_compiler_static_works=no
8700 save_LDFLAGS="$LDFLAGS"
8701 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8702 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8704 # The linker can only warn and ignore the option if not recognized
8705 # So say no if there are warnings
8706 if test -s conftest.err; then
8707 # Append any errors to the config.log.
8708 cat conftest.err 1>&5
8709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711 if diff conftest.exp conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_static_works=yes
8714 else
8715 lt_cv_prog_compiler_static_works=yes
8718 $RM -r conftest*
8719 LDFLAGS="$save_LDFLAGS"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8723 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8725 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8727 else
8728 lt_prog_compiler_static=
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8739 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 lt_cv_prog_compiler_c_o=no
8743 $RM -r conftest 2>/dev/null
8744 mkdir conftest
8745 cd conftest
8746 mkdir out
8747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8749 lt_compiler_flag="-o out/conftest2.$ac_objext"
8750 # Insert the option either (1) after the last *FLAGS variable, or
8751 # (2) before a word containing "conftest.", or (3) at the end.
8752 # Note that $ac_compile itself does not contain backslashes and begins
8753 # with a dollar sign (not a hyphen), so the echo should work correctly.
8754 lt_compile=`echo "$ac_compile" | $SED \
8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757 -e 's:$: $lt_compiler_flag:'`
8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759 (eval "$lt_compile" 2>out/conftest.err)
8760 ac_status=$?
8761 cat out/conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8764 then
8765 # The compiler can only warn and ignore the option if not recognized
8766 # So say no if there are warnings
8767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler_c_o=yes
8773 chmod u+w . 2>&5
8774 $RM conftest*
8775 # SGI C++ compiler will create directory out/ii_files/ for
8776 # template instantiation
8777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8778 $RM out/* && rmdir out
8779 cd ..
8780 $RM -r conftest
8781 $RM conftest*
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8785 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 lt_cv_prog_compiler_c_o=no
8798 $RM -r conftest 2>/dev/null
8799 mkdir conftest
8800 cd conftest
8801 mkdir out
8802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8804 lt_compiler_flag="-o out/conftest2.$ac_objext"
8805 # Insert the option either (1) after the last *FLAGS variable, or
8806 # (2) before a word containing "conftest.", or (3) at the end.
8807 # Note that $ac_compile itself does not contain backslashes and begins
8808 # with a dollar sign (not a hyphen), so the echo should work correctly.
8809 lt_compile=`echo "$ac_compile" | $SED \
8810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8812 -e 's:$: $lt_compiler_flag:'`
8813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8814 (eval "$lt_compile" 2>out/conftest.err)
8815 ac_status=$?
8816 cat out/conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8819 then
8820 # The compiler can only warn and ignore the option if not recognized
8821 # So say no if there are warnings
8822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8825 lt_cv_prog_compiler_c_o=yes
8828 chmod u+w . 2>&5
8829 $RM conftest*
8830 # SGI C++ compiler will create directory out/ii_files/ for
8831 # template instantiation
8832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8833 $RM out/* && rmdir out
8834 cd ..
8835 $RM -r conftest
8836 $RM conftest*
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8845 hard_links="nottested"
8846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8847 # do not overwrite the value of need_locks provided by the user
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8849 $as_echo_n "checking if we can lock with hard links... " >&6; }
8850 hard_links=yes
8851 $RM conftest*
8852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8853 touch conftest.a
8854 ln conftest.a conftest.b 2>&5 || hard_links=no
8855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8857 $as_echo "$hard_links" >&6; }
8858 if test "$hard_links" = no; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8860 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8861 need_locks=warn
8863 else
8864 need_locks=no
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8873 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8875 runpath_var=
8876 allow_undefined_flag=
8877 always_export_symbols=no
8878 archive_cmds=
8879 archive_expsym_cmds=
8880 compiler_needs_object=no
8881 enable_shared_with_static_runtimes=no
8882 export_dynamic_flag_spec=
8883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8884 hardcode_automatic=no
8885 hardcode_direct=no
8886 hardcode_direct_absolute=no
8887 hardcode_libdir_flag_spec=
8888 hardcode_libdir_flag_spec_ld=
8889 hardcode_libdir_separator=
8890 hardcode_minus_L=no
8891 hardcode_shlibpath_var=unsupported
8892 inherit_rpath=no
8893 link_all_deplibs=unknown
8894 module_cmds=
8895 module_expsym_cmds=
8896 old_archive_from_new_cmds=
8897 old_archive_from_expsyms_cmds=
8898 thread_safe_flag_spec=
8899 whole_archive_flag_spec=
8900 # include_expsyms should be a list of space-separated symbols to be *always*
8901 # included in the symbol list
8902 include_expsyms=
8903 # exclude_expsyms can be an extended regexp of symbols to exclude
8904 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8905 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8906 # as well as any symbol that contains `d'.
8907 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8908 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8909 # platforms (ab)use it in PIC code, but their linkers get confused if
8910 # the symbol is explicitly referenced. Since portable code cannot
8911 # rely on this symbol name, it's probably fine to never include it in
8912 # preloaded symbol tables.
8913 # Exclude shared library initialization/finalization symbols.
8914 extract_expsyms_cmds=
8916 case $host_os in
8917 cygwin* | mingw* | pw32* | cegcc*)
8918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8919 # When not using gcc, we currently assume that we are using
8920 # Microsoft Visual C++.
8921 if test "$GCC" != yes; then
8922 with_gnu_ld=no
8925 interix*)
8926 # we just hope/assume this is gcc and not c89 (= MSVC++)
8927 with_gnu_ld=yes
8929 openbsd*)
8930 with_gnu_ld=no
8932 esac
8934 ld_shlibs=yes
8936 # On some targets, GNU ld is compatible enough with the native linker
8937 # that we're better off using the native interface for both.
8938 lt_use_gnu_ld_interface=no
8939 if test "$with_gnu_ld" = yes; then
8940 case $host_os in
8941 aix*)
8942 # The AIX port of GNU ld has always aspired to compatibility
8943 # with the native linker. However, as the warning in the GNU ld
8944 # block says, versions before 2.19.5* couldn't really create working
8945 # shared libraries, regardless of the interface used.
8946 case `$LD -v 2>&1` in
8947 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8948 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8949 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8951 lt_use_gnu_ld_interface=yes
8953 esac
8956 lt_use_gnu_ld_interface=yes
8958 esac
8961 if test "$lt_use_gnu_ld_interface" = yes; then
8962 # If archive_cmds runs LD, not CC, wlarc should be empty
8963 wlarc='${wl}'
8965 # Set some defaults for GNU ld with shared library support. These
8966 # are reset later if shared libraries are not supported. Putting them
8967 # here allows them to be overridden if necessary.
8968 runpath_var=LD_RUN_PATH
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 export_dynamic_flag_spec='${wl}--export-dynamic'
8971 # ancient GNU ld didn't support --whole-archive et. al.
8972 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8973 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8974 else
8975 whole_archive_flag_spec=
8977 supports_anon_versioning=no
8978 case `$LD -v 2>&1` in
8979 *GNU\ gold*) supports_anon_versioning=yes ;;
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8983 *\ 2.11.*) ;; # other 2.11 versions
8984 *) supports_anon_versioning=yes ;;
8985 esac
8987 # See if GNU ld supports shared libraries.
8988 case $host_os in
8989 aix[3-9]*)
8990 # On AIX/PPC, the GNU linker is very broken
8991 if test "$host_cpu" != ia64; then
8992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8995 *** Warning: the GNU linker, at least up to release 2.19, is reported
8996 *** to be unable to reliably create shared libraries on AIX.
8997 *** Therefore, libtool is disabling shared libraries support. If you
8998 *** really care for shared libraries, you may want to install binutils
8999 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9000 *** You will then need to restart the configuration process.
9002 _LT_EOF
9006 amigaos*)
9007 case $host_cpu in
9008 powerpc)
9009 # see comment about AmigaOS4 .so support
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds=''
9013 m68k)
9014 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)'
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 hardcode_minus_L=yes
9018 esac
9021 beos*)
9022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 allow_undefined_flag=unsupported
9024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9025 # support --undefined. This deserves some investigation. FIXME
9026 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 else
9028 ld_shlibs=no
9032 cygwin* | mingw* | pw32* | cegcc*)
9033 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9034 # as there is no search path for DLLs.
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 export_dynamic_flag_spec='${wl}--export-all-symbols'
9037 allow_undefined_flag=unsupported
9038 always_export_symbols=no
9039 enable_shared_with_static_runtimes=yes
9040 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9042 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9044 # If the export-symbols file already is a .def file (1st line
9045 # is EXPORTS), use it as is; otherwise, prepend...
9046 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9047 cp $export_symbols $output_objdir/$soname.def;
9048 else
9049 echo EXPORTS > $output_objdir/$soname.def;
9050 cat $export_symbols >> $output_objdir/$soname.def;
9052 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9053 else
9054 ld_shlibs=no
9058 haiku*)
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 link_all_deplibs=yes
9063 interix[3-9]*)
9064 hardcode_direct=no
9065 hardcode_shlibpath_var=no
9066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9067 export_dynamic_flag_spec='${wl}-E'
9068 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9069 # Instead, shared libraries are loaded at an image base (0x10000000 by
9070 # default) and relocated if they conflict, which is a slow very memory
9071 # consuming and fragmenting process. To avoid this, we pick a random,
9072 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9073 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9075 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'
9078 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9079 tmp_diet=no
9080 if test "$host_os" = linux-dietlibc; then
9081 case $cc_basename in
9082 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9083 esac
9085 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9086 && test "$tmp_diet" = no
9087 then
9088 tmp_addflag=' $pic_flag'
9089 tmp_sharedflag='-shared'
9090 case $cc_basename,$host_cpu in
9091 pgcc*) # Portland Group C compiler
9092 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'
9093 tmp_addflag=' $pic_flag'
9095 pgf77* | pgf90* | pgf95* | pgfortran*)
9096 # Portland Group f77 and f90 compilers
9097 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'
9098 tmp_addflag=' $pic_flag -Mnomain' ;;
9099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9100 tmp_addflag=' -i_dynamic' ;;
9101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9102 tmp_addflag=' -i_dynamic -nofor_main' ;;
9103 ifc* | ifort*) # Intel Fortran compiler
9104 tmp_addflag=' -nofor_main' ;;
9105 lf95*) # Lahey Fortran 8.1
9106 whole_archive_flag_spec=
9107 tmp_sharedflag='--shared' ;;
9108 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9109 tmp_sharedflag='-qmkshrobj'
9110 tmp_addflag= ;;
9111 nvcc*) # Cuda Compiler Driver 2.2
9112 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'
9113 compiler_needs_object=yes
9115 esac
9116 case `$CC -V 2>&1 | sed 5q` in
9117 *Sun\ C*) # Sun C 5.9
9118 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'
9119 compiler_needs_object=yes
9120 tmp_sharedflag='-G' ;;
9121 *Sun\ F*) # Sun Fortran 8.3
9122 tmp_sharedflag='-G' ;;
9123 esac
9124 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 if test "x$supports_anon_versioning" = xyes; then
9127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9129 echo "local: *; };" >> $output_objdir/$libname.ver~
9130 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9133 case $cc_basename in
9134 xlf* | bgf* | bgxlf* | mpixlf*)
9135 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9136 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9137 hardcode_libdir_flag_spec=
9138 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9139 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9140 if test "x$supports_anon_versioning" = xyes; then
9141 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9143 echo "local: *; };" >> $output_objdir/$libname.ver~
9144 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9147 esac
9148 else
9149 ld_shlibs=no
9153 netbsd*)
9154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9156 wlarc=
9157 else
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9163 solaris*)
9164 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9165 ld_shlibs=no
9166 cat <<_LT_EOF 1>&2
9168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9169 *** create shared libraries on Solaris systems. Therefore, libtool
9170 *** is disabling shared libraries support. We urge you to upgrade GNU
9171 *** binutils to release 2.9.1 or newer. Another option is to modify
9172 *** your PATH or compiler configuration so that the native linker is
9173 *** used, and then restart.
9175 _LT_EOF
9176 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9179 else
9180 ld_shlibs=no
9184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9185 case `$LD -v 2>&1` in
9186 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9187 ld_shlibs=no
9188 cat <<_LT_EOF 1>&2
9190 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9191 *** reliably create shared libraries on SCO systems. Therefore, libtool
9192 *** is disabling shared libraries support. We urge you to upgrade GNU
9193 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9194 *** your PATH or compiler configuration so that the native linker is
9195 *** used, and then restart.
9197 _LT_EOF
9200 # For security reasons, it is highly recommended that you always
9201 # use absolute paths for naming shared libraries, and exclude the
9202 # DT_RUNPATH tag from executables and libraries. But doing so
9203 # requires that you compile everything twice, which is a pain.
9204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9208 else
9209 ld_shlibs=no
9212 esac
9215 sunos4*)
9216 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9217 wlarc=
9218 hardcode_direct=yes
9219 hardcode_shlibpath_var=no
9223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226 else
9227 ld_shlibs=no
9230 esac
9232 if test "$ld_shlibs" = no; then
9233 runpath_var=
9234 hardcode_libdir_flag_spec=
9235 export_dynamic_flag_spec=
9236 whole_archive_flag_spec=
9238 else
9239 # PORTME fill in a description of your system's linker (not GNU ld)
9240 case $host_os in
9241 aix3*)
9242 allow_undefined_flag=unsupported
9243 always_export_symbols=yes
9244 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'
9245 # Note: this linker hardcodes the directories in LIBPATH if there
9246 # are no directories specified by -L.
9247 hardcode_minus_L=yes
9248 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9249 # Neither direct hardcoding nor static linking is supported with a
9250 # broken collect2.
9251 hardcode_direct=unsupported
9255 aix[4-9]*)
9256 if test "$host_cpu" = ia64; then
9257 # On IA64, the linker does run time linking by default, so we don't
9258 # have to do anything special.
9259 aix_use_runtimelinking=no
9260 exp_sym_flag='-Bexport'
9261 no_entry_flag=""
9262 else
9263 # If we're using GNU nm, then we don't want the "-C" option.
9264 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9265 # Also, AIX nm treats weak defined symbols like other global
9266 # defined symbols, whereas GNU nm marks them as "W".
9267 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9268 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'
9269 else
9270 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9272 aix_use_runtimelinking=no
9274 # Test if we are trying to use run time linking or normal
9275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9276 # need to do runtime linking.
9277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9278 for ld_flag in $LDFLAGS; do
9279 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9280 aix_use_runtimelinking=yes
9281 break
9283 done
9285 esac
9287 exp_sym_flag='-bexport'
9288 no_entry_flag='-bnoentry'
9291 # When large executables or shared objects are built, AIX ld can
9292 # have problems creating the table of contents. If linking a library
9293 # or program results in "error TOC overflow" add -mminimal-toc to
9294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9297 archive_cmds=''
9298 hardcode_direct=yes
9299 hardcode_direct_absolute=yes
9300 hardcode_libdir_separator=':'
9301 link_all_deplibs=yes
9302 file_list_spec='${wl}-f,'
9304 if test "$GCC" = yes; then
9305 case $host_os in aix4.[012]|aix4.[012].*)
9306 # We only want to do this on AIX 4.2 and lower, the check
9307 # below for broken collect2 doesn't work under 4.3+
9308 collect2name=`${CC} -print-prog-name=collect2`
9309 if test -f "$collect2name" &&
9310 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9311 then
9312 # We have reworked collect2
9314 else
9315 # We have old collect2
9316 hardcode_direct=unsupported
9317 # It fails to find uninstalled libraries when the uninstalled
9318 # path is not listed in the libpath. Setting hardcode_minus_L
9319 # to unsupported forces relinking
9320 hardcode_minus_L=yes
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_libdir_separator=
9325 esac
9326 shared_flag='-shared'
9327 if test "$aix_use_runtimelinking" = yes; then
9328 shared_flag="$shared_flag "'${wl}-G'
9330 else
9331 # not using gcc
9332 if test "$host_cpu" = ia64; then
9333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9334 # chokes on -Wl,-G. The following line is correct:
9335 shared_flag='-G'
9336 else
9337 if test "$aix_use_runtimelinking" = yes; then
9338 shared_flag='${wl}-G'
9339 else
9340 shared_flag='${wl}-bM:SRE'
9345 export_dynamic_flag_spec='${wl}-bexpall'
9346 # It seems that -bexpall does not export symbols beginning with
9347 # underscore (_), so it is better to generate a list of symbols to export.
9348 always_export_symbols=yes
9349 if test "$aix_use_runtimelinking" = yes; then
9350 # Warning - without using the other runtime loading flags (-brtl),
9351 # -berok will link without error, but may produce a broken library.
9352 allow_undefined_flag='-berok'
9353 # Determine the default libpath from the value encoded in an
9354 # empty executable.
9355 if test x$gcc_no_link = xyes; then
9356 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9362 main ()
9366 return 0;
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9371 lt_aix_libpath_sed='
9372 /Import File Strings/,/^$/ {
9373 /^0/ {
9374 s/^0 *\(.*\)$/\1/
9378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379 # Check for a 64-bit object if we didn't find anything.
9380 if test -z "$aix_libpath"; then
9381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9389 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"
9390 else
9391 if test "$host_cpu" = ia64; then
9392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9393 allow_undefined_flag="-z nodefs"
9394 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"
9395 else
9396 # Determine the default libpath from the value encoded in an
9397 # empty executable.
9398 if test x$gcc_no_link = xyes; then
9399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9405 main ()
9409 return 0;
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9414 lt_aix_libpath_sed='
9415 /Import File Strings/,/^$/ {
9416 /^0/ {
9417 s/^0 *\(.*\)$/\1/
9421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9422 # Check for a 64-bit object if we didn't find anything.
9423 if test -z "$aix_libpath"; then
9424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9432 # Warning - without using the other run time loading flags,
9433 # -berok will link without error, but may produce a broken library.
9434 no_undefined_flag=' ${wl}-bernotok'
9435 allow_undefined_flag=' ${wl}-berok'
9436 if test "$with_gnu_ld" = yes; then
9437 # We only use this code for GNU lds that support --whole-archive.
9438 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9439 else
9440 # Exported symbols can be pulled into shared objects from archives
9441 whole_archive_flag_spec='$convenience'
9443 archive_cmds_need_lc=yes
9444 # This is similar to how AIX traditionally builds its shared libraries.
9445 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'
9450 amigaos*)
9451 case $host_cpu in
9452 powerpc)
9453 # see comment about AmigaOS4 .so support
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds=''
9457 m68k)
9458 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)'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_minus_L=yes
9462 esac
9465 bsdi[45]*)
9466 export_dynamic_flag_spec=-rdynamic
9469 cygwin* | mingw* | pw32* | cegcc*)
9470 # When not using gcc, we currently assume that we are using
9471 # Microsoft Visual C++.
9472 # hardcode_libdir_flag_spec is actually meaningless, as there is
9473 # no search path for DLLs.
9474 hardcode_libdir_flag_spec=' '
9475 allow_undefined_flag=unsupported
9476 # Tell ltmain to make .lib files, not .a files.
9477 libext=lib
9478 # Tell ltmain to make .dll files, not .so files.
9479 shrext_cmds=".dll"
9480 # FIXME: Setting linknames here is a bad hack.
9481 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9482 # The linker will automatically build a .lib file if we build a DLL.
9483 old_archive_from_new_cmds='true'
9484 # FIXME: Should let the user specify the lib program.
9485 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9486 fix_srcfile_path='`cygpath -w "$srcfile"`'
9487 enable_shared_with_static_runtimes=yes
9490 darwin* | rhapsody*)
9493 archive_cmds_need_lc=no
9494 hardcode_direct=no
9495 hardcode_automatic=yes
9496 hardcode_shlibpath_var=unsupported
9497 if test "$lt_cv_ld_force_load" = "yes"; then
9498 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\"`'
9499 else
9500 whole_archive_flag_spec=''
9502 link_all_deplibs=yes
9503 allow_undefined_flag="$_lt_dar_allow_undefined"
9504 case $cc_basename in
9505 ifort*) _lt_dar_can_shared=yes ;;
9506 *) _lt_dar_can_shared=$GCC ;;
9507 esac
9508 if test "$_lt_dar_can_shared" = "yes"; then
9509 output_verbose_link_cmd=func_echo_all
9510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9512 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}"
9513 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}"
9515 else
9516 ld_shlibs=no
9521 dgux*)
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_shlibpath_var=no
9527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9528 # support. Future versions do this automatically, but an explicit c++rt0.o
9529 # does not break anything, and helps significantly (at the cost of a little
9530 # extra space).
9531 freebsd2.2*)
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9533 hardcode_libdir_flag_spec='-R$libdir'
9534 hardcode_direct=yes
9535 hardcode_shlibpath_var=no
9538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9539 freebsd2.*)
9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_minus_L=yes
9543 hardcode_shlibpath_var=no
9546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9547 freebsd* | dragonfly*)
9548 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='-R$libdir'
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
9554 hpux9*)
9555 if test "$GCC" = yes; then
9556 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'
9557 else
9558 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'
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562 hardcode_direct=yes
9564 # hardcode_minus_L: Not really in the search PATH,
9565 # but as the default location of the library.
9566 hardcode_minus_L=yes
9567 export_dynamic_flag_spec='${wl}-E'
9570 hpux10*)
9571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9573 else
9574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9576 if test "$with_gnu_ld" = no; then
9577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_flag_spec_ld='+b $libdir'
9579 hardcode_libdir_separator=:
9580 hardcode_direct=yes
9581 hardcode_direct_absolute=yes
9582 export_dynamic_flag_spec='${wl}-E'
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9589 hpux11*)
9590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9591 case $host_cpu in
9592 hppa*64*)
9593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 ia64*)
9596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9601 esac
9602 else
9603 case $host_cpu in
9604 hppa*64*)
9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 ia64*)
9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9612 # Older versions of the 11.00 compiler do not understand -b yet
9613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9615 $as_echo_n "checking if $CC understands -b... " >&6; }
9616 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 lt_cv_prog_compiler__b=no
9620 save_LDFLAGS="$LDFLAGS"
9621 LDFLAGS="$LDFLAGS -b"
9622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624 # The linker can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 if test -s conftest.err; then
9627 # Append any errors to the config.log.
9628 cat conftest.err 1>&5
9629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631 if diff conftest.exp conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler__b=yes
9634 else
9635 lt_cv_prog_compiler__b=yes
9638 $RM -r conftest*
9639 LDFLAGS="$save_LDFLAGS"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9645 if test x"$lt_cv_prog_compiler__b" = xyes; then
9646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647 else
9648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9652 esac
9654 if test "$with_gnu_ld" = no; then
9655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656 hardcode_libdir_separator=:
9658 case $host_cpu in
9659 hppa*64*|ia64*)
9660 hardcode_direct=no
9661 hardcode_shlibpath_var=no
9664 hardcode_direct=yes
9665 hardcode_direct_absolute=yes
9666 export_dynamic_flag_spec='${wl}-E'
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9672 esac
9676 irix5* | irix6* | nonstopux*)
9677 if test "$GCC" = yes; then
9678 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'
9679 # Try to use the -exported_symbol ld option, if it does not
9680 # work, assume that -exports_file does not work either and
9681 # implicitly export all symbols.
9682 save_LDFLAGS="$LDFLAGS"
9683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9684 if test x$gcc_no_link = xyes; then
9685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int foo(void) {}
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"; then :
9692 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'
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LDFLAGS="$save_LDFLAGS"
9698 else
9699 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'
9700 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'
9702 archive_cmds_need_lc='no'
9703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704 hardcode_libdir_separator=:
9705 inherit_rpath=yes
9706 link_all_deplibs=yes
9709 netbsd*)
9710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9712 else
9713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9715 hardcode_libdir_flag_spec='-R$libdir'
9716 hardcode_direct=yes
9717 hardcode_shlibpath_var=no
9720 newsos6)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_direct=yes
9723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9724 hardcode_libdir_separator=:
9725 hardcode_shlibpath_var=no
9728 *nto* | *qnx*)
9731 openbsd*)
9732 if test -f /usr/libexec/ld.so; then
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 hardcode_direct_absolute=yes
9736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9740 export_dynamic_flag_spec='${wl}-E'
9741 else
9742 case $host_os in
9743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_libdir_flag_spec='-R$libdir'
9748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9751 esac
9753 else
9754 ld_shlibs=no
9758 os2*)
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_minus_L=yes
9761 allow_undefined_flag=unsupported
9762 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'
9763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9766 osf3*)
9767 if test "$GCC" = yes; then
9768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9769 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'
9770 else
9771 allow_undefined_flag=' -expect_unresolved \*'
9772 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'
9774 archive_cmds_need_lc='no'
9775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9776 hardcode_libdir_separator=:
9779 osf4* | osf5*) # as osf3* with the addition of -msym flag
9780 if test "$GCC" = yes; then
9781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9782 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'
9783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784 else
9785 allow_undefined_flag=' -expect_unresolved \*'
9786 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'
9787 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~
9788 $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'
9790 # Both c and cxx compiler support -rpath directly
9791 hardcode_libdir_flag_spec='-rpath $libdir'
9793 archive_cmds_need_lc='no'
9794 hardcode_libdir_separator=:
9797 solaris*)
9798 no_undefined_flag=' -z defs'
9799 if test "$GCC" = yes; then
9800 wlarc='${wl}'
9801 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9803 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9804 else
9805 case `$CC -V 2>&1` in
9806 *"Compilers 5.0"*)
9807 wlarc=''
9808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9813 wlarc='${wl}'
9814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9818 esac
9820 hardcode_libdir_flag_spec='-R$libdir'
9821 hardcode_shlibpath_var=no
9822 case $host_os in
9823 solaris2.[0-5] | solaris2.[0-5].*) ;;
9825 # The compiler driver will combine and reorder linker options,
9826 # but understands `-z linker_flag'. GCC discards it without `$wl',
9827 # but is careful enough not to reorder.
9828 # Supported since Solaris 2.6 (maybe 2.5.1?)
9829 if test "$GCC" = yes; then
9830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9831 else
9832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9835 esac
9836 link_all_deplibs=yes
9839 sunos4*)
9840 if test "x$host_vendor" = xsequent; then
9841 # Use $CC to link under sequent, because it throws in some extra .o
9842 # files that make .init and .fini sections work.
9843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9844 else
9845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_direct=yes
9849 hardcode_minus_L=yes
9850 hardcode_shlibpath_var=no
9853 sysv4)
9854 case $host_vendor in
9855 sni)
9856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_direct=yes # is this really true???
9859 siemens)
9860 ## LD is ld it makes a PLAMLIB
9861 ## CC just makes a GrossModule.
9862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9863 reload_cmds='$CC -r -o $output$reload_objs'
9864 hardcode_direct=no
9866 motorola)
9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9870 esac
9871 runpath_var='LD_RUN_PATH'
9872 hardcode_shlibpath_var=no
9875 sysv4.3*)
9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_shlibpath_var=no
9878 export_dynamic_flag_spec='-Bexport'
9881 sysv4*MP*)
9882 if test -d /usr/nec; then
9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_shlibpath_var=no
9885 runpath_var=LD_RUN_PATH
9886 hardcode_runpath_var=yes
9887 ld_shlibs=yes
9891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9892 no_undefined_flag='${wl}-z,text'
9893 archive_cmds_need_lc=no
9894 hardcode_shlibpath_var=no
9895 runpath_var='LD_RUN_PATH'
9897 if test "$GCC" = yes; then
9898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9906 sysv5* | sco3.2v5* | sco5v6*)
9907 # Note: We can NOT use -z defs as we might desire, because we do not
9908 # link with -lc, and that would cause any symbols used from libc to
9909 # always be unresolved, which means just about no library would
9910 # ever link correctly. If we're not using GNU ld we use -z text
9911 # though, which does catch some bad symbols but isn't as heavy-handed
9912 # as -z defs.
9913 no_undefined_flag='${wl}-z,text'
9914 allow_undefined_flag='${wl}-z,nodefs'
9915 archive_cmds_need_lc=no
9916 hardcode_shlibpath_var=no
9917 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9918 hardcode_libdir_separator=':'
9919 link_all_deplibs=yes
9920 export_dynamic_flag_spec='${wl}-Bexport'
9921 runpath_var='LD_RUN_PATH'
9923 if test "$GCC" = yes; then
9924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 else
9927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 uts4*)
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_shlibpath_var=no
9939 ld_shlibs=no
9941 esac
9943 if test x$host_vendor = xsni; then
9944 case $host in
9945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9946 export_dynamic_flag_spec='${wl}-Blargedynsym'
9948 esac
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9953 $as_echo "$ld_shlibs" >&6; }
9954 test "$ld_shlibs" = no && can_build_shared=no
9956 with_gnu_ld=$with_gnu_ld
9973 # Do we need to explicitly link libc?
9975 case "x$archive_cmds_need_lc" in
9976 x|xyes)
9977 # Assume -lc should be added
9978 archive_cmds_need_lc=yes
9980 if test "$enable_shared" = yes && test "$GCC" = yes; then
9981 case $archive_cmds in
9982 *'~'*)
9983 # FIXME: we may have to deal with multi-command sequences.
9985 '$CC '*)
9986 # Test whether the compiler implicitly links with -lc since on some
9987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9988 # to ld, don't add -lc before -lgcc.
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9990 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9991 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 $RM conftest*
9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9998 (eval $ac_compile) 2>&5
9999 ac_status=$?
10000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10001 test $ac_status = 0; } 2>conftest.err; then
10002 soname=conftest
10003 lib=conftest
10004 libobjs=conftest.$ac_objext
10005 deplibs=
10006 wl=$lt_prog_compiler_wl
10007 pic_flag=$lt_prog_compiler_pic
10008 compiler_flags=-v
10009 linker_flags=-v
10010 verstring=
10011 output_objdir=.
10012 libname=conftest
10013 lt_save_allow_undefined_flag=$allow_undefined_flag
10014 allow_undefined_flag=
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10017 ac_status=$?
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; }
10020 then
10021 lt_cv_archive_cmds_need_lc=no
10022 else
10023 lt_cv_archive_cmds_need_lc=yes
10025 allow_undefined_flag=$lt_save_allow_undefined_flag
10026 else
10027 cat conftest.err 1>&5
10029 $RM conftest*
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10033 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10036 esac
10039 esac
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10200 if test "$GCC" = yes; then
10201 case $host_os in
10202 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10203 *) lt_awk_arg="/^libraries:/" ;;
10204 esac
10205 case $host_os in
10206 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10207 *) lt_sed_strip_eq="s,=/,/,g" ;;
10208 esac
10209 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10210 case $lt_search_path_spec in
10211 *\;*)
10212 # if the path contains ";" then we assume it to be the separator
10213 # otherwise default to the standard path separator (i.e. ":") - it is
10214 # assumed that no part of a normal pathname contains ";" but that should
10215 # okay in the real world where ";" in dirpaths is itself problematic.
10216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10221 esac
10222 # Ok, now we have the path, separated by spaces, we can step through it
10223 # and add multilib dir if necessary.
10224 lt_tmp_lt_search_path_spec=
10225 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10226 for lt_sys_path in $lt_search_path_spec; do
10227 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10229 else
10230 test -d "$lt_sys_path" && \
10231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10233 done
10234 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10235 BEGIN {RS=" "; FS="/|\n";} {
10236 lt_foo="";
10237 lt_count=0;
10238 for (lt_i = NF; lt_i > 0; lt_i--) {
10239 if ($lt_i != "" && $lt_i != ".") {
10240 if ($lt_i == "..") {
10241 lt_count++;
10242 } else {
10243 if (lt_count == 0) {
10244 lt_foo="/" $lt_i lt_foo;
10245 } else {
10246 lt_count--;
10251 if (lt_foo != "") { lt_freq[lt_foo]++; }
10252 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10254 # AWK program above erroneously prepends '/' to C:/dos/paths
10255 # for these hosts.
10256 case $host_os in
10257 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10258 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10259 esac
10260 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10261 else
10262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10264 library_names_spec=
10265 libname_spec='lib$name'
10266 soname_spec=
10267 shrext_cmds=".so"
10268 postinstall_cmds=
10269 postuninstall_cmds=
10270 finish_cmds=
10271 finish_eval=
10272 shlibpath_var=
10273 shlibpath_overrides_runpath=unknown
10274 version_type=none
10275 dynamic_linker="$host_os ld.so"
10276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10277 need_lib_prefix=unknown
10278 hardcode_into_libs=no
10280 # when you set need_version to no, make sure it does not cause -set_version
10281 # flags to be left without arguments
10282 need_version=unknown
10284 case $host_os in
10285 aix3*)
10286 version_type=linux
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10288 shlibpath_var=LIBPATH
10290 # AIX 3 has no versioning support, so we append a major version to the name.
10291 soname_spec='${libname}${release}${shared_ext}$major'
10294 aix[4-9]*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 hardcode_into_libs=yes
10299 if test "$host_cpu" = ia64; then
10300 # AIX 5 supports IA64
10301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 else
10304 # With GCC up to 2.95.x, collect2 would create an import file
10305 # for dependence libraries. The import file would start with
10306 # the line `#! .'. This would cause the generated library to
10307 # depend on `.', always an invalid library. This was fixed in
10308 # development snapshots of GCC prior to 3.0.
10309 case $host_os in
10310 aix4 | aix4.[01] | aix4.[01].*)
10311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10312 echo ' yes '
10313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10315 else
10316 can_build_shared=no
10319 esac
10320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10321 # soname into executable. Probably we can add versioning support to
10322 # collect2, so additional links can be useful in future.
10323 if test "$aix_use_runtimelinking" = yes; then
10324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10325 # instead of lib<name>.a to let people know that these are not
10326 # typical AIX shared libraries.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 else
10329 # We preserve .a as extension for shared libraries through AIX4.2
10330 # and later when we are not doing run time linking.
10331 library_names_spec='${libname}${release}.a $libname.a'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LIBPATH
10338 amigaos*)
10339 case $host_cpu in
10340 powerpc)
10341 # Since July 2007 AmigaOS4 officially supports .so libraries.
10342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 m68k)
10346 library_names_spec='$libname.ixlibrary $libname.a'
10347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10348 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'
10350 esac
10353 beos*)
10354 library_names_spec='${libname}${shared_ext}'
10355 dynamic_linker="$host_os ld.so"
10356 shlibpath_var=LIBRARY_PATH
10359 bsdi[45]*)
10360 version_type=linux
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10368 # the default ld.so.conf also contains /usr/contrib/lib and
10369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10370 # libtool to hard-code these into programs
10373 cygwin* | mingw* | pw32* | cegcc*)
10374 version_type=windows
10375 shrext_cmds=".dll"
10376 need_version=no
10377 need_lib_prefix=no
10379 case $GCC,$host_os in
10380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10381 library_names_spec='$libname.dll.a'
10382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10383 postinstall_cmds='base_file=`basename \${file}`~
10384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10385 dldir=$destdir/`dirname \$dlpath`~
10386 test -d \$dldir || mkdir -p \$dldir~
10387 $install_prog $dir/$dlname \$dldir/$dlname~
10388 chmod a+x \$dldir/$dlname~
10389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10393 dlpath=$dir/\$dldll~
10394 $RM \$dlpath'
10395 shlibpath_overrides_runpath=yes
10397 case $host_os in
10398 cygwin*)
10399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10404 mingw* | cegcc*)
10405 # MinGW DLLs use traditional 'lib' prefix
10406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408 pw32*)
10409 # pw32 DLLs use 'pw' prefix rather than 'lib'
10410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412 esac
10416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10418 esac
10419 dynamic_linker='Win32 ld.exe'
10420 # FIXME: first we should search . and the directory the executable is in
10421 shlibpath_var=PATH
10424 darwin* | rhapsody*)
10425 dynamic_linker="$host_os dyld"
10426 version_type=darwin
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10430 soname_spec='${libname}${release}${major}$shared_ext'
10431 shlibpath_overrides_runpath=yes
10432 shlibpath_var=DYLD_LIBRARY_PATH
10433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10439 dgux*)
10440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10448 freebsd* | dragonfly*)
10449 # DragonFly does not have aout. When/if they implement a new
10450 # versioning mechanism, adjust this.
10451 if test -x /usr/bin/objformat; then
10452 objformat=`/usr/bin/objformat`
10453 else
10454 case $host_os in
10455 freebsd[23].*) objformat=aout ;;
10456 *) objformat=elf ;;
10457 esac
10459 version_type=freebsd-$objformat
10460 case $version_type in
10461 freebsd-elf*)
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10463 need_version=no
10464 need_lib_prefix=no
10466 freebsd-*)
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10468 need_version=yes
10470 esac
10471 shlibpath_var=LD_LIBRARY_PATH
10472 case $host_os in
10473 freebsd2.*)
10474 shlibpath_overrides_runpath=yes
10476 freebsd3.[01]* | freebsdelf3.[01]*)
10477 shlibpath_overrides_runpath=yes
10478 hardcode_into_libs=yes
10480 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10481 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10482 shlibpath_overrides_runpath=no
10483 hardcode_into_libs=yes
10485 *) # from 4.6 on, and DragonFly
10486 shlibpath_overrides_runpath=yes
10487 hardcode_into_libs=yes
10489 esac
10492 gnu*)
10493 version_type=linux
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 hardcode_into_libs=yes
10502 haiku*)
10503 version_type=linux
10504 need_lib_prefix=no
10505 need_version=no
10506 dynamic_linker="$host_os runtime_loader"
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 shlibpath_var=LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10512 hardcode_into_libs=yes
10515 hpux9* | hpux10* | hpux11*)
10516 # Give a soname corresponding to the major version so that dld.sl refuses to
10517 # link against other versions.
10518 version_type=sunos
10519 need_lib_prefix=no
10520 need_version=no
10521 case $host_cpu in
10522 ia64*)
10523 shrext_cmds='.so'
10524 hardcode_into_libs=yes
10525 dynamic_linker="$host_os dld.so"
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 if test "X$HPUX_IA64_MODE" = X32; then
10531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10532 else
10533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 hppa*64*)
10538 shrext_cmds='.sl'
10539 hardcode_into_libs=yes
10540 dynamic_linker="$host_os dld.sl"
10541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10549 shrext_cmds='.sl'
10550 dynamic_linker="$host_os dld.sl"
10551 shlibpath_var=SHLIB_PATH
10552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10556 esac
10557 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10558 postinstall_cmds='chmod 555 $lib'
10559 # or fails outright, so override atomically:
10560 install_override_mode=555
10563 interix[3-9]*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10575 irix5* | irix6* | nonstopux*)
10576 case $host_os in
10577 nonstopux*) version_type=nonstopux ;;
10579 if test "$lt_cv_prog_gnu_ld" = yes; then
10580 version_type=linux
10581 else
10582 version_type=irix
10583 fi ;;
10584 esac
10585 need_lib_prefix=no
10586 need_version=no
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10589 case $host_os in
10590 irix5* | nonstopux*)
10591 libsuff= shlibsuff=
10594 case $LD in # libtool.m4 will add one of these switches to LD
10595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10596 libsuff= shlibsuff= libmagic=32-bit;;
10597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10598 libsuff=32 shlibsuff=N32 libmagic=N32;;
10599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10601 *) libsuff= shlibsuff= libmagic=never-match;;
10602 esac
10604 esac
10605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10606 shlibpath_overrides_runpath=no
10607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10609 hardcode_into_libs=yes
10612 # No shared lib support for Linux oldld, aout, or coff.
10613 linux*oldld* | linux*aout* | linux*coff*)
10614 dynamic_linker=no
10617 # This must be Linux ELF.
10618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=no
10628 # Some binutils ld are patched to set DT_RUNPATH
10629 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 lt_cv_shlibpath_overrides_runpath=no
10633 save_LDFLAGS=$LDFLAGS
10634 save_libdir=$libdir
10635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10637 if test x$gcc_no_link = xyes; then
10638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10644 main ()
10648 return 0;
10650 _ACEOF
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10653 lt_cv_shlibpath_overrides_runpath=yes
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LDFLAGS=$save_LDFLAGS
10659 libdir=$save_libdir
10663 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10665 # This implies no fast_install, which is unacceptable.
10666 # Some rework will be needed to allow for fast_install
10667 # before this can be enabled.
10668 hardcode_into_libs=yes
10670 # Append ld.so.conf contents to the search path
10671 if test -f /etc/ld.so.conf; then
10672 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' ' '`
10673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10676 # We used to test for /lib/ld.so.1 and disable shared libraries on
10677 # powerpc, because MkLinux only supported shared libraries with the
10678 # GNU dynamic linker. Since this was broken with cross compilers,
10679 # most powerpc-linux boxes support dynamic linking these days and
10680 # people can always --disable-shared, the test was removed, and we
10681 # assume the GNU/Linux dynamic linker is in use.
10682 dynamic_linker='GNU/Linux ld.so'
10685 netbsd*)
10686 version_type=sunos
10687 need_lib_prefix=no
10688 need_version=no
10689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10692 dynamic_linker='NetBSD (a.out) ld.so'
10693 else
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 dynamic_linker='NetBSD ld.elf_so'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 hardcode_into_libs=yes
10703 newsos6)
10704 version_type=linux
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 shlibpath_overrides_runpath=yes
10710 *nto* | *qnx*)
10711 version_type=qnx
10712 need_lib_prefix=no
10713 need_version=no
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=no
10718 hardcode_into_libs=yes
10719 dynamic_linker='ldqnx.so'
10722 openbsd*)
10723 version_type=sunos
10724 sys_lib_dlsearch_path_spec="/usr/lib"
10725 need_lib_prefix=no
10726 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10727 case $host_os in
10728 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10729 *) need_version=no ;;
10730 esac
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10735 case $host_os in
10736 openbsd2.[89] | openbsd2.[89].*)
10737 shlibpath_overrides_runpath=no
10740 shlibpath_overrides_runpath=yes
10742 esac
10743 else
10744 shlibpath_overrides_runpath=yes
10748 os2*)
10749 libname_spec='$name'
10750 shrext_cmds=".dll"
10751 need_lib_prefix=no
10752 library_names_spec='$libname${shared_ext} $libname.a'
10753 dynamic_linker='OS/2 ld.exe'
10754 shlibpath_var=LIBPATH
10757 osf3* | osf4* | osf5*)
10758 version_type=osf
10759 need_lib_prefix=no
10760 need_version=no
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10765 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10768 rdos*)
10769 dynamic_linker=no
10772 solaris*)
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes
10780 hardcode_into_libs=yes
10781 # ldd complains unless libraries are executable
10782 postinstall_cmds='chmod +x $lib'
10785 sunos4*)
10786 version_type=sunos
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes
10791 if test "$with_gnu_ld" = yes; then
10792 need_lib_prefix=no
10794 need_version=yes
10797 sysv4 | sysv4.3*)
10798 version_type=linux
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 case $host_vendor in
10803 sni)
10804 shlibpath_overrides_runpath=no
10805 need_lib_prefix=no
10806 runpath_var=LD_RUN_PATH
10808 siemens)
10809 need_lib_prefix=no
10811 motorola)
10812 need_lib_prefix=no
10813 need_version=no
10814 shlibpath_overrides_runpath=no
10815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10817 esac
10820 sysv4*MP*)
10821 if test -d /usr/nec ;then
10822 version_type=linux
10823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10824 soname_spec='$libname${shared_ext}.$major'
10825 shlibpath_var=LD_LIBRARY_PATH
10829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10830 version_type=freebsd-elf
10831 need_lib_prefix=no
10832 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=yes
10837 hardcode_into_libs=yes
10838 if test "$with_gnu_ld" = yes; then
10839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10840 else
10841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10842 case $host_os in
10843 sco3.2v5*)
10844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10846 esac
10848 sys_lib_dlsearch_path_spec='/usr/lib'
10851 tpf*)
10852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10853 version_type=linux
10854 need_lib_prefix=no
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=no
10859 hardcode_into_libs=yes
10862 uts4*)
10863 version_type=linux
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 shlibpath_var=LD_LIBRARY_PATH
10870 dynamic_linker=no
10872 esac
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10874 $as_echo "$dynamic_linker" >&6; }
10875 test "$dynamic_linker" = no && can_build_shared=no
10877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10878 if test "$GCC" = yes; then
10879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10882 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10883 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10885 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10886 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10982 hardcode_action=
10983 if test -n "$hardcode_libdir_flag_spec" ||
10984 test -n "$runpath_var" ||
10985 test "X$hardcode_automatic" = "Xyes" ; then
10987 # We can hardcode non-existent directories.
10988 if test "$hardcode_direct" != no &&
10989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10990 # have to relink, otherwise we might link with an installed library
10991 # when we should be linking with a yet-to-be-installed one
10992 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10993 test "$hardcode_minus_L" != no; then
10994 # Linking always hardcodes the temporary library directory.
10995 hardcode_action=relink
10996 else
10997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10998 hardcode_action=immediate
11000 else
11001 # We cannot hardcode anything, or else we can only hardcode existing
11002 # directories.
11003 hardcode_action=unsupported
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11006 $as_echo "$hardcode_action" >&6; }
11008 if test "$hardcode_action" = relink ||
11009 test "$inherit_rpath" = yes; then
11010 # Fast installation is not supported
11011 enable_fast_install=no
11012 elif test "$shlibpath_overrides_runpath" = yes ||
11013 test "$enable_shared" = no; then
11014 # Fast installation is not necessary
11015 enable_fast_install=needless
11023 if test "x$enable_dlopen" != xyes; then
11024 enable_dlopen=unknown
11025 enable_dlopen_self=unknown
11026 enable_dlopen_self_static=unknown
11027 else
11028 lt_cv_dlopen=no
11029 lt_cv_dlopen_libs=
11031 case $host_os in
11032 beos*)
11033 lt_cv_dlopen="load_add_on"
11034 lt_cv_dlopen_libs=
11035 lt_cv_dlopen_self=yes
11038 mingw* | pw32* | cegcc*)
11039 lt_cv_dlopen="LoadLibrary"
11040 lt_cv_dlopen_libs=
11043 cygwin*)
11044 lt_cv_dlopen="dlopen"
11045 lt_cv_dlopen_libs=
11048 darwin*)
11049 # if libdl is installed we need to link against it
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-ldl $LIBS"
11057 if test x$gcc_no_link = xyes; then
11058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char dlopen ();
11071 main ()
11073 return dlopen ();
11075 return 0;
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_dl_dlopen=yes
11080 else
11081 ac_cv_lib_dl_dlopen=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11088 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11089 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11091 else
11093 lt_cv_dlopen="dyld"
11094 lt_cv_dlopen_libs=
11095 lt_cv_dlopen_self=yes
11102 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11103 if test "x$ac_cv_func_shl_load" = x""yes; then :
11104 lt_cv_dlopen="shl_load"
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11107 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111 ac_check_lib_save_LIBS=$LIBS
11112 LIBS="-ldld $LIBS"
11113 if test x$gcc_no_link = xyes; then
11114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char shl_load ();
11127 main ()
11129 return shl_load ();
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_dld_shl_load=yes
11136 else
11137 ac_cv_lib_dld_shl_load=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11144 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11145 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11146 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11147 else
11148 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11149 if test "x$ac_cv_func_dlopen" = x""yes; then :
11150 lt_cv_dlopen="dlopen"
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11153 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 ac_check_lib_save_LIBS=$LIBS
11158 LIBS="-ldl $LIBS"
11159 if test x$gcc_no_link = xyes; then
11160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char dlopen ();
11173 main ()
11175 return dlopen ();
11177 return 0;
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_dl_dlopen=yes
11182 else
11183 ac_cv_lib_dl_dlopen=no
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11190 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11191 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11195 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11196 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-lsvld $LIBS"
11201 if test x$gcc_no_link = xyes; then
11202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char dlopen ();
11215 main ()
11217 return dlopen ();
11219 return 0;
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223 ac_cv_lib_svld_dlopen=yes
11224 else
11225 ac_cv_lib_svld_dlopen=no
11227 rm -f core conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11229 LIBS=$ac_check_lib_save_LIBS
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11232 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11233 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11237 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11238 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 ac_check_lib_save_LIBS=$LIBS
11242 LIBS="-ldld $LIBS"
11243 if test x$gcc_no_link = xyes; then
11244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char dld_link ();
11257 main ()
11259 return dld_link ();
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_lib_dld_dld_link=yes
11266 else
11267 ac_cv_lib_dld_dld_link=no
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11274 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11275 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11276 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11295 esac
11297 if test "x$lt_cv_dlopen" != xno; then
11298 enable_dlopen=yes
11299 else
11300 enable_dlopen=no
11303 case $lt_cv_dlopen in
11304 dlopen)
11305 save_CPPFLAGS="$CPPFLAGS"
11306 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11308 save_LDFLAGS="$LDFLAGS"
11309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11311 save_LIBS="$LIBS"
11312 LIBS="$lt_cv_dlopen_libs $LIBS"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11315 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11316 if test "${lt_cv_dlopen_self+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self=cross
11321 else
11322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11323 lt_status=$lt_dlunknown
11324 cat > conftest.$ac_ext <<_LT_EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11328 #if HAVE_DLFCN_H
11329 #include <dlfcn.h>
11330 #endif
11332 #include <stdio.h>
11334 #ifdef RTLD_GLOBAL
11335 # define LT_DLGLOBAL RTLD_GLOBAL
11336 #else
11337 # ifdef DL_GLOBAL
11338 # define LT_DLGLOBAL DL_GLOBAL
11339 # else
11340 # define LT_DLGLOBAL 0
11341 # endif
11342 #endif
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11347 # ifdef RTLD_LAZY
11348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11349 # else
11350 # ifdef DL_LAZY
11351 # define LT_DLLAZY_OR_NOW DL_LAZY
11352 # else
11353 # ifdef RTLD_NOW
11354 # define LT_DLLAZY_OR_NOW RTLD_NOW
11355 # else
11356 # ifdef DL_NOW
11357 # define LT_DLLAZY_OR_NOW DL_NOW
11358 # else
11359 # define LT_DLLAZY_OR_NOW 0
11360 # endif
11361 # endif
11362 # endif
11363 # endif
11364 #endif
11366 /* When -fvisbility=hidden is used, assume the code has been annotated
11367 correspondingly for the symbols needed. */
11368 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11369 void fnord () __attribute__((visibility("default")));
11370 #endif
11372 void fnord () { int i=42; }
11373 int main ()
11375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11376 int status = $lt_dlunknown;
11378 if (self)
11380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11381 else
11383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11384 else puts (dlerror ());
11386 /* dlclose (self); */
11388 else
11389 puts (dlerror ());
11391 return status;
11393 _LT_EOF
11394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11395 (eval $ac_link) 2>&5
11396 ac_status=$?
11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11399 (./conftest; exit; ) >&5 2>/dev/null
11400 lt_status=$?
11401 case x$lt_status in
11402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11405 esac
11406 else :
11407 # compilation failed
11408 lt_cv_dlopen_self=no
11411 rm -fr conftest*
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11416 $as_echo "$lt_cv_dlopen_self" >&6; }
11418 if test "x$lt_cv_dlopen_self" = xyes; then
11419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11421 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11422 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 if test "$cross_compiling" = yes; then :
11426 lt_cv_dlopen_self_static=cross
11427 else
11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11429 lt_status=$lt_dlunknown
11430 cat > conftest.$ac_ext <<_LT_EOF
11431 #line 11431 "configure"
11432 #include "confdefs.h"
11434 #if HAVE_DLFCN_H
11435 #include <dlfcn.h>
11436 #endif
11438 #include <stdio.h>
11440 #ifdef RTLD_GLOBAL
11441 # define LT_DLGLOBAL RTLD_GLOBAL
11442 #else
11443 # ifdef DL_GLOBAL
11444 # define LT_DLGLOBAL DL_GLOBAL
11445 # else
11446 # define LT_DLGLOBAL 0
11447 # endif
11448 #endif
11450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11451 find out it does not work in some platform. */
11452 #ifndef LT_DLLAZY_OR_NOW
11453 # ifdef RTLD_LAZY
11454 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11455 # else
11456 # ifdef DL_LAZY
11457 # define LT_DLLAZY_OR_NOW DL_LAZY
11458 # else
11459 # ifdef RTLD_NOW
11460 # define LT_DLLAZY_OR_NOW RTLD_NOW
11461 # else
11462 # ifdef DL_NOW
11463 # define LT_DLLAZY_OR_NOW DL_NOW
11464 # else
11465 # define LT_DLLAZY_OR_NOW 0
11466 # endif
11467 # endif
11468 # endif
11469 # endif
11470 #endif
11472 /* When -fvisbility=hidden is used, assume the code has been annotated
11473 correspondingly for the symbols needed. */
11474 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11475 void fnord () __attribute__((visibility("default")));
11476 #endif
11478 void fnord () { int i=42; }
11479 int main ()
11481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11482 int status = $lt_dlunknown;
11484 if (self)
11486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11487 else
11489 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11490 else puts (dlerror ());
11492 /* dlclose (self); */
11494 else
11495 puts (dlerror ());
11497 return status;
11499 _LT_EOF
11500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11501 (eval $ac_link) 2>&5
11502 ac_status=$?
11503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11505 (./conftest; exit; ) >&5 2>/dev/null
11506 lt_status=$?
11507 case x$lt_status in
11508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11510 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11511 esac
11512 else :
11513 # compilation failed
11514 lt_cv_dlopen_self_static=no
11517 rm -fr conftest*
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11522 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11525 CPPFLAGS="$save_CPPFLAGS"
11526 LDFLAGS="$save_LDFLAGS"
11527 LIBS="$save_LIBS"
11529 esac
11531 case $lt_cv_dlopen_self in
11532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11533 *) enable_dlopen_self=unknown ;;
11534 esac
11536 case $lt_cv_dlopen_self_static in
11537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11538 *) enable_dlopen_self_static=unknown ;;
11539 esac
11558 striplib=
11559 old_striplib=
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11561 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11562 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11563 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11564 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11567 else
11568 # FIXME - insert some real tests, host_os isn't really good enough
11569 case $host_os in
11570 darwin*)
11571 if test -n "$STRIP" ; then
11572 striplib="$STRIP -x"
11573 old_striplib="$STRIP -S"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11575 $as_echo "yes" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11585 esac
11599 # Report which library types will actually be built
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11601 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11603 $as_echo "$can_build_shared" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11606 $as_echo_n "checking whether to build shared libraries... " >&6; }
11607 test "$can_build_shared" = "no" && enable_shared=no
11609 # On AIX, shared libraries and static libraries use the same namespace, and
11610 # are all built from PIC.
11611 case $host_os in
11612 aix3*)
11613 test "$enable_shared" = yes && enable_static=no
11614 if test -n "$RANLIB"; then
11615 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11616 postinstall_cmds='$RANLIB $lib'
11620 aix[4-9]*)
11621 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11622 test "$enable_shared" = yes && enable_static=no
11625 esac
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11627 $as_echo "$enable_shared" >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11630 $as_echo_n "checking whether to build static libraries... " >&6; }
11631 # Make sure either enable_shared or enable_static is yes.
11632 test "$enable_shared" = yes || enable_static=yes
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11634 $as_echo "$enable_static" >&6; }
11640 ac_ext=c
11641 ac_cpp='$CPP $CPPFLAGS'
11642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646 CC="$lt_save_CC"
11648 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11649 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11650 (test "X$CXX" != "Xg++"))) ; then
11651 ac_ext=cpp
11652 ac_cpp='$CXXCPP $CPPFLAGS'
11653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11657 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11658 if test -z "$CXXCPP"; then
11659 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 # Double quotes because CXXCPP needs to be expanded
11663 for CXXCPP in "$CXX -E" "/lib/cpp"
11665 ac_preproc_ok=false
11666 for ac_cxx_preproc_warn_flag in '' yes
11668 # Use a header file that comes with gcc, so configuring glibc
11669 # with a fresh cross-compiler works.
11670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 # <limits.h> exists even on freestanding compilers.
11672 # On the NeXT, cc -E runs the code through the compiler's parser,
11673 # not just through cpp. "Syntax error" is here to catch this case.
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681 Syntax error
11682 _ACEOF
11683 if ac_fn_cxx_try_cpp "$LINENO"; then :
11685 else
11686 # Broken: fails on valid input.
11687 continue
11689 rm -f conftest.err conftest.$ac_ext
11691 # OK, works on sane cases. Now check whether nonexistent headers
11692 # can be detected and how.
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11695 #include <ac_nonexistent.h>
11696 _ACEOF
11697 if ac_fn_cxx_try_cpp "$LINENO"; then :
11698 # Broken: success on invalid input.
11699 continue
11700 else
11701 # Passes both tests.
11702 ac_preproc_ok=:
11703 break
11705 rm -f conftest.err conftest.$ac_ext
11707 done
11708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11709 rm -f conftest.err conftest.$ac_ext
11710 if $ac_preproc_ok; then :
11711 break
11714 done
11715 ac_cv_prog_CXXCPP=$CXXCPP
11718 CXXCPP=$ac_cv_prog_CXXCPP
11719 else
11720 ac_cv_prog_CXXCPP=$CXXCPP
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11723 $as_echo "$CXXCPP" >&6; }
11724 ac_preproc_ok=false
11725 for ac_cxx_preproc_warn_flag in '' yes
11727 # Use a header file that comes with gcc, so configuring glibc
11728 # with a fresh cross-compiler works.
11729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 # <limits.h> exists even on freestanding compilers.
11731 # On the NeXT, cc -E runs the code through the compiler's parser,
11732 # not just through cpp. "Syntax error" is here to catch this case.
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11735 #ifdef __STDC__
11736 # include <limits.h>
11737 #else
11738 # include <assert.h>
11739 #endif
11740 Syntax error
11741 _ACEOF
11742 if ac_fn_cxx_try_cpp "$LINENO"; then :
11744 else
11745 # Broken: fails on valid input.
11746 continue
11748 rm -f conftest.err conftest.$ac_ext
11750 # OK, works on sane cases. Now check whether nonexistent headers
11751 # can be detected and how.
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <ac_nonexistent.h>
11755 _ACEOF
11756 if ac_fn_cxx_try_cpp "$LINENO"; then :
11757 # Broken: success on invalid input.
11758 continue
11759 else
11760 # Passes both tests.
11761 ac_preproc_ok=:
11762 break
11764 rm -f conftest.err conftest.$ac_ext
11766 done
11767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11768 rm -f conftest.err conftest.$ac_ext
11769 if $ac_preproc_ok; then :
11771 else
11772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11774 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11775 See \`config.log' for more details." "$LINENO" 5; }
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784 else
11785 _lt_caught_CXX_error=yes
11788 ac_ext=cpp
11789 ac_cpp='$CXXCPP $CPPFLAGS'
11790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11794 archive_cmds_need_lc_CXX=no
11795 allow_undefined_flag_CXX=
11796 always_export_symbols_CXX=no
11797 archive_expsym_cmds_CXX=
11798 compiler_needs_object_CXX=no
11799 export_dynamic_flag_spec_CXX=
11800 hardcode_direct_CXX=no
11801 hardcode_direct_absolute_CXX=no
11802 hardcode_libdir_flag_spec_CXX=
11803 hardcode_libdir_flag_spec_ld_CXX=
11804 hardcode_libdir_separator_CXX=
11805 hardcode_minus_L_CXX=no
11806 hardcode_shlibpath_var_CXX=unsupported
11807 hardcode_automatic_CXX=no
11808 inherit_rpath_CXX=no
11809 module_cmds_CXX=
11810 module_expsym_cmds_CXX=
11811 link_all_deplibs_CXX=unknown
11812 old_archive_cmds_CXX=$old_archive_cmds
11813 reload_flag_CXX=$reload_flag
11814 reload_cmds_CXX=$reload_cmds
11815 no_undefined_flag_CXX=
11816 whole_archive_flag_spec_CXX=
11817 enable_shared_with_static_runtimes_CXX=no
11819 # Source file extension for C++ test sources.
11820 ac_ext=cpp
11822 # Object file extension for compiled C++ test sources.
11823 objext=o
11824 objext_CXX=$objext
11826 # No sense in running all these tests if we already determined that
11827 # the CXX compiler isn't working. Some variables (like enable_shared)
11828 # are currently assumed to apply to all compilers on this platform,
11829 # and will be corrupted by setting them based on a non-working compiler.
11830 if test "$_lt_caught_CXX_error" != yes; then
11831 # Code to be used in simple compile tests
11832 lt_simple_compile_test_code="int some_variable = 0;"
11834 # Code to be used in simple link tests
11835 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11844 # If no C compiler was specified, use CC.
11845 LTCC=${LTCC-"$CC"}
11847 # If no C compiler flags were specified, use CFLAGS.
11848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11850 # Allow CC to be a program name with arguments.
11851 compiler=$CC
11854 # save warnings/boilerplate of simple test code
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_compiler_boilerplate=`cat conftest.err`
11859 $RM conftest*
11861 ac_outfile=conftest.$ac_objext
11862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864 _lt_linker_boilerplate=`cat conftest.err`
11865 $RM -r conftest*
11868 # Allow CC to be a program name with arguments.
11869 lt_save_CC=$CC
11870 lt_save_LD=$LD
11871 lt_save_GCC=$GCC
11872 GCC=$GXX
11873 lt_save_with_gnu_ld=$with_gnu_ld
11874 lt_save_path_LD=$lt_cv_path_LD
11875 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11876 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11877 else
11878 $as_unset lt_cv_prog_gnu_ld
11880 if test -n "${lt_cv_path_LDCXX+set}"; then
11881 lt_cv_path_LD=$lt_cv_path_LDCXX
11882 else
11883 $as_unset lt_cv_path_LD
11885 test -z "${LDCXX+set}" || LD=$LDCXX
11886 CC=${CXX-"c++"}
11887 compiler=$CC
11888 compiler_CXX=$CC
11889 for cc_temp in $compiler""; do
11890 case $cc_temp in
11891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11893 \-*) ;;
11894 *) break;;
11895 esac
11896 done
11897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11900 if test -n "$compiler"; then
11901 # We don't want -fno-exception when compiling C++ code, so set the
11902 # no_builtin_flag separately
11903 if test "$GXX" = yes; then
11904 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11905 else
11906 lt_prog_compiler_no_builtin_flag_CXX=
11909 if test "$GXX" = yes; then
11910 # Set up default GNU C++ configuration
11914 # Check whether --with-gnu-ld was given.
11915 if test "${with_gnu_ld+set}" = set; then :
11916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11917 else
11918 with_gnu_ld=no
11921 ac_prog=ld
11922 if test "$GCC" = yes; then
11923 # Check if gcc -print-prog-name=ld gives a path.
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11925 $as_echo_n "checking for ld used by $CC... " >&6; }
11926 case $host in
11927 *-*-mingw*)
11928 # gcc leaves a trailing carriage return which upsets mingw
11929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11932 esac
11933 case $ac_prog in
11934 # Accept absolute paths.
11935 [\\/]* | ?:[\\/]*)
11936 re_direlt='/[^/][^/]*/\.\./'
11937 # Canonicalize the pathname of ld
11938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11941 done
11942 test -z "$LD" && LD="$ac_prog"
11945 # If it fails, then pretend we aren't using GCC.
11946 ac_prog=ld
11949 # If it is relative, then search for the first ld in PATH.
11950 with_gnu_ld=unknown
11952 esac
11953 elif test "$with_gnu_ld" = yes; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11955 $as_echo_n "checking for GNU ld... " >&6; }
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11958 $as_echo_n "checking for non-GNU ld... " >&6; }
11960 if test "${lt_cv_path_LD+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 if test -z "$LD"; then
11964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11965 for ac_dir in $PATH; do
11966 IFS="$lt_save_ifs"
11967 test -z "$ac_dir" && ac_dir=.
11968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11969 lt_cv_path_LD="$ac_dir/$ac_prog"
11970 # Check to see if the program is GNU ld. I'd rather use --version,
11971 # but apparently some variants of GNU ld only accept -v.
11972 # Break only if it was the GNU/non-GNU ld that we prefer.
11973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11974 *GNU* | *'with BFD'*)
11975 test "$with_gnu_ld" != no && break
11978 test "$with_gnu_ld" != yes && break
11980 esac
11982 done
11983 IFS="$lt_save_ifs"
11984 else
11985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11989 LD="$lt_cv_path_LD"
11990 if test -n "$LD"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11992 $as_echo "$LD" >&6; }
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11997 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12000 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12004 case `$LD -v 2>&1 </dev/null` in
12005 *GNU* | *'with BFD'*)
12006 lt_cv_prog_gnu_ld=yes
12009 lt_cv_prog_gnu_ld=no
12011 esac
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12015 with_gnu_ld=$lt_cv_prog_gnu_ld
12023 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12024 # archiving commands below assume that GNU ld is being used.
12025 if test "$with_gnu_ld" = yes; then
12026 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12027 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12032 # If archive_cmds runs LD, not CC, wlarc should be empty
12033 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12034 # investigate it a little bit more. (MM)
12035 wlarc='${wl}'
12037 # ancient GNU ld didn't support --whole-archive et. al.
12038 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12039 $GREP 'no-whole-archive' > /dev/null; then
12040 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12041 else
12042 whole_archive_flag_spec_CXX=
12044 else
12045 with_gnu_ld=no
12046 wlarc=
12048 # A generic and very simple default shared library creation
12049 # command for GNU C++ for the case where it uses the native
12050 # linker, instead of GNU ld. If possible, this setting should
12051 # overridden to take advantage of the native linker features on
12052 # the platform it is being used on.
12053 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12056 # Commands to make compiler produce verbose output that lists
12057 # what "hidden" libraries, object files and flags are used when
12058 # linking a shared library.
12059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12061 else
12062 GXX=no
12063 with_gnu_ld=no
12064 wlarc=
12067 # PORTME: fill in a description of your system's C++ link characteristics
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12069 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12070 ld_shlibs_CXX=yes
12071 case $host_os in
12072 aix3*)
12073 # FIXME: insert proper C++ library support
12074 ld_shlibs_CXX=no
12076 aix[4-9]*)
12077 if test "$host_cpu" = ia64; then
12078 # On IA64, the linker does run time linking by default, so we don't
12079 # have to do anything special.
12080 aix_use_runtimelinking=no
12081 exp_sym_flag='-Bexport'
12082 no_entry_flag=""
12083 else
12084 aix_use_runtimelinking=no
12086 # Test if we are trying to use run time linking or normal
12087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12088 # need to do runtime linking.
12089 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12090 for ld_flag in $LDFLAGS; do
12091 case $ld_flag in
12092 *-brtl*)
12093 aix_use_runtimelinking=yes
12094 break
12096 esac
12097 done
12099 esac
12101 exp_sym_flag='-bexport'
12102 no_entry_flag='-bnoentry'
12105 # When large executables or shared objects are built, AIX ld can
12106 # have problems creating the table of contents. If linking a library
12107 # or program results in "error TOC overflow" add -mminimal-toc to
12108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12111 archive_cmds_CXX=''
12112 hardcode_direct_CXX=yes
12113 hardcode_direct_absolute_CXX=yes
12114 hardcode_libdir_separator_CXX=':'
12115 link_all_deplibs_CXX=yes
12116 file_list_spec_CXX='${wl}-f,'
12118 if test "$GXX" = yes; then
12119 case $host_os in aix4.[012]|aix4.[012].*)
12120 # We only want to do this on AIX 4.2 and lower, the check
12121 # below for broken collect2 doesn't work under 4.3+
12122 collect2name=`${CC} -print-prog-name=collect2`
12123 if test -f "$collect2name" &&
12124 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12125 then
12126 # We have reworked collect2
12128 else
12129 # We have old collect2
12130 hardcode_direct_CXX=unsupported
12131 # It fails to find uninstalled libraries when the uninstalled
12132 # path is not listed in the libpath. Setting hardcode_minus_L
12133 # to unsupported forces relinking
12134 hardcode_minus_L_CXX=yes
12135 hardcode_libdir_flag_spec_CXX='-L$libdir'
12136 hardcode_libdir_separator_CXX=
12138 esac
12139 shared_flag='-shared'
12140 if test "$aix_use_runtimelinking" = yes; then
12141 shared_flag="$shared_flag "'${wl}-G'
12143 else
12144 # not using gcc
12145 if test "$host_cpu" = ia64; then
12146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12147 # chokes on -Wl,-G. The following line is correct:
12148 shared_flag='-G'
12149 else
12150 if test "$aix_use_runtimelinking" = yes; then
12151 shared_flag='${wl}-G'
12152 else
12153 shared_flag='${wl}-bM:SRE'
12158 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12159 # It seems that -bexpall does not export symbols beginning with
12160 # underscore (_), so it is better to generate a list of symbols to
12161 # export.
12162 always_export_symbols_CXX=yes
12163 if test "$aix_use_runtimelinking" = yes; then
12164 # Warning - without using the other runtime loading flags (-brtl),
12165 # -berok will link without error, but may produce a broken library.
12166 allow_undefined_flag_CXX='-berok'
12167 # Determine the default libpath from the value encoded in an empty
12168 # executable.
12169 if test x$gcc_no_link = xyes; then
12170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12176 main ()
12180 return 0;
12182 _ACEOF
12183 if ac_fn_cxx_try_link "$LINENO"; then :
12185 lt_aix_libpath_sed='
12186 /Import File Strings/,/^$/ {
12187 /^0/ {
12188 s/^0 *\(.*\)$/\1/
12192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12193 # Check for a 64-bit object if we didn't find anything.
12194 if test -z "$aix_libpath"; then
12195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12202 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12204 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"
12205 else
12206 if test "$host_cpu" = ia64; then
12207 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12208 allow_undefined_flag_CXX="-z nodefs"
12209 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"
12210 else
12211 # Determine the default libpath from the value encoded in an
12212 # empty executable.
12213 if test x$gcc_no_link = xyes; then
12214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12220 main ()
12224 return 0;
12226 _ACEOF
12227 if ac_fn_cxx_try_link "$LINENO"; then :
12229 lt_aix_libpath_sed='
12230 /Import File Strings/,/^$/ {
12231 /^0/ {
12232 s/^0 *\(.*\)$/\1/
12236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12237 # Check for a 64-bit object if we didn't find anything.
12238 if test -z "$aix_libpath"; then
12239 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12246 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12247 # Warning - without using the other run time loading flags,
12248 # -berok will link without error, but may produce a broken library.
12249 no_undefined_flag_CXX=' ${wl}-bernotok'
12250 allow_undefined_flag_CXX=' ${wl}-berok'
12251 if test "$with_gnu_ld" = yes; then
12252 # We only use this code for GNU lds that support --whole-archive.
12253 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12254 else
12255 # Exported symbols can be pulled into shared objects from archives
12256 whole_archive_flag_spec_CXX='$convenience'
12258 archive_cmds_need_lc_CXX=yes
12259 # This is similar to how AIX traditionally builds its shared
12260 # libraries.
12261 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'
12266 beos*)
12267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12268 allow_undefined_flag_CXX=unsupported
12269 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12270 # support --undefined. This deserves some investigation. FIXME
12271 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 else
12273 ld_shlibs_CXX=no
12277 chorus*)
12278 case $cc_basename in
12280 # FIXME: insert proper C++ library support
12281 ld_shlibs_CXX=no
12283 esac
12286 cygwin* | mingw* | pw32* | cegcc*)
12287 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12288 # as there is no search path for DLLs.
12289 hardcode_libdir_flag_spec_CXX='-L$libdir'
12290 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12291 allow_undefined_flag_CXX=unsupported
12292 always_export_symbols_CXX=no
12293 enable_shared_with_static_runtimes_CXX=yes
12295 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12296 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'
12297 # If the export-symbols file already is a .def file (1st line
12298 # is EXPORTS), use it as is; otherwise, prepend...
12299 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12300 cp $export_symbols $output_objdir/$soname.def;
12301 else
12302 echo EXPORTS > $output_objdir/$soname.def;
12303 cat $export_symbols >> $output_objdir/$soname.def;
12305 $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'
12306 else
12307 ld_shlibs_CXX=no
12310 darwin* | rhapsody*)
12313 archive_cmds_need_lc_CXX=no
12314 hardcode_direct_CXX=no
12315 hardcode_automatic_CXX=yes
12316 hardcode_shlibpath_var_CXX=unsupported
12317 if test "$lt_cv_ld_force_load" = "yes"; then
12318 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\"`'
12319 else
12320 whole_archive_flag_spec_CXX=''
12322 link_all_deplibs_CXX=yes
12323 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12324 case $cc_basename in
12325 ifort*) _lt_dar_can_shared=yes ;;
12326 *) _lt_dar_can_shared=$GCC ;;
12327 esac
12328 if test "$_lt_dar_can_shared" = "yes"; then
12329 output_verbose_link_cmd=func_echo_all
12330 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}"
12331 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12332 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}"
12333 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}"
12334 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12335 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}"
12336 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}"
12339 else
12340 ld_shlibs_CXX=no
12345 dgux*)
12346 case $cc_basename in
12347 ec++*)
12348 # FIXME: insert proper C++ library support
12349 ld_shlibs_CXX=no
12351 ghcx*)
12352 # Green Hills C++ Compiler
12353 # FIXME: insert proper C++ library support
12354 ld_shlibs_CXX=no
12357 # FIXME: insert proper C++ library support
12358 ld_shlibs_CXX=no
12360 esac
12363 freebsd2.*)
12364 # C++ shared libraries reported to be fairly broken before
12365 # switch to ELF
12366 ld_shlibs_CXX=no
12369 freebsd-elf*)
12370 archive_cmds_need_lc_CXX=no
12373 freebsd* | dragonfly*)
12374 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12375 # conventions
12376 ld_shlibs_CXX=yes
12379 gnu*)
12382 haiku*)
12383 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 link_all_deplibs_CXX=yes
12387 hpux9*)
12388 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12389 hardcode_libdir_separator_CXX=:
12390 export_dynamic_flag_spec_CXX='${wl}-E'
12391 hardcode_direct_CXX=yes
12392 hardcode_minus_L_CXX=yes # Not in the search PATH,
12393 # but as the default
12394 # location of the library.
12396 case $cc_basename in
12397 CC*)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12401 aCC*)
12402 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'
12403 # Commands to make compiler produce verbose output that lists
12404 # what "hidden" libraries, object files and flags are used when
12405 # linking a shared library.
12407 # There doesn't appear to be a way to prevent this compiler from
12408 # explicitly linking system object files so we need to strip them
12409 # from the output so that they don't get included in the library
12410 # dependencies.
12411 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"'
12414 if test "$GXX" = yes; then
12415 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'
12416 else
12417 # FIXME: insert proper C++ library support
12418 ld_shlibs_CXX=no
12421 esac
12424 hpux10*|hpux11*)
12425 if test $with_gnu_ld = no; then
12426 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12427 hardcode_libdir_separator_CXX=:
12429 case $host_cpu in
12430 hppa*64*|ia64*)
12433 export_dynamic_flag_spec_CXX='${wl}-E'
12435 esac
12437 case $host_cpu in
12438 hppa*64*|ia64*)
12439 hardcode_direct_CXX=no
12440 hardcode_shlibpath_var_CXX=no
12443 hardcode_direct_CXX=yes
12444 hardcode_direct_absolute_CXX=yes
12445 hardcode_minus_L_CXX=yes # Not in the search PATH,
12446 # but as the default
12447 # location of the library.
12449 esac
12451 case $cc_basename in
12452 CC*)
12453 # FIXME: insert proper C++ library support
12454 ld_shlibs_CXX=no
12456 aCC*)
12457 case $host_cpu in
12458 hppa*64*)
12459 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12461 ia64*)
12462 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12465 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12467 esac
12468 # Commands to make compiler produce verbose output that lists
12469 # what "hidden" libraries, object files and flags are used when
12470 # linking a shared library.
12472 # There doesn't appear to be a way to prevent this compiler from
12473 # explicitly linking system object files so we need to strip them
12474 # from the output so that they don't get included in the library
12475 # dependencies.
12476 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"'
12479 if test "$GXX" = yes; then
12480 if test $with_gnu_ld = no; then
12481 case $host_cpu in
12482 hppa*64*)
12483 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12485 ia64*)
12486 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12489 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'
12491 esac
12493 else
12494 # FIXME: insert proper C++ library support
12495 ld_shlibs_CXX=no
12498 esac
12501 interix[3-9]*)
12502 hardcode_direct_CXX=no
12503 hardcode_shlibpath_var_CXX=no
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12505 export_dynamic_flag_spec_CXX='${wl}-E'
12506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12507 # Instead, shared libraries are loaded at an image base (0x10000000 by
12508 # default) and relocated if they conflict, which is a slow very memory
12509 # consuming and fragmenting process. To avoid this, we pick a random,
12510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12512 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'
12513 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'
12515 irix5* | irix6*)
12516 case $cc_basename in
12517 CC*)
12518 # SGI C++
12519 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'
12521 # Archives containing C++ object files must be created using
12522 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12523 # necessary to make sure instantiated templates are included
12524 # in the archive.
12525 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12528 if test "$GXX" = yes; then
12529 if test "$with_gnu_ld" = no; then
12530 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'
12531 else
12532 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'
12535 link_all_deplibs_CXX=yes
12537 esac
12538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12539 hardcode_libdir_separator_CXX=:
12540 inherit_rpath_CXX=yes
12543 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12544 case $cc_basename in
12545 KCC*)
12546 # Kuck and Associates, Inc. (KAI) C++ Compiler
12548 # KCC will only create a shared library if the output file
12549 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12550 # to its proper name (with version) after linking.
12551 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'
12552 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'
12553 # Commands to make compiler produce verbose output that lists
12554 # what "hidden" libraries, object files and flags are used when
12555 # linking a shared library.
12557 # There doesn't appear to be a way to prevent this compiler from
12558 # explicitly linking system object files so we need to strip them
12559 # from the output so that they don't get included in the library
12560 # dependencies.
12561 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"'
12563 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12566 # Archives containing C++ object files must be created using
12567 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12568 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12570 icpc* | ecpc* )
12571 # Intel C++
12572 with_gnu_ld=yes
12573 # version 8.0 and above of icpc choke on multiply defined symbols
12574 # if we add $predep_objects and $postdep_objects, however 7.1 and
12575 # earlier do not add the objects themselves.
12576 case `$CC -V 2>&1` in
12577 *"Version 7."*)
12578 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12579 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'
12581 *) # Version 8.0 or newer
12582 tmp_idyn=
12583 case $host_cpu in
12584 ia64*) tmp_idyn=' -i_dynamic';;
12585 esac
12586 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587 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'
12589 esac
12590 archive_cmds_need_lc_CXX=no
12591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12593 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12595 pgCC* | pgcpp*)
12596 # Portland Group C++ compiler
12597 case `$CC -V` in
12598 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12599 prelink_cmds_CXX='tpldir=Template.dir~
12600 rm -rf $tpldir~
12601 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12602 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12603 old_archive_cmds_CXX='tpldir=Template.dir~
12604 rm -rf $tpldir~
12605 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12606 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12607 $RANLIB $oldlib'
12608 archive_cmds_CXX='tpldir=Template.dir~
12609 rm -rf $tpldir~
12610 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12611 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12612 archive_expsym_cmds_CXX='tpldir=Template.dir~
12613 rm -rf $tpldir~
12614 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12615 $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'
12617 *) # Version 6 and above use weak symbols
12618 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12619 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'
12621 esac
12623 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12625 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'
12627 cxx*)
12628 # Compaq C++
12629 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 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'
12632 runpath_var=LD_RUN_PATH
12633 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12634 hardcode_libdir_separator_CXX=:
12636 # Commands to make compiler produce verbose output that lists
12637 # what "hidden" libraries, object files and flags are used when
12638 # linking a shared library.
12640 # There doesn't appear to be a way to prevent this compiler from
12641 # explicitly linking system object files so we need to strip them
12642 # from the output so that they don't get included in the library
12643 # dependencies.
12644 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'
12646 xl* | mpixl* | bgxl*)
12647 # IBM XL 8.0 on PPC, with GNU ld
12648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12650 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651 if test "x$supports_anon_versioning" = xyes; then
12652 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12654 echo "local: *; };" >> $output_objdir/$libname.ver~
12655 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12659 case `$CC -V 2>&1 | sed 5q` in
12660 *Sun\ C*)
12661 # Sun C++ 5.9
12662 no_undefined_flag_CXX=' -zdefs'
12663 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12664 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'
12665 hardcode_libdir_flag_spec_CXX='-R$libdir'
12666 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'
12667 compiler_needs_object_CXX=yes
12669 # Not sure whether something based on
12670 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12671 # would be better.
12672 output_verbose_link_cmd='func_echo_all'
12674 # Archives containing C++ object files must be created using
12675 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12676 # necessary to make sure instantiated templates are included
12677 # in the archive.
12678 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12680 esac
12682 esac
12685 lynxos*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12690 m88k*)
12691 # FIXME: insert proper C++ library support
12692 ld_shlibs_CXX=no
12695 mvs*)
12696 case $cc_basename in
12697 cxx*)
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12702 # FIXME: insert proper C++ library support
12703 ld_shlibs_CXX=no
12705 esac
12708 netbsd*)
12709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12710 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12711 wlarc=
12712 hardcode_libdir_flag_spec_CXX='-R$libdir'
12713 hardcode_direct_CXX=yes
12714 hardcode_shlibpath_var_CXX=no
12716 # Workaround some broken pre-1.5 toolchains
12717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12720 *nto* | *qnx*)
12721 ld_shlibs_CXX=yes
12724 openbsd2*)
12725 # C++ shared libraries are fairly broken
12726 ld_shlibs_CXX=no
12729 openbsd*)
12730 if test -f /usr/libexec/ld.so; then
12731 hardcode_direct_CXX=yes
12732 hardcode_shlibpath_var_CXX=no
12733 hardcode_direct_absolute_CXX=yes
12734 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12737 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12738 export_dynamic_flag_spec_CXX='${wl}-E'
12739 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12741 output_verbose_link_cmd=func_echo_all
12742 else
12743 ld_shlibs_CXX=no
12747 osf3* | osf4* | osf5*)
12748 case $cc_basename in
12749 KCC*)
12750 # Kuck and Associates, Inc. (KAI) C++ Compiler
12752 # KCC will only create a shared library if the output file
12753 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12754 # to its proper name (with version) after linking.
12755 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'
12757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12758 hardcode_libdir_separator_CXX=:
12760 # Archives containing C++ object files must be created using
12761 # the KAI C++ compiler.
12762 case $host in
12763 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12764 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12765 esac
12767 RCC*)
12768 # Rational C++ 2.4.1
12769 # FIXME: insert proper C++ library support
12770 ld_shlibs_CXX=no
12772 cxx*)
12773 case $host in
12774 osf3*)
12775 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12776 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'
12777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12780 allow_undefined_flag_CXX=' -expect_unresolved \*'
12781 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'
12782 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12783 echo "-hidden">> $lib.exp~
12784 $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~
12785 $RM $lib.exp'
12786 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12788 esac
12790 hardcode_libdir_separator_CXX=:
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12796 # There doesn't appear to be a way to prevent this compiler from
12797 # explicitly linking system object files so we need to strip them
12798 # from the output so that they don't get included in the library
12799 # dependencies.
12800 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"'
12803 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12804 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12805 case $host in
12806 osf3*)
12807 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'
12810 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'
12812 esac
12814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12817 # Commands to make compiler produce verbose output that lists
12818 # what "hidden" libraries, object files and flags are used when
12819 # linking a shared library.
12820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12822 else
12823 # FIXME: insert proper C++ library support
12824 ld_shlibs_CXX=no
12827 esac
12830 psos*)
12831 # FIXME: insert proper C++ library support
12832 ld_shlibs_CXX=no
12835 sunos4*)
12836 case $cc_basename in
12837 CC*)
12838 # Sun C++ 4.x
12839 # FIXME: insert proper C++ library support
12840 ld_shlibs_CXX=no
12842 lcc*)
12843 # Lucid
12844 # FIXME: insert proper C++ library support
12845 ld_shlibs_CXX=no
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12851 esac
12854 solaris*)
12855 case $cc_basename in
12856 CC*)
12857 # Sun C++ 4.2, 5.x and Centerline C++
12858 archive_cmds_need_lc_CXX=yes
12859 no_undefined_flag_CXX=' -zdefs'
12860 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12861 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12862 $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'
12864 hardcode_libdir_flag_spec_CXX='-R$libdir'
12865 hardcode_shlibpath_var_CXX=no
12866 case $host_os in
12867 solaris2.[0-5] | solaris2.[0-5].*) ;;
12869 # The compiler driver will combine and reorder linker options,
12870 # but understands `-z linker_flag'.
12871 # Supported since Solaris 2.6 (maybe 2.5.1?)
12872 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12874 esac
12875 link_all_deplibs_CXX=yes
12877 output_verbose_link_cmd='func_echo_all'
12879 # Archives containing C++ object files must be created using
12880 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12881 # necessary to make sure instantiated templates are included
12882 # in the archive.
12883 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12885 gcx*)
12886 # Green Hills C++ Compiler
12887 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12889 # The C++ compiler must be used to create the archive.
12890 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12893 # GNU C++ compiler with Solaris linker
12894 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12895 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12896 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12897 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12898 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12899 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12901 # Commands to make compiler produce verbose output that lists
12902 # what "hidden" libraries, object files and flags are used when
12903 # linking a shared library.
12904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12905 else
12906 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12907 # platform.
12908 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12909 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12910 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12912 # Commands to make compiler produce verbose output that lists
12913 # what "hidden" libraries, object files and flags are used when
12914 # linking a shared library.
12915 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12918 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12919 case $host_os in
12920 solaris2.[0-5] | solaris2.[0-5].*) ;;
12922 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12924 esac
12927 esac
12930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12931 no_undefined_flag_CXX='${wl}-z,text'
12932 archive_cmds_need_lc_CXX=no
12933 hardcode_shlibpath_var_CXX=no
12934 runpath_var='LD_RUN_PATH'
12936 case $cc_basename in
12937 CC*)
12938 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12939 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 esac
12948 sysv5* | sco3.2v5* | sco5v6*)
12949 # Note: We can NOT use -z defs as we might desire, because we do not
12950 # link with -lc, and that would cause any symbols used from libc to
12951 # always be unresolved, which means just about no library would
12952 # ever link correctly. If we're not using GNU ld we use -z text
12953 # though, which does catch some bad symbols but isn't as heavy-handed
12954 # as -z defs.
12955 no_undefined_flag_CXX='${wl}-z,text'
12956 allow_undefined_flag_CXX='${wl}-z,nodefs'
12957 archive_cmds_need_lc_CXX=no
12958 hardcode_shlibpath_var_CXX=no
12959 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12960 hardcode_libdir_separator_CXX=':'
12961 link_all_deplibs_CXX=yes
12962 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12963 runpath_var='LD_RUN_PATH'
12965 case $cc_basename in
12966 CC*)
12967 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12969 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12970 '"$old_archive_cmds_CXX"
12971 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12972 '"$reload_cmds_CXX"
12975 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12976 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12978 esac
12981 tandem*)
12982 case $cc_basename in
12983 NCC*)
12984 # NonStop-UX NCC 3.20
12985 # FIXME: insert proper C++ library support
12986 ld_shlibs_CXX=no
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
12992 esac
12995 vxworks*)
12996 # FIXME: insert proper C++ library support
12997 ld_shlibs_CXX=no
13001 # FIXME: insert proper C++ library support
13002 ld_shlibs_CXX=no
13004 esac
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13007 $as_echo "$ld_shlibs_CXX" >&6; }
13008 test "$ld_shlibs_CXX" = no && can_build_shared=no
13010 GCC_CXX="$GXX"
13011 LD_CXX="$LD"
13013 ## CAVEAT EMPTOR:
13014 ## There is no encapsulation within the following macros, do not change
13015 ## the running order or otherwise move them around unless you know exactly
13016 ## what you are doing...
13017 # Dependencies to place before and after the object being linked:
13018 predep_objects_CXX=
13019 postdep_objects_CXX=
13020 predeps_CXX=
13021 postdeps_CXX=
13022 compiler_lib_search_path_CXX=
13024 cat > conftest.$ac_ext <<_LT_EOF
13025 class Foo
13027 public:
13028 Foo (void) { a = 0; }
13029 private:
13030 int a;
13032 _LT_EOF
13034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13035 (eval $ac_compile) 2>&5
13036 ac_status=$?
13037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038 test $ac_status = 0; }; then
13039 # Parse the compiler output and extract the necessary
13040 # objects, libraries and library flags.
13042 # Sentinel used to keep track of whether or not we are before
13043 # the conftest object file.
13044 pre_test_object_deps_done=no
13046 for p in `eval "$output_verbose_link_cmd"`; do
13047 case $p in
13049 -L* | -R* | -l*)
13050 # Some compilers place space between "-{L,R}" and the path.
13051 # Remove the space.
13052 if test $p = "-L" ||
13053 test $p = "-R"; then
13054 prev=$p
13055 continue
13056 else
13057 prev=
13060 if test "$pre_test_object_deps_done" = no; then
13061 case $p in
13062 -L* | -R*)
13063 # Internal compiler library paths should come after those
13064 # provided the user. The postdeps already come after the
13065 # user supplied libs so there is no need to process them.
13066 if test -z "$compiler_lib_search_path_CXX"; then
13067 compiler_lib_search_path_CXX="${prev}${p}"
13068 else
13069 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13072 # The "-l" case would never come before the object being
13073 # linked, so don't bother handling this case.
13074 esac
13075 else
13076 if test -z "$postdeps_CXX"; then
13077 postdeps_CXX="${prev}${p}"
13078 else
13079 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13084 *.$objext)
13085 # This assumes that the test object file only shows up
13086 # once in the compiler output.
13087 if test "$p" = "conftest.$objext"; then
13088 pre_test_object_deps_done=yes
13089 continue
13092 if test "$pre_test_object_deps_done" = no; then
13093 if test -z "$predep_objects_CXX"; then
13094 predep_objects_CXX="$p"
13095 else
13096 predep_objects_CXX="$predep_objects_CXX $p"
13098 else
13099 if test -z "$postdep_objects_CXX"; then
13100 postdep_objects_CXX="$p"
13101 else
13102 postdep_objects_CXX="$postdep_objects_CXX $p"
13107 *) ;; # Ignore the rest.
13109 esac
13110 done
13112 # Clean up.
13113 rm -f a.out a.exe
13114 else
13115 echo "libtool.m4: error: problem compiling CXX test program"
13118 $RM -f confest.$objext
13120 # PORTME: override above test on systems where it is broken
13121 case $host_os in
13122 interix[3-9]*)
13123 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13124 # hack all around it, let's just trust "g++" to DTRT.
13125 predep_objects_CXX=
13126 postdep_objects_CXX=
13127 postdeps_CXX=
13130 linux*)
13131 case `$CC -V 2>&1 | sed 5q` in
13132 *Sun\ C*)
13133 # Sun C++ 5.9
13135 # The more standards-conforming stlport4 library is
13136 # incompatible with the Cstd library. Avoid specifying
13137 # it if it's in CXXFLAGS. Ignore libCrun as
13138 # -library=stlport4 depends on it.
13139 case " $CXX $CXXFLAGS " in
13140 *" -library=stlport4 "*)
13141 solaris_use_stlport4=yes
13143 esac
13145 if test "$solaris_use_stlport4" != yes; then
13146 postdeps_CXX='-library=Cstd -library=Crun'
13149 esac
13152 solaris*)
13153 case $cc_basename in
13154 CC*)
13155 # The more standards-conforming stlport4 library is
13156 # incompatible with the Cstd library. Avoid specifying
13157 # it if it's in CXXFLAGS. Ignore libCrun as
13158 # -library=stlport4 depends on it.
13159 case " $CXX $CXXFLAGS " in
13160 *" -library=stlport4 "*)
13161 solaris_use_stlport4=yes
13163 esac
13165 # Adding this requires a known-good setup of shared libraries for
13166 # Sun compiler versions before 5.6, else PIC objects from an old
13167 # archive will be linked into the output, leading to subtle bugs.
13168 if test "$solaris_use_stlport4" != yes; then
13169 postdeps_CXX='-library=Cstd -library=Crun'
13172 esac
13174 esac
13177 case " $postdeps_CXX " in
13178 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13179 esac
13180 compiler_lib_search_dirs_CXX=
13181 if test -n "${compiler_lib_search_path_CXX}"; then
13182 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13215 lt_prog_compiler_wl_CXX=
13216 lt_prog_compiler_pic_CXX=
13217 lt_prog_compiler_static_CXX=
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13220 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13222 # C++ specific cases for pic, static, wl, etc.
13223 if test "$GXX" = yes; then
13224 lt_prog_compiler_wl_CXX='-Wl,'
13225 lt_prog_compiler_static_CXX='-static'
13227 case $host_os in
13228 aix*)
13229 # All AIX code is PIC.
13230 if test "$host_cpu" = ia64; then
13231 # AIX 5 now supports IA64 processor
13232 lt_prog_compiler_static_CXX='-Bstatic'
13234 lt_prog_compiler_pic_CXX='-fPIC'
13237 amigaos*)
13238 case $host_cpu in
13239 powerpc)
13240 # see comment about AmigaOS4 .so support
13241 lt_prog_compiler_pic_CXX='-fPIC'
13243 m68k)
13244 # FIXME: we need at least 68020 code to build shared libraries, but
13245 # adding the `-m68020' flag to GCC prevents building anything better,
13246 # like `-m68040'.
13247 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13249 esac
13252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13253 # PIC is the default for these OSes.
13255 mingw* | cygwin* | os2* | pw32* | cegcc*)
13256 # This hack is so that the source file can tell whether it is being
13257 # built for inclusion in a dll (and should export symbols for example).
13258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13259 # (--disable-auto-import) libraries
13260 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13262 darwin* | rhapsody*)
13263 # PIC is the default on this platform
13264 # Common symbols not allowed in MH_DYLIB files
13265 lt_prog_compiler_pic_CXX='-fno-common'
13267 *djgpp*)
13268 # DJGPP does not support shared libraries at all
13269 lt_prog_compiler_pic_CXX=
13271 haiku*)
13272 # PIC is the default for Haiku.
13273 # The "-static" flag exists, but is broken.
13274 lt_prog_compiler_static_CXX=
13276 interix[3-9]*)
13277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13278 # Instead, we relocate shared libraries at runtime.
13280 sysv4*MP*)
13281 if test -d /usr/nec; then
13282 lt_prog_compiler_pic_CXX=-Kconform_pic
13285 hpux*)
13286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13288 # sets the default TLS model and affects inlining.
13289 case $host_cpu in
13290 hppa*64*)
13293 lt_prog_compiler_pic_CXX='-fPIC'
13295 esac
13297 *qnx* | *nto*)
13298 # QNX uses GNU C++, but need to define -shared option too, otherwise
13299 # it will coredump.
13300 lt_prog_compiler_pic_CXX='-fPIC -shared'
13303 lt_prog_compiler_pic_CXX='-fPIC'
13305 esac
13306 else
13307 case $host_os in
13308 aix[4-9]*)
13309 # All AIX code is PIC.
13310 if test "$host_cpu" = ia64; then
13311 # AIX 5 now supports IA64 processor
13312 lt_prog_compiler_static_CXX='-Bstatic'
13313 else
13314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13317 chorus*)
13318 case $cc_basename in
13319 cxch68*)
13320 # Green Hills C++ Compiler
13321 # _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"
13323 esac
13325 dgux*)
13326 case $cc_basename in
13327 ec++*)
13328 lt_prog_compiler_pic_CXX='-KPIC'
13330 ghcx*)
13331 # Green Hills C++ Compiler
13332 lt_prog_compiler_pic_CXX='-pic'
13336 esac
13338 freebsd* | dragonfly*)
13339 # FreeBSD uses GNU C++
13341 hpux9* | hpux10* | hpux11*)
13342 case $cc_basename in
13343 CC*)
13344 lt_prog_compiler_wl_CXX='-Wl,'
13345 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13346 if test "$host_cpu" != ia64; then
13347 lt_prog_compiler_pic_CXX='+Z'
13350 aCC*)
13351 lt_prog_compiler_wl_CXX='-Wl,'
13352 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13353 case $host_cpu in
13354 hppa*64*|ia64*)
13355 # +Z the default
13358 lt_prog_compiler_pic_CXX='+Z'
13360 esac
13364 esac
13366 interix*)
13367 # This is c89, which is MS Visual C++ (no shared libs)
13368 # Anyone wants to do a port?
13370 irix5* | irix6* | nonstopux*)
13371 case $cc_basename in
13372 CC*)
13373 lt_prog_compiler_wl_CXX='-Wl,'
13374 lt_prog_compiler_static_CXX='-non_shared'
13375 # CC pic flag -KPIC is the default.
13379 esac
13381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13382 case $cc_basename in
13383 KCC*)
13384 # KAI C++ Compiler
13385 lt_prog_compiler_wl_CXX='--backend -Wl,'
13386 lt_prog_compiler_pic_CXX='-fPIC'
13388 ecpc* )
13389 # old Intel C++ for x86_64 which still supported -KPIC.
13390 lt_prog_compiler_wl_CXX='-Wl,'
13391 lt_prog_compiler_pic_CXX='-KPIC'
13392 lt_prog_compiler_static_CXX='-static'
13394 icpc* )
13395 # Intel C++, used to be incompatible with GCC.
13396 # ICC 10 doesn't accept -KPIC any more.
13397 lt_prog_compiler_wl_CXX='-Wl,'
13398 lt_prog_compiler_pic_CXX='-fPIC'
13399 lt_prog_compiler_static_CXX='-static'
13401 pgCC* | pgcpp*)
13402 # Portland Group C++ compiler
13403 lt_prog_compiler_wl_CXX='-Wl,'
13404 lt_prog_compiler_pic_CXX='-fpic'
13405 lt_prog_compiler_static_CXX='-Bstatic'
13407 cxx*)
13408 # Compaq C++
13409 # Make sure the PIC flag is empty. It appears that all Alpha
13410 # Linux and Compaq Tru64 Unix objects are PIC.
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_static_CXX='-non_shared'
13414 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13415 # IBM XL 8.0, 9.0 on PPC and BlueGene
13416 lt_prog_compiler_wl_CXX='-Wl,'
13417 lt_prog_compiler_pic_CXX='-qpic'
13418 lt_prog_compiler_static_CXX='-qstaticlink'
13421 case `$CC -V 2>&1 | sed 5q` in
13422 *Sun\ C*)
13423 # Sun C++ 5.9
13424 lt_prog_compiler_pic_CXX='-KPIC'
13425 lt_prog_compiler_static_CXX='-Bstatic'
13426 lt_prog_compiler_wl_CXX='-Qoption ld '
13428 esac
13430 esac
13432 lynxos*)
13434 m88k*)
13436 mvs*)
13437 case $cc_basename in
13438 cxx*)
13439 lt_prog_compiler_pic_CXX='-W c,exportall'
13443 esac
13445 netbsd*)
13447 *qnx* | *nto*)
13448 # QNX uses GNU C++, but need to define -shared option too, otherwise
13449 # it will coredump.
13450 lt_prog_compiler_pic_CXX='-fPIC -shared'
13452 osf3* | osf4* | osf5*)
13453 case $cc_basename in
13454 KCC*)
13455 lt_prog_compiler_wl_CXX='--backend -Wl,'
13457 RCC*)
13458 # Rational C++ 2.4.1
13459 lt_prog_compiler_pic_CXX='-pic'
13461 cxx*)
13462 # Digital/Compaq C++
13463 lt_prog_compiler_wl_CXX='-Wl,'
13464 # Make sure the PIC flag is empty. It appears that all Alpha
13465 # Linux and Compaq Tru64 Unix objects are PIC.
13466 lt_prog_compiler_pic_CXX=
13467 lt_prog_compiler_static_CXX='-non_shared'
13471 esac
13473 psos*)
13475 solaris*)
13476 case $cc_basename in
13477 CC*)
13478 # Sun C++ 4.2, 5.x and Centerline C++
13479 lt_prog_compiler_pic_CXX='-KPIC'
13480 lt_prog_compiler_static_CXX='-Bstatic'
13481 lt_prog_compiler_wl_CXX='-Qoption ld '
13483 gcx*)
13484 # Green Hills C++ Compiler
13485 lt_prog_compiler_pic_CXX='-PIC'
13489 esac
13491 sunos4*)
13492 case $cc_basename in
13493 CC*)
13494 # Sun C++ 4.x
13495 lt_prog_compiler_pic_CXX='-pic'
13496 lt_prog_compiler_static_CXX='-Bstatic'
13498 lcc*)
13499 # Lucid
13500 lt_prog_compiler_pic_CXX='-pic'
13504 esac
13506 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13507 case $cc_basename in
13508 CC*)
13509 lt_prog_compiler_wl_CXX='-Wl,'
13510 lt_prog_compiler_pic_CXX='-KPIC'
13511 lt_prog_compiler_static_CXX='-Bstatic'
13513 esac
13515 tandem*)
13516 case $cc_basename in
13517 NCC*)
13518 # NonStop-UX NCC 3.20
13519 lt_prog_compiler_pic_CXX='-KPIC'
13523 esac
13525 vxworks*)
13528 lt_prog_compiler_can_build_shared_CXX=no
13530 esac
13533 case $host_os in
13534 # For platforms which do not support PIC, -DPIC is meaningless:
13535 *djgpp*)
13536 lt_prog_compiler_pic_CXX=
13539 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13541 esac
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13543 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13548 # Check to make sure the PIC flag actually works.
13550 if test -n "$lt_prog_compiler_pic_CXX"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13552 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13553 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 lt_cv_prog_compiler_pic_works_CXX=no
13557 ac_outfile=conftest.$ac_objext
13558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13559 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13560 # Insert the option either (1) after the last *FLAGS variable, or
13561 # (2) before a word containing "conftest.", or (3) at the end.
13562 # Note that $ac_compile itself does not contain backslashes and begins
13563 # with a dollar sign (not a hyphen), so the echo should work correctly.
13564 # The option is referenced via a variable to avoid confusing sed.
13565 lt_compile=`echo "$ac_compile" | $SED \
13566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13568 -e 's:$: $lt_compiler_flag:'`
13569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13570 (eval "$lt_compile" 2>conftest.err)
13571 ac_status=$?
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 if (exit $ac_status) && test -s "$ac_outfile"; then
13575 # The compiler can only warn and ignore the option if not recognized
13576 # So say no if there are warnings other than the usual output.
13577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13580 lt_cv_prog_compiler_pic_works_CXX=yes
13583 $RM conftest*
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13587 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13589 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13590 case $lt_prog_compiler_pic_CXX in
13591 "" | " "*) ;;
13592 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13593 esac
13594 else
13595 lt_prog_compiler_pic_CXX=
13596 lt_prog_compiler_can_build_shared_CXX=no
13604 # Check to make sure the static flag actually works.
13606 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13608 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13609 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 lt_cv_prog_compiler_static_works_CXX=no
13613 save_LDFLAGS="$LDFLAGS"
13614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13617 # The linker can only warn and ignore the option if not recognized
13618 # So say no if there are warnings
13619 if test -s conftest.err; then
13620 # Append any errors to the config.log.
13621 cat conftest.err 1>&5
13622 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13624 if diff conftest.exp conftest.er2 >/dev/null; then
13625 lt_cv_prog_compiler_static_works_CXX=yes
13627 else
13628 lt_cv_prog_compiler_static_works_CXX=yes
13631 $RM -r conftest*
13632 LDFLAGS="$save_LDFLAGS"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13636 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13638 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13640 else
13641 lt_prog_compiler_static_CXX=
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13648 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13649 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 lt_cv_prog_compiler_c_o_CXX=no
13653 $RM -r conftest 2>/dev/null
13654 mkdir conftest
13655 cd conftest
13656 mkdir out
13657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13659 lt_compiler_flag="-o out/conftest2.$ac_objext"
13660 # Insert the option either (1) after the last *FLAGS variable, or
13661 # (2) before a word containing "conftest.", or (3) at the end.
13662 # Note that $ac_compile itself does not contain backslashes and begins
13663 # with a dollar sign (not a hyphen), so the echo should work correctly.
13664 lt_compile=`echo "$ac_compile" | $SED \
13665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667 -e 's:$: $lt_compiler_flag:'`
13668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13669 (eval "$lt_compile" 2>out/conftest.err)
13670 ac_status=$?
13671 cat out/conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13674 then
13675 # The compiler can only warn and ignore the option if not recognized
13676 # So say no if there are warnings
13677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13680 lt_cv_prog_compiler_c_o_CXX=yes
13683 chmod u+w . 2>&5
13684 $RM conftest*
13685 # SGI C++ compiler will create directory out/ii_files/ for
13686 # template instantiation
13687 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13688 $RM out/* && rmdir out
13689 cd ..
13690 $RM -r conftest
13691 $RM conftest*
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13695 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13701 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 lt_cv_prog_compiler_c_o_CXX=no
13705 $RM -r conftest 2>/dev/null
13706 mkdir conftest
13707 cd conftest
13708 mkdir out
13709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13711 lt_compiler_flag="-o out/conftest2.$ac_objext"
13712 # Insert the option either (1) after the last *FLAGS variable, or
13713 # (2) before a word containing "conftest.", or (3) at the end.
13714 # Note that $ac_compile itself does not contain backslashes and begins
13715 # with a dollar sign (not a hyphen), so the echo should work correctly.
13716 lt_compile=`echo "$ac_compile" | $SED \
13717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719 -e 's:$: $lt_compiler_flag:'`
13720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13721 (eval "$lt_compile" 2>out/conftest.err)
13722 ac_status=$?
13723 cat out/conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13726 then
13727 # The compiler can only warn and ignore the option if not recognized
13728 # So say no if there are warnings
13729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13732 lt_cv_prog_compiler_c_o_CXX=yes
13735 chmod u+w . 2>&5
13736 $RM conftest*
13737 # SGI C++ compiler will create directory out/ii_files/ for
13738 # template instantiation
13739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13740 $RM out/* && rmdir out
13741 cd ..
13742 $RM -r conftest
13743 $RM conftest*
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13747 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13752 hard_links="nottested"
13753 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13754 # do not overwrite the value of need_locks provided by the user
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13756 $as_echo_n "checking if we can lock with hard links... " >&6; }
13757 hard_links=yes
13758 $RM conftest*
13759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13760 touch conftest.a
13761 ln conftest.a conftest.b 2>&5 || hard_links=no
13762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13764 $as_echo "$hard_links" >&6; }
13765 if test "$hard_links" = no; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13767 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13768 need_locks=warn
13770 else
13771 need_locks=no
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13779 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13780 case $host_os in
13781 aix[4-9]*)
13782 # If we're using GNU nm, then we don't want the "-C" option.
13783 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13784 # Also, AIX nm treats weak defined symbols like other global defined
13785 # symbols, whereas GNU nm marks them as "W".
13786 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13787 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'
13788 else
13789 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13792 pw32*)
13793 export_symbols_cmds_CXX="$ltdll_cmds"
13795 cygwin* | mingw* | cegcc*)
13796 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'
13799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13801 esac
13802 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13805 $as_echo "$ld_shlibs_CXX" >&6; }
13806 test "$ld_shlibs_CXX" = no && can_build_shared=no
13808 with_gnu_ld_CXX=$with_gnu_ld
13816 # Do we need to explicitly link libc?
13818 case "x$archive_cmds_need_lc_CXX" in
13819 x|xyes)
13820 # Assume -lc should be added
13821 archive_cmds_need_lc_CXX=yes
13823 if test "$enable_shared" = yes && test "$GCC" = yes; then
13824 case $archive_cmds_CXX in
13825 *'~'*)
13826 # FIXME: we may have to deal with multi-command sequences.
13828 '$CC '*)
13829 # Test whether the compiler implicitly links with -lc since on some
13830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13831 # to ld, don't add -lc before -lgcc.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13833 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13834 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 $RM conftest*
13838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13841 (eval $ac_compile) 2>&5
13842 ac_status=$?
13843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13844 test $ac_status = 0; } 2>conftest.err; then
13845 soname=conftest
13846 lib=conftest
13847 libobjs=conftest.$ac_objext
13848 deplibs=
13849 wl=$lt_prog_compiler_wl_CXX
13850 pic_flag=$lt_prog_compiler_pic_CXX
13851 compiler_flags=-v
13852 linker_flags=-v
13853 verstring=
13854 output_objdir=.
13855 libname=conftest
13856 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13857 allow_undefined_flag_CXX=
13858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13859 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13860 ac_status=$?
13861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13862 test $ac_status = 0; }
13863 then
13864 lt_cv_archive_cmds_need_lc_CXX=no
13865 else
13866 lt_cv_archive_cmds_need_lc_CXX=yes
13868 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13869 else
13870 cat conftest.err 1>&5
13872 $RM conftest*
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13876 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13877 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13879 esac
13882 esac
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13948 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13950 library_names_spec=
13951 libname_spec='lib$name'
13952 soname_spec=
13953 shrext_cmds=".so"
13954 postinstall_cmds=
13955 postuninstall_cmds=
13956 finish_cmds=
13957 finish_eval=
13958 shlibpath_var=
13959 shlibpath_overrides_runpath=unknown
13960 version_type=none
13961 dynamic_linker="$host_os ld.so"
13962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13963 need_lib_prefix=unknown
13964 hardcode_into_libs=no
13966 # when you set need_version to no, make sure it does not cause -set_version
13967 # flags to be left without arguments
13968 need_version=unknown
13970 case $host_os in
13971 aix3*)
13972 version_type=linux
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13974 shlibpath_var=LIBPATH
13976 # AIX 3 has no versioning support, so we append a major version to the name.
13977 soname_spec='${libname}${release}${shared_ext}$major'
13980 aix[4-9]*)
13981 version_type=linux
13982 need_lib_prefix=no
13983 need_version=no
13984 hardcode_into_libs=yes
13985 if test "$host_cpu" = ia64; then
13986 # AIX 5 supports IA64
13987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13988 shlibpath_var=LD_LIBRARY_PATH
13989 else
13990 # With GCC up to 2.95.x, collect2 would create an import file
13991 # for dependence libraries. The import file would start with
13992 # the line `#! .'. This would cause the generated library to
13993 # depend on `.', always an invalid library. This was fixed in
13994 # development snapshots of GCC prior to 3.0.
13995 case $host_os in
13996 aix4 | aix4.[01] | aix4.[01].*)
13997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13998 echo ' yes '
13999 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14001 else
14002 can_build_shared=no
14005 esac
14006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14007 # soname into executable. Probably we can add versioning support to
14008 # collect2, so additional links can be useful in future.
14009 if test "$aix_use_runtimelinking" = yes; then
14010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14011 # instead of lib<name>.a to let people know that these are not
14012 # typical AIX shared libraries.
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 else
14015 # We preserve .a as extension for shared libraries through AIX4.2
14016 # and later when we are not doing run time linking.
14017 library_names_spec='${libname}${release}.a $libname.a'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14020 shlibpath_var=LIBPATH
14024 amigaos*)
14025 case $host_cpu in
14026 powerpc)
14027 # Since July 2007 AmigaOS4 officially supports .so libraries.
14028 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 m68k)
14032 library_names_spec='$libname.ixlibrary $libname.a'
14033 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14034 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'
14036 esac
14039 beos*)
14040 library_names_spec='${libname}${shared_ext}'
14041 dynamic_linker="$host_os ld.so"
14042 shlibpath_var=LIBRARY_PATH
14045 bsdi[45]*)
14046 version_type=linux
14047 need_version=no
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14049 soname_spec='${libname}${release}${shared_ext}$major'
14050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14054 # the default ld.so.conf also contains /usr/contrib/lib and
14055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14056 # libtool to hard-code these into programs
14059 cygwin* | mingw* | pw32* | cegcc*)
14060 version_type=windows
14061 shrext_cmds=".dll"
14062 need_version=no
14063 need_lib_prefix=no
14065 case $GCC,$host_os in
14066 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14067 library_names_spec='$libname.dll.a'
14068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14069 postinstall_cmds='base_file=`basename \${file}`~
14070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14071 dldir=$destdir/`dirname \$dlpath`~
14072 test -d \$dldir || mkdir -p \$dldir~
14073 $install_prog $dir/$dlname \$dldir/$dlname~
14074 chmod a+x \$dldir/$dlname~
14075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14079 dlpath=$dir/\$dldll~
14080 $RM \$dlpath'
14081 shlibpath_overrides_runpath=yes
14083 case $host_os in
14084 cygwin*)
14085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14089 mingw* | cegcc*)
14090 # MinGW DLLs use traditional 'lib' prefix
14091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14093 pw32*)
14094 # pw32 DLLs use 'pw' prefix rather than 'lib'
14095 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14097 esac
14101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14103 esac
14104 dynamic_linker='Win32 ld.exe'
14105 # FIXME: first we should search . and the directory the executable is in
14106 shlibpath_var=PATH
14109 darwin* | rhapsody*)
14110 dynamic_linker="$host_os dyld"
14111 version_type=darwin
14112 need_lib_prefix=no
14113 need_version=no
14114 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14115 soname_spec='${libname}${release}${major}$shared_ext'
14116 shlibpath_overrides_runpath=yes
14117 shlibpath_var=DYLD_LIBRARY_PATH
14118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14123 dgux*)
14124 version_type=linux
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14132 freebsd* | dragonfly*)
14133 # DragonFly does not have aout. When/if they implement a new
14134 # versioning mechanism, adjust this.
14135 if test -x /usr/bin/objformat; then
14136 objformat=`/usr/bin/objformat`
14137 else
14138 case $host_os in
14139 freebsd[23].*) objformat=aout ;;
14140 *) objformat=elf ;;
14141 esac
14143 version_type=freebsd-$objformat
14144 case $version_type in
14145 freebsd-elf*)
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14147 need_version=no
14148 need_lib_prefix=no
14150 freebsd-*)
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14152 need_version=yes
14154 esac
14155 shlibpath_var=LD_LIBRARY_PATH
14156 case $host_os in
14157 freebsd2.*)
14158 shlibpath_overrides_runpath=yes
14160 freebsd3.[01]* | freebsdelf3.[01]*)
14161 shlibpath_overrides_runpath=yes
14162 hardcode_into_libs=yes
14164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14166 shlibpath_overrides_runpath=no
14167 hardcode_into_libs=yes
14169 *) # from 4.6 on, and DragonFly
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14173 esac
14176 gnu*)
14177 version_type=linux
14178 need_lib_prefix=no
14179 need_version=no
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 hardcode_into_libs=yes
14186 haiku*)
14187 version_type=linux
14188 need_lib_prefix=no
14189 need_version=no
14190 dynamic_linker="$host_os runtime_loader"
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14192 soname_spec='${libname}${release}${shared_ext}$major'
14193 shlibpath_var=LIBRARY_PATH
14194 shlibpath_overrides_runpath=yes
14195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14196 hardcode_into_libs=yes
14199 hpux9* | hpux10* | hpux11*)
14200 # Give a soname corresponding to the major version so that dld.sl refuses to
14201 # link against other versions.
14202 version_type=sunos
14203 need_lib_prefix=no
14204 need_version=no
14205 case $host_cpu in
14206 ia64*)
14207 shrext_cmds='.so'
14208 hardcode_into_libs=yes
14209 dynamic_linker="$host_os dld.so"
14210 shlibpath_var=LD_LIBRARY_PATH
14211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213 soname_spec='${libname}${release}${shared_ext}$major'
14214 if test "X$HPUX_IA64_MODE" = X32; then
14215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14216 else
14217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14221 hppa*64*)
14222 shrext_cmds='.sl'
14223 hardcode_into_libs=yes
14224 dynamic_linker="$host_os dld.sl"
14225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14233 shrext_cmds='.sl'
14234 dynamic_linker="$host_os dld.sl"
14235 shlibpath_var=SHLIB_PATH
14236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14240 esac
14241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14242 postinstall_cmds='chmod 555 $lib'
14243 # or fails outright, so override atomically:
14244 install_override_mode=555
14247 interix[3-9]*)
14248 version_type=linux
14249 need_lib_prefix=no
14250 need_version=no
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=no
14256 hardcode_into_libs=yes
14259 irix5* | irix6* | nonstopux*)
14260 case $host_os in
14261 nonstopux*) version_type=nonstopux ;;
14263 if test "$lt_cv_prog_gnu_ld" = yes; then
14264 version_type=linux
14265 else
14266 version_type=irix
14267 fi ;;
14268 esac
14269 need_lib_prefix=no
14270 need_version=no
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14273 case $host_os in
14274 irix5* | nonstopux*)
14275 libsuff= shlibsuff=
14278 case $LD in # libtool.m4 will add one of these switches to LD
14279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14280 libsuff= shlibsuff= libmagic=32-bit;;
14281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14282 libsuff=32 shlibsuff=N32 libmagic=N32;;
14283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14285 *) libsuff= shlibsuff= libmagic=never-match;;
14286 esac
14288 esac
14289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14290 shlibpath_overrides_runpath=no
14291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14293 hardcode_into_libs=yes
14296 # No shared lib support for Linux oldld, aout, or coff.
14297 linux*oldld* | linux*aout* | linux*coff*)
14298 dynamic_linker=no
14301 # This must be Linux ELF.
14302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14303 version_type=linux
14304 need_lib_prefix=no
14305 need_version=no
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 shlibpath_overrides_runpath=no
14312 # Some binutils ld are patched to set DT_RUNPATH
14313 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 lt_cv_shlibpath_overrides_runpath=no
14317 save_LDFLAGS=$LDFLAGS
14318 save_libdir=$libdir
14319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14321 if test x$gcc_no_link = xyes; then
14322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14328 main ()
14332 return 0;
14334 _ACEOF
14335 if ac_fn_cxx_try_link "$LINENO"; then :
14336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14337 lt_cv_shlibpath_overrides_runpath=yes
14340 rm -f core conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LDFLAGS=$save_LDFLAGS
14343 libdir=$save_libdir
14347 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14349 # This implies no fast_install, which is unacceptable.
14350 # Some rework will be needed to allow for fast_install
14351 # before this can be enabled.
14352 hardcode_into_libs=yes
14354 # Append ld.so.conf contents to the search path
14355 if test -f /etc/ld.so.conf; then
14356 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' ' '`
14357 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14360 # We used to test for /lib/ld.so.1 and disable shared libraries on
14361 # powerpc, because MkLinux only supported shared libraries with the
14362 # GNU dynamic linker. Since this was broken with cross compilers,
14363 # most powerpc-linux boxes support dynamic linking these days and
14364 # people can always --disable-shared, the test was removed, and we
14365 # assume the GNU/Linux dynamic linker is in use.
14366 dynamic_linker='GNU/Linux ld.so'
14369 netbsd*)
14370 version_type=sunos
14371 need_lib_prefix=no
14372 need_version=no
14373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14376 dynamic_linker='NetBSD (a.out) ld.so'
14377 else
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 dynamic_linker='NetBSD ld.elf_so'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14387 newsos6)
14388 version_type=linux
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 shlibpath_overrides_runpath=yes
14394 *nto* | *qnx*)
14395 version_type=qnx
14396 need_lib_prefix=no
14397 need_version=no
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=no
14402 hardcode_into_libs=yes
14403 dynamic_linker='ldqnx.so'
14406 openbsd*)
14407 version_type=sunos
14408 sys_lib_dlsearch_path_spec="/usr/lib"
14409 need_lib_prefix=no
14410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14411 case $host_os in
14412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14413 *) need_version=no ;;
14414 esac
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14419 case $host_os in
14420 openbsd2.[89] | openbsd2.[89].*)
14421 shlibpath_overrides_runpath=no
14424 shlibpath_overrides_runpath=yes
14426 esac
14427 else
14428 shlibpath_overrides_runpath=yes
14432 os2*)
14433 libname_spec='$name'
14434 shrext_cmds=".dll"
14435 need_lib_prefix=no
14436 library_names_spec='$libname${shared_ext} $libname.a'
14437 dynamic_linker='OS/2 ld.exe'
14438 shlibpath_var=LIBPATH
14441 osf3* | osf4* | osf5*)
14442 version_type=osf
14443 need_lib_prefix=no
14444 need_version=no
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14452 rdos*)
14453 dynamic_linker=no
14456 solaris*)
14457 version_type=linux
14458 need_lib_prefix=no
14459 need_version=no
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath=yes
14464 hardcode_into_libs=yes
14465 # ldd complains unless libraries are executable
14466 postinstall_cmds='chmod +x $lib'
14469 sunos4*)
14470 version_type=sunos
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14475 if test "$with_gnu_ld" = yes; then
14476 need_lib_prefix=no
14478 need_version=yes
14481 sysv4 | sysv4.3*)
14482 version_type=linux
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 case $host_vendor in
14487 sni)
14488 shlibpath_overrides_runpath=no
14489 need_lib_prefix=no
14490 runpath_var=LD_RUN_PATH
14492 siemens)
14493 need_lib_prefix=no
14495 motorola)
14496 need_lib_prefix=no
14497 need_version=no
14498 shlibpath_overrides_runpath=no
14499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14501 esac
14504 sysv4*MP*)
14505 if test -d /usr/nec ;then
14506 version_type=linux
14507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14508 soname_spec='$libname${shared_ext}.$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14514 version_type=freebsd-elf
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=yes
14521 hardcode_into_libs=yes
14522 if test "$with_gnu_ld" = yes; then
14523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14524 else
14525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14526 case $host_os in
14527 sco3.2v5*)
14528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14530 esac
14532 sys_lib_dlsearch_path_spec='/usr/lib'
14535 tpf*)
14536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=no
14543 hardcode_into_libs=yes
14546 uts4*)
14547 version_type=linux
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14554 dynamic_linker=no
14556 esac
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14558 $as_echo "$dynamic_linker" >&6; }
14559 test "$dynamic_linker" = no && can_build_shared=no
14561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14562 if test "$GCC" = yes; then
14563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14566 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14567 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14569 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14570 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14612 hardcode_action_CXX=
14613 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14614 test -n "$runpath_var_CXX" ||
14615 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14617 # We can hardcode non-existent directories.
14618 if test "$hardcode_direct_CXX" != no &&
14619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14620 # have to relink, otherwise we might link with an installed library
14621 # when we should be linking with a yet-to-be-installed one
14622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14623 test "$hardcode_minus_L_CXX" != no; then
14624 # Linking always hardcodes the temporary library directory.
14625 hardcode_action_CXX=relink
14626 else
14627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14628 hardcode_action_CXX=immediate
14630 else
14631 # We cannot hardcode anything, or else we can only hardcode existing
14632 # directories.
14633 hardcode_action_CXX=unsupported
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14636 $as_echo "$hardcode_action_CXX" >&6; }
14638 if test "$hardcode_action_CXX" = relink ||
14639 test "$inherit_rpath_CXX" = yes; then
14640 # Fast installation is not supported
14641 enable_fast_install=no
14642 elif test "$shlibpath_overrides_runpath" = yes ||
14643 test "$enable_shared" = no; then
14644 # Fast installation is not necessary
14645 enable_fast_install=needless
14654 fi # test -n "$compiler"
14656 CC=$lt_save_CC
14657 LDCXX=$LD
14658 LD=$lt_save_LD
14659 GCC=$lt_save_GCC
14660 with_gnu_ld=$lt_save_with_gnu_ld
14661 lt_cv_path_LDCXX=$lt_cv_path_LD
14662 lt_cv_path_LD=$lt_save_path_LD
14663 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14664 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14665 fi # test "$_lt_caught_CXX_error" != yes
14667 ac_ext=c
14668 ac_cpp='$CPP $CPPFLAGS'
14669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14685 ac_config_commands="$ac_config_commands libtool"
14690 # Only expand once:
14695 # Check whether --with-target-subdir was given.
14696 if test "${with_target_subdir+set}" = set; then :
14697 withval=$with_target_subdir;
14701 # Check whether --with-cross-host was given.
14702 if test "${with_cross_host+set}" = set; then :
14703 withval=$with_cross_host;
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14708 $as_echo_n "checking for thread model used by GCC... " >&6; }
14709 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14710 if test -z "$THREADS"; then
14711 THREADS=no
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
14714 $as_echo "$THREADS" >&6; }
14716 # Check whether --enable-parallel-mark was given.
14717 if test "${enable_parallel_mark+set}" = set; then :
14718 enableval=$enable_parallel_mark; case "$THREADS" in
14719 no | none | single)
14720 as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
14722 esac
14727 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14728 THREADCFLAGS=
14729 THREADLIBS=
14730 case "$THREADS" in
14731 no | none | single)
14732 THREADS=none
14734 posix | pthreads)
14735 THREADS=posix
14736 THREADLIBS=-lpthread
14737 case "$host" in
14738 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14740 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14743 $as_echo "#define _REENTRANT 1" >>confdefs.h
14745 if test "${enable_parallel_mark}" = yes; then
14747 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14751 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14754 *-*-linux*)
14755 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
14757 $as_echo "#define _REENTRANT 1" >>confdefs.h
14760 *-*-aix*)
14762 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14764 $as_echo "#define _REENTRANT 1" >>confdefs.h
14767 *-*-hpux11*)
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14769 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14771 $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
14774 $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
14776 if test "${enable_parallel_mark}" = yes; then
14777 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14780 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14782 THREADLIBS="-lpthread -lrt"
14783 # HPUX needs REENTRANT for the _r calls.
14785 $as_echo "#define _REENTRANT 1" >>confdefs.h
14788 *-*-hpux10*)
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14790 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14792 *-*-kfreebsd*-gnu)
14793 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14795 THREADCFLAGS=-pthread
14796 THREADLIBS=-pthread
14797 $as_echo "#define _REENTRANT 1" >>confdefs.h
14799 if test "${enable_parallel_mark}" = yes; then
14800 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14803 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14806 $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
14809 *-*-gnu*)
14811 $as_echo "#define GC_GNU_THREADS 1" >>confdefs.h
14813 $as_echo "#define _REENTRANT 1" >>confdefs.h
14815 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14818 *-*-freebsd*)
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14820 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14822 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
14824 THREADCFLAGS=-pthread
14825 THREADLIBS=-pthread
14827 *-*-solaris2.8*)
14829 $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14831 # Need to use alternate thread library, otherwise gctest hangs
14832 # on Solaris 8.
14833 multi_os_directory=`$CC -print-multi-os-directory`
14834 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14835 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14837 *-*-solaris2*)
14839 $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14841 # The alternate thread library was only introduced in Solaris 8 and
14842 # became the default in Solaris 9, so no need for the special code
14843 # above otherwise.
14844 # nanosleep, sched_yield, and sem_* only live in librt before
14845 # Solaris 11.
14846 THREADLIBS="-lpthread -lrt"
14848 *-*-irix*)
14850 $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
14853 *-*-cygwin*)
14855 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14858 *-*-darwin*)
14860 $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
14862 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14864 if test "${enable_parallel_mark}" = yes; then
14865 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14869 *-*-osf*)
14871 $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
14873 if test "${enable_parallel_mark}" = yes; then
14874 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
14876 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
14878 # May want to enable it in other cases, too.
14879 # Measurements havent yet been done.
14881 THREADCFLAGS=-pthread
14882 THREADLIBS="-lpthread -lrt"
14884 esac
14886 win32)
14887 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
14890 aix)
14891 THREADS=posix
14892 THREADLIBS=-lpthread
14893 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
14895 $as_echo "#define _REENTRANT 1" >>confdefs.h
14898 dce | vxworks)
14899 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
14902 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
14904 esac
14908 case "$host" in
14909 powerpc-*-darwin*)
14910 powerpc_darwin=true
14912 esac
14913 if test x$powerpc_darwin = xtrue; then
14914 POWERPC_DARWIN_TRUE=
14915 POWERPC_DARWIN_FALSE='#'
14916 else
14917 POWERPC_DARWIN_TRUE='#'
14918 POWERPC_DARWIN_FALSE=
14922 # Darwin needs a few extra special tests to deal with variation in the
14923 # system headers.
14924 case "$host" in
14925 powerpc*-*-darwin*)
14926 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
14928 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
14930 $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
14934 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
14936 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
14938 $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
14942 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
14944 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
14946 $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
14950 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
14952 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
14954 $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
14959 i?86*-*-darwin*)
14960 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
14961 #include <mach/thread_status.h>
14963 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
14965 $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
14969 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
14970 #include <mach/thread_status.h>
14972 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
14974 $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
14979 x86_64-*-darwin*)
14980 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
14981 #include <mach/thread_status.h>
14983 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
14985 $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
14989 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
14990 #include <mach/thread_status.h>
14992 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
14994 $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
14999 *) ;;
15000 esac
15002 case "$host" in
15003 # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
15004 # and unnecessary everywhere.
15005 mips-sgi-irix6*) ;;
15006 # We never want libdl on darwin. It is a fake libdl that just ends up making
15007 # dyld calls anyway
15008 *-*-darwin*) ;;
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15011 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-ldl $LIBS"
15017 if test x$gcc_no_link = xyes; then
15018 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15026 #ifdef __cplusplus
15027 extern "C"
15028 #endif
15029 char dlopen ();
15031 main ()
15033 return dlopen ();
15035 return 0;
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_dl_dlopen=yes
15040 else
15041 ac_cv_lib_dl_dlopen=no
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 LIBS=$ac_check_lib_save_LIBS
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15048 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15049 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15050 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15054 esac
15056 # extra LD Flags which are required for targets
15057 case "${host}" in
15058 *-*-darwin*)
15059 extra_ldflags_libgc=-Wl,-single_module
15061 esac
15066 target_all=libgcjgc.la
15069 TARGET_ECOS="no"
15071 # Check whether --with-ecos was given.
15072 if test "${with_ecos+set}" = set; then :
15073 withval=$with_ecos; TARGET_ECOS="$with_ecos"
15078 addobjs=
15079 addlibs=
15080 addincludes=
15081 addtests=
15082 case "$TARGET_ECOS" in
15087 $as_echo "#define ECOS 1" >>confdefs.h
15089 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15090 addobjs="$addobjs ecos.lo"
15092 esac
15094 if test "${enable_cplusplus}" = yes; then
15095 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15096 addtests="$addtests test_cpp"
15099 if test "${enable_cplusplus}" = yes; then
15100 CPLUSPLUS_TRUE=
15101 CPLUSPLUS_FALSE='#'
15102 else
15103 CPLUSPLUS_TRUE='#'
15104 CPLUSPLUS_FALSE=
15112 # Configuration of shared libraries
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15115 $as_echo_n "checking whether to build shared libraries... " >&6; }
15116 # Check whether --enable-shared was given.
15117 if test "${enable_shared+set}" = set; then :
15118 enableval=$enable_shared; p=${PACKAGE-default}
15119 case $enableval in
15120 yes) enable_shared=yes ;;
15121 no) enable_shared=no ;;
15123 enable_shared=no
15124 # Look at the argument we got. We use all the common list separators.
15125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15126 for pkg in $enableval; do
15127 IFS="$lt_save_ifs"
15128 if test "X$pkg" = "X$p"; then
15129 enable_shared=yes
15131 done
15132 IFS="$lt_save_ifs"
15134 esac
15135 else
15136 enable_shared=yes
15145 case "$host" in
15146 alpha-*-openbsd*)
15147 enable_shared=no
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15153 $as_echo "yes" >&6; }
15155 esac
15157 # Checks for pthreads functions
15159 oldLIBS="$LIBS"
15160 LIBS="$LIBS $THREADLIBS"
15161 for ac_func in pthread_getattr_np
15162 do :
15163 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15164 if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_PTHREAD_GETATTR_NP 1
15167 _ACEOF
15170 done
15172 for ac_func in pthread_get_stackaddr_np
15173 do :
15174 ac_fn_c_check_func "$LINENO" "pthread_get_stackaddr_np" "ac_cv_func_pthread_get_stackaddr_np"
15175 if test "x$ac_cv_func_pthread_get_stackaddr_np" = x""yes; then :
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_PTHREAD_GET_STACKADDR_NP 1
15178 _ACEOF
15181 done
15183 LIBS="$oldLIBS"
15185 # Configuration of machine-dependent code
15187 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15188 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15189 # in executable memory.
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15192 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
15193 machdep=
15194 case "$host" in
15195 alpha*-*-openbsd*)
15196 machdep="alpha_mach_dep.lo"
15197 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15199 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15202 alpha*-*-linux*)
15203 machdep="alpha_mach_dep.lo"
15205 i?86-*-solaris2.[89] | i?86-*-solaris2.1? | x86_64-*-solaris2.1?)
15207 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
15210 mipstx39-*-elf*)
15211 machdep="mips_ultrix_mach_dep.lo"
15213 $as_echo "#define STACKBASE __stackbase" >>confdefs.h
15216 $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
15219 mips-dec-ultrix*)
15220 machdep="mips_ultrix_mach-dep.lo"
15222 mips-nec-sysv*|mips-unknown-sysv*)
15224 mips*-*-linux*)
15226 mips-*-*)
15227 machdep="mips_sgi_mach_dep.lo"
15229 sparc-*-netbsd*)
15230 machdep="sparc_netbsd_mach_dep.lo"
15232 sparc-sun-solaris2.3)
15233 machdep="sparc_mach_dep.lo"
15235 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
15238 sparc*-sun-solaris2.*)
15239 machdep="sparc_mach_dep.lo"
15241 ia64-*-*)
15242 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15244 esac
15246 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15248 if test x"$machdep" = x; then
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15250 $as_echo "$machdep" >&6; }
15251 machdep="mach_dep.lo"
15253 addobjs="$addobjs $machdep"
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC optimization should be disabled" >&5
15260 $as_echo_n "checking whether GCC optimization should be disabled... " >&6; }
15261 O0_CFLAGS=
15262 case "$host" in
15263 *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
15264 *) ;;
15265 esac
15266 if test x"$O0_CFLAGS" != x; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268 $as_echo "yes" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15276 $as_echo "#define SILENT 1" >>confdefs.h
15279 $as_echo "#define NO_SIGNALS 1" >>confdefs.h
15282 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15286 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15289 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15292 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15295 # Check whether --enable-gc-debug was given.
15296 if test "${enable_gc_debug+set}" = set; then :
15297 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15299 $as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15301 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15304 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15306 case $host in
15307 ia64-*-linux* )
15309 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15312 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15313 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15316 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15318 $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15321 esac
15326 if test "${gc_use_mmap}" = "yes"; then
15328 $as_echo "#define USE_MMAP 1" >>confdefs.h
15332 if test -n "$with_cross_host" &&
15333 test x"$with_cross_host" != x"no"; then
15334 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15335 toolexeclibdir='$(toolexecdir)/lib'
15336 else
15337 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15338 toolexeclibdir='$(libdir)'
15340 multi_os_directory=`$CC -print-multi-os-directory`
15341 case $multi_os_directory in
15342 .) ;; # Avoid trailing /.
15343 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15344 esac
15348 if test "${multilib}" = "yes"; then
15349 multilib_arg="--enable-multilib"
15350 else
15351 multilib_arg=
15354 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
15357 ac_config_files="$ac_config_files Makefile include/Makefile testsuite/Makefile threads.mk"
15359 cat >confcache <<\_ACEOF
15360 # This file is a shell script that caches the results of configure
15361 # tests run on this system so they can be shared between configure
15362 # scripts and configure runs, see configure's option --config-cache.
15363 # It is not useful on other systems. If it contains results you don't
15364 # want to keep, you may remove or edit it.
15366 # config.status only pays attention to the cache file if you give it
15367 # the --recheck option to rerun configure.
15369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15371 # following values.
15373 _ACEOF
15375 # The following way of writing the cache mishandles newlines in values,
15376 # but we know of no workaround that is simple, portable, and efficient.
15377 # So, we kill variables containing newlines.
15378 # Ultrix sh set writes to stderr and can't be redirected directly,
15379 # and sets the high bit in the cache file unless we assign to the vars.
15381 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15382 eval ac_val=\$$ac_var
15383 case $ac_val in #(
15384 *${as_nl}*)
15385 case $ac_var in #(
15386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15388 esac
15389 case $ac_var in #(
15390 _ | IFS | as_nl) ;; #(
15391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15392 *) { eval $ac_var=; unset $ac_var;} ;;
15393 esac ;;
15394 esac
15395 done
15397 (set) 2>&1 |
15398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15399 *${as_nl}ac_space=\ *)
15400 # `set' does not quote correctly, so add quotes: double-quote
15401 # substitution turns \\\\ into \\, and sed turns \\ into \.
15402 sed -n \
15403 "s/'/'\\\\''/g;
15404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15405 ;; #(
15407 # `set' quotes correctly as required by POSIX, so do not add quotes.
15408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15410 esac |
15411 sort
15413 sed '
15414 /^ac_cv_env_/b end
15415 t clear
15416 :clear
15417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15418 t end
15419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15420 :end' >>confcache
15421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15422 if test -w "$cache_file"; then
15423 test "x$cache_file" != "x/dev/null" &&
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15425 $as_echo "$as_me: updating cache $cache_file" >&6;}
15426 cat confcache >$cache_file
15427 else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15429 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15432 rm -f confcache
15434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15435 # Let make expand exec_prefix.
15436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15438 DEFS=-DHAVE_CONFIG_H
15440 ac_libobjs=
15441 ac_ltlibobjs=
15442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15443 # 1. Remove the extension, and $U if already installed.
15444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15445 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15447 # will be set to the directory where LIBOBJS objects are built.
15448 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15449 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15450 done
15451 LIBOBJS=$ac_libobjs
15453 LTLIBOBJS=$ac_ltlibobjs
15456 if test -n "$EXEEXT"; then
15457 am__EXEEXT_TRUE=
15458 am__EXEEXT_FALSE='#'
15459 else
15460 am__EXEEXT_TRUE='#'
15461 am__EXEEXT_FALSE=
15464 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15465 as_fn_error "conditional \"AMDEP\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15468 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15469 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15472 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15473 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15476 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15477 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15481 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15485 as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15489 : ${CONFIG_STATUS=./config.status}
15490 ac_write_fail=0
15491 ac_clean_files_save=$ac_clean_files
15492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15495 as_write_fail=0
15496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15497 #! $SHELL
15498 # Generated by $as_me.
15499 # Run this file to recreate the current configuration.
15500 # Compiler output produced by configure, useful for debugging
15501 # configure, is in config.log if it exists.
15503 debug=false
15504 ac_cs_recheck=false
15505 ac_cs_silent=false
15507 SHELL=\${CONFIG_SHELL-$SHELL}
15508 export SHELL
15509 _ASEOF
15510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15511 ## -------------------- ##
15512 ## M4sh Initialization. ##
15513 ## -------------------- ##
15515 # Be more Bourne compatible
15516 DUALCASE=1; export DUALCASE # for MKS sh
15517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15518 emulate sh
15519 NULLCMD=:
15520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15521 # is contrary to our usage. Disable this feature.
15522 alias -g '${1+"$@"}'='"$@"'
15523 setopt NO_GLOB_SUBST
15524 else
15525 case `(set -o) 2>/dev/null` in #(
15526 *posix*) :
15527 set -o posix ;; #(
15528 *) :
15530 esac
15534 as_nl='
15536 export as_nl
15537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15541 # Prefer a ksh shell builtin over an external printf program on Solaris,
15542 # but without wasting forks for bash or zsh.
15543 if test -z "$BASH_VERSION$ZSH_VERSION" \
15544 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15545 as_echo='print -r --'
15546 as_echo_n='print -rn --'
15547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15548 as_echo='printf %s\n'
15549 as_echo_n='printf %s'
15550 else
15551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15552 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15553 as_echo_n='/usr/ucb/echo -n'
15554 else
15555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15556 as_echo_n_body='eval
15557 arg=$1;
15558 case $arg in #(
15559 *"$as_nl"*)
15560 expr "X$arg" : "X\\(.*\\)$as_nl";
15561 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15562 esac;
15563 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15565 export as_echo_n_body
15566 as_echo_n='sh -c $as_echo_n_body as_echo'
15568 export as_echo_body
15569 as_echo='sh -c $as_echo_body as_echo'
15572 # The user is always right.
15573 if test "${PATH_SEPARATOR+set}" != set; then
15574 PATH_SEPARATOR=:
15575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15577 PATH_SEPARATOR=';'
15582 # IFS
15583 # We need space, tab and new line, in precisely that order. Quoting is
15584 # there to prevent editors from complaining about space-tab.
15585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15586 # splitting by setting IFS to empty value.)
15587 IFS=" "" $as_nl"
15589 # Find who we are. Look in the path if we contain no directory separator.
15590 case $0 in #((
15591 *[\\/]* ) as_myself=$0 ;;
15592 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15595 IFS=$as_save_IFS
15596 test -z "$as_dir" && as_dir=.
15597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15598 done
15599 IFS=$as_save_IFS
15602 esac
15603 # We did not find ourselves, most probably we were run as `sh COMMAND'
15604 # in which case we are not to be found in the path.
15605 if test "x$as_myself" = x; then
15606 as_myself=$0
15608 if test ! -f "$as_myself"; then
15609 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15610 exit 1
15613 # Unset variables that we do not need and which cause bugs (e.g. in
15614 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15615 # suppresses any "Segmentation fault" message there. '((' could
15616 # trigger a bug in pdksh 5.2.14.
15617 for as_var in BASH_ENV ENV MAIL MAILPATH
15618 do eval test x\${$as_var+set} = xset \
15619 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15620 done
15621 PS1='$ '
15622 PS2='> '
15623 PS4='+ '
15625 # NLS nuisances.
15626 LC_ALL=C
15627 export LC_ALL
15628 LANGUAGE=C
15629 export LANGUAGE
15631 # CDPATH.
15632 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15635 # as_fn_error ERROR [LINENO LOG_FD]
15636 # ---------------------------------
15637 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15638 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15639 # script with status $?, using 1 if that was 0.
15640 as_fn_error ()
15642 as_status=$?; test $as_status -eq 0 && as_status=1
15643 if test "$3"; then
15644 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15645 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15647 $as_echo "$as_me: error: $1" >&2
15648 as_fn_exit $as_status
15649 } # as_fn_error
15652 # as_fn_set_status STATUS
15653 # -----------------------
15654 # Set $? to STATUS, without forking.
15655 as_fn_set_status ()
15657 return $1
15658 } # as_fn_set_status
15660 # as_fn_exit STATUS
15661 # -----------------
15662 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15663 as_fn_exit ()
15665 set +e
15666 as_fn_set_status $1
15667 exit $1
15668 } # as_fn_exit
15670 # as_fn_unset VAR
15671 # ---------------
15672 # Portably unset VAR.
15673 as_fn_unset ()
15675 { eval $1=; unset $1;}
15677 as_unset=as_fn_unset
15678 # as_fn_append VAR VALUE
15679 # ----------------------
15680 # Append the text in VALUE to the end of the definition contained in VAR. Take
15681 # advantage of any shell optimizations that allow amortized linear growth over
15682 # repeated appends, instead of the typical quadratic growth present in naive
15683 # implementations.
15684 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15685 eval 'as_fn_append ()
15687 eval $1+=\$2
15689 else
15690 as_fn_append ()
15692 eval $1=\$$1\$2
15694 fi # as_fn_append
15696 # as_fn_arith ARG...
15697 # ------------------
15698 # Perform arithmetic evaluation on the ARGs, and store the result in the
15699 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15700 # must be portable across $(()) and expr.
15701 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15702 eval 'as_fn_arith ()
15704 as_val=$(( $* ))
15706 else
15707 as_fn_arith ()
15709 as_val=`expr "$@" || test $? -eq 1`
15711 fi # as_fn_arith
15714 if expr a : '\(a\)' >/dev/null 2>&1 &&
15715 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15716 as_expr=expr
15717 else
15718 as_expr=false
15721 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15722 as_basename=basename
15723 else
15724 as_basename=false
15727 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15728 as_dirname=dirname
15729 else
15730 as_dirname=false
15733 as_me=`$as_basename -- "$0" ||
15734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15735 X"$0" : 'X\(//\)$' \| \
15736 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15737 $as_echo X/"$0" |
15738 sed '/^.*\/\([^/][^/]*\)\/*$/{
15739 s//\1/
15742 /^X\/\(\/\/\)$/{
15743 s//\1/
15746 /^X\/\(\/\).*/{
15747 s//\1/
15750 s/.*/./; q'`
15752 # Avoid depending upon Character Ranges.
15753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15756 as_cr_digits='0123456789'
15757 as_cr_alnum=$as_cr_Letters$as_cr_digits
15759 ECHO_C= ECHO_N= ECHO_T=
15760 case `echo -n x` in #(((((
15761 -n*)
15762 case `echo 'xy\c'` in
15763 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15764 xy) ECHO_C='\c';;
15765 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15766 ECHO_T=' ';;
15767 esac;;
15769 ECHO_N='-n';;
15770 esac
15772 rm -f conf$$ conf$$.exe conf$$.file
15773 if test -d conf$$.dir; then
15774 rm -f conf$$.dir/conf$$.file
15775 else
15776 rm -f conf$$.dir
15777 mkdir conf$$.dir 2>/dev/null
15779 if (echo >conf$$.file) 2>/dev/null; then
15780 if ln -s conf$$.file conf$$ 2>/dev/null; then
15781 as_ln_s='ln -s'
15782 # ... but there are two gotchas:
15783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15785 # In both cases, we have to default to `cp -p'.
15786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15787 as_ln_s='cp -p'
15788 elif ln conf$$.file conf$$ 2>/dev/null; then
15789 as_ln_s=ln
15790 else
15791 as_ln_s='cp -p'
15793 else
15794 as_ln_s='cp -p'
15796 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15797 rmdir conf$$.dir 2>/dev/null
15800 # as_fn_mkdir_p
15801 # -------------
15802 # Create "$as_dir" as a directory, including parents if necessary.
15803 as_fn_mkdir_p ()
15806 case $as_dir in #(
15807 -*) as_dir=./$as_dir;;
15808 esac
15809 test -d "$as_dir" || eval $as_mkdir_p || {
15810 as_dirs=
15811 while :; do
15812 case $as_dir in #(
15813 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15814 *) as_qdir=$as_dir;;
15815 esac
15816 as_dirs="'$as_qdir' $as_dirs"
15817 as_dir=`$as_dirname -- "$as_dir" ||
15818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15819 X"$as_dir" : 'X\(//\)[^/]' \| \
15820 X"$as_dir" : 'X\(//\)$' \| \
15821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15822 $as_echo X"$as_dir" |
15823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15824 s//\1/
15827 /^X\(\/\/\)[^/].*/{
15828 s//\1/
15831 /^X\(\/\/\)$/{
15832 s//\1/
15835 /^X\(\/\).*/{
15836 s//\1/
15839 s/.*/./; q'`
15840 test -d "$as_dir" && break
15841 done
15842 test -z "$as_dirs" || eval "mkdir $as_dirs"
15843 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15846 } # as_fn_mkdir_p
15847 if mkdir -p . 2>/dev/null; then
15848 as_mkdir_p='mkdir -p "$as_dir"'
15849 else
15850 test -d ./-p && rmdir ./-p
15851 as_mkdir_p=false
15854 if test -x / >/dev/null 2>&1; then
15855 as_test_x='test -x'
15856 else
15857 if ls -dL / >/dev/null 2>&1; then
15858 as_ls_L_option=L
15859 else
15860 as_ls_L_option=
15862 as_test_x='
15863 eval sh -c '\''
15864 if test -d "$1"; then
15865 test -d "$1/.";
15866 else
15867 case $1 in #(
15868 -*)set "./$1";;
15869 esac;
15870 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15871 ???[sx]*):;;*)false;;esac;fi
15872 '\'' sh
15875 as_executable_p=$as_test_x
15877 # Sed expression to map a string onto a valid CPP name.
15878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15880 # Sed expression to map a string onto a valid variable name.
15881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15884 exec 6>&1
15885 ## ----------------------------------- ##
15886 ## Main body of $CONFIG_STATUS script. ##
15887 ## ----------------------------------- ##
15888 _ASEOF
15889 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892 # Save the log message, to keep $0 and so on meaningful, and to
15893 # report actual input values of CONFIG_FILES etc. instead of their
15894 # values after options handling.
15895 ac_log="
15896 This file was extended by $as_me, which was
15897 generated by GNU Autoconf 2.64. Invocation command line was
15899 CONFIG_FILES = $CONFIG_FILES
15900 CONFIG_HEADERS = $CONFIG_HEADERS
15901 CONFIG_LINKS = $CONFIG_LINKS
15902 CONFIG_COMMANDS = $CONFIG_COMMANDS
15903 $ $0 $@
15905 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15908 _ACEOF
15910 case $ac_config_files in *"
15911 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15912 esac
15914 case $ac_config_headers in *"
15915 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15916 esac
15919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15920 # Files that config.status was made for.
15921 config_files="$ac_config_files"
15922 config_headers="$ac_config_headers"
15923 config_commands="$ac_config_commands"
15925 _ACEOF
15927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15928 ac_cs_usage="\
15929 \`$as_me' instantiates files and other configuration actions
15930 from templates according to the current configuration. Unless the files
15931 and actions are specified as TAGs, all are instantiated by default.
15933 Usage: $0 [OPTION]... [TAG]...
15935 -h, --help print this help, then exit
15936 -V, --version print version number and configuration settings, then exit
15937 -q, --quiet, --silent
15938 do not print progress messages
15939 -d, --debug don't remove temporary files
15940 --recheck update $as_me by reconfiguring in the same conditions
15941 --file=FILE[:TEMPLATE]
15942 instantiate the configuration file FILE
15943 --header=FILE[:TEMPLATE]
15944 instantiate the configuration header FILE
15946 Configuration files:
15947 $config_files
15949 Configuration headers:
15950 $config_headers
15952 Configuration commands:
15953 $config_commands
15955 Report bugs to the package provider."
15957 _ACEOF
15958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15959 ac_cs_version="\\
15960 config.status
15961 configured by $0, generated by GNU Autoconf 2.64,
15962 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15964 Copyright (C) 2009 Free Software Foundation, Inc.
15965 This config.status script is free software; the Free Software Foundation
15966 gives unlimited permission to copy, distribute and modify it."
15968 ac_pwd='$ac_pwd'
15969 srcdir='$srcdir'
15970 INSTALL='$INSTALL'
15971 MKDIR_P='$MKDIR_P'
15972 AWK='$AWK'
15973 test -n "\$AWK" || AWK=awk
15974 _ACEOF
15976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15977 # The default lists apply if the user does not specify any file.
15978 ac_need_defaults=:
15979 while test $# != 0
15981 case $1 in
15982 --*=*)
15983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15985 ac_shift=:
15988 ac_option=$1
15989 ac_optarg=$2
15990 ac_shift=shift
15992 esac
15994 case $ac_option in
15995 # Handling of the options.
15996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15997 ac_cs_recheck=: ;;
15998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15999 $as_echo "$ac_cs_version"; exit ;;
16000 --debug | --debu | --deb | --de | --d | -d )
16001 debug=: ;;
16002 --file | --fil | --fi | --f )
16003 $ac_shift
16004 case $ac_optarg in
16005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16006 esac
16007 as_fn_append CONFIG_FILES " '$ac_optarg'"
16008 ac_need_defaults=false;;
16009 --header | --heade | --head | --hea )
16010 $ac_shift
16011 case $ac_optarg in
16012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16013 esac
16014 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16015 ac_need_defaults=false;;
16016 --he | --h)
16017 # Conflict between --help and --header
16018 as_fn_error "ambiguous option: \`$1'
16019 Try \`$0 --help' for more information.";;
16020 --help | --hel | -h )
16021 $as_echo "$ac_cs_usage"; exit ;;
16022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16023 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16024 ac_cs_silent=: ;;
16026 # This is an error.
16027 -*) as_fn_error "unrecognized option: \`$1'
16028 Try \`$0 --help' for more information." ;;
16030 *) as_fn_append ac_config_targets " $1"
16031 ac_need_defaults=false ;;
16033 esac
16034 shift
16035 done
16037 ac_configure_extra_args=
16039 if $ac_cs_silent; then
16040 exec 6>/dev/null
16041 ac_configure_extra_args="$ac_configure_extra_args --silent"
16044 _ACEOF
16045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046 if \$ac_cs_recheck; then
16047 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16048 shift
16049 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16050 CONFIG_SHELL='$SHELL'
16051 export CONFIG_SHELL
16052 exec "\$@"
16055 _ACEOF
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 exec 5>>config.log
16059 echo
16060 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16061 ## Running $as_me. ##
16062 _ASBOX
16063 $as_echo "$ac_log"
16064 } >&5
16066 _ACEOF
16067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16069 # INIT-COMMANDS
16072 srcdir="$srcdir"
16073 host="$host"
16074 target="$target"
16075 with_multisubdir="$with_multisubdir"
16076 with_multisrctop="$with_multisrctop"
16077 with_target_subdir="$with_target_subdir"
16078 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16079 multi_basedir="$multi_basedir"
16080 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16081 CC="$CC"
16082 CXX="$CXX"
16083 GFORTRAN="$GFORTRAN"
16084 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16087 # The HP-UX ksh and POSIX shell print the target directory to stdout
16088 # if CDPATH is set.
16089 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16091 sed_quote_subst='$sed_quote_subst'
16092 double_quote_subst='$double_quote_subst'
16093 delay_variable_subst='$delay_variable_subst'
16094 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16095 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16096 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16097 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16098 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16099 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16100 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16101 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16102 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16103 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16104 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16105 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16106 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16107 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16108 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16109 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16110 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16111 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16112 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16113 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16114 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16115 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16116 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16117 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16118 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16119 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16120 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16121 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16122 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16123 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16124 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16125 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16126 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16127 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16128 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16129 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16130 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16131 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16132 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16133 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16134 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16135 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16136 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16137 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16138 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16139 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16140 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16141 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16142 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"`'
16143 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16144 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16145 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16146 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16147 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16148 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16149 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16150 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16151 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16152 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16153 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16154 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16155 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16156 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16157 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16158 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16159 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16160 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16161 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16162 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16163 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16164 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16165 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16166 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16167 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16168 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16169 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16170 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16171 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16172 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16173 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16174 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16175 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16176 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16177 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16178 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16179 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16180 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16181 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16182 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16183 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16184 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16185 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16186 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16187 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16188 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16189 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16190 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16191 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16192 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16193 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16194 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16195 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16196 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16197 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16198 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16199 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16200 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16201 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16202 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16203 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16204 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16205 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16206 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16207 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16208 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16209 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16210 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16211 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16212 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16213 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16214 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16215 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16216 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16217 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16218 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16219 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16220 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16221 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16222 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16223 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16224 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16225 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16226 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16227 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16228 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16229 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16230 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16231 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16232 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16233 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16234 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16235 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16236 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16237 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16238 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16239 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16240 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16241 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16242 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16243 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16244 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16245 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16246 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16247 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16248 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16249 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16250 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16251 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16252 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16253 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16254 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16255 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16256 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16257 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16258 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16259 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16260 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16261 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16262 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16263 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16264 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16265 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16266 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16267 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16268 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16270 LTCC='$LTCC'
16271 LTCFLAGS='$LTCFLAGS'
16272 compiler='$compiler_DEFAULT'
16274 # A function that is used when there is no print builtin or printf.
16275 func_fallback_echo ()
16277 eval 'cat <<_LTECHO_EOF
16279 _LTECHO_EOF'
16282 # Quote evaled strings.
16283 for var in SHELL \
16284 ECHO \
16285 SED \
16286 GREP \
16287 EGREP \
16288 FGREP \
16289 LD \
16290 NM \
16291 LN_S \
16292 lt_SP2NL \
16293 lt_NL2SP \
16294 reload_flag \
16295 OBJDUMP \
16296 deplibs_check_method \
16297 file_magic_cmd \
16298 AR \
16299 AR_FLAGS \
16300 STRIP \
16301 RANLIB \
16302 CC \
16303 CFLAGS \
16304 compiler \
16305 lt_cv_sys_global_symbol_pipe \
16306 lt_cv_sys_global_symbol_to_cdecl \
16307 lt_cv_sys_global_symbol_to_c_name_address \
16308 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16309 lt_prog_compiler_no_builtin_flag \
16310 lt_prog_compiler_wl \
16311 lt_prog_compiler_pic \
16312 lt_prog_compiler_static \
16313 lt_cv_prog_compiler_c_o \
16314 need_locks \
16315 DSYMUTIL \
16316 NMEDIT \
16317 LIPO \
16318 OTOOL \
16319 OTOOL64 \
16320 shrext_cmds \
16321 export_dynamic_flag_spec \
16322 whole_archive_flag_spec \
16323 compiler_needs_object \
16324 with_gnu_ld \
16325 allow_undefined_flag \
16326 no_undefined_flag \
16327 hardcode_libdir_flag_spec \
16328 hardcode_libdir_flag_spec_ld \
16329 hardcode_libdir_separator \
16330 fix_srcfile_path \
16331 exclude_expsyms \
16332 include_expsyms \
16333 file_list_spec \
16334 variables_saved_for_relink \
16335 libname_spec \
16336 library_names_spec \
16337 soname_spec \
16338 install_override_mode \
16339 finish_eval \
16340 old_striplib \
16341 striplib \
16342 compiler_lib_search_dirs \
16343 predep_objects \
16344 postdep_objects \
16345 predeps \
16346 postdeps \
16347 compiler_lib_search_path \
16348 LD_CXX \
16349 reload_flag_CXX \
16350 compiler_CXX \
16351 lt_prog_compiler_no_builtin_flag_CXX \
16352 lt_prog_compiler_wl_CXX \
16353 lt_prog_compiler_pic_CXX \
16354 lt_prog_compiler_static_CXX \
16355 lt_cv_prog_compiler_c_o_CXX \
16356 export_dynamic_flag_spec_CXX \
16357 whole_archive_flag_spec_CXX \
16358 compiler_needs_object_CXX \
16359 with_gnu_ld_CXX \
16360 allow_undefined_flag_CXX \
16361 no_undefined_flag_CXX \
16362 hardcode_libdir_flag_spec_CXX \
16363 hardcode_libdir_flag_spec_ld_CXX \
16364 hardcode_libdir_separator_CXX \
16365 fix_srcfile_path_CXX \
16366 exclude_expsyms_CXX \
16367 include_expsyms_CXX \
16368 file_list_spec_CXX \
16369 compiler_lib_search_dirs_CXX \
16370 predep_objects_CXX \
16371 postdep_objects_CXX \
16372 predeps_CXX \
16373 postdeps_CXX \
16374 compiler_lib_search_path_CXX; do
16375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16376 *[\\\\\\\`\\"\\\$]*)
16377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16382 esac
16383 done
16385 # Double-quote double-evaled strings.
16386 for var in reload_cmds \
16387 old_postinstall_cmds \
16388 old_postuninstall_cmds \
16389 old_archive_cmds \
16390 extract_expsyms_cmds \
16391 old_archive_from_new_cmds \
16392 old_archive_from_expsyms_cmds \
16393 archive_cmds \
16394 archive_expsym_cmds \
16395 module_cmds \
16396 module_expsym_cmds \
16397 export_symbols_cmds \
16398 prelink_cmds \
16399 postinstall_cmds \
16400 postuninstall_cmds \
16401 finish_cmds \
16402 sys_lib_search_path_spec \
16403 sys_lib_dlsearch_path_spec \
16404 reload_cmds_CXX \
16405 old_archive_cmds_CXX \
16406 old_archive_from_new_cmds_CXX \
16407 old_archive_from_expsyms_cmds_CXX \
16408 archive_cmds_CXX \
16409 archive_expsym_cmds_CXX \
16410 module_cmds_CXX \
16411 module_expsym_cmds_CXX \
16412 export_symbols_cmds_CXX \
16413 prelink_cmds_CXX; do
16414 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16415 *[\\\\\\\`\\"\\\$]*)
16416 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16419 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16421 esac
16422 done
16424 ac_aux_dir='$ac_aux_dir'
16425 xsi_shell='$xsi_shell'
16426 lt_shell_append='$lt_shell_append'
16428 # See if we are running on zsh, and set the options which allow our
16429 # commands through without removal of \ escapes INIT.
16430 if test -n "\${ZSH_VERSION+set}" ; then
16431 setopt NO_GLOB_SUBST
16435 PACKAGE='$PACKAGE'
16436 VERSION='$VERSION'
16437 TIMESTAMP='$TIMESTAMP'
16438 RM='$RM'
16439 ofile='$ofile'
16446 _ACEOF
16448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16450 # Handling of arguments.
16451 for ac_config_target in $ac_config_targets
16453 case $ac_config_target in
16454 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16457 "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16458 "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16460 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16461 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16462 "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16464 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16465 esac
16466 done
16469 # If the user did not use the arguments to specify the items to instantiate,
16470 # then the envvar interface is used. Set only those that are not.
16471 # We use the long form for the default assignment because of an extremely
16472 # bizarre bug on SunOS 4.1.3.
16473 if $ac_need_defaults; then
16474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16479 # Have a temporary directory for convenience. Make it in the build tree
16480 # simply because there is no reason against having it here, and in addition,
16481 # creating and moving files from /tmp can sometimes cause problems.
16482 # Hook for its removal unless debugging.
16483 # Note that there is a small window in which the directory will not be cleaned:
16484 # after its creation but before its name has been assigned to `$tmp'.
16485 $debug ||
16487 tmp=
16488 trap 'exit_status=$?
16489 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16491 trap 'as_fn_exit 1' 1 2 13 15
16493 # Create a (secure) tmp directory for tmp files.
16496 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16497 test -n "$tmp" && test -d "$tmp"
16498 } ||
16500 tmp=./conf$$-$RANDOM
16501 (umask 077 && mkdir "$tmp")
16502 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16504 # Set up the scripts for CONFIG_FILES section.
16505 # No need to generate them if there are no CONFIG_FILES.
16506 # This happens for instance with `./config.status config.h'.
16507 if test -n "$CONFIG_FILES"; then
16510 ac_cr=`echo X | tr X '\015'`
16511 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16512 # But we know of no other shell where ac_cr would be empty at this
16513 # point, so we can use a bashism as a fallback.
16514 if test "x$ac_cr" = x; then
16515 eval ac_cr=\$\'\\r\'
16517 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16518 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16519 ac_cs_awk_cr='\r'
16520 else
16521 ac_cs_awk_cr=$ac_cr
16524 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16525 _ACEOF
16529 echo "cat >conf$$subs.awk <<_ACEOF" &&
16530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16531 echo "_ACEOF"
16532 } >conf$$subs.sh ||
16533 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16534 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16535 ac_delim='%!_!# '
16536 for ac_last_try in false false false false false :; do
16537 . ./conf$$subs.sh ||
16538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16541 if test $ac_delim_n = $ac_delim_num; then
16542 break
16543 elif $ac_last_try; then
16544 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16545 else
16546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16548 done
16549 rm -f conf$$subs.sh
16551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16552 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16553 _ACEOF
16554 sed -n '
16556 s/^/S["/; s/!.*/"]=/
16559 s/^[^!]*!//
16560 :repl
16561 t repl
16562 s/'"$ac_delim"'$//
16563 t delim
16566 s/\(.\{148\}\).*/\1/
16567 t more1
16568 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16571 b repl
16572 :more1
16573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16576 s/.\{148\}//
16577 t nl
16578 :delim
16580 s/\(.\{148\}\).*/\1/
16581 t more2
16582 s/["\\]/\\&/g; s/^/"/; s/$/"/
16585 :more2
16586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16589 s/.\{148\}//
16590 t delim
16591 ' <conf$$subs.awk | sed '
16592 /^[^""]/{
16594 s/\n//
16596 ' >>$CONFIG_STATUS || ac_write_fail=1
16597 rm -f conf$$subs.awk
16598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16599 _ACAWK
16600 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16601 for (key in S) S_is_set[key] = 1
16602 FS = "\a"
16606 line = $ 0
16607 nfields = split(line, field, "@")
16608 substed = 0
16609 len = length(field[1])
16610 for (i = 2; i < nfields; i++) {
16611 key = field[i]
16612 keylen = length(key)
16613 if (S_is_set[key]) {
16614 value = S[key]
16615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16616 len += length(value) + length(field[++i])
16617 substed = 1
16618 } else
16619 len += 1 + keylen
16622 print line
16625 _ACAWK
16626 _ACEOF
16627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16628 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16630 else
16632 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16633 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16634 _ACEOF
16636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16638 # trailing colons and then remove the whole line if VPATH becomes empty
16639 # (actually we leave an empty line to preserve line numbers).
16640 if test "x$srcdir" = x.; then
16641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16642 s/:*\$(srcdir):*/:/
16643 s/:*\${srcdir}:*/:/
16644 s/:*@srcdir@:*/:/
16645 s/^\([^=]*=[ ]*\):*/\1/
16646 s/:*$//
16647 s/^[^=]*=[ ]*$//
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 fi # test -n "$CONFIG_FILES"
16654 # Set up the scripts for CONFIG_HEADERS section.
16655 # No need to generate them if there are no CONFIG_HEADERS.
16656 # This happens for instance with `./config.status Makefile'.
16657 if test -n "$CONFIG_HEADERS"; then
16658 cat >"$tmp/defines.awk" <<\_ACAWK ||
16659 BEGIN {
16660 _ACEOF
16662 # Transform confdefs.h into an awk script `defines.awk', embedded as
16663 # here-document in config.status, that substitutes the proper values into
16664 # config.h.in to produce config.h.
16666 # Create a delimiter string that does not exist in confdefs.h, to ease
16667 # handling of long lines.
16668 ac_delim='%!_!# '
16669 for ac_last_try in false false :; do
16670 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16671 if test -z "$ac_t"; then
16672 break
16673 elif $ac_last_try; then
16674 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16675 else
16676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16678 done
16680 # For the awk script, D is an array of macro values keyed by name,
16681 # likewise P contains macro parameters if any. Preserve backslash
16682 # newline sequences.
16684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16685 sed -n '
16686 s/.\{148\}/&'"$ac_delim"'/g
16687 t rset
16688 :rset
16689 s/^[ ]*#[ ]*define[ ][ ]*/ /
16690 t def
16692 :def
16693 s/\\$//
16694 t bsnl
16695 s/["\\]/\\&/g
16696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16697 D["\1"]=" \3"/p
16698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16700 :bsnl
16701 s/["\\]/\\&/g
16702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16703 D["\1"]=" \3\\\\\\n"\\/p
16704 t cont
16705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16706 t cont
16708 :cont
16710 s/.\{148\}/&'"$ac_delim"'/g
16711 t clear
16712 :clear
16713 s/\\$//
16714 t bsnlc
16715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16717 :bsnlc
16718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16719 b cont
16720 ' <confdefs.h | sed '
16721 s/'"$ac_delim"'/"\\\
16722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 for (key in D) D_is_set[key] = 1
16726 FS = "\a"
16728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16729 line = \$ 0
16730 split(line, arg, " ")
16731 if (arg[1] == "#") {
16732 defundef = arg[2]
16733 mac1 = arg[3]
16734 } else {
16735 defundef = substr(arg[1], 2)
16736 mac1 = arg[2]
16738 split(mac1, mac2, "(") #)
16739 macro = mac2[1]
16740 prefix = substr(line, 1, index(line, defundef) - 1)
16741 if (D_is_set[macro]) {
16742 # Preserve the white space surrounding the "#".
16743 print prefix "define", macro P[macro] D[macro]
16744 next
16745 } else {
16746 # Replace #undef with comments. This is necessary, for example,
16747 # in the case of _POSIX_SOURCE, which is predefined and required
16748 # on some systems where configure will not decide to define it.
16749 if (defundef == "undef") {
16750 print "/*", prefix defundef, macro, "*/"
16751 next
16755 { print }
16756 _ACAWK
16757 _ACEOF
16758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16759 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16760 fi # test -n "$CONFIG_HEADERS"
16763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16764 shift
16765 for ac_tag
16767 case $ac_tag in
16768 :[FHLC]) ac_mode=$ac_tag; continue;;
16769 esac
16770 case $ac_mode$ac_tag in
16771 :[FHL]*:*);;
16772 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16773 :[FH]-) ac_tag=-:-;;
16774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16775 esac
16776 ac_save_IFS=$IFS
16777 IFS=:
16778 set x $ac_tag
16779 IFS=$ac_save_IFS
16780 shift
16781 ac_file=$1
16782 shift
16784 case $ac_mode in
16785 :L) ac_source=$1;;
16786 :[FH])
16787 ac_file_inputs=
16788 for ac_f
16790 case $ac_f in
16791 -) ac_f="$tmp/stdin";;
16792 *) # Look for the file first in the build tree, then in the source tree
16793 # (if the path is not absolute). The absolute path cannot be DOS-style,
16794 # because $ac_f cannot contain `:'.
16795 test -f "$ac_f" ||
16796 case $ac_f in
16797 [\\/$]*) false;;
16798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16799 esac ||
16800 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16801 esac
16802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16803 as_fn_append ac_file_inputs " '$ac_f'"
16804 done
16806 # Let's still pretend it is `configure' which instantiates (i.e., don't
16807 # use $as_me), people would be surprised to read:
16808 # /* config.h. Generated by config.status. */
16809 configure_input='Generated from '`
16810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16811 `' by configure.'
16812 if test x"$ac_file" != x-; then
16813 configure_input="$ac_file. $configure_input"
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16815 $as_echo "$as_me: creating $ac_file" >&6;}
16817 # Neutralize special characters interpreted by sed in replacement strings.
16818 case $configure_input in #(
16819 *\&* | *\|* | *\\* )
16820 ac_sed_conf_input=`$as_echo "$configure_input" |
16821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16822 *) ac_sed_conf_input=$configure_input;;
16823 esac
16825 case $ac_tag in
16826 *:-:* | *:-) cat >"$tmp/stdin" \
16827 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16828 esac
16830 esac
16832 ac_dir=`$as_dirname -- "$ac_file" ||
16833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16834 X"$ac_file" : 'X\(//\)[^/]' \| \
16835 X"$ac_file" : 'X\(//\)$' \| \
16836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16837 $as_echo X"$ac_file" |
16838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16839 s//\1/
16842 /^X\(\/\/\)[^/].*/{
16843 s//\1/
16846 /^X\(\/\/\)$/{
16847 s//\1/
16850 /^X\(\/\).*/{
16851 s//\1/
16854 s/.*/./; q'`
16855 as_dir="$ac_dir"; as_fn_mkdir_p
16856 ac_builddir=.
16858 case "$ac_dir" in
16859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16862 # A ".." for each directory in $ac_dir_suffix.
16863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16864 case $ac_top_builddir_sub in
16865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16867 esac ;;
16868 esac
16869 ac_abs_top_builddir=$ac_pwd
16870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16871 # for backward compatibility:
16872 ac_top_builddir=$ac_top_build_prefix
16874 case $srcdir in
16875 .) # We are building in place.
16876 ac_srcdir=.
16877 ac_top_srcdir=$ac_top_builddir_sub
16878 ac_abs_top_srcdir=$ac_pwd ;;
16879 [\\/]* | ?:[\\/]* ) # Absolute name.
16880 ac_srcdir=$srcdir$ac_dir_suffix;
16881 ac_top_srcdir=$srcdir
16882 ac_abs_top_srcdir=$srcdir ;;
16883 *) # Relative name.
16884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16885 ac_top_srcdir=$ac_top_build_prefix$srcdir
16886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16887 esac
16888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16891 case $ac_mode in
16894 # CONFIG_FILE
16897 case $INSTALL in
16898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16900 esac
16901 ac_MKDIR_P=$MKDIR_P
16902 case $MKDIR_P in
16903 [\\/$]* | ?:[\\/]* ) ;;
16904 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16905 esac
16906 _ACEOF
16908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16909 # If the template does not know about datarootdir, expand it.
16910 # FIXME: This hack should be removed a few years after 2.60.
16911 ac_datarootdir_hack=; ac_datarootdir_seen=
16912 ac_sed_dataroot='
16913 /datarootdir/ {
16917 /@datadir@/p
16918 /@docdir@/p
16919 /@infodir@/p
16920 /@localedir@/p
16921 /@mandir@/p'
16922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16923 *datarootdir*) ac_datarootdir_seen=yes;;
16924 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16926 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16927 _ACEOF
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 ac_datarootdir_hack='
16930 s&@datadir@&$datadir&g
16931 s&@docdir@&$docdir&g
16932 s&@infodir@&$infodir&g
16933 s&@localedir@&$localedir&g
16934 s&@mandir@&$mandir&g
16935 s&\\\${datarootdir}&$datarootdir&g' ;;
16936 esac
16937 _ACEOF
16939 # Neutralize VPATH when `$srcdir' = `.'.
16940 # Shell code in configure.ac might set extrasub.
16941 # FIXME: do we really want to maintain this feature?
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 ac_sed_extra="$ac_vpsub
16944 $extrasub
16945 _ACEOF
16946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16949 s|@configure_input@|$ac_sed_conf_input|;t t
16950 s&@top_builddir@&$ac_top_builddir_sub&;t t
16951 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16952 s&@srcdir@&$ac_srcdir&;t t
16953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16954 s&@top_srcdir@&$ac_top_srcdir&;t t
16955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16956 s&@builddir@&$ac_builddir&;t t
16957 s&@abs_builddir@&$ac_abs_builddir&;t t
16958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16959 s&@INSTALL@&$ac_INSTALL&;t t
16960 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16961 $ac_datarootdir_hack
16963 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16964 || as_fn_error "could not create $ac_file" "$LINENO" 5
16966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16970 which seems to be undefined. Please make sure it is defined." >&5
16971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16972 which seems to be undefined. Please make sure it is defined." >&2;}
16974 rm -f "$tmp/stdin"
16975 case $ac_file in
16976 -) cat "$tmp/out" && rm -f "$tmp/out";;
16977 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16978 esac \
16979 || as_fn_error "could not create $ac_file" "$LINENO" 5
16983 # CONFIG_HEADER
16985 if test x"$ac_file" != x-; then
16987 $as_echo "/* $configure_input */" \
16988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16989 } >"$tmp/config.h" \
16990 || as_fn_error "could not create $ac_file" "$LINENO" 5
16991 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16994 else
16995 rm -f "$ac_file"
16996 mv "$tmp/config.h" "$ac_file" \
16997 || as_fn_error "could not create $ac_file" "$LINENO" 5
16999 else
17000 $as_echo "/* $configure_input */" \
17001 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17002 || as_fn_error "could not create -" "$LINENO" 5
17004 # Compute "$ac_file"'s index in $config_headers.
17005 _am_arg="$ac_file"
17006 _am_stamp_count=1
17007 for _am_header in $config_headers :; do
17008 case $_am_header in
17009 $_am_arg | $_am_arg:* )
17010 break ;;
17012 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17013 esac
17014 done
17015 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17016 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017 X"$_am_arg" : 'X\(//\)[^/]' \| \
17018 X"$_am_arg" : 'X\(//\)$' \| \
17019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$_am_arg" |
17021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17022 s//\1/
17025 /^X\(\/\/\)[^/].*/{
17026 s//\1/
17029 /^X\(\/\/\)$/{
17030 s//\1/
17033 /^X\(\/\).*/{
17034 s//\1/
17037 s/.*/./; q'`/stamp-h$_am_stamp_count
17040 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17041 $as_echo "$as_me: executing $ac_file commands" >&6;}
17043 esac
17046 case $ac_file$ac_mode in
17047 "default-1":C)
17048 # Only add multilib support code if we just rebuilt the top-level
17049 # Makefile.
17050 case " $CONFIG_FILES " in
17051 *" Makefile "*)
17052 ac_file=Makefile . ${multi_basedir}/config-ml.in
17054 esac ;;
17055 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17056 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17057 # are listed without --file. Let's play safe and only enable the eval
17058 # if we detect the quoting.
17059 case $CONFIG_FILES in
17060 *\'*) eval set x "$CONFIG_FILES" ;;
17061 *) set x $CONFIG_FILES ;;
17062 esac
17063 shift
17064 for mf
17066 # Strip MF so we end up with the name of the file.
17067 mf=`echo "$mf" | sed -e 's/:.*$//'`
17068 # Check whether this is an Automake generated Makefile or not.
17069 # We used to match only the files named `Makefile.in', but
17070 # some people rename them; so instead we look at the file content.
17071 # Grep'ing the first line is not enough: some people post-process
17072 # each Makefile.in and add a new line on top of each file to say so.
17073 # Grep'ing the whole file is not good either: AIX grep has a line
17074 # limit of 2048, but all sed's we know have understand at least 4000.
17075 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17076 dirpart=`$as_dirname -- "$mf" ||
17077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17078 X"$mf" : 'X\(//\)[^/]' \| \
17079 X"$mf" : 'X\(//\)$' \| \
17080 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17081 $as_echo X"$mf" |
17082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17083 s//\1/
17086 /^X\(\/\/\)[^/].*/{
17087 s//\1/
17090 /^X\(\/\/\)$/{
17091 s//\1/
17094 /^X\(\/\).*/{
17095 s//\1/
17098 s/.*/./; q'`
17099 else
17100 continue
17102 # Extract the definition of DEPDIR, am__include, and am__quote
17103 # from the Makefile without running `make'.
17104 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17105 test -z "$DEPDIR" && continue
17106 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17107 test -z "am__include" && continue
17108 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17109 # When using ansi2knr, U may be empty or an underscore; expand it
17110 U=`sed -n 's/^U = //p' < "$mf"`
17111 # Find all dependency output files, they are included files with
17112 # $(DEPDIR) in their names. We invoke sed twice because it is the
17113 # simplest approach to changing $(DEPDIR) to its actual value in the
17114 # expansion.
17115 for file in `sed -n "
17116 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17117 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17118 # Make sure the directory exists.
17119 test -f "$dirpart/$file" && continue
17120 fdir=`$as_dirname -- "$file" ||
17121 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17122 X"$file" : 'X\(//\)[^/]' \| \
17123 X"$file" : 'X\(//\)$' \| \
17124 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17125 $as_echo X"$file" |
17126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17127 s//\1/
17130 /^X\(\/\/\)[^/].*/{
17131 s//\1/
17134 /^X\(\/\/\)$/{
17135 s//\1/
17138 /^X\(\/\).*/{
17139 s//\1/
17142 s/.*/./; q'`
17143 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17144 # echo "creating $dirpart/$file"
17145 echo '# dummy' > "$dirpart/$file"
17146 done
17147 done
17150 "libtool":C)
17152 # See if we are running on zsh, and set the options which allow our
17153 # commands through without removal of \ escapes.
17154 if test -n "${ZSH_VERSION+set}" ; then
17155 setopt NO_GLOB_SUBST
17158 cfgfile="${ofile}T"
17159 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17160 $RM "$cfgfile"
17162 cat <<_LT_EOF >> "$cfgfile"
17163 #! $SHELL
17165 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17166 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17168 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17171 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17172 # Written by Gordon Matzigkeit, 1996
17174 # This file is part of GNU Libtool.
17176 # GNU Libtool is free software; you can redistribute it and/or
17177 # modify it under the terms of the GNU General Public License as
17178 # published by the Free Software Foundation; either version 2 of
17179 # the License, or (at your option) any later version.
17181 # As a special exception to the GNU General Public License,
17182 # if you distribute this file as part of a program or library that
17183 # is built using GNU Libtool, you may include this file under the
17184 # same distribution terms that you use for the rest of that program.
17186 # GNU Libtool is distributed in the hope that it will be useful,
17187 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17189 # GNU General Public License for more details.
17191 # You should have received a copy of the GNU General Public License
17192 # along with GNU Libtool; see the file COPYING. If not, a copy
17193 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17194 # obtained by writing to the Free Software Foundation, Inc.,
17195 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17198 # The names of the tagged configurations supported by this script.
17199 available_tags="CXX "
17201 # ### BEGIN LIBTOOL CONFIG
17203 # Which release of libtool.m4 was used?
17204 macro_version=$macro_version
17205 macro_revision=$macro_revision
17207 # Whether or not to build shared libraries.
17208 build_libtool_libs=$enable_shared
17210 # Whether or not to build static libraries.
17211 build_old_libs=$enable_static
17213 # What type of objects to build.
17214 pic_mode=$pic_mode
17216 # Whether or not to optimize for fast installation.
17217 fast_install=$enable_fast_install
17219 # Shell to use when invoking shell scripts.
17220 SHELL=$lt_SHELL
17222 # An echo program that protects backslashes.
17223 ECHO=$lt_ECHO
17225 # The host system.
17226 host_alias=$host_alias
17227 host=$host
17228 host_os=$host_os
17230 # The build system.
17231 build_alias=$build_alias
17232 build=$build
17233 build_os=$build_os
17235 # A sed program that does not truncate output.
17236 SED=$lt_SED
17238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17239 Xsed="\$SED -e 1s/^X//"
17241 # A grep program that handles long lines.
17242 GREP=$lt_GREP
17244 # An ERE matcher.
17245 EGREP=$lt_EGREP
17247 # A literal string matcher.
17248 FGREP=$lt_FGREP
17250 # A BSD- or MS-compatible name lister.
17251 NM=$lt_NM
17253 # Whether we need soft or hard links.
17254 LN_S=$lt_LN_S
17256 # What is the maximum length of a command?
17257 max_cmd_len=$max_cmd_len
17259 # Object file suffix (normally "o").
17260 objext=$ac_objext
17262 # Executable file suffix (normally "").
17263 exeext=$exeext
17265 # whether the shell understands "unset".
17266 lt_unset=$lt_unset
17268 # turn spaces into newlines.
17269 SP2NL=$lt_lt_SP2NL
17271 # turn newlines into spaces.
17272 NL2SP=$lt_lt_NL2SP
17274 # An object symbol dumper.
17275 OBJDUMP=$lt_OBJDUMP
17277 # Method to check whether dependent libraries are shared objects.
17278 deplibs_check_method=$lt_deplibs_check_method
17280 # Command to use when deplibs_check_method == "file_magic".
17281 file_magic_cmd=$lt_file_magic_cmd
17283 # The archiver.
17284 AR=$lt_AR
17285 AR_FLAGS=$lt_AR_FLAGS
17287 # A symbol stripping program.
17288 STRIP=$lt_STRIP
17290 # Commands used to install an old-style archive.
17291 RANLIB=$lt_RANLIB
17292 old_postinstall_cmds=$lt_old_postinstall_cmds
17293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17295 # Whether to use a lock for old archive extraction.
17296 lock_old_archive_extraction=$lock_old_archive_extraction
17298 # A C compiler.
17299 LTCC=$lt_CC
17301 # LTCC compiler flags.
17302 LTCFLAGS=$lt_CFLAGS
17304 # Take the output of nm and produce a listing of raw symbols and C names.
17305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17307 # Transform the output of nm in a proper C declaration.
17308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17310 # Transform the output of nm in a C name address pair.
17311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17313 # Transform the output of nm in a C name address pair when lib prefix is needed.
17314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17316 # The name of the directory that contains temporary libtool files.
17317 objdir=$objdir
17319 # Used to examine libraries when file_magic_cmd begins with "file".
17320 MAGIC_CMD=$MAGIC_CMD
17322 # Must we lock files when doing compilation?
17323 need_locks=$lt_need_locks
17325 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17326 DSYMUTIL=$lt_DSYMUTIL
17328 # Tool to change global to local symbols on Mac OS X.
17329 NMEDIT=$lt_NMEDIT
17331 # Tool to manipulate fat objects and archives on Mac OS X.
17332 LIPO=$lt_LIPO
17334 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17335 OTOOL=$lt_OTOOL
17337 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17338 OTOOL64=$lt_OTOOL64
17340 # Old archive suffix (normally "a").
17341 libext=$libext
17343 # Shared library suffix (normally ".so").
17344 shrext_cmds=$lt_shrext_cmds
17346 # The commands to extract the exported symbol list from a shared archive.
17347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17349 # Variables whose values should be saved in libtool wrapper scripts and
17350 # restored at link time.
17351 variables_saved_for_relink=$lt_variables_saved_for_relink
17353 # Do we need the "lib" prefix for modules?
17354 need_lib_prefix=$need_lib_prefix
17356 # Do we need a version for libraries?
17357 need_version=$need_version
17359 # Library versioning type.
17360 version_type=$version_type
17362 # Shared library runtime path variable.
17363 runpath_var=$runpath_var
17365 # Shared library path variable.
17366 shlibpath_var=$shlibpath_var
17368 # Is shlibpath searched before the hard-coded library search path?
17369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17371 # Format of library name prefix.
17372 libname_spec=$lt_libname_spec
17374 # List of archive names. First name is the real one, the rest are links.
17375 # The last name is the one that the linker finds with -lNAME
17376 library_names_spec=$lt_library_names_spec
17378 # The coded name of the library, if different from the real name.
17379 soname_spec=$lt_soname_spec
17381 # Permission mode override for installation of shared libraries.
17382 install_override_mode=$lt_install_override_mode
17384 # Command to use after installation of a shared archive.
17385 postinstall_cmds=$lt_postinstall_cmds
17387 # Command to use after uninstallation of a shared archive.
17388 postuninstall_cmds=$lt_postuninstall_cmds
17390 # Commands used to finish a libtool library installation in a directory.
17391 finish_cmds=$lt_finish_cmds
17393 # As "finish_cmds", except a single script fragment to be evaled but
17394 # not shown.
17395 finish_eval=$lt_finish_eval
17397 # Whether we should hardcode library paths into libraries.
17398 hardcode_into_libs=$hardcode_into_libs
17400 # Compile-time system search path for libraries.
17401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17403 # Run-time system search path for libraries.
17404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17406 # Whether dlopen is supported.
17407 dlopen_support=$enable_dlopen
17409 # Whether dlopen of programs is supported.
17410 dlopen_self=$enable_dlopen_self
17412 # Whether dlopen of statically linked programs is supported.
17413 dlopen_self_static=$enable_dlopen_self_static
17415 # Commands to strip libraries.
17416 old_striplib=$lt_old_striplib
17417 striplib=$lt_striplib
17420 # The linker used to build libraries.
17421 LD=$lt_LD
17423 # How to create reloadable object files.
17424 reload_flag=$lt_reload_flag
17425 reload_cmds=$lt_reload_cmds
17427 # Commands used to build an old-style archive.
17428 old_archive_cmds=$lt_old_archive_cmds
17430 # A language specific compiler.
17431 CC=$lt_compiler
17433 # Is the compiler the GNU compiler?
17434 with_gcc=$GCC
17436 # Compiler flag to turn off builtin functions.
17437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17439 # How to pass a linker flag through the compiler.
17440 wl=$lt_lt_prog_compiler_wl
17442 # Additional compiler flags for building library objects.
17443 pic_flag=$lt_lt_prog_compiler_pic
17445 # Compiler flag to prevent dynamic linking.
17446 link_static_flag=$lt_lt_prog_compiler_static
17448 # Does compiler simultaneously support -c and -o options?
17449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17451 # Whether or not to add -lc for building shared libraries.
17452 build_libtool_need_lc=$archive_cmds_need_lc
17454 # Whether or not to disallow shared libs when runtime libs are static.
17455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17457 # Compiler flag to allow reflexive dlopens.
17458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17460 # Compiler flag to generate shared objects directly from archives.
17461 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17463 # Whether the compiler copes with passing no objects directly.
17464 compiler_needs_object=$lt_compiler_needs_object
17466 # Create an old-style archive from a shared archive.
17467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17469 # Create a temporary old-style archive to link instead of a shared archive.
17470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17472 # Commands used to build a shared archive.
17473 archive_cmds=$lt_archive_cmds
17474 archive_expsym_cmds=$lt_archive_expsym_cmds
17476 # Commands used to build a loadable module if different from building
17477 # a shared archive.
17478 module_cmds=$lt_module_cmds
17479 module_expsym_cmds=$lt_module_expsym_cmds
17481 # Whether we are building with GNU ld or not.
17482 with_gnu_ld=$lt_with_gnu_ld
17484 # Flag that allows shared libraries with undefined symbols to be built.
17485 allow_undefined_flag=$lt_allow_undefined_flag
17487 # Flag that enforces no undefined symbols.
17488 no_undefined_flag=$lt_no_undefined_flag
17490 # Flag to hardcode \$libdir into a binary during linking.
17491 # This must work even if \$libdir does not exist
17492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17494 # If ld is used when linking, flag to hardcode \$libdir into a binary
17495 # during linking. This must work even if \$libdir does not exist.
17496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17498 # Whether we need a single "-rpath" flag with a separated argument.
17499 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17501 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17502 # DIR into the resulting binary.
17503 hardcode_direct=$hardcode_direct
17505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17506 # DIR into the resulting binary and the resulting library dependency is
17507 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17508 # library is relocated.
17509 hardcode_direct_absolute=$hardcode_direct_absolute
17511 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17512 # into the resulting binary.
17513 hardcode_minus_L=$hardcode_minus_L
17515 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17516 # into the resulting binary.
17517 hardcode_shlibpath_var=$hardcode_shlibpath_var
17519 # Set to "yes" if building a shared library automatically hardcodes DIR
17520 # into the library and all subsequent libraries and executables linked
17521 # against it.
17522 hardcode_automatic=$hardcode_automatic
17524 # Set to yes if linker adds runtime paths of dependent libraries
17525 # to runtime path list.
17526 inherit_rpath=$inherit_rpath
17528 # Whether libtool must link a program against all its dependency libraries.
17529 link_all_deplibs=$link_all_deplibs
17531 # Fix the shell variable \$srcfile for the compiler.
17532 fix_srcfile_path=$lt_fix_srcfile_path
17534 # Set to "yes" if exported symbols are required.
17535 always_export_symbols=$always_export_symbols
17537 # The commands to list exported symbols.
17538 export_symbols_cmds=$lt_export_symbols_cmds
17540 # Symbols that should not be listed in the preloaded symbols.
17541 exclude_expsyms=$lt_exclude_expsyms
17543 # Symbols that must always be exported.
17544 include_expsyms=$lt_include_expsyms
17546 # Commands necessary for linking programs (against libraries) with templates.
17547 prelink_cmds=$lt_prelink_cmds
17549 # Specify filename containing input files.
17550 file_list_spec=$lt_file_list_spec
17552 # How to hardcode a shared library path into an executable.
17553 hardcode_action=$hardcode_action
17555 # The directories searched by this compiler when creating a shared library.
17556 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17558 # Dependencies to place before and after the objects being linked to
17559 # create a shared library.
17560 predep_objects=$lt_predep_objects
17561 postdep_objects=$lt_postdep_objects
17562 predeps=$lt_predeps
17563 postdeps=$lt_postdeps
17565 # The library search path used internally by the compiler when linking
17566 # a shared library.
17567 compiler_lib_search_path=$lt_compiler_lib_search_path
17569 # ### END LIBTOOL CONFIG
17571 _LT_EOF
17573 case $host_os in
17574 aix3*)
17575 cat <<\_LT_EOF >> "$cfgfile"
17576 # AIX sometimes has problems with the GCC collect2 program. For some
17577 # reason, if we set the COLLECT_NAMES environment variable, the problems
17578 # vanish in a puff of smoke.
17579 if test "X${COLLECT_NAMES+set}" != Xset; then
17580 COLLECT_NAMES=
17581 export COLLECT_NAMES
17583 _LT_EOF
17585 esac
17588 ltmain="$ac_aux_dir/ltmain.sh"
17591 # We use sed instead of cat because bash on DJGPP gets confused if
17592 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17593 # text mode, it properly converts lines to CR/LF. This bash problem
17594 # is reportedly fixed, but why not run on old versions too?
17595 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17596 || (rm -f "$cfgfile"; exit 1)
17598 case $xsi_shell in
17599 yes)
17600 cat << \_LT_EOF >> "$cfgfile"
17602 # func_dirname file append nondir_replacement
17603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17604 # otherwise set result to NONDIR_REPLACEMENT.
17605 func_dirname ()
17607 case ${1} in
17608 */*) func_dirname_result="${1%/*}${2}" ;;
17609 * ) func_dirname_result="${3}" ;;
17610 esac
17613 # func_basename file
17614 func_basename ()
17616 func_basename_result="${1##*/}"
17619 # func_dirname_and_basename file append nondir_replacement
17620 # perform func_basename and func_dirname in a single function
17621 # call:
17622 # dirname: Compute the dirname of FILE. If nonempty,
17623 # add APPEND to the result, otherwise set result
17624 # to NONDIR_REPLACEMENT.
17625 # value returned in "$func_dirname_result"
17626 # basename: Compute filename of FILE.
17627 # value retuned in "$func_basename_result"
17628 # Implementation must be kept synchronized with func_dirname
17629 # and func_basename. For efficiency, we do not delegate to
17630 # those functions but instead duplicate the functionality here.
17631 func_dirname_and_basename ()
17633 case ${1} in
17634 */*) func_dirname_result="${1%/*}${2}" ;;
17635 * ) func_dirname_result="${3}" ;;
17636 esac
17637 func_basename_result="${1##*/}"
17640 # func_stripname prefix suffix name
17641 # strip PREFIX and SUFFIX off of NAME.
17642 # PREFIX and SUFFIX must not contain globbing or regex special
17643 # characters, hashes, percent signs, but SUFFIX may contain a leading
17644 # dot (in which case that matches only a dot).
17645 func_stripname ()
17647 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17648 # positional parameters, so assign one to ordinary parameter first.
17649 func_stripname_result=${3}
17650 func_stripname_result=${func_stripname_result#"${1}"}
17651 func_stripname_result=${func_stripname_result%"${2}"}
17654 # func_opt_split
17655 func_opt_split ()
17657 func_opt_split_opt=${1%%=*}
17658 func_opt_split_arg=${1#*=}
17661 # func_lo2o object
17662 func_lo2o ()
17664 case ${1} in
17665 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17666 *) func_lo2o_result=${1} ;;
17667 esac
17670 # func_xform libobj-or-source
17671 func_xform ()
17673 func_xform_result=${1%.*}.lo
17676 # func_arith arithmetic-term...
17677 func_arith ()
17679 func_arith_result=$(( $* ))
17682 # func_len string
17683 # STRING may not start with a hyphen.
17684 func_len ()
17686 func_len_result=${#1}
17689 _LT_EOF
17691 *) # Bourne compatible functions.
17692 cat << \_LT_EOF >> "$cfgfile"
17694 # func_dirname file append nondir_replacement
17695 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17696 # otherwise set result to NONDIR_REPLACEMENT.
17697 func_dirname ()
17699 # Extract subdirectory from the argument.
17700 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17701 if test "X$func_dirname_result" = "X${1}"; then
17702 func_dirname_result="${3}"
17703 else
17704 func_dirname_result="$func_dirname_result${2}"
17708 # func_basename file
17709 func_basename ()
17711 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17715 # func_stripname prefix suffix name
17716 # strip PREFIX and SUFFIX off of NAME.
17717 # PREFIX and SUFFIX must not contain globbing or regex special
17718 # characters, hashes, percent signs, but SUFFIX may contain a leading
17719 # dot (in which case that matches only a dot).
17720 # func_strip_suffix prefix name
17721 func_stripname ()
17723 case ${2} in
17724 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17725 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17726 esac
17729 # sed scripts:
17730 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17731 my_sed_long_arg='1s/^-[^=]*=//'
17733 # func_opt_split
17734 func_opt_split ()
17736 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17737 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17740 # func_lo2o object
17741 func_lo2o ()
17743 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17746 # func_xform libobj-or-source
17747 func_xform ()
17749 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17752 # func_arith arithmetic-term...
17753 func_arith ()
17755 func_arith_result=`expr "$@"`
17758 # func_len string
17759 # STRING may not start with a hyphen.
17760 func_len ()
17762 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17765 _LT_EOF
17766 esac
17768 case $lt_shell_append in
17769 yes)
17770 cat << \_LT_EOF >> "$cfgfile"
17772 # func_append var value
17773 # Append VALUE to the end of shell variable VAR.
17774 func_append ()
17776 eval "$1+=\$2"
17778 _LT_EOF
17781 cat << \_LT_EOF >> "$cfgfile"
17783 # func_append var value
17784 # Append VALUE to the end of shell variable VAR.
17785 func_append ()
17787 eval "$1=\$$1\$2"
17790 _LT_EOF
17792 esac
17795 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17796 || (rm -f "$cfgfile"; exit 1)
17798 mv -f "$cfgfile" "$ofile" ||
17799 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17800 chmod +x "$ofile"
17803 cat <<_LT_EOF >> "$ofile"
17805 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17807 # The linker used to build libraries.
17808 LD=$lt_LD_CXX
17810 # How to create reloadable object files.
17811 reload_flag=$lt_reload_flag_CXX
17812 reload_cmds=$lt_reload_cmds_CXX
17814 # Commands used to build an old-style archive.
17815 old_archive_cmds=$lt_old_archive_cmds_CXX
17817 # A language specific compiler.
17818 CC=$lt_compiler_CXX
17820 # Is the compiler the GNU compiler?
17821 with_gcc=$GCC_CXX
17823 # Compiler flag to turn off builtin functions.
17824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17826 # How to pass a linker flag through the compiler.
17827 wl=$lt_lt_prog_compiler_wl_CXX
17829 # Additional compiler flags for building library objects.
17830 pic_flag=$lt_lt_prog_compiler_pic_CXX
17832 # Compiler flag to prevent dynamic linking.
17833 link_static_flag=$lt_lt_prog_compiler_static_CXX
17835 # Does compiler simultaneously support -c and -o options?
17836 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17838 # Whether or not to add -lc for building shared libraries.
17839 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17841 # Whether or not to disallow shared libs when runtime libs are static.
17842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17844 # Compiler flag to allow reflexive dlopens.
17845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17847 # Compiler flag to generate shared objects directly from archives.
17848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17850 # Whether the compiler copes with passing no objects directly.
17851 compiler_needs_object=$lt_compiler_needs_object_CXX
17853 # Create an old-style archive from a shared archive.
17854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17856 # Create a temporary old-style archive to link instead of a shared archive.
17857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17859 # Commands used to build a shared archive.
17860 archive_cmds=$lt_archive_cmds_CXX
17861 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17863 # Commands used to build a loadable module if different from building
17864 # a shared archive.
17865 module_cmds=$lt_module_cmds_CXX
17866 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17868 # Whether we are building with GNU ld or not.
17869 with_gnu_ld=$lt_with_gnu_ld_CXX
17871 # Flag that allows shared libraries with undefined symbols to be built.
17872 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17874 # Flag that enforces no undefined symbols.
17875 no_undefined_flag=$lt_no_undefined_flag_CXX
17877 # Flag to hardcode \$libdir into a binary during linking.
17878 # This must work even if \$libdir does not exist
17879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17881 # If ld is used when linking, flag to hardcode \$libdir into a binary
17882 # during linking. This must work even if \$libdir does not exist.
17883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17885 # Whether we need a single "-rpath" flag with a separated argument.
17886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17889 # DIR into the resulting binary.
17890 hardcode_direct=$hardcode_direct_CXX
17892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17893 # DIR into the resulting binary and the resulting library dependency is
17894 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17895 # library is relocated.
17896 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17898 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17899 # into the resulting binary.
17900 hardcode_minus_L=$hardcode_minus_L_CXX
17902 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17903 # into the resulting binary.
17904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17906 # Set to "yes" if building a shared library automatically hardcodes DIR
17907 # into the library and all subsequent libraries and executables linked
17908 # against it.
17909 hardcode_automatic=$hardcode_automatic_CXX
17911 # Set to yes if linker adds runtime paths of dependent libraries
17912 # to runtime path list.
17913 inherit_rpath=$inherit_rpath_CXX
17915 # Whether libtool must link a program against all its dependency libraries.
17916 link_all_deplibs=$link_all_deplibs_CXX
17918 # Fix the shell variable \$srcfile for the compiler.
17919 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17921 # Set to "yes" if exported symbols are required.
17922 always_export_symbols=$always_export_symbols_CXX
17924 # The commands to list exported symbols.
17925 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17927 # Symbols that should not be listed in the preloaded symbols.
17928 exclude_expsyms=$lt_exclude_expsyms_CXX
17930 # Symbols that must always be exported.
17931 include_expsyms=$lt_include_expsyms_CXX
17933 # Commands necessary for linking programs (against libraries) with templates.
17934 prelink_cmds=$lt_prelink_cmds_CXX
17936 # Specify filename containing input files.
17937 file_list_spec=$lt_file_list_spec_CXX
17939 # How to hardcode a shared library path into an executable.
17940 hardcode_action=$hardcode_action_CXX
17942 # The directories searched by this compiler when creating a shared library.
17943 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17945 # Dependencies to place before and after the objects being linked to
17946 # create a shared library.
17947 predep_objects=$lt_predep_objects_CXX
17948 postdep_objects=$lt_postdep_objects_CXX
17949 predeps=$lt_predeps_CXX
17950 postdeps=$lt_postdeps_CXX
17952 # The library search path used internally by the compiler when linking
17953 # a shared library.
17954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17956 # ### END LIBTOOL TAG CONFIG: CXX
17957 _LT_EOF
17961 esac
17962 done # for ac_tag
17965 as_fn_exit 0
17966 _ACEOF
17967 ac_clean_files=$ac_clean_files_save
17969 test $ac_write_fail = 0 ||
17970 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17973 # configure is writing to config.log, and then calls config.status.
17974 # config.status does its own redirection, appending to config.log.
17975 # Unfortunately, on DOS this fails, as config.log is still kept open
17976 # by configure, so config.status won't be able to write to it; its
17977 # output is simply discarded. So we exec the FD to /dev/null,
17978 # effectively closing config.log, so it can be properly (re)opened and
17979 # appended to by config.status. When coming back to configure, we
17980 # need to make the FD available again.
17981 if test "$no_create" != yes; then
17982 ac_cs_success=:
17983 ac_config_status_args=
17984 test "$silent" = yes &&
17985 ac_config_status_args="$ac_config_status_args --quiet"
17986 exec 5>/dev/null
17987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17988 exec 5>>config.log
17989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17990 # would make configure fail if this is the last instruction.
17991 $ac_cs_success || as_fn_exit $?
17993 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17995 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}