Fixup last commit.
[official-gcc.git] / libgo / configure
blobca3544e5f2be13dac6f46b4f7d4d962527ac7a4a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
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 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
616 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
617 GOARCH
618 LIBGO_IS_X86_64_FALSE
619 LIBGO_IS_X86_64_TRUE
620 LIBGO_IS_SPARC64_FALSE
621 LIBGO_IS_SPARC64_TRUE
622 LIBGO_IS_SPARC_FALSE
623 LIBGO_IS_SPARC_TRUE
624 LIBGO_IS_PPC64_FALSE
625 LIBGO_IS_PPC64_TRUE
626 LIBGO_IS_PPC_FALSE
627 LIBGO_IS_PPC_TRUE
628 LIBGO_IS_MIPS64_FALSE
629 LIBGO_IS_MIPS64_TRUE
630 LIBGO_IS_MIPS_FALSE
631 LIBGO_IS_MIPS_TRUE
632 LIBGO_IS_M68K_FALSE
633 LIBGO_IS_M68K_TRUE
634 LIBGO_IS_ARM_FALSE
635 LIBGO_IS_ARM_TRUE
636 LIBGO_IS_386_FALSE
637 LIBGO_IS_386_TRUE
638 GOOS
639 LIBGO_IS_SOLARIS_FALSE
640 LIBGO_IS_SOLARIS_TRUE
641 LIBGO_IS_RTEMS_FALSE
642 LIBGO_IS_RTEMS_TRUE
643 LIBGO_IS_LINUX_FALSE
644 LIBGO_IS_LINUX_TRUE
645 LIBGO_IS_FREEBSD_FALSE
646 LIBGO_IS_FREEBSD_TRUE
647 LIBGO_IS_DARWIN_FALSE
648 LIBGO_IS_DARWIN_TRUE
649 LIBFFIINCS
650 LIBFFI
651 glibgo_toolexeclibdir
652 glibgo_toolexecdir
653 glibgo_prefixdir
654 WERROR
655 WARN_FLAGS
656 enable_static
657 enable_shared
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
665 OBJDUMP
666 LN_S
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 OBJCOPY
672 RANLIB
674 FGREP
675 EGREP
676 GREP
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 GOCFLAGS
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 multi_basedir
735 libtool_VERSION
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_dependency_tracking
779 enable_maintainer_mode
780 with_gnu_ld
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 enable_libtool_lock
786 enable_version_specific_runtime_libs
787 with_libffi
788 with_system_libunwind
789 enable_sjlj_exceptions
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CPPFLAGS'
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
846 ac_prev=
847 ac_dashdash=
848 for ac_option
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
866 ac_dashdash=yes ;;
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
885 --config-cache | -C)
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information."
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 esac
1203 done
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error "missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1289 /^X\(\/\/\)$/{
1290 s//\1/
1293 /^X\(\/\).*/{
1294 s//\1/
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1302 else
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1392 cat <<\_ACEOF
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of package-unused version-unused:";;
1409 esac
1410 cat <<\_ACEOF
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --enable-maintainer-mode enable make rules and dependencies not useful
1420 (and sometimes confusing) to the casual installer
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-version-specific-runtime-libs
1427 Specify that runtime libraries should be installed
1428 in a compiler-specific directory
1429 --enable-sjlj-exceptions
1430 force use of builtin_setjmp for exceptions
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --without-libffi don't use libffi
1439 --with-system-libunwind use installed libunwind
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 GOC Go compiler command
1450 GOCFLAGS Go compiler flags
1451 CPP C preprocessor
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 package-unused configure version-unused
1520 generated by GNU Autoconf 2.64
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1564 ac_retval=1
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1569 } # ac_fn_c_try_compile
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1615 } # ac_fn_c_try_link
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 } # ac_fn_c_check_header_compile
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } >/dev/null && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=1
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1683 } # ac_fn_c_try_cpp
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
1725 } # ac_fn_c_try_run
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1755 #undef $2
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1772 main ()
1774 return $2 ();
1776 return 0;
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 } # ac_fn_c_check_func
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_header_mongrel
1881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882 # -------------------------------------------
1883 # Tests whether TYPE exists after having included INCLUDES, setting cache
1884 # variable VAR accordingly.
1885 ac_fn_c_check_type ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=no"
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 main ()
1900 if (sizeof ($2))
1901 return 0;
1903 return 0;
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1911 main ()
1913 if (sizeof (($2)))
1914 return 0;
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1921 else
1922 eval "$3=yes"
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_type
1934 cat >config.log <<_ACEOF
1935 This file contains any messages produced by compilers while
1936 running configure, to aid debugging if configure makes a mistake.
1938 It was created by package-unused $as_me version-unused, which was
1939 generated by GNU Autoconf 2.64. Invocation command line was
1941 $ $0 $@
1943 _ACEOF
1944 exec 5>>config.log
1946 cat <<_ASUNAME
1947 ## --------- ##
1948 ## Platform. ##
1949 ## --------- ##
1951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1968 _ASUNAME
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 $as_echo "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1979 } >&5
1981 cat >&5 <<_ACEOF
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1988 _ACEOF
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2002 for ac_arg
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2031 as_fn_append ac_configure_args " '$ac_arg'"
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2047 echo
2049 cat <<\_ASBOX
2050 ## ---------------- ##
2051 ## Cache variables. ##
2052 ## ---------------- ##
2053 _ASBOX
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 esac |
2083 sort
2085 echo
2087 cat <<\_ASBOX
2088 ## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_vars
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2103 if test -n "$ac_subst_files"; then
2104 cat <<\_ASBOX
2105 ## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##
2108 _ASBOX
2109 echo
2110 for ac_var in $ac_subst_files
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2121 if test -s confdefs.h; then
2122 cat <<\_ASBOX
2123 ## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##
2126 _ASBOX
2127 echo
2128 cat confdefs.h
2129 echo
2131 test "$ac_signal" != 0 &&
2132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
2134 } >&5
2135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137 exit $exit_status
2139 for ac_signal in 1 2 13 15; do
2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2141 done
2142 ac_signal=0
2144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2145 rm -f -r conftest* confdefs.h
2147 $as_echo "/* confdefs.h */" > confdefs.h
2149 # Predefined preprocessor variables.
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_NAME "$PACKAGE_NAME"
2153 _ACEOF
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157 _ACEOF
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_STRING "$PACKAGE_STRING"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_URL "$PACKAGE_URL"
2173 _ACEOF
2176 # Let the site file select an alternate cache file if it wants to.
2177 # Prefer an explicitly selected file to automatically selected ones.
2178 ac_site_file1=NONE
2179 ac_site_file2=NONE
2180 if test -n "$CONFIG_SITE"; then
2181 ac_site_file1=$CONFIG_SITE
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 test "x$ac_site_file" = xNONE && continue
2192 if test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file"
2198 done
2200 if test -r "$cache_file"; then
2201 # Some versions of bash will fail to source /dev/null (special
2202 # files actually), so we avoid doing that.
2203 if test -f "$cache_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205 $as_echo "$as_me: loading cache $cache_file" >&6;}
2206 case $cache_file in
2207 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208 *) . "./$cache_file";;
2209 esac
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213 $as_echo "$as_me: creating cache $cache_file" >&6;}
2214 >$cache_file
2217 # Check that the precious variables saved in the cache have kept the same
2218 # value.
2219 ac_cache_corrupted=false
2220 for ac_var in $ac_precious_vars; do
2221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222 eval ac_new_set=\$ac_env_${ac_var}_set
2223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224 eval ac_new_val=\$ac_env_${ac_var}_value
2225 case $ac_old_set,$ac_new_set in
2226 set,)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,set)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,);;
2236 if test "x$ac_old_val" != "x$ac_new_val"; then
2237 # differences in whitespace do not lead to failure.
2238 ac_old_val_w=`echo x $ac_old_val`
2239 ac_new_val_w=`echo x $ac_new_val`
2240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243 ac_cache_corrupted=:
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247 eval $ac_var=\$ac_old_val
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2253 fi;;
2254 esac
2255 # Pass precious variables to config.status.
2256 if test "$ac_new_set" = set; then
2257 case $ac_new_val in
2258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 *) ac_arg=$ac_var=$ac_new_val ;;
2260 esac
2261 case " $ac_configure_args " in
2262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2264 esac
2266 done
2267 if $ac_cache_corrupted; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2274 ## -------------------- ##
2275 ## Main body of script. ##
2276 ## -------------------- ##
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 ac_config_headers="$ac_config_headers config.h"
2292 libtool_VERSION=1:0:0
2295 # Default to --enable-multilib
2296 # Check whether --enable-multilib was given.
2297 if test "${enable_multilib+set}" = set; then :
2298 enableval=$enable_multilib; case "$enableval" in
2299 yes) multilib=yes ;;
2300 no) multilib=no ;;
2301 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2302 esac
2303 else
2304 multilib=yes
2308 # We may get other options which we leave undocumented:
2309 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2310 # See config-ml.in if you want the gory details.
2312 if test "$srcdir" = "."; then
2313 if test "$with_target_subdir" != "."; then
2314 multi_basedir="$srcdir/$with_multisrctop../.."
2315 else
2316 multi_basedir="$srcdir/$with_multisrctop.."
2318 else
2319 multi_basedir="$srcdir/.."
2323 # Even if the default multilib is not a cross compilation,
2324 # it may be that some of the other multilibs are.
2325 if test $cross_compiling = no && test $multilib = yes \
2326 && test "x${with_multisubdir}" != x ; then
2327 cross_compiling=maybe
2330 ac_config_commands="$ac_config_commands default-1"
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2339 break 2
2341 done
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2379 esac
2380 build=$ac_cv_build
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_build
2383 shift
2384 build_cpu=$1
2385 build_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 build_os=$*
2390 IFS=$ac_save_IFS
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2467 target_alias=${target_alias-$host_alias}
2469 am__api_version='1.11'
2471 # Find a good install program. We prefer a C program (faster),
2472 # so one script is as good as another. But avoid the broken or
2473 # incompatible versions:
2474 # SysV /etc/install, /usr/sbin/install
2475 # SunOS /usr/etc/install
2476 # IRIX /sbin/install
2477 # AIX /bin/install
2478 # AmigaOS /C/install, which installs bootblocks on floppy discs
2479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2482 # OS/2's system install, which has a completely different semantic
2483 # ./install, which can be erroneously created by make from ./install.sh.
2484 # Reject install programs that cannot install multiple files.
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2486 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2487 if test -z "$INSTALL"; then
2488 if test "${ac_cv_path_install+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 # Account for people who put trailing slashes in PATH elements.
2497 case $as_dir/ in #((
2498 ./ | .// | /[cC]/* | \
2499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2500 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2501 /usr/ucb/* ) ;;
2503 # OSF1 and SCO ODT 3.0 have their own names for install.
2504 # Don't use installbsd from OSF since it installs stuff as root
2505 # by default.
2506 for ac_prog in ginstall scoinst install; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2509 if test $ac_prog = install &&
2510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # AIX install. It has an incompatible calling convention.
2513 elif test $ac_prog = install &&
2514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # program-specific install script used by HP pwplus--don't use.
2517 else
2518 rm -rf conftest.one conftest.two conftest.dir
2519 echo one > conftest.one
2520 echo two > conftest.two
2521 mkdir conftest.dir
2522 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2523 test -s conftest.one && test -s conftest.two &&
2524 test -s conftest.dir/conftest.one &&
2525 test -s conftest.dir/conftest.two
2526 then
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2532 done
2533 done
2535 esac
2537 done
2538 IFS=$as_save_IFS
2540 rm -rf conftest.one conftest.two conftest.dir
2543 if test "${ac_cv_path_install+set}" = set; then
2544 INSTALL=$ac_cv_path_install
2545 else
2546 # As a last resort, use the slow shell script. Don't cache a
2547 # value for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the value is a relative name.
2550 INSTALL=$ac_install_sh
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2554 $as_echo "$INSTALL" >&6; }
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2565 $as_echo_n "checking whether build environment is sane... " >&6; }
2566 # Just in case
2567 sleep 1
2568 echo timestamp > conftest.file
2569 # Reject unsafe characters in $srcdir or the absolute working directory
2570 # name. Accept space and tab only in the latter.
2571 am_lf='
2573 case `pwd` in
2574 *[\\\"\#\$\&\'\`$am_lf]*)
2575 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2576 esac
2577 case $srcdir in
2578 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2579 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2580 esac
2582 # Do `set' in a subshell so we don't clobber the current shell's
2583 # arguments. Must try -L first in case configure is actually a
2584 # symlink; some systems play weird games with the mod time of symlinks
2585 # (eg FreeBSD returns the mod time of the symlink's containing
2586 # directory).
2587 if (
2588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2589 if test "$*" = "X"; then
2590 # -L didn't work.
2591 set X `ls -t "$srcdir/configure" conftest.file`
2593 rm -f conftest.file
2594 if test "$*" != "X $srcdir/configure conftest.file" \
2595 && test "$*" != "X conftest.file $srcdir/configure"; then
2597 # If neither matched, then we have a broken ls. This can happen
2598 # if, for instance, CONFIG_SHELL is bash and it inherits a
2599 # broken ls alias from the environment. This has actually
2600 # happened. Such a system could not be considered "sane".
2601 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2602 alias in your environment" "$LINENO" 5
2605 test "$2" = conftest.file
2607 then
2608 # Ok.
2610 else
2611 as_fn_error "newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2629 if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2646 if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2699 if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2724 IFS=$as_save_IFS
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 STRIP=$ac_ct_STRIP
2748 else
2749 STRIP="$ac_cv_prog_STRIP"
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778 done
2779 IFS=$as_save_IFS
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2797 mkdir_p="$MKDIR_P"
2798 case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801 esac
2803 for ac_prog in gawk mawk nawk awk
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2826 done
2827 done
2828 IFS=$as_save_IFS
2832 AWK=$ac_cv_prog_AWK
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2842 test -n "$AWK" && break
2843 done
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2879 am__leading_dot=.
2880 else
2881 am__leading_dot=_
2883 rmdir .tst 2>/dev/null
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895 # test whether we have cygpath
2896 if test -z "$CYGPATH_W"; then
2897 if (cygpath --version) >/dev/null 2>/dev/null; then
2898 CYGPATH_W='cygpath -w'
2899 else
2900 CYGPATH_W=echo
2905 # Define the identity of the package.
2906 PACKAGE='libgo'
2907 VERSION='version-unused'
2910 # Some tools Automake needs.
2912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2926 # We need awk for the "check" target. The system "awk" is bad on
2927 # some platforms.
2928 # Always define AMTAR for backward compatibility.
2930 AMTAR=${AMTAR-"${am_missing_run}tar"}
2932 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy 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_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 CC=$ac_ct_CC
3036 else
3037 CC="$ac_cv_prog_CC"
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3081 if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083 set dummy 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 ac_prog_rejected=no
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3108 done
3109 done
3110 IFS=$as_save_IFS
3112 if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3162 done
3163 done
3164 IFS=$as_save_IFS
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3178 test -n "$CC" && break
3179 done
3181 if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3206 done
3207 done
3208 IFS=$as_save_IFS
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3222 test -n "$ac_ct_CC" && break
3223 done
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." "$LINENO" 5; }
3246 # Provide some information about the compiler.
3247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248 set X $ac_compile
3249 ac_compiler=$2
3250 for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262 ... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 done
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3275 main ()
3279 return 0;
3281 _ACEOF
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3286 # of exeext.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288 $as_echo_n "checking for C compiler default output file name... " >&6; }
3289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3291 # The possible output files:
3292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3294 ac_rmfiles=
3295 for ac_file in $ac_files
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301 done
3302 rm -f $ac_rmfiles
3304 if { { ac_try="$ac_link_default"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3318 # so that the user can short-circuit this test for compilers unknown to
3319 # Autoconf.
3320 for ac_file in $ac_files ''
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3342 break;;
3343 esac
3344 done
3345 test "$ac_cv_exeext" = no && ac_cv_exeext=
3347 else
3348 ac_file=''
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 if test -z "$ac_file"; then :
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 { as_fn_set_status 77
3359 as_fn_error "C compiler cannot create executables
3360 See \`config.log' for more details." "$LINENO" 5; }; }
3362 ac_exeext=$ac_cv_exeext
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367 $as_echo_n "checking whether the C compiler works... " >&6; }
3368 # If not cross compiling, check that we can run a simple program.
3369 if test "$cross_compiling" != yes; then
3370 if { ac_try='./$ac_file'
3371 { { case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; }; then
3381 cross_compiling=no
3382 else
3383 if test "$cross_compiling" = maybe; then
3384 cross_compiling=yes
3385 else
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error "cannot run C compiled programs.
3389 If you meant to cross compile, use \`--host'.
3390 See \`config.log' for more details." "$LINENO" 5; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3397 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407 $as_echo_n "checking for suffix of executables... " >&6; }
3408 if { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 # `rm'.
3423 for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 break;;
3429 * ) break;;
3430 esac
3431 done
3432 else
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error "cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details." "$LINENO" 5; }
3438 rm -f conftest$ac_cv_exeext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440 $as_echo "$ac_cv_exeext" >&6; }
3442 rm -f conftest.$ac_ext
3443 EXEEXT=$ac_cv_exeext
3444 ac_exeext=$EXEEXT
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3446 $as_echo_n "checking for suffix of object files... " >&6; }
3447 if test "${ac_cv_objext+set}" = set; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.o conftest.obj
3462 if { { ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compile") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 for ac_file in conftest.o conftest.obj conftest.*; do
3474 test -f "$ac_file" || continue;
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478 break;;
3479 esac
3480 done
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error "cannot compute suffix of object files: cannot compile
3488 See \`config.log' for more details." "$LINENO" 5; }
3490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 $as_echo "$ac_cv_objext" >&6; }
3494 OBJEXT=$ac_cv_objext
3495 ac_objext=$OBJEXT
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3498 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3505 main ()
3507 #ifndef __GNUC__
3508 choke me
3509 #endif
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_compiler_gnu=yes
3517 else
3518 ac_compiler_gnu=no
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3526 if test $ac_compiler_gnu = yes; then
3527 GCC=yes
3528 else
3529 GCC=
3531 ac_test_CFLAGS=${CFLAGS+set}
3532 ac_save_CFLAGS=$CFLAGS
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3535 if test "${ac_cv_prog_cc_g+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_save_c_werror_flag=$ac_c_werror_flag
3539 ac_c_werror_flag=yes
3540 ac_cv_prog_cc_g=no
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3555 else
3556 CFLAGS=""
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3570 else
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3577 main ()
3581 return 0;
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3595 $as_echo "$ac_cv_prog_cc_g" >&6; }
3596 if test "$ac_test_CFLAGS" = set; then
3597 CFLAGS=$ac_save_CFLAGS
3598 elif test $ac_cv_prog_cc_g = yes; then
3599 if test "$GCC" = yes; then
3600 CFLAGS="-g -O2"
3601 else
3602 CFLAGS="-g"
3604 else
3605 if test "$GCC" = yes; then
3606 CFLAGS="-O2"
3607 else
3608 CFLAGS=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3613 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdarg.h>
3621 #include <stdio.h>
3622 #include <sys/types.h>
3623 #include <sys/stat.h>
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628 char **p;
3629 int i;
3631 return p[i];
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3635 char *s;
3636 va_list v;
3637 va_start (v,p);
3638 s = g (p, va_arg (v,int));
3639 va_end (v);
3640 return s;
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3644 function prototypes and stuff, but not '\xHH' hex character constants.
3645 These don't provoke an error unfortunately, instead are silently treated
3646 as 'x'. The following induces an error, until -std is added to get
3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3648 array size at least. It's necessary to write '\x00'==0 to get something
3649 that's true only with -std. */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653 inside strings and character constants. */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3664 main ()
3666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 return 0;
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 CC="$ac_save_CC $ac_arg"
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_c89=$ac_arg
3678 rm -f core conftest.err conftest.$ac_objext
3679 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 $as_echo "none needed" >&6; } ;;
3690 xno)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692 $as_echo "unsupported" >&6; } ;;
3694 CC="$CC $ac_cv_prog_cc_c89"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3698 if test "x$ac_cv_prog_cc_c89" != xno; then :
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 DEPDIR="${am__leading_dot}deps"
3709 ac_config_commands="$ac_config_commands depfiles"
3712 am_make=${MAKE-make}
3713 cat > confinc << 'END'
3714 am__doit:
3715 @echo this is the am__doit target
3716 .PHONY: am__doit
3718 # If we don't find an include directive, just comment out the code.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3721 am__include="#"
3722 am__quote=
3723 _am_result=none
3724 # First try GNU make style include.
3725 echo "include confinc" > confmf
3726 # Ignore all kinds of additional output from `make'.
3727 case `$am_make -s -f confmf 2> /dev/null` in #(
3728 *the\ am__doit\ target*)
3729 am__include=include
3730 am__quote=
3731 _am_result=GNU
3733 esac
3734 # Now try BSD make style include.
3735 if test "$am__include" = "#"; then
3736 echo '.include "confinc"' > confmf
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=.include
3740 am__quote="\""
3741 _am_result=BSD
3743 esac
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748 $as_echo "$_am_result" >&6; }
3749 rm -f confinc confmf
3751 # Check whether --enable-dependency-tracking was given.
3752 if test "${enable_dependency_tracking+set}" = set; then :
3753 enableval=$enable_dependency_tracking;
3756 if test "x$enable_dependency_tracking" != xno; then
3757 am_depcomp="$ac_aux_dir/depcomp"
3758 AMDEPBACKSLASH='\'
3760 if test "x$enable_dependency_tracking" != xno; then
3761 AMDEP_TRUE=
3762 AMDEP_FALSE='#'
3763 else
3764 AMDEP_TRUE='#'
3765 AMDEP_FALSE=
3770 depcc="$CC" am_compiler_list=
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3773 $as_echo_n "checking dependency style of $depcc... " >&6; }
3774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3778 # We make a subdir and do the tests there. Otherwise we can end up
3779 # making bogus files that we don't know about and never remove. For
3780 # instance it was reported that on HP-UX the gcc test will end up
3781 # making a dummy file named `D' -- because `-MD' means `put the output
3782 # in D'.
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3842 msvisualcpp | msvcmsys)
3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3873 done
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3897 ac_ext=go
3898 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3899 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compile_gnu=yes
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_GOC+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$GOC"; then
3910 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3923 done
3924 done
3925 IFS=$as_save_IFS
3929 GOC=$ac_cv_prog_GOC
3930 if test -n "$GOC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3932 $as_echo "$GOC" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3940 if test -z "$ac_cv_prog_GOC"; then
3941 ac_ct_GOC=$GOC
3942 # Extract the first word of "gccgo", so it can be a program name with args.
3943 set dummy gccgo; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$ac_ct_GOC"; then
3950 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_GOC="gccgo"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3963 done
3964 done
3965 IFS=$as_save_IFS
3969 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3970 if test -n "$ac_ct_GOC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3972 $as_echo "$ac_ct_GOC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3978 if test "x$ac_ct_GOC" = x; then
3979 GOC=""
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982 yes:)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3986 esac
3987 GOC=$ac_ct_GOC
3989 else
3990 GOC="$ac_cv_prog_GOC"
3993 if test -z "$GOC"; then
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_GOC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$GOC"; then
4003 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4016 done
4017 done
4018 IFS=$as_save_IFS
4022 GOC=$ac_cv_prog_GOC
4023 if test -n "$GOC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4025 $as_echo "$GOC" >&6; }
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4034 if test -z "$GOC"; then
4035 # Extract the first word of "gccgo", so it can be a program name with args.
4036 set dummy gccgo; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_GOC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$GOC"; then
4043 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4044 else
4045 ac_prog_rejected=no
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4054 ac_prog_rejected=yes
4055 continue
4057 ac_cv_prog_GOC="gccgo"
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4061 done
4062 done
4063 IFS=$as_save_IFS
4065 if test $ac_prog_rejected = yes; then
4066 # We found a bogon in the path, so make sure we never use it.
4067 set dummy $ac_cv_prog_GOC
4068 shift
4069 if test $# != 0; then
4070 # We chose a different compiler from the bogus one.
4071 # However, it has the same basename, so the bogon will be chosen
4072 # first if we set GOC to just the basename; use the full file name.
4073 shift
4074 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4079 GOC=$ac_cv_prog_GOC
4080 if test -n "$GOC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4082 $as_echo "$GOC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4092 # Provide some information about the compiler.
4093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4094 set X $ac_compile
4095 ac_compiler=$2
4096 { { ac_try="$ac_compiler --version >&5"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102 $as_echo "$ac_try_echo"; } >&5
4103 (eval "$ac_compiler --version >&5") 2>conftest.err
4104 ac_status=$?
4105 if test -s conftest.err; then
4106 sed '10a\
4107 ... rest of stderr output deleted ...
4108 10q' conftest.err >conftest.er1
4109 cat conftest.er1 >&5
4110 rm -f conftest.er1 conftest.err
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 GOCFLAGS="-g -O2"
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4127 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4128 # Check whether --enable-maintainer-mode was given.
4129 if test "${enable_maintainer_mode+set}" = set; then :
4130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4131 else
4132 USE_MAINTAINER_MODE=no
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4136 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4137 if test $USE_MAINTAINER_MODE = yes; then
4138 MAINTAINER_MODE_TRUE=
4139 MAINTAINER_MODE_FALSE='#'
4140 else
4141 MAINTAINER_MODE_TRUE='#'
4142 MAINTAINER_MODE_FALSE=
4145 MAINT=$MAINTAINER_MODE_TRUE
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4150 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4151 if test "${ac_cv_path_SED+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4155 for ac_i in 1 2 3 4 5 6 7; do
4156 ac_script="$ac_script$as_nl$ac_script"
4157 done
4158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4159 { ac_script=; unset ac_script;}
4160 if test -z "$SED"; then
4161 ac_path_SED_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in sed gsed; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4172 # Check for GNU ac_path_SED and select it if it is found.
4173 # Check for GNU $ac_path_SED
4174 case `"$ac_path_SED" --version 2>&1` in
4175 *GNU*)
4176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4178 ac_count=0
4179 $as_echo_n 0123456789 >"conftest.in"
4180 while :
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo '' >> "conftest.nl"
4186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_SED_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_SED="$ac_path_SED"
4192 ac_path_SED_max=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4196 done
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4200 $ac_path_SED_found && break 3
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205 if test -z "$ac_cv_path_SED"; then
4206 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4208 else
4209 ac_cv_path_SED=$SED
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4214 $as_echo "$ac_cv_path_SED" >&6; }
4215 SED="$ac_cv_path_SED"
4216 rm -f conftest.sed
4218 test -z "$SED" && SED=sed
4219 Xsed="$SED -e 1s/^X//"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4233 if test "${ac_cv_path_GREP+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -z "$GREP"; then
4237 ac_path_GREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in grep ggrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4248 # Check for GNU ac_path_GREP and select it if it is found.
4249 # Check for GNU $ac_path_GREP
4250 case `"$ac_path_GREP" --version 2>&1` in
4251 *GNU*)
4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'GREP' >> "conftest.nl"
4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_GREP="$ac_path_GREP"
4268 ac_path_GREP_max=$ac_count
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 esac
4276 $ac_path_GREP_found && break 3
4277 done
4278 done
4279 done
4280 IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_GREP"; then
4282 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4284 else
4285 ac_cv_path_GREP=$GREP
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4350 else
4351 ac_cv_path_EGREP=$EGREP
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4357 $as_echo "$ac_cv_path_EGREP" >&6; }
4358 EGREP="$ac_cv_path_EGREP"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4362 $as_echo_n "checking for fgrep... " >&6; }
4363 if test "${ac_cv_path_FGREP+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4367 then ac_cv_path_FGREP="$GREP -F"
4368 else
4369 if test -z "$FGREP"; then
4370 ac_path_FGREP_found=false
4371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in fgrep; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4381 # Check for GNU ac_path_FGREP and select it if it is found.
4382 # Check for GNU $ac_path_FGREP
4383 case `"$ac_path_FGREP" --version 2>&1` in
4384 *GNU*)
4385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4387 ac_count=0
4388 $as_echo_n 0123456789 >"conftest.in"
4389 while :
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
4394 $as_echo 'FGREP' >> "conftest.nl"
4395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397 as_fn_arith $ac_count + 1 && ac_count=$as_val
4398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_FGREP="$ac_path_FGREP"
4401 ac_path_FGREP_max=$ac_count
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4405 done
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 esac
4409 $ac_path_FGREP_found && break 3
4410 done
4411 done
4412 done
4413 IFS=$as_save_IFS
4414 if test -z "$ac_cv_path_FGREP"; then
4415 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4417 else
4418 ac_cv_path_FGREP=$FGREP
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4424 $as_echo "$ac_cv_path_FGREP" >&6; }
4425 FGREP="$ac_cv_path_FGREP"
4428 test -z "$GREP" && GREP=grep
4446 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4451 $as_echo_n "checking how to print strings... " >&6; }
4452 # Test print first, because it will be a builtin if present.
4453 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4454 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4455 ECHO='print -r --'
4456 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4457 ECHO='printf %s\n'
4458 else
4459 # Use this function as a fallback that always works.
4460 func_fallback_echo ()
4462 eval 'cat <<_LTECHO_EOF
4464 _LTECHO_EOF'
4466 ECHO='func_fallback_echo'
4469 # func_echo_all arg...
4470 # Invoke $ECHO with all args, space-separated.
4471 func_echo_all ()
4473 $ECHO ""
4476 case "$ECHO" in
4477 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4478 $as_echo "printf" >&6; } ;;
4479 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4480 $as_echo "print -r" >&6; } ;;
4481 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4482 $as_echo "cat" >&6; } ;;
4483 esac
4500 # Check whether --with-gnu-ld was given.
4501 if test "${with_gnu_ld+set}" = set; then :
4502 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4503 else
4504 with_gnu_ld=no
4507 ac_prog=ld
4508 if test "$GCC" = yes; then
4509 # Check if gcc -print-prog-name=ld gives a path.
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4511 $as_echo_n "checking for ld used by $CC... " >&6; }
4512 case $host in
4513 *-*-mingw*)
4514 # gcc leaves a trailing carriage return which upsets mingw
4515 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4517 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4518 esac
4519 case $ac_prog in
4520 # Accept absolute paths.
4521 [\\/]* | ?:[\\/]*)
4522 re_direlt='/[^/][^/]*/\.\./'
4523 # Canonicalize the pathname of ld
4524 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4525 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4526 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4527 done
4528 test -z "$LD" && LD="$ac_prog"
4531 # If it fails, then pretend we aren't using GCC.
4532 ac_prog=ld
4535 # If it is relative, then search for the first ld in PATH.
4536 with_gnu_ld=unknown
4538 esac
4539 elif test "$with_gnu_ld" = yes; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4541 $as_echo_n "checking for GNU ld... " >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4544 $as_echo_n "checking for non-GNU ld... " >&6; }
4546 if test "${lt_cv_path_LD+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -z "$LD"; then
4550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4551 for ac_dir in $PATH; do
4552 IFS="$lt_save_ifs"
4553 test -z "$ac_dir" && ac_dir=.
4554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4555 lt_cv_path_LD="$ac_dir/$ac_prog"
4556 # Check to see if the program is GNU ld. I'd rather use --version,
4557 # but apparently some variants of GNU ld only accept -v.
4558 # Break only if it was the GNU/non-GNU ld that we prefer.
4559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4560 *GNU* | *'with BFD'*)
4561 test "$with_gnu_ld" != no && break
4564 test "$with_gnu_ld" != yes && break
4566 esac
4568 done
4569 IFS="$lt_save_ifs"
4570 else
4571 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4575 LD="$lt_cv_path_LD"
4576 if test -n "$LD"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4578 $as_echo "$LD" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4583 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4586 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4590 case `$LD -v 2>&1 </dev/null` in
4591 *GNU* | *'with BFD'*)
4592 lt_cv_prog_gnu_ld=yes
4595 lt_cv_prog_gnu_ld=no
4597 esac
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4601 with_gnu_ld=$lt_cv_prog_gnu_ld
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$RANLIB"; then
4620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4635 IFS=$as_save_IFS
4639 RANLIB=$ac_cv_prog_RANLIB
4640 if test -n "$RANLIB"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4642 $as_echo "$RANLIB" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4650 if test -z "$ac_cv_prog_RANLIB"; then
4651 ac_ct_RANLIB=$RANLIB
4652 # Extract the first word of "ranlib", so it can be a program name with args.
4653 set dummy ranlib; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_RANLIB"; then
4660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_RANLIB="ranlib"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4680 if test -n "$ac_ct_RANLIB"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4682 $as_echo "$ac_ct_RANLIB" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4688 if test "x$ac_ct_RANLIB" = x; then
4689 RANLIB=":"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 RANLIB=$ac_ct_RANLIB
4699 else
4700 RANLIB="$ac_cv_prog_RANLIB"
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$OBJCOPY"; then
4712 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 OBJCOPY=$ac_cv_prog_OBJCOPY
4732 if test -n "$OBJCOPY"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4734 $as_echo "$OBJCOPY" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4742 if test -z "$ac_cv_prog_OBJCOPY"; then
4743 ac_ct_OBJCOPY=$OBJCOPY
4744 # Extract the first word of "objcopy", so it can be a program name with args.
4745 set dummy objcopy; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$ac_ct_OBJCOPY"; then
4752 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4772 if test -n "$ac_ct_OBJCOPY"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4774 $as_echo "$ac_ct_OBJCOPY" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4780 if test "x$ac_ct_OBJCOPY" = x; then
4781 OBJCOPY="missing-objcopy"
4782 else
4783 case $cross_compiling:$ac_tool_warned in
4784 yes:)
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4787 ac_tool_warned=yes ;;
4788 esac
4789 OBJCOPY=$ac_ct_OBJCOPY
4791 else
4792 OBJCOPY="$ac_cv_prog_OBJCOPY"
4796 enable_dlopen=yes
4800 case `pwd` in
4801 *\ * | *\ *)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4803 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4804 esac
4808 macro_version='2.2.7a'
4809 macro_revision='1.3134'
4823 ltmain="$ac_aux_dir/ltmain.sh"
4825 # Backslashify metacharacters that are still active within
4826 # double-quoted strings.
4827 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4829 # Same as above, but do not quote variable references.
4830 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4832 # Sed substitution to delay expansion of an escaped shell variable in a
4833 # double_quote_subst'ed string.
4834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4836 # Sed substitution to delay expansion of an escaped single quote.
4837 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4839 # Sed substitution to avoid accidental globbing in evaled expressions
4840 no_glob_subst='s/\*/\\\*/g'
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if test "${lt_cv_path_NM+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4849 lt_cv_path_NM="$NM"
4850 else
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4869 break
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873 */dev/null*)
4874 lt_cv_path_NM="$tmp_nm -p"
4875 break
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4881 esac
4883 esac
4885 done
4886 IFS="$lt_save_ifs"
4887 done
4888 : ${lt_cv_path_NM=no}
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894 NM="$lt_cv_path_NM"
4895 else
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4899 else
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 test -n "$DUMPBIN" && break
4941 done
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 test -n "$ac_ct_DUMPBIN" && break
4985 done
4987 if test "x$ac_ct_DUMPBIN" = x; then
4988 DUMPBIN=":"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 DUMPBIN=$ac_ct_DUMPBIN
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001 *COFF*)
5002 DUMPBIN="$DUMPBIN -symbols"
5005 DUMPBIN=:
5007 esac
5010 if test "$DUMPBIN" != ":"; then
5011 NM="$DUMPBIN"
5014 test -z "$NM" && NM=nm
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if test "${lt_cv_nm_interface+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5039 rm -f conftest*
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5062 teststring="ABCD"
5064 case $build_os in
5065 msdosdjgpp*)
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5073 gnu*)
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5091 mint*)
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5096 amigaos*)
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108 else
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5116 interix*)
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5121 osf*)
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131 esac
5134 sco3.2v5*)
5135 lt_cv_sys_max_cmd_len=102400
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5141 else
5142 lt_cv_sys_max_cmd_len=32768
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len"; then
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150 else
5151 # Make teststring a little bigger before we do anything with it.
5152 # a 1K string should be a reasonable start.
5153 for i in 1 2 3 4 5 6 7 8 ; do
5154 teststring=$teststring$teststring
5155 done
5156 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157 # If test is not a shell built-in, we'll probably end up computing a
5158 # maximum length that is only half of the actual maximum length, but
5159 # we can't tell.
5160 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162 test $i != 17 # 1/2 MB should be enough
5164 i=`expr $i + 1`
5165 teststring=$teststring$teststring
5166 done
5167 # Only check the string length outside the loop.
5168 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169 teststring=
5170 # Add a significant safety factor because C++ compilers can tack on
5171 # massive amounts of additional arguments before passing them to the
5172 # linker. It appears as though 1/2 is a usable value.
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5176 esac
5180 if test -n $lt_cv_sys_max_cmd_len ; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185 $as_echo "none" >&6; }
5187 max_cmd_len=$lt_cv_sys_max_cmd_len
5194 : ${CP="cp -f"}
5195 : ${MV="mv -f"}
5196 : ${RM="rm -f"}
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200 # Try some XSI features
5201 xsi_shell=no
5202 ( _lt_dummy="a/b/c"
5203 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204 = c,a/b,, \
5205 && eval 'test $(( 1 + 1 )) -eq 2 \
5206 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207 && xsi_shell=yes
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209 $as_echo "$xsi_shell" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214 lt_shell_append=no
5215 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216 >/dev/null 2>&1 \
5217 && lt_shell_append=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219 $as_echo "$lt_shell_append" >&6; }
5222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 lt_unset=unset
5224 else
5225 lt_unset=false
5232 # test EBCDIC or ASCII
5233 case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236 lt_SP2NL='tr \040 \012'
5237 lt_NL2SP='tr \015\012 \040\040'
5239 *) # EBCDIC based system
5240 lt_SP2NL='tr \100 \n'
5241 lt_NL2SP='tr \r\n \100\100'
5243 esac
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5255 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_ld_reload_flag='-r'
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5262 reload_flag=$lt_cv_ld_reload_flag
5263 case $reload_flag in
5264 "" | " "*) ;;
5265 *) reload_flag=" $reload_flag" ;;
5266 esac
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 case $host_os in
5269 darwin*)
5270 if test "$GCC" = yes; then
5271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272 else
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276 esac
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 OBJDUMP=$ac_cv_prog_OBJDUMP
5315 if test -n "$OBJDUMP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317 $as_echo "$OBJDUMP" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5325 if test -z "$ac_cv_prog_OBJDUMP"; then
5326 ac_ct_OBJDUMP=$OBJDUMP
5327 # Extract the first word of "objdump", so it can be a program name with args.
5328 set dummy objdump; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_OBJDUMP"; then
5335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357 $as_echo "$ac_ct_OBJDUMP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5363 if test "x$ac_ct_OBJDUMP" = x; then
5364 OBJDUMP="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 OBJDUMP=$ac_ct_OBJDUMP
5374 else
5375 OBJDUMP="$ac_cv_prog_OBJDUMP"
5378 test -z "$OBJDUMP" && OBJDUMP=objdump
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 lt_cv_file_magic_cmd='$MAGIC_CMD'
5394 lt_cv_file_magic_test_file=
5395 lt_cv_deplibs_check_method='unknown'
5396 # Need to set the preceding variable on all platforms that support
5397 # interlibrary dependencies.
5398 # 'none' -- dependencies not supported.
5399 # `unknown' -- same as none, but documents that we really don't know.
5400 # 'pass_all' -- all dependencies passed with no checks.
5401 # 'test_compile' -- check by making test program.
5402 # 'file_magic [[regex]]' -- check by looking for files in library path
5403 # which responds to the $file_magic_cmd with a given extended regex.
5404 # If you have `file' or equivalent on your system and you're not sure
5405 # whether `pass_all' will *always* work, you probably want this one.
5407 case $host_os in
5408 aix[4-9]*)
5409 lt_cv_deplibs_check_method=pass_all
5412 beos*)
5413 lt_cv_deplibs_check_method=pass_all
5416 bsdi[45]*)
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418 lt_cv_file_magic_cmd='/usr/bin/file -L'
5419 lt_cv_file_magic_test_file=/shlib/libc.so
5422 cygwin*)
5423 # func_win32_libid is a shell function defined in ltmain.sh
5424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425 lt_cv_file_magic_cmd='func_win32_libid'
5428 mingw* | pw32*)
5429 # Base MSYS/MinGW do not provide the 'file' command needed by
5430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431 # unless we find 'file', for example because we are cross-compiling.
5432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435 lt_cv_file_magic_cmd='func_win32_libid'
5436 else
5437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5442 cegcc*)
5443 # use the weaker test based on 'objdump'. See mingw*.
5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445 lt_cv_file_magic_cmd='$OBJDUMP -f'
5448 darwin* | rhapsody*)
5449 lt_cv_deplibs_check_method=pass_all
5452 freebsd* | dragonfly*)
5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454 case $host_cpu in
5455 i*86 )
5456 # Not sure whether the presence of OpenBSD here was a mistake.
5457 # Let's accept both of them until this is cleared up.
5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5462 esac
5463 else
5464 lt_cv_deplibs_check_method=pass_all
5468 gnu*)
5469 lt_cv_deplibs_check_method=pass_all
5472 haiku*)
5473 lt_cv_deplibs_check_method=pass_all
5476 hpux10.20* | hpux11*)
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 case $host_cpu in
5479 ia64*)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5483 hppa*64*)
5484 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]'
5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5491 esac
5494 interix[3-9]*)
5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5499 irix5* | irix6* | nonstopux*)
5500 case $LD in
5501 *-32|*"-32 ") libmagic=32-bit;;
5502 *-n32|*"-n32 ") libmagic=N32;;
5503 *-64|*"-64 ") libmagic=64-bit;;
5504 *) libmagic=never-match;;
5505 esac
5506 lt_cv_deplibs_check_method=pass_all
5509 # This must be Linux ELF.
5510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511 lt_cv_deplibs_check_method=pass_all
5514 netbsd*)
5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517 else
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522 newos6*)
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5528 *nto* | *qnx*)
5529 lt_cv_deplibs_check_method=pass_all
5532 openbsd*)
5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535 else
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540 osf3* | osf4* | osf5*)
5541 lt_cv_deplibs_check_method=pass_all
5544 rdos*)
5545 lt_cv_deplibs_check_method=pass_all
5548 solaris*)
5549 lt_cv_deplibs_check_method=pass_all
5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv4 | sysv4.3*)
5557 case $host_vendor in
5558 motorola)
5559 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]'
5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5562 ncr)
5563 lt_cv_deplibs_check_method=pass_all
5565 sequent)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5569 sni)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572 lt_cv_file_magic_test_file=/lib/libc.so
5574 siemens)
5575 lt_cv_deplibs_check_method=pass_all
5578 lt_cv_deplibs_check_method=pass_all
5580 esac
5583 tpf*)
5584 lt_cv_deplibs_check_method=pass_all
5586 esac
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}ar; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_AR+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$AR"; then
5615 ac_cv_prog_AR="$AR" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_AR="${ac_tool_prefix}ar"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 AR=$ac_cv_prog_AR
5635 if test -n "$AR"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637 $as_echo "$AR" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5645 if test -z "$ac_cv_prog_AR"; then
5646 ac_ct_AR=$AR
5647 # Extract the first word of "ar", so it can be a program name with args.
5648 set dummy ar; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_AR"; then
5655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_AR="ar"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675 if test -n "$ac_ct_AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677 $as_echo "$ac_ct_AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5683 if test "x$ac_ct_AR" = x; then
5684 AR="false"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 AR=$ac_ct_AR
5694 else
5695 AR="$ac_cv_prog_AR"
5698 test -z "$AR" && AR=ar
5699 test -z "$AR_FLAGS" && AR_FLAGS=cru
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if test "${ac_cv_prog_STRIP+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5803 test -z "$STRIP" && STRIP=:
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5902 test -z "$RANLIB" && RANLIB=:
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5930 lock_old_archive_extraction=no ;;
5931 esac
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6005 hpux*)
6006 if test "$host_cpu" = ia64; then
6007 symcode='[ABCDEGRST]'
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6013 osf*)
6014 symcode='[BCDEGQRST]'
6016 solaris*)
6017 symcode='[BDRT]'
6019 sco3.2v5*)
6020 symcode='[DT]'
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6028 sysv4)
6029 symcode='[DFNSTU]'
6031 esac
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6039 # Transform an extracted symbol line into a proper C declaration.
6040 # Some systems (esp. on ia64) link data and code symbols differently,
6041 # so use this general approach.
6042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6046 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'"
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6054 esac
6056 # Try without a prefix underscore, then with it.
6057 for ac_symprfx in "" "_"; do
6059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060 symxfrm="\\1 $ac_symprfx\\2 \\2"
6062 # Write the raw and C identifiers.
6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064 # Fake it for dumpbin and say T for any non-static function
6065 # and D for any global variable.
6066 # Also find C++ and __fastcall symbols from MSVC++,
6067 # which start with @ or ?.
6068 lt_cv_sys_global_symbol_pipe="$AWK '"\
6069 " {last_section=section; section=\$ 3};"\
6070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071 " \$ 0!~/External *\|/{next};"\
6072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073 " {if(hide[section]) next};"\
6074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078 " ' prfx=^$ac_symprfx"
6079 else
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6083 # Check to see that the pipe works correctly.
6084 pipe_works=no
6086 rm -f conftest*
6087 cat > conftest.$ac_ext <<_LT_EOF
6088 #ifdef __cplusplus
6089 extern "C" {
6090 #endif
6091 char nm_test_var;
6092 void nm_test_func(void);
6093 void nm_test_func(void){}
6094 #ifdef __cplusplus
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 _LT_EOF
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6119 # Make sure that we snagged all the symbols we need.
6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<_LT_EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6127 _LT_EOF
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131 cat <<_LT_EOF >> conftest.$ac_ext
6133 /* The mapping between symbol names and symbols. */
6134 const struct {
6135 const char *name;
6136 void *address;
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 { "@PROGRAM@", (void *) 0 },
6141 _LT_EOF
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6144 {0, (void *) 0}
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6152 #endif
6154 #ifdef __cplusplus
6156 #endif
6157 _LT_EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 rm -rf conftest* conftst*
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6194 done
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then :
6233 enableval=$enable_libtool_lock;
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238 # Some flags need to be propagated to the compiler or linker for good
6239 # libtool support.
6240 case $host in
6241 ia64-*-hpux*)
6242 # Find out which ABI we are using.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *ELF-32*)
6251 HPUX_IA64_MODE="32"
6253 *ELF-64*)
6254 HPUX_IA64_MODE="64"
6256 esac
6258 rm -rf conftest*
6260 *-*-irix6*)
6261 # Find out which ABI we are using.
6262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264 (eval $ac_compile) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
6268 if test "$lt_cv_prog_gnu_ld" = yes; then
6269 case `/usr/bin/file conftest.$ac_objext` in
6270 *32-bit*)
6271 LD="${LD-ld} -melf32bsmip"
6273 *N32*)
6274 LD="${LD-ld} -melf32bmipn32"
6276 *64-bit*)
6277 LD="${LD-ld} -melf64bmip"
6279 esac
6280 else
6281 case `/usr/bin/file conftest.$ac_objext` in
6282 *32-bit*)
6283 LD="${LD-ld} -32"
6285 *N32*)
6286 LD="${LD-ld} -n32"
6288 *64-bit*)
6289 LD="${LD-ld} -64"
6291 esac
6294 rm -rf conftest*
6297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 case `/usr/bin/file conftest.o` in
6307 *32-bit*)
6308 case $host in
6309 x86_64-*kfreebsd*-gnu)
6310 LD="${LD-ld} -m elf_i386_fbsd"
6312 x86_64-*linux*)
6313 LD="${LD-ld} -m elf_i386"
6315 ppc64-*linux*|powerpc64-*linux*)
6316 LD="${LD-ld} -m elf32ppclinux"
6318 s390x-*linux*)
6319 LD="${LD-ld} -m elf_s390"
6321 sparc64-*linux*)
6322 LD="${LD-ld} -m elf32_sparc"
6324 esac
6326 *64-bit*)
6327 case $host in
6328 x86_64-*kfreebsd*-gnu)
6329 LD="${LD-ld} -m elf_x86_64_fbsd"
6331 x86_64-*linux*)
6332 LD="${LD-ld} -m elf_x86_64"
6334 ppc*-*linux*|powerpc*-*linux*)
6335 LD="${LD-ld} -m elf64ppc"
6337 s390*-*linux*|s390*-*tpf*)
6338 LD="${LD-ld} -m elf64_s390"
6340 sparc*-*linux*)
6341 LD="${LD-ld} -m elf64_sparc"
6343 esac
6345 esac
6347 rm -rf conftest*
6350 *-*-sco3.2v5*)
6351 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6352 SAVE_CFLAGS="$CFLAGS"
6353 CFLAGS="$CFLAGS -belf"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6355 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6356 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_ext=c
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 main ()
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_link "$LINENO"; then :
6377 lt_cv_cc_needs_belf=yes
6378 else
6379 lt_cv_cc_needs_belf=no
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6391 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6394 CFLAGS="$SAVE_CFLAGS"
6397 *-*solaris*)
6398 # Find out which ABI we are using.
6399 echo 'int i;' > conftest.$ac_ext
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 case `/usr/bin/file conftest.o` in
6406 *64-bit*)
6407 case $lt_cv_prog_gnu_ld in
6408 yes*)
6409 case $host in
6410 i?86-*-solaris*)
6411 LD="${LD-ld} -m elf_x86_64"
6413 sparc*-*-solaris*)
6414 LD="${LD-ld} -m elf64_sparc"
6416 esac
6417 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6418 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6419 LD="${LD-ld}_sol2"
6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424 LD="${LD-ld} -64"
6427 esac
6429 esac
6431 rm -rf conftest*
6433 esac
6435 need_locks="$enable_libtool_lock"
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6528 else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6554 done
6555 done
6556 IFS=$as_save_IFS
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NMEDIT=$ac_ct_NMEDIT
6620 else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_LIPO+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 LIPO=$ac_ct_LIPO
6712 else
6713 LIPO="$ac_cv_prog_LIPO"
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 OTOOL=$ac_ct_OTOOL
6804 else
6805 OTOOL="$ac_cv_prog_OTOOL"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL64=$ac_ct_OTOOL64
6896 else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6968 main ()
6972 return 0;
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977 else
6978 lt_cv_ld_exported_symbols_list=no
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988 $as_echo_n "checking for -force_load linker flag... " >&6; }
6989 if test "${lt_cv_ld_force_load+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_ld_force_load=no
6993 cat > conftest.c << _LT_EOF
6994 int forced_loaded() { return 2;}
6995 _LT_EOF
6996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998 echo "$AR cru libconftest.a conftest.o" >&5
6999 $AR cru libconftest.a conftest.o 2>&5
7000 cat > conftest.c << _LT_EOF
7001 int main() { return 0;}
7002 _LT_EOF
7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7005 _lt_result=$?
7006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7007 lt_cv_ld_force_load=yes
7008 else
7009 cat conftest.err >&5
7011 rm -f conftest.err libconftest.a conftest conftest.c
7012 rm -rf conftest.dSYM
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7016 $as_echo "$lt_cv_ld_force_load" >&6; }
7017 case $host_os in
7018 rhapsody* | darwin1.[012])
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020 darwin1.*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 darwin*) # darwin 5.x on
7023 # if running on 10.5 or later, the deployment target defaults
7024 # to the OS version, if on x86, and 10.4, the deployment
7025 # target defaults to 10.4. Don't you love it?
7026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029 10.[012]*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 10.*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 esac
7035 esac
7036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037 _lt_dar_single_mod='$single_module'
7039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041 else
7042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7045 _lt_dsymutil='~$DSYMUTIL $lib || :'
7046 else
7047 _lt_dsymutil=
7050 esac
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7059 # On Suns, sometimes $CPP names a directory.
7060 if test -n "$CPP" && test -d "$CPP"; then
7061 CPP=
7063 if test -z "$CPP"; then
7064 if test "${ac_cv_prog_CPP+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 # Double quotes because CPP needs to be expanded
7068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 ac_preproc_ok=false
7071 for ac_c_preproc_warn_flag in '' yes
7073 # Use a header file that comes with gcc, so configuring glibc
7074 # with a fresh cross-compiler works.
7075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 # <limits.h> exists even on freestanding compilers.
7077 # On the NeXT, cc -E runs the code through the compiler's parser,
7078 # not just through cpp. "Syntax error" is here to catch this case.
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086 Syntax error
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7090 else
7091 # Broken: fails on valid input.
7092 continue
7094 rm -f conftest.err conftest.$ac_ext
7096 # OK, works on sane cases. Now check whether nonexistent headers
7097 # can be detected and how.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <ac_nonexistent.h>
7101 _ACEOF
7102 if ac_fn_c_try_cpp "$LINENO"; then :
7103 # Broken: success on invalid input.
7104 continue
7105 else
7106 # Passes both tests.
7107 ac_preproc_ok=:
7108 break
7110 rm -f conftest.err conftest.$ac_ext
7112 done
7113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7114 rm -f conftest.err conftest.$ac_ext
7115 if $ac_preproc_ok; then :
7116 break
7119 done
7120 ac_cv_prog_CPP=$CPP
7123 CPP=$ac_cv_prog_CPP
7124 else
7125 ac_cv_prog_CPP=$CPP
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7128 $as_echo "$CPP" >&6; }
7129 ac_preproc_ok=false
7130 for ac_c_preproc_warn_flag in '' yes
7132 # Use a header file that comes with gcc, so configuring glibc
7133 # with a fresh cross-compiler works.
7134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135 # <limits.h> exists even on freestanding compilers.
7136 # On the NeXT, cc -E runs the code through the compiler's parser,
7137 # not just through cpp. "Syntax error" is here to catch this case.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #ifdef __STDC__
7141 # include <limits.h>
7142 #else
7143 # include <assert.h>
7144 #endif
7145 Syntax error
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7149 else
7150 # Broken: fails on valid input.
7151 continue
7153 rm -f conftest.err conftest.$ac_ext
7155 # OK, works on sane cases. Now check whether nonexistent headers
7156 # can be detected and how.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <ac_nonexistent.h>
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7162 # Broken: success on invalid input.
7163 continue
7164 else
7165 # Passes both tests.
7166 ac_preproc_ok=:
7167 break
7169 rm -f conftest.err conftest.$ac_ext
7171 done
7172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173 rm -f conftest.err conftest.$ac_ext
7174 if $ac_preproc_ok; then :
7176 else
7177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7179 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7180 See \`config.log' for more details." "$LINENO" 5; }
7183 ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7191 $as_echo_n "checking for ANSI C header files... " >&6; }
7192 if test "${ac_cv_header_stdc+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 #include <stdlib.h>
7198 #include <stdarg.h>
7199 #include <string.h>
7200 #include <float.h>
7203 main ()
7207 return 0;
7209 _ACEOF
7210 if ac_fn_c_try_compile "$LINENO"; then :
7211 ac_cv_header_stdc=yes
7212 else
7213 ac_cv_header_stdc=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 if test $ac_cv_header_stdc = yes; then
7218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <string.h>
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "memchr" >/dev/null 2>&1; then :
7227 else
7228 ac_cv_header_stdc=no
7230 rm -f conftest*
7234 if test $ac_cv_header_stdc = yes; then
7235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <stdlib.h>
7240 _ACEOF
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "free" >/dev/null 2>&1; then :
7244 else
7245 ac_cv_header_stdc=no
7247 rm -f conftest*
7251 if test $ac_cv_header_stdc = yes; then
7252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7253 if test "$cross_compiling" = yes; then :
7255 else
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <ctype.h>
7259 #include <stdlib.h>
7260 #if ((' ' & 0x0FF) == 0x020)
7261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7263 #else
7264 # define ISLOWER(c) \
7265 (('a' <= (c) && (c) <= 'i') \
7266 || ('j' <= (c) && (c) <= 'r') \
7267 || ('s' <= (c) && (c) <= 'z'))
7268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7269 #endif
7271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7273 main ()
7275 int i;
7276 for (i = 0; i < 256; i++)
7277 if (XOR (islower (i), ISLOWER (i))
7278 || toupper (i) != TOUPPER (i))
7279 return 2;
7280 return 0;
7282 _ACEOF
7283 if ac_fn_c_try_run "$LINENO"; then :
7285 else
7286 ac_cv_header_stdc=no
7288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7289 conftest.$ac_objext conftest.beam conftest.$ac_ext
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7295 $as_echo "$ac_cv_header_stdc" >&6; }
7296 if test $ac_cv_header_stdc = yes; then
7298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304 inttypes.h stdint.h unistd.h
7305 do :
7306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7309 eval as_val=\$$as_ac_Header
7310 if test "x$as_val" = x""yes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313 _ACEOF
7317 done
7320 for ac_header in dlfcn.h
7321 do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7324 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_DLFCN_H 1
7327 _ACEOF
7331 done
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_GOC+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$GOC"; then
7342 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 GOC=$ac_cv_prog_GOC
7362 if test -n "$GOC"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7364 $as_echo "$GOC" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_GOC"; then
7373 ac_ct_GOC=$GOC
7374 # Extract the first word of "gccgo", so it can be a program name with args.
7375 set dummy gccgo; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_GOC"; then
7382 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_GOC="gccgo"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7395 done
7396 done
7397 IFS=$as_save_IFS
7401 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7402 if test -n "$ac_ct_GOC"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7404 $as_echo "$ac_ct_GOC" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_GOC" = x; then
7411 GOC=""
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 GOC=$ac_ct_GOC
7421 else
7422 GOC="$ac_cv_prog_GOC"
7430 # Set options
7435 enable_win32_dll=no
7438 # Check whether --enable-shared was given.
7439 if test "${enable_shared+set}" = set; then :
7440 enableval=$enable_shared; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_shared=yes ;;
7443 no) enable_shared=no ;;
7445 enable_shared=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_shared=yes
7453 done
7454 IFS="$lt_save_ifs"
7456 esac
7457 else
7458 enable_shared=yes
7469 # Check whether --enable-static was given.
7470 if test "${enable_static+set}" = set; then :
7471 enableval=$enable_static; p=${PACKAGE-default}
7472 case $enableval in
7473 yes) enable_static=yes ;;
7474 no) enable_static=no ;;
7476 enable_static=no
7477 # Look at the argument we got. We use all the common list separators.
7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479 for pkg in $enableval; do
7480 IFS="$lt_save_ifs"
7481 if test "X$pkg" = "X$p"; then
7482 enable_static=yes
7484 done
7485 IFS="$lt_save_ifs"
7487 esac
7488 else
7489 enable_static=yes
7501 # Check whether --with-pic was given.
7502 if test "${with_pic+set}" = set; then :
7503 withval=$with_pic; pic_mode="$withval"
7504 else
7505 pic_mode=default
7509 test -z "$pic_mode" && pic_mode=default
7517 # Check whether --enable-fast-install was given.
7518 if test "${enable_fast_install+set}" = set; then :
7519 enableval=$enable_fast_install; p=${PACKAGE-default}
7520 case $enableval in
7521 yes) enable_fast_install=yes ;;
7522 no) enable_fast_install=no ;;
7524 enable_fast_install=no
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7528 IFS="$lt_save_ifs"
7529 if test "X$pkg" = "X$p"; then
7530 enable_fast_install=yes
7532 done
7533 IFS="$lt_save_ifs"
7535 esac
7536 else
7537 enable_fast_install=yes
7550 # This can be used to rebuild libtool when needed
7551 LIBTOOL_DEPS="$ltmain"
7553 # Always use our own libtool.
7554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7581 test -z "$LN_S" && LN_S="ln -s"
7596 if test -n "${ZSH_VERSION+set}" ; then
7597 setopt NO_GLOB_SUBST
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7601 $as_echo_n "checking for objdir... " >&6; }
7602 if test "${lt_cv_objdir+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 rm -f .libs 2>/dev/null
7606 mkdir .libs 2>/dev/null
7607 if test -d .libs; then
7608 lt_cv_objdir=.libs
7609 else
7610 # MS-DOS does not allow filenames that begin with a dot.
7611 lt_cv_objdir=_libs
7613 rmdir .libs 2>/dev/null
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7616 $as_echo "$lt_cv_objdir" >&6; }
7617 objdir=$lt_cv_objdir
7623 cat >>confdefs.h <<_ACEOF
7624 #define LT_OBJDIR "$lt_cv_objdir/"
7625 _ACEOF
7630 case $host_os in
7631 aix3*)
7632 # AIX sometimes has problems with the GCC collect2 program. For some
7633 # reason, if we set the COLLECT_NAMES environment variable, the problems
7634 # vanish in a puff of smoke.
7635 if test "X${COLLECT_NAMES+set}" != Xset; then
7636 COLLECT_NAMES=
7637 export COLLECT_NAMES
7640 esac
7642 # Global variables:
7643 ofile=libtool
7644 can_build_shared=yes
7646 # All known linkers require a `.a' archive for static linking (except MSVC,
7647 # which needs '.lib').
7648 libext=a
7650 with_gnu_ld="$lt_cv_prog_gnu_ld"
7652 old_CC="$CC"
7653 old_CFLAGS="$CFLAGS"
7655 # Set sane defaults for various variables
7656 test -z "$CC" && CC=cc
7657 test -z "$LTCC" && LTCC=$CC
7658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7659 test -z "$LD" && LD=ld
7660 test -z "$ac_objext" && ac_objext=o
7662 for cc_temp in $compiler""; do
7663 case $cc_temp in
7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7666 \-*) ;;
7667 *) break;;
7668 esac
7669 done
7670 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7673 # Only perform the check for file, if the check method requires it
7674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7675 case $deplibs_check_method in
7676 file_magic*)
7677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7679 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7680 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 case $MAGIC_CMD in
7684 [\\/*] | ?:[\\/]*)
7685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688 lt_save_MAGIC_CMD="$MAGIC_CMD"
7689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7691 for ac_dir in $ac_dummy; do
7692 IFS="$lt_save_ifs"
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f $ac_dir/${ac_tool_prefix}file; then
7695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7696 if test -n "$file_magic_test_file"; then
7697 case $deplibs_check_method in
7698 "file_magic "*)
7699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7702 $EGREP "$file_magic_regex" > /dev/null; then
7704 else
7705 cat <<_LT_EOF 1>&2
7707 *** Warning: the command libtool uses to detect shared libraries,
7708 *** $file_magic_cmd, produces output that libtool cannot recognize.
7709 *** The result is that libtool may fail to recognize shared libraries
7710 *** as such. This will affect the creation of libtool libraries that
7711 *** depend on shared libraries, but programs linked with such libtool
7712 *** libraries will work regardless of this problem. Nevertheless, you
7713 *** may want to report the problem to your system manager and/or to
7714 *** bug-libtool@gnu.org
7716 _LT_EOF
7717 fi ;;
7718 esac
7720 break
7722 done
7723 IFS="$lt_save_ifs"
7724 MAGIC_CMD="$lt_save_MAGIC_CMD"
7726 esac
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if test -n "$MAGIC_CMD"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7732 $as_echo "$MAGIC_CMD" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7742 if test -z "$lt_cv_path_MAGIC_CMD"; then
7743 if test -n "$ac_tool_prefix"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7745 $as_echo_n "checking for file... " >&6; }
7746 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $MAGIC_CMD in
7750 [\\/*] | ?:[\\/]*)
7751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754 lt_save_MAGIC_CMD="$MAGIC_CMD"
7755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7757 for ac_dir in $ac_dummy; do
7758 IFS="$lt_save_ifs"
7759 test -z "$ac_dir" && ac_dir=.
7760 if test -f $ac_dir/file; then
7761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7762 if test -n "$file_magic_test_file"; then
7763 case $deplibs_check_method in
7764 "file_magic "*)
7765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7768 $EGREP "$file_magic_regex" > /dev/null; then
7770 else
7771 cat <<_LT_EOF 1>&2
7773 *** Warning: the command libtool uses to detect shared libraries,
7774 *** $file_magic_cmd, produces output that libtool cannot recognize.
7775 *** The result is that libtool may fail to recognize shared libraries
7776 *** as such. This will affect the creation of libtool libraries that
7777 *** depend on shared libraries, but programs linked with such libtool
7778 *** libraries will work regardless of this problem. Nevertheless, you
7779 *** may want to report the problem to your system manager and/or to
7780 *** bug-libtool@gnu.org
7782 _LT_EOF
7783 fi ;;
7784 esac
7786 break
7788 done
7789 IFS="$lt_save_ifs"
7790 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 esac
7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7796 if test -n "$MAGIC_CMD"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7798 $as_echo "$MAGIC_CMD" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 else
7806 MAGIC_CMD=:
7812 esac
7814 # Use C for the default configuration in the libtool script
7816 lt_save_CC="$CC"
7817 ac_ext=c
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 # Source file extension for C test sources.
7825 ac_ext=c
7827 # Object file extension for compiled C test sources.
7828 objext=o
7829 objext=$objext
7831 # Code to be used in simple compile tests
7832 lt_simple_compile_test_code="int some_variable = 0;"
7834 # Code to be used in simple link tests
7835 lt_simple_link_test_code='int main(){return(0);}'
7843 # If no C compiler was specified, use CC.
7844 LTCC=${LTCC-"$CC"}
7846 # If no C compiler flags were specified, use CFLAGS.
7847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849 # Allow CC to be a program name with arguments.
7850 compiler=$CC
7852 # Save the default compiler, since it gets overwritten when the other
7853 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7854 compiler_DEFAULT=$CC
7856 # save warnings/boilerplate of simple test code
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_compiler_boilerplate=`cat conftest.err`
7861 $RM conftest*
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_linker_boilerplate=`cat conftest.err`
7867 $RM -r conftest*
7870 ## CAVEAT EMPTOR:
7871 ## There is no encapsulation within the following macros, do not change
7872 ## the running order or otherwise move them around unless you know exactly
7873 ## what you are doing...
7874 if test -n "$compiler"; then
7876 lt_prog_compiler_no_builtin_flag=
7878 if test "$GCC" = yes; then
7879 case $cc_basename in
7880 nvcc*)
7881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7884 esac
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7887 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7888 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 lt_cv_prog_compiler_rtti_exceptions=no
7892 ac_outfile=conftest.$ac_objext
7893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7894 lt_compiler_flag="-fno-rtti -fno-exceptions"
7895 # Insert the option either (1) after the last *FLAGS variable, or
7896 # (2) before a word containing "conftest.", or (3) at the end.
7897 # Note that $ac_compile itself does not contain backslashes and begins
7898 # with a dollar sign (not a hyphen), so the echo should work correctly.
7899 # The option is referenced via a variable to avoid confusing sed.
7900 lt_compile=`echo "$ac_compile" | $SED \
7901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7903 -e 's:$: $lt_compiler_flag:'`
7904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7905 (eval "$lt_compile" 2>conftest.err)
7906 ac_status=$?
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 if (exit $ac_status) && test -s "$ac_outfile"; then
7910 # The compiler can only warn and ignore the option if not recognized
7911 # So say no if there are warnings other than the usual output.
7912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7915 lt_cv_prog_compiler_rtti_exceptions=yes
7918 $RM conftest*
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7922 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7924 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7926 else
7937 lt_prog_compiler_wl=
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_static=
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7944 if test "$GCC" = yes; then
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_static='-static'
7948 case $host_os in
7949 aix*)
7950 # All AIX code is PIC.
7951 if test "$host_cpu" = ia64; then
7952 # AIX 5 now supports IA64 processor
7953 lt_prog_compiler_static='-Bstatic'
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 lt_prog_compiler_pic='-fPIC'
7963 m68k)
7964 # FIXME: we need at least 68020 code to build shared libraries, but
7965 # adding the `-m68020' flag to GCC prevents building anything better,
7966 # like `-m68040'.
7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7969 esac
7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973 # PIC is the default for these OSes.
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980 # (--disable-auto-import) libraries
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7984 darwin* | rhapsody*)
7985 # PIC is the default on this platform
7986 # Common symbols not allowed in MH_DYLIB files
7987 lt_prog_compiler_pic='-fno-common'
7990 haiku*)
7991 # PIC is the default for Haiku.
7992 # The "-static" flag exists, but is broken.
7993 lt_prog_compiler_static=
7996 hpux*)
7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7999 # sets the default TLS model and affects inlining.
8000 case $host_cpu in
8001 hppa*64*)
8002 # +Z the default
8005 lt_prog_compiler_pic='-fPIC'
8007 esac
8010 interix[3-9]*)
8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012 # Instead, we relocate shared libraries at runtime.
8015 msdosdjgpp*)
8016 # Just because we use GCC doesn't mean we suddenly get shared libraries
8017 # on systems that don't support them.
8018 lt_prog_compiler_can_build_shared=no
8019 enable_shared=no
8022 *nto* | *qnx*)
8023 # QNX uses GNU C++, but need to define -shared option too, otherwise
8024 # it will coredump.
8025 lt_prog_compiler_pic='-fPIC -shared'
8028 sysv4*MP*)
8029 if test -d /usr/nec; then
8030 lt_prog_compiler_pic=-Kconform_pic
8035 lt_prog_compiler_pic='-fPIC'
8037 esac
8039 case $cc_basename in
8040 nvcc*) # Cuda Compiler Driver 2.2
8041 lt_prog_compiler_wl='-Xlinker '
8042 lt_prog_compiler_pic='-Xcompiler -fPIC'
8044 esac
8045 else
8046 # PORTME Check for flag to pass linker flags through the system compiler.
8047 case $host_os in
8048 aix*)
8049 lt_prog_compiler_wl='-Wl,'
8050 if test "$host_cpu" = ia64; then
8051 # AIX 5 now supports IA64 processor
8052 lt_prog_compiler_static='-Bstatic'
8053 else
8054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8058 mingw* | cygwin* | pw32* | os2* | cegcc*)
8059 # This hack is so that the source file can tell whether it is being
8060 # built for inclusion in a dll (and should export symbols for example).
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 hpux9* | hpux10* | hpux11*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8067 # not for PA HP-UX.
8068 case $host_cpu in
8069 hppa*64*|ia64*)
8070 # +Z the default
8073 lt_prog_compiler_pic='+Z'
8075 esac
8076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8077 lt_prog_compiler_static='${wl}-a ${wl}archive'
8080 irix5* | irix6* | nonstopux*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # PIC (with -KPIC) is the default.
8083 lt_prog_compiler_static='-non_shared'
8086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8087 case $cc_basename in
8088 # old Intel for x86_64 which still supported -KPIC.
8089 ecc*)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-static'
8094 # icc used to be incompatible with GCC.
8095 # ICC 10 doesn't accept -KPIC any more.
8096 icc* | ifort*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fPIC'
8099 lt_prog_compiler_static='-static'
8101 # Lahey Fortran 8.1.
8102 lf95*)
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='--shared'
8105 lt_prog_compiler_static='--static'
8107 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8108 # Portland Group compilers (*not* the Pentium gcc compiler,
8109 # which looks to be a dead project)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fpic'
8112 lt_prog_compiler_static='-Bstatic'
8114 ccc*)
8115 lt_prog_compiler_wl='-Wl,'
8116 # All Alpha code is PIC.
8117 lt_prog_compiler_static='-non_shared'
8119 xl* | bgxl* | bgf* | mpixl*)
8120 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-qpic'
8123 lt_prog_compiler_static='-qstaticlink'
8126 case `$CC -V 2>&1 | sed 5q` in
8127 *Sun\ F* | *Sun*Fortran*)
8128 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 lt_prog_compiler_wl=''
8133 *Sun\ C*)
8134 # Sun C 5.9
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl='-Wl,'
8139 esac
8141 esac
8144 newsos6)
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8149 *nto* | *qnx*)
8150 # QNX uses GNU C++, but need to define -shared option too, otherwise
8151 # it will coredump.
8152 lt_prog_compiler_pic='-fPIC -shared'
8155 osf3* | osf4* | osf5*)
8156 lt_prog_compiler_wl='-Wl,'
8157 # All OSF/1 code is PIC.
8158 lt_prog_compiler_static='-non_shared'
8161 rdos*)
8162 lt_prog_compiler_static='-non_shared'
8165 solaris*)
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8168 case $cc_basename in
8169 f77* | f90* | f95*)
8170 lt_prog_compiler_wl='-Qoption ld ';;
8172 lt_prog_compiler_wl='-Wl,';;
8173 esac
8176 sunos4*)
8177 lt_prog_compiler_wl='-Qoption ld '
8178 lt_prog_compiler_pic='-PIC'
8179 lt_prog_compiler_static='-Bstatic'
8182 sysv4 | sysv4.2uw2* | sysv4.3*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8188 sysv4*MP*)
8189 if test -d /usr/nec ;then
8190 lt_prog_compiler_pic='-Kconform_pic'
8191 lt_prog_compiler_static='-Bstatic'
8195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8201 unicos*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_can_build_shared=no
8206 uts4*)
8207 lt_prog_compiler_pic='-pic'
8208 lt_prog_compiler_static='-Bstatic'
8212 lt_prog_compiler_can_build_shared=no
8214 esac
8217 case $host_os in
8218 # For platforms which do not support PIC, -DPIC is meaningless:
8219 *djgpp*)
8220 lt_prog_compiler_pic=
8223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8225 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8227 $as_echo "$lt_prog_compiler_pic" >&6; }
8235 # Check to make sure the PIC flag actually works.
8237 if test -n "$lt_prog_compiler_pic"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8240 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_prog_compiler_pic_works=no
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8258 ac_status=$?
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings other than the usual output.
8264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_pic_works=yes
8270 $RM conftest*
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8277 case $lt_prog_compiler_pic in
8278 "" | " "*) ;;
8279 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8280 esac
8281 else
8282 lt_prog_compiler_pic=
8283 lt_prog_compiler_can_build_shared=no
8294 # Check to make sure the static flag actually works.
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS="$LDFLAGS"
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8317 else
8318 lt_cv_prog_compiler_static_works=yes
8321 $RM -r conftest*
8322 LDFLAGS="$save_LDFLAGS"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8330 else
8331 lt_prog_compiler_static=
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453 hard_links=yes
8454 $RM conftest*
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 touch conftest.a
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test "$hard_links" = no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8464 need_locks=warn
8466 else
8467 need_locks=no
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8478 runpath_var=
8479 allow_undefined_flag=
8480 always_export_symbols=no
8481 archive_cmds=
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8488 hardcode_direct=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_flag_spec_ld=
8492 hardcode_libdir_separator=
8493 hardcode_minus_L=no
8494 hardcode_shlibpath_var=unsupported
8495 inherit_rpath=no
8496 link_all_deplibs=unknown
8497 module_cmds=
8498 module_expsym_cmds=
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8505 include_expsyms=
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509 # as well as any symbol that contains `d'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8519 case $host_os in
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test "$GCC" != yes; then
8525 with_gnu_ld=no
8528 interix*)
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8530 with_gnu_ld=yes
8532 openbsd*)
8533 with_gnu_ld=no
8535 esac
8537 ld_shlibs=yes
8539 # On some targets, GNU ld is compatible enough with the native linker
8540 # that we're better off using the native interface for both.
8541 lt_use_gnu_ld_interface=no
8542 if test "$with_gnu_ld" = yes; then
8543 case $host_os in
8544 aix*)
8545 # The AIX port of GNU ld has always aspired to compatibility
8546 # with the native linker. However, as the warning in the GNU ld
8547 # block says, versions before 2.19.5* couldn't really create working
8548 # shared libraries, regardless of the interface used.
8549 case `$LD -v 2>&1` in
8550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8554 lt_use_gnu_ld_interface=yes
8556 esac
8559 lt_use_gnu_ld_interface=yes
8561 esac
8564 if test "$lt_use_gnu_ld_interface" = yes; then
8565 # If archive_cmds runs LD, not CC, wlarc should be empty
8566 wlarc='${wl}'
8568 # Set some defaults for GNU ld with shared library support. These
8569 # are reset later if shared libraries are not supported. Putting them
8570 # here allows them to be overridden if necessary.
8571 runpath_var=LD_RUN_PATH
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 export_dynamic_flag_spec='${wl}--export-dynamic'
8574 # ancient GNU ld didn't support --whole-archive et. al.
8575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577 else
8578 whole_archive_flag_spec=
8580 supports_anon_versioning=no
8581 case `$LD -v 2>&1` in
8582 *GNU\ gold*) supports_anon_versioning=yes ;;
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8588 esac
8590 # See if GNU ld supports shared libraries.
8591 case $host_os in
8592 aix[3-9]*)
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test "$host_cpu" != ia64; then
8595 ld_shlibs=no
8596 cat <<_LT_EOF 1>&2
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8605 _LT_EOF
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8621 esac
8624 beos*)
8625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 allow_undefined_flag=unsupported
8627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628 # support --undefined. This deserves some investigation. FIXME
8629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 else
8631 ld_shlibs=no
8635 cygwin* | mingw* | pw32* | cegcc*)
8636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637 # as there is no search path for DLLs.
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 export_dynamic_flag_spec='${wl}--export-all-symbols'
8640 allow_undefined_flag=unsupported
8641 always_export_symbols=no
8642 enable_shared_with_static_runtimes=yes
8643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647 # If the export-symbols file already is a .def file (1st line
8648 # is EXPORTS), use it as is; otherwise, prepend...
8649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8650 cp $export_symbols $output_objdir/$soname.def;
8651 else
8652 echo EXPORTS > $output_objdir/$soname.def;
8653 cat $export_symbols >> $output_objdir/$soname.def;
8655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 else
8657 ld_shlibs=no
8661 haiku*)
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 link_all_deplibs=yes
8666 interix[3-9]*)
8667 hardcode_direct=no
8668 hardcode_shlibpath_var=no
8669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8670 export_dynamic_flag_spec='${wl}-E'
8671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8672 # Instead, shared libraries are loaded at an image base (0x10000000 by
8673 # default) and relocated if they conflict, which is a slow very memory
8674 # consuming and fragmenting process. To avoid this, we pick a random,
8675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8678 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'
8681 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8682 tmp_diet=no
8683 if test "$host_os" = linux-dietlibc; then
8684 case $cc_basename in
8685 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8686 esac
8688 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8689 && test "$tmp_diet" = no
8690 then
8691 tmp_addflag=
8692 tmp_sharedflag='-shared'
8693 case $cc_basename,$host_cpu in
8694 pgcc*) # Portland Group C compiler
8695 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'
8696 tmp_addflag=' $pic_flag'
8698 pgf77* | pgf90* | pgf95* | pgfortran*)
8699 # Portland Group f77 and f90 compilers
8700 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'
8701 tmp_addflag=' $pic_flag -Mnomain' ;;
8702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8703 tmp_addflag=' -i_dynamic' ;;
8704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8705 tmp_addflag=' -i_dynamic -nofor_main' ;;
8706 ifc* | ifort*) # Intel Fortran compiler
8707 tmp_addflag=' -nofor_main' ;;
8708 lf95*) # Lahey Fortran 8.1
8709 whole_archive_flag_spec=
8710 tmp_sharedflag='--shared' ;;
8711 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8712 tmp_sharedflag='-qmkshrobj'
8713 tmp_addflag= ;;
8714 nvcc*) # Cuda Compiler Driver 2.2
8715 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'
8716 compiler_needs_object=yes
8718 esac
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ C*) # Sun C 5.9
8721 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'
8722 compiler_needs_object=yes
8723 tmp_sharedflag='-G' ;;
8724 *Sun\ F*) # Sun Fortran 8.3
8725 tmp_sharedflag='-G' ;;
8726 esac
8727 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 if test "x$supports_anon_versioning" = xyes; then
8730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8732 echo "local: *; };" >> $output_objdir/$libname.ver~
8733 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8736 case $cc_basename in
8737 xlf* | bgf* | bgxlf* | mpixlf*)
8738 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8739 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8740 hardcode_libdir_flag_spec=
8741 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8742 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8743 if test "x$supports_anon_versioning" = xyes; then
8744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8746 echo "local: *; };" >> $output_objdir/$libname.ver~
8747 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8750 esac
8751 else
8752 ld_shlibs=no
8756 netbsd*)
8757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8759 wlarc=
8760 else
8761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766 solaris*)
8767 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8768 ld_shlibs=no
8769 cat <<_LT_EOF 1>&2
8771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8772 *** create shared libraries on Solaris systems. Therefore, libtool
8773 *** is disabling shared libraries support. We urge you to upgrade GNU
8774 *** binutils to release 2.9.1 or newer. Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8778 _LT_EOF
8779 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782 else
8783 ld_shlibs=no
8787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8788 case `$LD -v 2>&1` in
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8790 ld_shlibs=no
8791 cat <<_LT_EOF 1>&2
8793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8794 *** reliably create shared libraries on SCO systems. Therefore, libtool
8795 *** is disabling shared libraries support. We urge you to upgrade GNU
8796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8800 _LT_EOF
8803 # For security reasons, it is highly recommended that you always
8804 # use absolute paths for naming shared libraries, and exclude the
8805 # DT_RUNPATH tag from executables and libraries. But doing so
8806 # requires that you compile everything twice, which is a pain.
8807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811 else
8812 ld_shlibs=no
8815 esac
8818 sunos4*)
8819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 wlarc=
8821 hardcode_direct=yes
8822 hardcode_shlibpath_var=no
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829 else
8830 ld_shlibs=no
8833 esac
8835 if test "$ld_shlibs" = no; then
8836 runpath_var=
8837 hardcode_libdir_flag_spec=
8838 export_dynamic_flag_spec=
8839 whole_archive_flag_spec=
8841 else
8842 # PORTME fill in a description of your system's linker (not GNU ld)
8843 case $host_os in
8844 aix3*)
8845 allow_undefined_flag=unsupported
8846 always_export_symbols=yes
8847 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'
8848 # Note: this linker hardcodes the directories in LIBPATH if there
8849 # are no directories specified by -L.
8850 hardcode_minus_L=yes
8851 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8852 # Neither direct hardcoding nor static linking is supported with a
8853 # broken collect2.
8854 hardcode_direct=unsupported
8858 aix[4-9]*)
8859 if test "$host_cpu" = ia64; then
8860 # On IA64, the linker does run time linking by default, so we don't
8861 # have to do anything special.
8862 aix_use_runtimelinking=no
8863 exp_sym_flag='-Bexport'
8864 no_entry_flag=""
8865 else
8866 # If we're using GNU nm, then we don't want the "-C" option.
8867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8868 # Also, AIX nm treats weak defined symbols like other global
8869 # defined symbols, whereas GNU nm marks them as "W".
8870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8871 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'
8872 else
8873 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8875 aix_use_runtimelinking=no
8877 # Test if we are trying to use run time linking or normal
8878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8879 # need to do runtime linking.
8880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8881 for ld_flag in $LDFLAGS; do
8882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8883 aix_use_runtimelinking=yes
8884 break
8886 done
8888 esac
8890 exp_sym_flag='-bexport'
8891 no_entry_flag='-bnoentry'
8894 # When large executables or shared objects are built, AIX ld can
8895 # have problems creating the table of contents. If linking a library
8896 # or program results in "error TOC overflow" add -mminimal-toc to
8897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8900 archive_cmds=''
8901 hardcode_direct=yes
8902 hardcode_direct_absolute=yes
8903 hardcode_libdir_separator=':'
8904 link_all_deplibs=yes
8905 file_list_spec='${wl}-f,'
8907 if test "$GCC" = yes; then
8908 case $host_os in aix4.[012]|aix4.[012].*)
8909 # We only want to do this on AIX 4.2 and lower, the check
8910 # below for broken collect2 doesn't work under 4.3+
8911 collect2name=`${CC} -print-prog-name=collect2`
8912 if test -f "$collect2name" &&
8913 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8914 then
8915 # We have reworked collect2
8917 else
8918 # We have old collect2
8919 hardcode_direct=unsupported
8920 # It fails to find uninstalled libraries when the uninstalled
8921 # path is not listed in the libpath. Setting hardcode_minus_L
8922 # to unsupported forces relinking
8923 hardcode_minus_L=yes
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_libdir_separator=
8928 esac
8929 shared_flag='-shared'
8930 if test "$aix_use_runtimelinking" = yes; then
8931 shared_flag="$shared_flag "'${wl}-G'
8933 else
8934 # not using gcc
8935 if test "$host_cpu" = ia64; then
8936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8937 # chokes on -Wl,-G. The following line is correct:
8938 shared_flag='-G'
8939 else
8940 if test "$aix_use_runtimelinking" = yes; then
8941 shared_flag='${wl}-G'
8942 else
8943 shared_flag='${wl}-bM:SRE'
8948 export_dynamic_flag_spec='${wl}-bexpall'
8949 # It seems that -bexpall does not export symbols beginning with
8950 # underscore (_), so it is better to generate a list of symbols to export.
8951 always_export_symbols=yes
8952 if test "$aix_use_runtimelinking" = yes; then
8953 # Warning - without using the other runtime loading flags (-brtl),
8954 # -berok will link without error, but may produce a broken library.
8955 allow_undefined_flag='-berok'
8956 # Determine the default libpath from the value encoded in an
8957 # empty executable.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8962 main ()
8966 return 0;
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8971 lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8973 /^0/ {
8974 s/^0 *\(.*\)$/\1/
8978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 # Check for a 64-bit object if we didn't find anything.
8980 if test -z "$aix_libpath"; then
8981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989 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"
8990 else
8991 if test "$host_cpu" = ia64; then
8992 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8993 allow_undefined_flag="-z nodefs"
8994 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"
8995 else
8996 # Determine the default libpath from the value encoded in an
8997 # empty executable.
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9002 main ()
9006 return 0;
9008 _ACEOF
9009 if ac_fn_c_try_link "$LINENO"; then :
9011 lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9013 /^0/ {
9014 s/^0 *\(.*\)$/\1/
9018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 # Check for a 64-bit object if we didn't find anything.
9020 if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024 rm -f core conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9029 # Warning - without using the other run time loading flags,
9030 # -berok will link without error, but may produce a broken library.
9031 no_undefined_flag=' ${wl}-bernotok'
9032 allow_undefined_flag=' ${wl}-berok'
9033 if test "$with_gnu_ld" = yes; then
9034 # We only use this code for GNU lds that support --whole-archive.
9035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036 else
9037 # Exported symbols can be pulled into shared objects from archives
9038 whole_archive_flag_spec='$convenience'
9040 archive_cmds_need_lc=yes
9041 # This is similar to how AIX traditionally builds its shared libraries.
9042 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'
9047 amigaos*)
9048 case $host_cpu in
9049 powerpc)
9050 # see comment about AmigaOS4 .so support
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds=''
9054 m68k)
9055 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)'
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 hardcode_minus_L=yes
9059 esac
9062 bsdi[45]*)
9063 export_dynamic_flag_spec=-rdynamic
9066 cygwin* | mingw* | pw32* | cegcc*)
9067 # When not using gcc, we currently assume that we are using
9068 # Microsoft Visual C++.
9069 # hardcode_libdir_flag_spec is actually meaningless, as there is
9070 # no search path for DLLs.
9071 hardcode_libdir_flag_spec=' '
9072 allow_undefined_flag=unsupported
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079 # The linker will automatically build a .lib file if we build a DLL.
9080 old_archive_from_new_cmds='true'
9081 # FIXME: Should let the user specify the lib program.
9082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083 fix_srcfile_path='`cygpath -w "$srcfile"`'
9084 enable_shared_with_static_runtimes=yes
9087 darwin* | rhapsody*)
9090 archive_cmds_need_lc=no
9091 hardcode_direct=no
9092 hardcode_automatic=yes
9093 hardcode_shlibpath_var=unsupported
9094 if test "$lt_cv_ld_force_load" = "yes"; then
9095 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\"`'
9096 else
9097 whole_archive_flag_spec=''
9099 link_all_deplibs=yes
9100 allow_undefined_flag="$_lt_dar_allow_undefined"
9101 case $cc_basename in
9102 ifort*) _lt_dar_can_shared=yes ;;
9103 *) _lt_dar_can_shared=$GCC ;;
9104 esac
9105 if test "$_lt_dar_can_shared" = "yes"; then
9106 output_verbose_link_cmd=func_echo_all
9107 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9108 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9109 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}"
9110 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}"
9112 else
9113 ld_shlibs=no
9118 dgux*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_shlibpath_var=no
9124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9125 # support. Future versions do this automatically, but an explicit c++rt0.o
9126 # does not break anything, and helps significantly (at the cost of a little
9127 # extra space).
9128 freebsd2.2*)
9129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9130 hardcode_libdir_flag_spec='-R$libdir'
9131 hardcode_direct=yes
9132 hardcode_shlibpath_var=no
9135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9136 freebsd2*)
9137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_direct=yes
9139 hardcode_minus_L=yes
9140 hardcode_shlibpath_var=no
9143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9144 freebsd* | dragonfly*)
9145 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9146 hardcode_libdir_flag_spec='-R$libdir'
9147 hardcode_direct=yes
9148 hardcode_shlibpath_var=no
9151 hpux9*)
9152 if test "$GCC" = yes; then
9153 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'
9154 else
9155 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'
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9159 hardcode_direct=yes
9161 # hardcode_minus_L: Not really in the search PATH,
9162 # but as the default location of the library.
9163 hardcode_minus_L=yes
9164 export_dynamic_flag_spec='${wl}-E'
9167 hpux10*)
9168 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9170 else
9171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9173 if test "$with_gnu_ld" = no; then
9174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175 hardcode_libdir_flag_spec_ld='+b $libdir'
9176 hardcode_libdir_separator=:
9177 hardcode_direct=yes
9178 hardcode_direct_absolute=yes
9179 export_dynamic_flag_spec='${wl}-E'
9180 # hardcode_minus_L: Not really in the search PATH,
9181 # but as the default location of the library.
9182 hardcode_minus_L=yes
9186 hpux11*)
9187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9188 case $host_cpu in
9189 hppa*64*)
9190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 ia64*)
9193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 esac
9199 else
9200 case $host_cpu in
9201 hppa*64*)
9202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 ia64*)
9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209 # Older versions of the 11.00 compiler do not understand -b yet
9210 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9212 $as_echo_n "checking if $CC understands -b... " >&6; }
9213 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 lt_cv_prog_compiler__b=no
9217 save_LDFLAGS="$LDFLAGS"
9218 LDFLAGS="$LDFLAGS -b"
9219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9221 # The linker can only warn and ignore the option if not recognized
9222 # So say no if there are warnings
9223 if test -s conftest.err; then
9224 # Append any errors to the config.log.
9225 cat conftest.err 1>&5
9226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9228 if diff conftest.exp conftest.er2 >/dev/null; then
9229 lt_cv_prog_compiler__b=yes
9231 else
9232 lt_cv_prog_compiler__b=yes
9235 $RM -r conftest*
9236 LDFLAGS="$save_LDFLAGS"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9240 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9242 if test x"$lt_cv_prog_compiler__b" = xyes; then
9243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244 else
9245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9249 esac
9251 if test "$with_gnu_ld" = no; then
9252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9253 hardcode_libdir_separator=:
9255 case $host_cpu in
9256 hppa*64*|ia64*)
9257 hardcode_direct=no
9258 hardcode_shlibpath_var=no
9261 hardcode_direct=yes
9262 hardcode_direct_absolute=yes
9263 export_dynamic_flag_spec='${wl}-E'
9265 # hardcode_minus_L: Not really in the search PATH,
9266 # but as the default location of the library.
9267 hardcode_minus_L=yes
9269 esac
9273 irix5* | irix6* | nonstopux*)
9274 if test "$GCC" = yes; then
9275 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'
9276 # Try to use the -exported_symbol ld option, if it does not
9277 # work, assume that -exports_file does not work either and
9278 # implicitly export all symbols.
9279 save_LDFLAGS="$LDFLAGS"
9280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int foo(void) {}
9284 _ACEOF
9285 if ac_fn_c_try_link "$LINENO"; then :
9286 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'
9289 rm -f core conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LDFLAGS="$save_LDFLAGS"
9292 else
9293 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'
9294 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'
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 hardcode_libdir_separator=:
9299 inherit_rpath=yes
9300 link_all_deplibs=yes
9303 netbsd*)
9304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9306 else
9307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_direct=yes
9311 hardcode_shlibpath_var=no
9314 newsos6)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=yes
9317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318 hardcode_libdir_separator=:
9319 hardcode_shlibpath_var=no
9322 *nto* | *qnx*)
9325 openbsd*)
9326 if test -f /usr/libexec/ld.so; then
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 hardcode_direct_absolute=yes
9330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9335 else
9336 case $host_os in
9337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-R$libdir'
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 esac
9347 else
9348 ld_shlibs=no
9352 os2*)
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 allow_undefined_flag=unsupported
9356 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'
9357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9360 osf3*)
9361 if test "$GCC" = yes; then
9362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9363 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'
9364 else
9365 allow_undefined_flag=' -expect_unresolved \*'
9366 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'
9368 archive_cmds_need_lc='no'
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 hardcode_libdir_separator=:
9373 osf4* | osf5*) # as osf3* with the addition of -msym flag
9374 if test "$GCC" = yes; then
9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376 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'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 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'
9381 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~
9382 $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'
9384 # Both c and cxx compiler support -rpath directly
9385 hardcode_libdir_flag_spec='-rpath $libdir'
9387 archive_cmds_need_lc='no'
9388 hardcode_libdir_separator=:
9391 solaris*)
9392 no_undefined_flag=' -z defs'
9393 if test "$GCC" = yes; then
9394 wlarc='${wl}'
9395 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9398 else
9399 case `$CC -V 2>&1` in
9400 *"Compilers 5.0"*)
9401 wlarc=''
9402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9407 wlarc='${wl}'
9408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9412 esac
9414 hardcode_libdir_flag_spec='-R$libdir'
9415 hardcode_shlibpath_var=no
9416 case $host_os in
9417 solaris2.[0-5] | solaris2.[0-5].*) ;;
9419 # The compiler driver will combine and reorder linker options,
9420 # but understands `-z linker_flag'. GCC discards it without `$wl',
9421 # but is careful enough not to reorder.
9422 # Supported since Solaris 2.6 (maybe 2.5.1?)
9423 if test "$GCC" = yes; then
9424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9425 else
9426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9429 esac
9430 link_all_deplibs=yes
9433 sunos4*)
9434 if test "x$host_vendor" = xsequent; then
9435 # Use $CC to link under sequent, because it throws in some extra .o
9436 # files that make .init and .fini sections work.
9437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_direct=yes
9443 hardcode_minus_L=yes
9444 hardcode_shlibpath_var=no
9447 sysv4)
9448 case $host_vendor in
9449 sni)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=yes # is this really true???
9453 siemens)
9454 ## LD is ld it makes a PLAMLIB
9455 ## CC just makes a GrossModule.
9456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9457 reload_cmds='$CC -r -o $output$reload_objs'
9458 hardcode_direct=no
9460 motorola)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9464 esac
9465 runpath_var='LD_RUN_PATH'
9466 hardcode_shlibpath_var=no
9469 sysv4.3*)
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var=no
9472 export_dynamic_flag_spec='-Bexport'
9475 sysv4*MP*)
9476 if test -d /usr/nec; then
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_shlibpath_var=no
9479 runpath_var=LD_RUN_PATH
9480 hardcode_runpath_var=yes
9481 ld_shlibs=yes
9485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9486 no_undefined_flag='${wl}-z,text'
9487 archive_cmds_need_lc=no
9488 hardcode_shlibpath_var=no
9489 runpath_var='LD_RUN_PATH'
9491 if test "$GCC" = yes; then
9492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 sysv5* | sco3.2v5* | sco5v6*)
9501 # Note: We can NOT use -z defs as we might desire, because we do not
9502 # link with -lc, and that would cause any symbols used from libc to
9503 # always be unresolved, which means just about no library would
9504 # ever link correctly. If we're not using GNU ld we use -z text
9505 # though, which does catch some bad symbols but isn't as heavy-handed
9506 # as -z defs.
9507 no_undefined_flag='${wl}-z,text'
9508 allow_undefined_flag='${wl}-z,nodefs'
9509 archive_cmds_need_lc=no
9510 hardcode_shlibpath_var=no
9511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9512 hardcode_libdir_separator=':'
9513 link_all_deplibs=yes
9514 export_dynamic_flag_spec='${wl}-Bexport'
9515 runpath_var='LD_RUN_PATH'
9517 if test "$GCC" = yes; then
9518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 else
9521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 uts4*)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9533 ld_shlibs=no
9535 esac
9537 if test x$host_vendor = xsni; then
9538 case $host in
9539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9540 export_dynamic_flag_spec='${wl}-Blargedynsym'
9542 esac
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9547 $as_echo "$ld_shlibs" >&6; }
9548 test "$ld_shlibs" = no && can_build_shared=no
9550 with_gnu_ld=$with_gnu_ld
9567 # Do we need to explicitly link libc?
9569 case "x$archive_cmds_need_lc" in
9570 x|xyes)
9571 # Assume -lc should be added
9572 archive_cmds_need_lc=yes
9574 if test "$enable_shared" = yes && test "$GCC" = yes; then
9575 case $archive_cmds in
9576 *'~'*)
9577 # FIXME: we may have to deal with multi-command sequences.
9579 '$CC '*)
9580 # Test whether the compiler implicitly links with -lc since on some
9581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9582 # to ld, don't add -lc before -lgcc.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9585 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 $RM conftest*
9589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9595 test $ac_status = 0; } 2>conftest.err; then
9596 soname=conftest
9597 lib=conftest
9598 libobjs=conftest.$ac_objext
9599 deplibs=
9600 wl=$lt_prog_compiler_wl
9601 pic_flag=$lt_prog_compiler_pic
9602 compiler_flags=-v
9603 linker_flags=-v
9604 verstring=
9605 output_objdir=.
9606 libname=conftest
9607 lt_save_allow_undefined_flag=$allow_undefined_flag
9608 allow_undefined_flag=
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9610 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9611 ac_status=$?
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; }
9614 then
9615 lt_cv_archive_cmds_need_lc=no
9616 else
9617 lt_cv_archive_cmds_need_lc=yes
9619 allow_undefined_flag=$lt_save_allow_undefined_flag
9620 else
9621 cat conftest.err 1>&5
9623 $RM conftest*
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9627 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9628 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9630 esac
9633 esac
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9792 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9794 if test "$GCC" = yes; then
9795 case $host_os in
9796 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9797 *) lt_awk_arg="/^libraries:/" ;;
9798 esac
9799 case $host_os in
9800 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9801 *) lt_sed_strip_eq="s,=/,/,g" ;;
9802 esac
9803 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9804 case $lt_search_path_spec in
9805 *\;*)
9806 # if the path contains ";" then we assume it to be the separator
9807 # otherwise default to the standard path separator (i.e. ":") - it is
9808 # assumed that no part of a normal pathname contains ";" but that should
9809 # okay in the real world where ";" in dirpaths is itself problematic.
9810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9813 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9815 esac
9816 # Ok, now we have the path, separated by spaces, we can step through it
9817 # and add multilib dir if necessary.
9818 lt_tmp_lt_search_path_spec=
9819 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9820 for lt_sys_path in $lt_search_path_spec; do
9821 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9822 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9823 else
9824 test -d "$lt_sys_path" && \
9825 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9827 done
9828 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9829 BEGIN {RS=" "; FS="/|\n";} {
9830 lt_foo="";
9831 lt_count=0;
9832 for (lt_i = NF; lt_i > 0; lt_i--) {
9833 if ($lt_i != "" && $lt_i != ".") {
9834 if ($lt_i == "..") {
9835 lt_count++;
9836 } else {
9837 if (lt_count == 0) {
9838 lt_foo="/" $lt_i lt_foo;
9839 } else {
9840 lt_count--;
9845 if (lt_foo != "") { lt_freq[lt_foo]++; }
9846 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9848 # AWK program above erroneously prepends '/' to C:/dos/paths
9849 # for these hosts.
9850 case $host_os in
9851 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9852 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9853 esac
9854 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9855 else
9856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9858 library_names_spec=
9859 libname_spec='lib$name'
9860 soname_spec=
9861 shrext_cmds=".so"
9862 postinstall_cmds=
9863 postuninstall_cmds=
9864 finish_cmds=
9865 finish_eval=
9866 shlibpath_var=
9867 shlibpath_overrides_runpath=unknown
9868 version_type=none
9869 dynamic_linker="$host_os ld.so"
9870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9871 need_lib_prefix=unknown
9872 hardcode_into_libs=no
9874 # when you set need_version to no, make sure it does not cause -set_version
9875 # flags to be left without arguments
9876 need_version=unknown
9878 case $host_os in
9879 aix3*)
9880 version_type=linux
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9882 shlibpath_var=LIBPATH
9884 # AIX 3 has no versioning support, so we append a major version to the name.
9885 soname_spec='${libname}${release}${shared_ext}$major'
9888 aix[4-9]*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 hardcode_into_libs=yes
9893 if test "$host_cpu" = ia64; then
9894 # AIX 5 supports IA64
9895 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 else
9898 # With GCC up to 2.95.x, collect2 would create an import file
9899 # for dependence libraries. The import file would start with
9900 # the line `#! .'. This would cause the generated library to
9901 # depend on `.', always an invalid library. This was fixed in
9902 # development snapshots of GCC prior to 3.0.
9903 case $host_os in
9904 aix4 | aix4.[01] | aix4.[01].*)
9905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9906 echo ' yes '
9907 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9909 else
9910 can_build_shared=no
9913 esac
9914 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9915 # soname into executable. Probably we can add versioning support to
9916 # collect2, so additional links can be useful in future.
9917 if test "$aix_use_runtimelinking" = yes; then
9918 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9919 # instead of lib<name>.a to let people know that these are not
9920 # typical AIX shared libraries.
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 else
9923 # We preserve .a as extension for shared libraries through AIX4.2
9924 # and later when we are not doing run time linking.
9925 library_names_spec='${libname}${release}.a $libname.a'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LIBPATH
9932 amigaos*)
9933 case $host_cpu in
9934 powerpc)
9935 # Since July 2007 AmigaOS4 officially supports .so libraries.
9936 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 m68k)
9940 library_names_spec='$libname.ixlibrary $libname.a'
9941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9942 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'
9944 esac
9947 beos*)
9948 library_names_spec='${libname}${shared_ext}'
9949 dynamic_linker="$host_os ld.so"
9950 shlibpath_var=LIBRARY_PATH
9953 bsdi[45]*)
9954 version_type=linux
9955 need_version=no
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9962 # the default ld.so.conf also contains /usr/contrib/lib and
9963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9964 # libtool to hard-code these into programs
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 version_type=windows
9969 shrext_cmds=".dll"
9970 need_version=no
9971 need_lib_prefix=no
9973 case $GCC,$host_os in
9974 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9975 library_names_spec='$libname.dll.a'
9976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9977 postinstall_cmds='base_file=`basename \${file}`~
9978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9979 dldir=$destdir/`dirname \$dlpath`~
9980 test -d \$dldir || mkdir -p \$dldir~
9981 $install_prog $dir/$dlname \$dldir/$dlname~
9982 chmod a+x \$dldir/$dlname~
9983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9987 dlpath=$dir/\$dldll~
9988 $RM \$dlpath'
9989 shlibpath_overrides_runpath=yes
9991 case $host_os in
9992 cygwin*)
9993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9998 mingw* | cegcc*)
9999 # MinGW DLLs use traditional 'lib' prefix
10000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002 pw32*)
10003 # pw32 DLLs use 'pw' prefix rather than 'lib'
10004 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006 esac
10010 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10012 esac
10013 dynamic_linker='Win32 ld.exe'
10014 # FIXME: first we should search . and the directory the executable is in
10015 shlibpath_var=PATH
10018 darwin* | rhapsody*)
10019 dynamic_linker="$host_os dyld"
10020 version_type=darwin
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10024 soname_spec='${libname}${release}${major}$shared_ext'
10025 shlibpath_overrides_runpath=yes
10026 shlibpath_var=DYLD_LIBRARY_PATH
10027 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033 dgux*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10042 freebsd* | dragonfly*)
10043 # DragonFly does not have aout. When/if they implement a new
10044 # versioning mechanism, adjust this.
10045 if test -x /usr/bin/objformat; then
10046 objformat=`/usr/bin/objformat`
10047 else
10048 case $host_os in
10049 freebsd[123]*) objformat=aout ;;
10050 *) objformat=elf ;;
10051 esac
10053 version_type=freebsd-$objformat
10054 case $version_type in
10055 freebsd-elf*)
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 need_version=no
10058 need_lib_prefix=no
10060 freebsd-*)
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10062 need_version=yes
10064 esac
10065 shlibpath_var=LD_LIBRARY_PATH
10066 case $host_os in
10067 freebsd2*)
10068 shlibpath_overrides_runpath=yes
10070 freebsd3.[01]* | freebsdelf3.[01]*)
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10079 *) # from 4.6 on, and DragonFly
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10083 esac
10086 gnu*)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 hardcode_into_libs=yes
10096 haiku*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 dynamic_linker="$host_os runtime_loader"
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10105 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10106 hardcode_into_libs=yes
10109 hpux9* | hpux10* | hpux11*)
10110 # Give a soname corresponding to the major version so that dld.sl refuses to
10111 # link against other versions.
10112 version_type=sunos
10113 need_lib_prefix=no
10114 need_version=no
10115 case $host_cpu in
10116 ia64*)
10117 shrext_cmds='.so'
10118 hardcode_into_libs=yes
10119 dynamic_linker="$host_os dld.so"
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 if test "X$HPUX_IA64_MODE" = X32; then
10125 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10126 else
10127 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10131 hppa*64*)
10132 shrext_cmds='.sl'
10133 hardcode_into_libs=yes
10134 dynamic_linker="$host_os dld.sl"
10135 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10143 shrext_cmds='.sl'
10144 dynamic_linker="$host_os dld.sl"
10145 shlibpath_var=SHLIB_PATH
10146 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10150 esac
10151 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10152 postinstall_cmds='chmod 555 $lib'
10153 # or fails outright, so override atomically:
10154 install_override_mode=555
10157 interix[3-9]*)
10158 version_type=linux
10159 need_lib_prefix=no
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=no
10166 hardcode_into_libs=yes
10169 irix5* | irix6* | nonstopux*)
10170 case $host_os in
10171 nonstopux*) version_type=nonstopux ;;
10173 if test "$lt_cv_prog_gnu_ld" = yes; then
10174 version_type=linux
10175 else
10176 version_type=irix
10177 fi ;;
10178 esac
10179 need_lib_prefix=no
10180 need_version=no
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10183 case $host_os in
10184 irix5* | nonstopux*)
10185 libsuff= shlibsuff=
10188 case $LD in # libtool.m4 will add one of these switches to LD
10189 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10190 libsuff= shlibsuff= libmagic=32-bit;;
10191 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10192 libsuff=32 shlibsuff=N32 libmagic=N32;;
10193 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10194 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10195 *) libsuff= shlibsuff= libmagic=never-match;;
10196 esac
10198 esac
10199 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10200 shlibpath_overrides_runpath=no
10201 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10202 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10203 hardcode_into_libs=yes
10206 # No shared lib support for Linux oldld, aout, or coff.
10207 linux*oldld* | linux*aout* | linux*coff*)
10208 dynamic_linker=no
10211 # This must be Linux ELF.
10212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=no
10222 # Some binutils ld are patched to set DT_RUNPATH
10223 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 lt_cv_shlibpath_overrides_runpath=no
10227 save_LDFLAGS=$LDFLAGS
10228 save_libdir=$libdir
10229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10235 main ()
10239 return 0;
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10244 lt_cv_shlibpath_overrides_runpath=yes
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LDFLAGS=$save_LDFLAGS
10250 libdir=$save_libdir
10254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10256 # This implies no fast_install, which is unacceptable.
10257 # Some rework will be needed to allow for fast_install
10258 # before this can be enabled.
10259 hardcode_into_libs=yes
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 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' ' '`
10264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10276 netbsd*)
10277 version_type=sunos
10278 need_lib_prefix=no
10279 need_version=no
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10284 else
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10294 newsos6)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10301 *nto* | *qnx*)
10302 version_type=qnx
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10313 openbsd*)
10314 version_type=sunos
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10316 need_lib_prefix=no
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318 case $host_os in
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10321 esac
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 case $host_os in
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10331 shlibpath_overrides_runpath=yes
10333 esac
10334 else
10335 shlibpath_overrides_runpath=yes
10339 os2*)
10340 libname_spec='$name'
10341 shrext_cmds=".dll"
10342 need_lib_prefix=no
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10348 osf3* | osf4* | osf5*)
10349 version_type=osf
10350 need_lib_prefix=no
10351 need_version=no
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359 rdos*)
10360 dynamic_linker=no
10363 solaris*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10376 sunos4*)
10377 version_type=sunos
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10383 need_lib_prefix=no
10385 need_version=yes
10388 sysv4 | sysv4.3*)
10389 version_type=linux
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10394 sni)
10395 shlibpath_overrides_runpath=no
10396 need_lib_prefix=no
10397 runpath_var=LD_RUN_PATH
10399 siemens)
10400 need_lib_prefix=no
10402 motorola)
10403 need_lib_prefix=no
10404 need_version=no
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10408 esac
10411 sysv4*MP*)
10412 if test -d /usr/nec ;then
10413 version_type=linux
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10431 else
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10433 case $host_os in
10434 sco3.2v5*)
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10437 esac
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10442 tpf*)
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10453 uts4*)
10454 version_type=linux
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10461 dynamic_linker=no
10463 esac
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10465 $as_echo "$dynamic_linker" >&6; }
10466 test "$dynamic_linker" = no && can_build_shared=no
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10573 hardcode_action=
10574 if test -n "$hardcode_libdir_flag_spec" ||
10575 test -n "$runpath_var" ||
10576 test "X$hardcode_automatic" = "Xyes" ; then
10578 # We can hardcode non-existent directories.
10579 if test "$hardcode_direct" != no &&
10580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10581 # have to relink, otherwise we might link with an installed library
10582 # when we should be linking with a yet-to-be-installed one
10583 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10584 test "$hardcode_minus_L" != no; then
10585 # Linking always hardcodes the temporary library directory.
10586 hardcode_action=relink
10587 else
10588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10589 hardcode_action=immediate
10591 else
10592 # We cannot hardcode anything, or else we can only hardcode existing
10593 # directories.
10594 hardcode_action=unsupported
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10597 $as_echo "$hardcode_action" >&6; }
10599 if test "$hardcode_action" = relink ||
10600 test "$inherit_rpath" = yes; then
10601 # Fast installation is not supported
10602 enable_fast_install=no
10603 elif test "$shlibpath_overrides_runpath" = yes ||
10604 test "$enable_shared" = no; then
10605 # Fast installation is not necessary
10606 enable_fast_install=needless
10614 if test "x$enable_dlopen" != xyes; then
10615 enable_dlopen=unknown
10616 enable_dlopen_self=unknown
10617 enable_dlopen_self_static=unknown
10618 else
10619 lt_cv_dlopen=no
10620 lt_cv_dlopen_libs=
10622 case $host_os in
10623 beos*)
10624 lt_cv_dlopen="load_add_on"
10625 lt_cv_dlopen_libs=
10626 lt_cv_dlopen_self=yes
10629 mingw* | pw32* | cegcc*)
10630 lt_cv_dlopen="LoadLibrary"
10631 lt_cv_dlopen_libs=
10634 cygwin*)
10635 lt_cv_dlopen="dlopen"
10636 lt_cv_dlopen_libs=
10639 darwin*)
10640 # if libdl is installed we need to link against it
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldl $LIBS"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dlopen ();
10659 main ()
10661 return dlopen ();
10663 return 0;
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_lib_dl_dlopen=yes
10668 else
10669 ac_cv_lib_dl_dlopen=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10677 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10678 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10679 else
10681 lt_cv_dlopen="dyld"
10682 lt_cv_dlopen_libs=
10683 lt_cv_dlopen_self=yes
10690 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10691 if test "x$ac_cv_func_shl_load" = x""yes; then :
10692 lt_cv_dlopen="shl_load"
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10695 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10696 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldld $LIBS"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char shl_load ();
10712 main ()
10714 return shl_load ();
10716 return 0;
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 ac_cv_lib_dld_shl_load=yes
10721 else
10722 ac_cv_lib_dld_shl_load=no
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10729 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10730 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10731 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10732 else
10733 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10734 if test "x$ac_cv_func_dlopen" = x""yes; then :
10735 lt_cv_dlopen="dlopen"
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10738 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldl $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char dlopen ();
10755 main ()
10757 return dlopen ();
10759 return 0;
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_lib_dl_dlopen=yes
10764 else
10765 ac_cv_lib_dl_dlopen=no
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10772 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10773 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10777 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lsvld $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char dlopen ();
10794 main ()
10796 return dlopen ();
10798 return 0;
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 ac_cv_lib_svld_dlopen=yes
10803 else
10804 ac_cv_lib_svld_dlopen=no
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10811 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10812 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10816 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldld $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char dld_link ();
10833 main ()
10835 return dld_link ();
10837 return 0;
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 ac_cv_lib_dld_dld_link=yes
10842 else
10843 ac_cv_lib_dld_dld_link=no
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10850 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10851 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10852 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10871 esac
10873 if test "x$lt_cv_dlopen" != xno; then
10874 enable_dlopen=yes
10875 else
10876 enable_dlopen=no
10879 case $lt_cv_dlopen in
10880 dlopen)
10881 save_CPPFLAGS="$CPPFLAGS"
10882 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10884 save_LDFLAGS="$LDFLAGS"
10885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10887 save_LIBS="$LIBS"
10888 LIBS="$lt_cv_dlopen_libs $LIBS"
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10891 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10892 if test "${lt_cv_dlopen_self+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 if test "$cross_compiling" = yes; then :
10896 lt_cv_dlopen_self=cross
10897 else
10898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10899 lt_status=$lt_dlunknown
10900 cat > conftest.$ac_ext <<_LT_EOF
10901 #line 10901 "configure"
10902 #include "confdefs.h"
10904 #if HAVE_DLFCN_H
10905 #include <dlfcn.h>
10906 #endif
10908 #include <stdio.h>
10910 #ifdef RTLD_GLOBAL
10911 # define LT_DLGLOBAL RTLD_GLOBAL
10912 #else
10913 # ifdef DL_GLOBAL
10914 # define LT_DLGLOBAL DL_GLOBAL
10915 # else
10916 # define LT_DLGLOBAL 0
10917 # endif
10918 #endif
10920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10921 find out it does not work in some platform. */
10922 #ifndef LT_DLLAZY_OR_NOW
10923 # ifdef RTLD_LAZY
10924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10925 # else
10926 # ifdef DL_LAZY
10927 # define LT_DLLAZY_OR_NOW DL_LAZY
10928 # else
10929 # ifdef RTLD_NOW
10930 # define LT_DLLAZY_OR_NOW RTLD_NOW
10931 # else
10932 # ifdef DL_NOW
10933 # define LT_DLLAZY_OR_NOW DL_NOW
10934 # else
10935 # define LT_DLLAZY_OR_NOW 0
10936 # endif
10937 # endif
10938 # endif
10939 # endif
10940 #endif
10942 /* When -fvisbility=hidden is used, assume the code has been annotated
10943 correspondingly for the symbols needed. */
10944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10945 void fnord () __attribute__((visibility("default")));
10946 #endif
10948 void fnord () { int i=42; }
10949 int main ()
10951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10952 int status = $lt_dlunknown;
10954 if (self)
10956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10957 else
10959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 else puts (dlerror ());
10962 /* dlclose (self); */
10964 else
10965 puts (dlerror ());
10967 return status;
10969 _LT_EOF
10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10971 (eval $ac_link) 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10975 (./conftest; exit; ) >&5 2>/dev/null
10976 lt_status=$?
10977 case x$lt_status in
10978 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10979 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10980 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10981 esac
10982 else :
10983 # compilation failed
10984 lt_cv_dlopen_self=no
10987 rm -fr conftest*
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10992 $as_echo "$lt_cv_dlopen_self" >&6; }
10994 if test "x$lt_cv_dlopen_self" = xyes; then
10995 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10997 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10998 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 if test "$cross_compiling" = yes; then :
11002 lt_cv_dlopen_self_static=cross
11003 else
11004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11005 lt_status=$lt_dlunknown
11006 cat > conftest.$ac_ext <<_LT_EOF
11007 #line 11007 "configure"
11008 #include "confdefs.h"
11010 #if HAVE_DLFCN_H
11011 #include <dlfcn.h>
11012 #endif
11014 #include <stdio.h>
11016 #ifdef RTLD_GLOBAL
11017 # define LT_DLGLOBAL RTLD_GLOBAL
11018 #else
11019 # ifdef DL_GLOBAL
11020 # define LT_DLGLOBAL DL_GLOBAL
11021 # else
11022 # define LT_DLGLOBAL 0
11023 # endif
11024 #endif
11026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11027 find out it does not work in some platform. */
11028 #ifndef LT_DLLAZY_OR_NOW
11029 # ifdef RTLD_LAZY
11030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11031 # else
11032 # ifdef DL_LAZY
11033 # define LT_DLLAZY_OR_NOW DL_LAZY
11034 # else
11035 # ifdef RTLD_NOW
11036 # define LT_DLLAZY_OR_NOW RTLD_NOW
11037 # else
11038 # ifdef DL_NOW
11039 # define LT_DLLAZY_OR_NOW DL_NOW
11040 # else
11041 # define LT_DLLAZY_OR_NOW 0
11042 # endif
11043 # endif
11044 # endif
11045 # endif
11046 #endif
11048 /* When -fvisbility=hidden is used, assume the code has been annotated
11049 correspondingly for the symbols needed. */
11050 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11051 void fnord () __attribute__((visibility("default")));
11052 #endif
11054 void fnord () { int i=42; }
11055 int main ()
11057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11058 int status = $lt_dlunknown;
11060 if (self)
11062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11063 else
11065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 else puts (dlerror ());
11068 /* dlclose (self); */
11070 else
11071 puts (dlerror ());
11073 return status;
11075 _LT_EOF
11076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11077 (eval $ac_link) 2>&5
11078 ac_status=$?
11079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11080 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11081 (./conftest; exit; ) >&5 2>/dev/null
11082 lt_status=$?
11083 case x$lt_status in
11084 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11085 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11086 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11087 esac
11088 else :
11089 # compilation failed
11090 lt_cv_dlopen_self_static=no
11093 rm -fr conftest*
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11098 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11101 CPPFLAGS="$save_CPPFLAGS"
11102 LDFLAGS="$save_LDFLAGS"
11103 LIBS="$save_LIBS"
11105 esac
11107 case $lt_cv_dlopen_self in
11108 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11109 *) enable_dlopen_self=unknown ;;
11110 esac
11112 case $lt_cv_dlopen_self_static in
11113 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11114 *) enable_dlopen_self_static=unknown ;;
11115 esac
11134 striplib=
11135 old_striplib=
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11137 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11138 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142 $as_echo "yes" >&6; }
11143 else
11144 # FIXME - insert some real tests, host_os isn't really good enough
11145 case $host_os in
11146 darwin*)
11147 if test -n "$STRIP" ; then
11148 striplib="$STRIP -x"
11149 old_striplib="$STRIP -S"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11161 esac
11175 # Report which library types will actually be built
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11177 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11179 $as_echo "$can_build_shared" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11182 $as_echo_n "checking whether to build shared libraries... " >&6; }
11183 test "$can_build_shared" = "no" && enable_shared=no
11185 # On AIX, shared libraries and static libraries use the same namespace, and
11186 # are all built from PIC.
11187 case $host_os in
11188 aix3*)
11189 test "$enable_shared" = yes && enable_static=no
11190 if test -n "$RANLIB"; then
11191 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11192 postinstall_cmds='$RANLIB $lib'
11196 aix[4-9]*)
11197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11198 test "$enable_shared" = yes && enable_static=no
11201 esac
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11203 $as_echo "$enable_shared" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11206 $as_echo_n "checking whether to build static libraries... " >&6; }
11207 # Make sure either enable_shared or enable_static is yes.
11208 test "$enable_shared" = yes || enable_static=yes
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11210 $as_echo "$enable_static" >&6; }
11216 ac_ext=c
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11222 CC="$lt_save_CC"
11236 # Source file extension for Go test sources.
11237 ac_ext=go
11239 # Object file extension for compiled Go test sources.
11240 objext=o
11241 objext_GO=$objext
11243 # Code to be used in simple compile tests
11244 lt_simple_compile_test_code="package main; func main() { }"
11246 # Code to be used in simple link tests
11247 lt_simple_link_test_code='package main; func main() { }'
11249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11256 # If no C compiler was specified, use CC.
11257 LTCC=${LTCC-"$CC"}
11259 # If no C compiler flags were specified, use CFLAGS.
11260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11262 # Allow CC to be a program name with arguments.
11263 compiler=$CC
11266 # save warnings/boilerplate of simple test code
11267 ac_outfile=conftest.$ac_objext
11268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11270 _lt_compiler_boilerplate=`cat conftest.err`
11271 $RM conftest*
11273 ac_outfile=conftest.$ac_objext
11274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11276 _lt_linker_boilerplate=`cat conftest.err`
11277 $RM -r conftest*
11280 # Allow CC to be a program name with arguments.
11281 lt_save_CC="$CC"
11282 lt_save_GCC="$GCC"
11283 GCC=yes
11284 CC=${GOC-"gccgo"}
11285 compiler=$CC
11286 compiler_GO=$CC
11287 LD_GO="$LD"
11288 for cc_temp in $compiler""; do
11289 case $cc_temp in
11290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11292 \-*) ;;
11293 *) break;;
11294 esac
11295 done
11296 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11299 # Go did not exist at the time GCC didn't implicitly link libc in.
11300 archive_cmds_need_lc_GO=no
11302 old_archive_cmds_GO=$old_archive_cmds
11304 ## CAVEAT EMPTOR:
11305 ## There is no encapsulation within the following macros, do not change
11306 ## the running order or otherwise move them around unless you know exactly
11307 ## what you are doing...
11308 if test -n "$compiler"; then
11310 lt_prog_compiler_no_builtin_flag_GO=
11312 if test "$GCC" = yes; then
11313 case $cc_basename in
11314 nvcc*)
11315 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11317 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11318 esac
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11321 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11322 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 lt_cv_prog_compiler_rtti_exceptions=no
11326 ac_outfile=conftest.$ac_objext
11327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11328 lt_compiler_flag="-fno-rtti -fno-exceptions"
11329 # Insert the option either (1) after the last *FLAGS variable, or
11330 # (2) before a word containing "conftest.", or (3) at the end.
11331 # Note that $ac_compile itself does not contain backslashes and begins
11332 # with a dollar sign (not a hyphen), so the echo should work correctly.
11333 # The option is referenced via a variable to avoid confusing sed.
11334 lt_compile=`echo "$ac_compile" | $SED \
11335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11337 -e 's:$: $lt_compiler_flag:'`
11338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11339 (eval "$lt_compile" 2>conftest.err)
11340 ac_status=$?
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 if (exit $ac_status) && test -s "$ac_outfile"; then
11344 # The compiler can only warn and ignore the option if not recognized
11345 # So say no if there are warnings other than the usual output.
11346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11349 lt_cv_prog_compiler_rtti_exceptions=yes
11352 $RM conftest*
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11356 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11359 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11360 else
11368 lt_prog_compiler_wl_GO=
11369 lt_prog_compiler_pic_GO=
11370 lt_prog_compiler_static_GO=
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11375 if test "$GCC" = yes; then
11376 lt_prog_compiler_wl_GO='-Wl,'
11377 lt_prog_compiler_static_GO='-static'
11379 case $host_os in
11380 aix*)
11381 # All AIX code is PIC.
11382 if test "$host_cpu" = ia64; then
11383 # AIX 5 now supports IA64 processor
11384 lt_prog_compiler_static_GO='-Bstatic'
11388 amigaos*)
11389 case $host_cpu in
11390 powerpc)
11391 # see comment about AmigaOS4 .so support
11392 lt_prog_compiler_pic_GO='-fPIC'
11394 m68k)
11395 # FIXME: we need at least 68020 code to build shared libraries, but
11396 # adding the `-m68020' flag to GCC prevents building anything better,
11397 # like `-m68040'.
11398 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11400 esac
11403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11404 # PIC is the default for these OSes.
11407 mingw* | cygwin* | pw32* | os2* | cegcc*)
11408 # This hack is so that the source file can tell whether it is being
11409 # built for inclusion in a dll (and should export symbols for example).
11410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11411 # (--disable-auto-import) libraries
11412 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11415 darwin* | rhapsody*)
11416 # PIC is the default on this platform
11417 # Common symbols not allowed in MH_DYLIB files
11418 lt_prog_compiler_pic_GO='-fno-common'
11421 haiku*)
11422 # PIC is the default for Haiku.
11423 # The "-static" flag exists, but is broken.
11424 lt_prog_compiler_static_GO=
11427 hpux*)
11428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11430 # sets the default TLS model and affects inlining.
11431 case $host_cpu in
11432 hppa*64*)
11433 # +Z the default
11436 lt_prog_compiler_pic_GO='-fPIC'
11438 esac
11441 interix[3-9]*)
11442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11443 # Instead, we relocate shared libraries at runtime.
11446 msdosdjgpp*)
11447 # Just because we use GCC doesn't mean we suddenly get shared libraries
11448 # on systems that don't support them.
11449 lt_prog_compiler_can_build_shared_GO=no
11450 enable_shared=no
11453 *nto* | *qnx*)
11454 # QNX uses GNU C++, but need to define -shared option too, otherwise
11455 # it will coredump.
11456 lt_prog_compiler_pic_GO='-fPIC -shared'
11459 sysv4*MP*)
11460 if test -d /usr/nec; then
11461 lt_prog_compiler_pic_GO=-Kconform_pic
11466 lt_prog_compiler_pic_GO='-fPIC'
11468 esac
11470 case $cc_basename in
11471 nvcc*) # Cuda Compiler Driver 2.2
11472 lt_prog_compiler_wl_GO='-Xlinker '
11473 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11475 esac
11476 else
11477 # PORTME Check for flag to pass linker flags through the system compiler.
11478 case $host_os in
11479 aix*)
11480 lt_prog_compiler_wl_GO='-Wl,'
11481 if test "$host_cpu" = ia64; then
11482 # AIX 5 now supports IA64 processor
11483 lt_prog_compiler_static_GO='-Bstatic'
11484 else
11485 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11489 mingw* | cygwin* | pw32* | os2* | cegcc*)
11490 # This hack is so that the source file can tell whether it is being
11491 # built for inclusion in a dll (and should export symbols for example).
11492 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11495 hpux9* | hpux10* | hpux11*)
11496 lt_prog_compiler_wl_GO='-Wl,'
11497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11498 # not for PA HP-UX.
11499 case $host_cpu in
11500 hppa*64*|ia64*)
11501 # +Z the default
11504 lt_prog_compiler_pic_GO='+Z'
11506 esac
11507 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11508 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11511 irix5* | irix6* | nonstopux*)
11512 lt_prog_compiler_wl_GO='-Wl,'
11513 # PIC (with -KPIC) is the default.
11514 lt_prog_compiler_static_GO='-non_shared'
11517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11518 case $cc_basename in
11519 # old Intel for x86_64 which still supported -KPIC.
11520 ecc*)
11521 lt_prog_compiler_wl_GO='-Wl,'
11522 lt_prog_compiler_pic_GO='-KPIC'
11523 lt_prog_compiler_static_GO='-static'
11525 # icc used to be incompatible with GCC.
11526 # ICC 10 doesn't accept -KPIC any more.
11527 icc* | ifort*)
11528 lt_prog_compiler_wl_GO='-Wl,'
11529 lt_prog_compiler_pic_GO='-fPIC'
11530 lt_prog_compiler_static_GO='-static'
11532 # Lahey Fortran 8.1.
11533 lf95*)
11534 lt_prog_compiler_wl_GO='-Wl,'
11535 lt_prog_compiler_pic_GO='--shared'
11536 lt_prog_compiler_static_GO='--static'
11538 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11539 # Portland Group compilers (*not* the Pentium gcc compiler,
11540 # which looks to be a dead project)
11541 lt_prog_compiler_wl_GO='-Wl,'
11542 lt_prog_compiler_pic_GO='-fpic'
11543 lt_prog_compiler_static_GO='-Bstatic'
11545 ccc*)
11546 lt_prog_compiler_wl_GO='-Wl,'
11547 # All Alpha code is PIC.
11548 lt_prog_compiler_static_GO='-non_shared'
11550 xl* | bgxl* | bgf* | mpixl*)
11551 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11552 lt_prog_compiler_wl_GO='-Wl,'
11553 lt_prog_compiler_pic_GO='-qpic'
11554 lt_prog_compiler_static_GO='-qstaticlink'
11557 case `$CC -V 2>&1 | sed 5q` in
11558 *Sun\ F* | *Sun*Fortran*)
11559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11560 lt_prog_compiler_pic_GO='-KPIC'
11561 lt_prog_compiler_static_GO='-Bstatic'
11562 lt_prog_compiler_wl_GO=''
11564 *Sun\ C*)
11565 # Sun C 5.9
11566 lt_prog_compiler_pic_GO='-KPIC'
11567 lt_prog_compiler_static_GO='-Bstatic'
11568 lt_prog_compiler_wl_GO='-Wl,'
11570 esac
11572 esac
11575 newsos6)
11576 lt_prog_compiler_pic_GO='-KPIC'
11577 lt_prog_compiler_static_GO='-Bstatic'
11580 *nto* | *qnx*)
11581 # QNX uses GNU C++, but need to define -shared option too, otherwise
11582 # it will coredump.
11583 lt_prog_compiler_pic_GO='-fPIC -shared'
11586 osf3* | osf4* | osf5*)
11587 lt_prog_compiler_wl_GO='-Wl,'
11588 # All OSF/1 code is PIC.
11589 lt_prog_compiler_static_GO='-non_shared'
11592 rdos*)
11593 lt_prog_compiler_static_GO='-non_shared'
11596 solaris*)
11597 lt_prog_compiler_pic_GO='-KPIC'
11598 lt_prog_compiler_static_GO='-Bstatic'
11599 case $cc_basename in
11600 f77* | f90* | f95*)
11601 lt_prog_compiler_wl_GO='-Qoption ld ';;
11603 lt_prog_compiler_wl_GO='-Wl,';;
11604 esac
11607 sunos4*)
11608 lt_prog_compiler_wl_GO='-Qoption ld '
11609 lt_prog_compiler_pic_GO='-PIC'
11610 lt_prog_compiler_static_GO='-Bstatic'
11613 sysv4 | sysv4.2uw2* | sysv4.3*)
11614 lt_prog_compiler_wl_GO='-Wl,'
11615 lt_prog_compiler_pic_GO='-KPIC'
11616 lt_prog_compiler_static_GO='-Bstatic'
11619 sysv4*MP*)
11620 if test -d /usr/nec ;then
11621 lt_prog_compiler_pic_GO='-Kconform_pic'
11622 lt_prog_compiler_static_GO='-Bstatic'
11626 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11627 lt_prog_compiler_wl_GO='-Wl,'
11628 lt_prog_compiler_pic_GO='-KPIC'
11629 lt_prog_compiler_static_GO='-Bstatic'
11632 unicos*)
11633 lt_prog_compiler_wl_GO='-Wl,'
11634 lt_prog_compiler_can_build_shared_GO=no
11637 uts4*)
11638 lt_prog_compiler_pic_GO='-pic'
11639 lt_prog_compiler_static_GO='-Bstatic'
11643 lt_prog_compiler_can_build_shared_GO=no
11645 esac
11648 case $host_os in
11649 # For platforms which do not support PIC, -DPIC is meaningless:
11650 *djgpp*)
11651 lt_prog_compiler_pic_GO=
11654 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11656 esac
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11658 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11663 # Check to make sure the PIC flag actually works.
11665 if test -n "$lt_prog_compiler_pic_GO"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11667 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11668 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 lt_cv_prog_compiler_pic_works_GO=no
11672 ac_outfile=conftest.$ac_objext
11673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11674 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11675 # Insert the option either (1) after the last *FLAGS variable, or
11676 # (2) before a word containing "conftest.", or (3) at the end.
11677 # Note that $ac_compile itself does not contain backslashes and begins
11678 # with a dollar sign (not a hyphen), so the echo should work correctly.
11679 # The option is referenced via a variable to avoid confusing sed.
11680 lt_compile=`echo "$ac_compile" | $SED \
11681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11683 -e 's:$: $lt_compiler_flag:'`
11684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11685 (eval "$lt_compile" 2>conftest.err)
11686 ac_status=$?
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 if (exit $ac_status) && test -s "$ac_outfile"; then
11690 # The compiler can only warn and ignore the option if not recognized
11691 # So say no if there are warnings other than the usual output.
11692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11695 lt_cv_prog_compiler_pic_works_GO=yes
11698 $RM conftest*
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11702 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11704 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11705 case $lt_prog_compiler_pic_GO in
11706 "" | " "*) ;;
11707 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11708 esac
11709 else
11710 lt_prog_compiler_pic_GO=
11711 lt_prog_compiler_can_build_shared_GO=no
11719 # Check to make sure the static flag actually works.
11721 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11723 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11724 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 lt_cv_prog_compiler_static_works_GO=no
11728 save_LDFLAGS="$LDFLAGS"
11729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11732 # The linker can only warn and ignore the option if not recognized
11733 # So say no if there are warnings
11734 if test -s conftest.err; then
11735 # Append any errors to the config.log.
11736 cat conftest.err 1>&5
11737 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11739 if diff conftest.exp conftest.er2 >/dev/null; then
11740 lt_cv_prog_compiler_static_works_GO=yes
11742 else
11743 lt_cv_prog_compiler_static_works_GO=yes
11746 $RM -r conftest*
11747 LDFLAGS="$save_LDFLAGS"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11751 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11753 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11755 else
11756 lt_prog_compiler_static_GO=
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11764 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 lt_cv_prog_compiler_c_o_GO=no
11768 $RM -r conftest 2>/dev/null
11769 mkdir conftest
11770 cd conftest
11771 mkdir out
11772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11774 lt_compiler_flag="-o out/conftest2.$ac_objext"
11775 # Insert the option either (1) after the last *FLAGS variable, or
11776 # (2) before a word containing "conftest.", or (3) at the end.
11777 # Note that $ac_compile itself does not contain backslashes and begins
11778 # with a dollar sign (not a hyphen), so the echo should work correctly.
11779 lt_compile=`echo "$ac_compile" | $SED \
11780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11782 -e 's:$: $lt_compiler_flag:'`
11783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11784 (eval "$lt_compile" 2>out/conftest.err)
11785 ac_status=$?
11786 cat out/conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11789 then
11790 # The compiler can only warn and ignore the option if not recognized
11791 # So say no if there are warnings
11792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11795 lt_cv_prog_compiler_c_o_GO=yes
11798 chmod u+w . 2>&5
11799 $RM conftest*
11800 # SGI C++ compiler will create directory out/ii_files/ for
11801 # template instantiation
11802 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11803 $RM out/* && rmdir out
11804 cd ..
11805 $RM -r conftest
11806 $RM conftest*
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11810 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11816 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 lt_cv_prog_compiler_c_o_GO=no
11820 $RM -r conftest 2>/dev/null
11821 mkdir conftest
11822 cd conftest
11823 mkdir out
11824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11826 lt_compiler_flag="-o out/conftest2.$ac_objext"
11827 # Insert the option either (1) after the last *FLAGS variable, or
11828 # (2) before a word containing "conftest.", or (3) at the end.
11829 # Note that $ac_compile itself does not contain backslashes and begins
11830 # with a dollar sign (not a hyphen), so the echo should work correctly.
11831 lt_compile=`echo "$ac_compile" | $SED \
11832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11834 -e 's:$: $lt_compiler_flag:'`
11835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11836 (eval "$lt_compile" 2>out/conftest.err)
11837 ac_status=$?
11838 cat out/conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11841 then
11842 # The compiler can only warn and ignore the option if not recognized
11843 # So say no if there are warnings
11844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11847 lt_cv_prog_compiler_c_o_GO=yes
11850 chmod u+w . 2>&5
11851 $RM conftest*
11852 # SGI C++ compiler will create directory out/ii_files/ for
11853 # template instantiation
11854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11855 $RM out/* && rmdir out
11856 cd ..
11857 $RM -r conftest
11858 $RM conftest*
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11862 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11867 hard_links="nottested"
11868 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11869 # do not overwrite the value of need_locks provided by the user
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11871 $as_echo_n "checking if we can lock with hard links... " >&6; }
11872 hard_links=yes
11873 $RM conftest*
11874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11875 touch conftest.a
11876 ln conftest.a conftest.b 2>&5 || hard_links=no
11877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11879 $as_echo "$hard_links" >&6; }
11880 if test "$hard_links" = no; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11882 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11883 need_locks=warn
11885 else
11886 need_locks=no
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11892 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11894 runpath_var=
11895 allow_undefined_flag_GO=
11896 always_export_symbols_GO=no
11897 archive_cmds_GO=
11898 archive_expsym_cmds_GO=
11899 compiler_needs_object_GO=no
11900 enable_shared_with_static_runtimes_GO=no
11901 export_dynamic_flag_spec_GO=
11902 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11903 hardcode_automatic_GO=no
11904 hardcode_direct_GO=no
11905 hardcode_direct_absolute_GO=no
11906 hardcode_libdir_flag_spec_GO=
11907 hardcode_libdir_flag_spec_ld_GO=
11908 hardcode_libdir_separator_GO=
11909 hardcode_minus_L_GO=no
11910 hardcode_shlibpath_var_GO=unsupported
11911 inherit_rpath_GO=no
11912 link_all_deplibs_GO=unknown
11913 module_cmds_GO=
11914 module_expsym_cmds_GO=
11915 old_archive_from_new_cmds_GO=
11916 old_archive_from_expsyms_cmds_GO=
11917 thread_safe_flag_spec_GO=
11918 whole_archive_flag_spec_GO=
11919 # include_expsyms should be a list of space-separated symbols to be *always*
11920 # included in the symbol list
11921 include_expsyms_GO=
11922 # exclude_expsyms can be an extended regexp of symbols to exclude
11923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11924 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11925 # as well as any symbol that contains `d'.
11926 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11928 # platforms (ab)use it in PIC code, but their linkers get confused if
11929 # the symbol is explicitly referenced. Since portable code cannot
11930 # rely on this symbol name, it's probably fine to never include it in
11931 # preloaded symbol tables.
11932 # Exclude shared library initialization/finalization symbols.
11933 extract_expsyms_cmds=
11935 case $host_os in
11936 cygwin* | mingw* | pw32* | cegcc*)
11937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11938 # When not using gcc, we currently assume that we are using
11939 # Microsoft Visual C++.
11940 if test "$GCC" != yes; then
11941 with_gnu_ld=no
11944 interix*)
11945 # we just hope/assume this is gcc and not c89 (= MSVC++)
11946 with_gnu_ld=yes
11948 openbsd*)
11949 with_gnu_ld=no
11951 esac
11953 ld_shlibs_GO=yes
11955 # On some targets, GNU ld is compatible enough with the native linker
11956 # that we're better off using the native interface for both.
11957 lt_use_gnu_ld_interface=no
11958 if test "$with_gnu_ld" = yes; then
11959 case $host_os in
11960 aix*)
11961 # The AIX port of GNU ld has always aspired to compatibility
11962 # with the native linker. However, as the warning in the GNU ld
11963 # block says, versions before 2.19.5* couldn't really create working
11964 # shared libraries, regardless of the interface used.
11965 case `$LD -v 2>&1` in
11966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11970 lt_use_gnu_ld_interface=yes
11972 esac
11975 lt_use_gnu_ld_interface=yes
11977 esac
11980 if test "$lt_use_gnu_ld_interface" = yes; then
11981 # If archive_cmds runs LD, not CC, wlarc should be empty
11982 wlarc='${wl}'
11984 # Set some defaults for GNU ld with shared library support. These
11985 # are reset later if shared libraries are not supported. Putting them
11986 # here allows them to be overridden if necessary.
11987 runpath_var=LD_RUN_PATH
11988 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11989 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11990 # ancient GNU ld didn't support --whole-archive et. al.
11991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11992 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11993 else
11994 whole_archive_flag_spec_GO=
11996 supports_anon_versioning=no
11997 case `$LD -v 2>&1` in
11998 *GNU\ gold*) supports_anon_versioning=yes ;;
11999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12002 *\ 2.11.*) ;; # other 2.11 versions
12003 *) supports_anon_versioning=yes ;;
12004 esac
12006 # See if GNU ld supports shared libraries.
12007 case $host_os in
12008 aix[3-9]*)
12009 # On AIX/PPC, the GNU linker is very broken
12010 if test "$host_cpu" != ia64; then
12011 ld_shlibs_GO=no
12012 cat <<_LT_EOF 1>&2
12014 *** Warning: the GNU linker, at least up to release 2.19, is reported
12015 *** to be unable to reliably create shared libraries on AIX.
12016 *** Therefore, libtool is disabling shared libraries support. If you
12017 *** really care for shared libraries, you may want to install binutils
12018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12019 *** You will then need to restart the configuration process.
12021 _LT_EOF
12025 amigaos*)
12026 case $host_cpu in
12027 powerpc)
12028 # see comment about AmigaOS4 .so support
12029 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12030 archive_expsym_cmds_GO=''
12032 m68k)
12033 archive_cmds_GO='$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)'
12034 hardcode_libdir_flag_spec_GO='-L$libdir'
12035 hardcode_minus_L_GO=yes
12037 esac
12040 beos*)
12041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12042 allow_undefined_flag_GO=unsupported
12043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12044 # support --undefined. This deserves some investigation. FIXME
12045 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046 else
12047 ld_shlibs_GO=no
12051 cygwin* | mingw* | pw32* | cegcc*)
12052 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12053 # as there is no search path for DLLs.
12054 hardcode_libdir_flag_spec_GO='-L$libdir'
12055 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12056 allow_undefined_flag_GO=unsupported
12057 always_export_symbols_GO=no
12058 enable_shared_with_static_runtimes_GO=yes
12059 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12062 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12063 # If the export-symbols file already is a .def file (1st line
12064 # is EXPORTS), use it as is; otherwise, prepend...
12065 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12066 cp $export_symbols $output_objdir/$soname.def;
12067 else
12068 echo EXPORTS > $output_objdir/$soname.def;
12069 cat $export_symbols >> $output_objdir/$soname.def;
12071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12072 else
12073 ld_shlibs_GO=no
12077 haiku*)
12078 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079 link_all_deplibs_GO=yes
12082 interix[3-9]*)
12083 hardcode_direct_GO=no
12084 hardcode_shlibpath_var_GO=no
12085 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12086 export_dynamic_flag_spec_GO='${wl}-E'
12087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12088 # Instead, shared libraries are loaded at an image base (0x10000000 by
12089 # default) and relocated if they conflict, which is a slow very memory
12090 # consuming and fragmenting process. To avoid this, we pick a random,
12091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12093 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12094 archive_expsym_cmds_GO='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'
12097 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12098 tmp_diet=no
12099 if test "$host_os" = linux-dietlibc; then
12100 case $cc_basename in
12101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12102 esac
12104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12105 && test "$tmp_diet" = no
12106 then
12107 tmp_addflag=
12108 tmp_sharedflag='-shared'
12109 case $cc_basename,$host_cpu in
12110 pgcc*) # Portland Group C compiler
12111 whole_archive_flag_spec_GO='${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'
12112 tmp_addflag=' $pic_flag'
12114 pgf77* | pgf90* | pgf95* | pgfortran*)
12115 # Portland Group f77 and f90 compilers
12116 whole_archive_flag_spec_GO='${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'
12117 tmp_addflag=' $pic_flag -Mnomain' ;;
12118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12119 tmp_addflag=' -i_dynamic' ;;
12120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12121 tmp_addflag=' -i_dynamic -nofor_main' ;;
12122 ifc* | ifort*) # Intel Fortran compiler
12123 tmp_addflag=' -nofor_main' ;;
12124 lf95*) # Lahey Fortran 8.1
12125 whole_archive_flag_spec_GO=
12126 tmp_sharedflag='--shared' ;;
12127 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12128 tmp_sharedflag='-qmkshrobj'
12129 tmp_addflag= ;;
12130 nvcc*) # Cuda Compiler Driver 2.2
12131 whole_archive_flag_spec_GO='${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'
12132 compiler_needs_object_GO=yes
12134 esac
12135 case `$CC -V 2>&1 | sed 5q` in
12136 *Sun\ C*) # Sun C 5.9
12137 whole_archive_flag_spec_GO='${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'
12138 compiler_needs_object_GO=yes
12139 tmp_sharedflag='-G' ;;
12140 *Sun\ F*) # Sun Fortran 8.3
12141 tmp_sharedflag='-G' ;;
12142 esac
12143 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12145 if test "x$supports_anon_versioning" = xyes; then
12146 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12148 echo "local: *; };" >> $output_objdir/$libname.ver~
12149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12152 case $cc_basename in
12153 xlf* | bgf* | bgxlf* | mpixlf*)
12154 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12155 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12156 hardcode_libdir_flag_spec_GO=
12157 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12158 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12159 if test "x$supports_anon_versioning" = xyes; then
12160 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12162 echo "local: *; };" >> $output_objdir/$libname.ver~
12163 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12166 esac
12167 else
12168 ld_shlibs_GO=no
12172 netbsd*)
12173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12174 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12175 wlarc=
12176 else
12177 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12178 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12182 solaris*)
12183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12184 ld_shlibs_GO=no
12185 cat <<_LT_EOF 1>&2
12187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12188 *** create shared libraries on Solaris systems. Therefore, libtool
12189 *** is disabling shared libraries support. We urge you to upgrade GNU
12190 *** binutils to release 2.9.1 or newer. Another option is to modify
12191 *** your PATH or compiler configuration so that the native linker is
12192 *** used, and then restart.
12194 _LT_EOF
12195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12196 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12197 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 else
12199 ld_shlibs_GO=no
12203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12204 case `$LD -v 2>&1` in
12205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12206 ld_shlibs_GO=no
12207 cat <<_LT_EOF 1>&2
12209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12210 *** reliably create shared libraries on SCO systems. Therefore, libtool
12211 *** is disabling shared libraries support. We urge you to upgrade GNU
12212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12213 *** your PATH or compiler configuration so that the native linker is
12214 *** used, and then restart.
12216 _LT_EOF
12219 # For security reasons, it is highly recommended that you always
12220 # use absolute paths for naming shared libraries, and exclude the
12221 # DT_RUNPATH tag from executables and libraries. But doing so
12222 # requires that you compile everything twice, which is a pain.
12223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12224 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12225 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12227 else
12228 ld_shlibs_GO=no
12231 esac
12234 sunos4*)
12235 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12236 wlarc=
12237 hardcode_direct_GO=yes
12238 hardcode_shlibpath_var_GO=no
12242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12243 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12245 else
12246 ld_shlibs_GO=no
12249 esac
12251 if test "$ld_shlibs_GO" = no; then
12252 runpath_var=
12253 hardcode_libdir_flag_spec_GO=
12254 export_dynamic_flag_spec_GO=
12255 whole_archive_flag_spec_GO=
12257 else
12258 # PORTME fill in a description of your system's linker (not GNU ld)
12259 case $host_os in
12260 aix3*)
12261 allow_undefined_flag_GO=unsupported
12262 always_export_symbols_GO=yes
12263 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12264 # Note: this linker hardcodes the directories in LIBPATH if there
12265 # are no directories specified by -L.
12266 hardcode_minus_L_GO=yes
12267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12268 # Neither direct hardcoding nor static linking is supported with a
12269 # broken collect2.
12270 hardcode_direct_GO=unsupported
12274 aix[4-9]*)
12275 if test "$host_cpu" = ia64; then
12276 # On IA64, the linker does run time linking by default, so we don't
12277 # have to do anything special.
12278 aix_use_runtimelinking=no
12279 exp_sym_flag='-Bexport'
12280 no_entry_flag=""
12281 else
12282 # If we're using GNU nm, then we don't want the "-C" option.
12283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12284 # Also, AIX nm treats weak defined symbols like other global
12285 # defined symbols, whereas GNU nm marks them as "W".
12286 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12287 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12288 else
12289 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12291 aix_use_runtimelinking=no
12293 # Test if we are trying to use run time linking or normal
12294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12295 # need to do runtime linking.
12296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12297 for ld_flag in $LDFLAGS; do
12298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12299 aix_use_runtimelinking=yes
12300 break
12302 done
12304 esac
12306 exp_sym_flag='-bexport'
12307 no_entry_flag='-bnoentry'
12310 # When large executables or shared objects are built, AIX ld can
12311 # have problems creating the table of contents. If linking a library
12312 # or program results in "error TOC overflow" add -mminimal-toc to
12313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12316 archive_cmds_GO=''
12317 hardcode_direct_GO=yes
12318 hardcode_direct_absolute_GO=yes
12319 hardcode_libdir_separator_GO=':'
12320 link_all_deplibs_GO=yes
12321 file_list_spec_GO='${wl}-f,'
12323 if test "$GCC" = yes; then
12324 case $host_os in aix4.[012]|aix4.[012].*)
12325 # We only want to do this on AIX 4.2 and lower, the check
12326 # below for broken collect2 doesn't work under 4.3+
12327 collect2name=`${CC} -print-prog-name=collect2`
12328 if test -f "$collect2name" &&
12329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12330 then
12331 # We have reworked collect2
12333 else
12334 # We have old collect2
12335 hardcode_direct_GO=unsupported
12336 # It fails to find uninstalled libraries when the uninstalled
12337 # path is not listed in the libpath. Setting hardcode_minus_L
12338 # to unsupported forces relinking
12339 hardcode_minus_L_GO=yes
12340 hardcode_libdir_flag_spec_GO='-L$libdir'
12341 hardcode_libdir_separator_GO=
12344 esac
12345 shared_flag='-shared'
12346 if test "$aix_use_runtimelinking" = yes; then
12347 shared_flag="$shared_flag "'${wl}-G'
12349 else
12350 # not using gcc
12351 if test "$host_cpu" = ia64; then
12352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12353 # chokes on -Wl,-G. The following line is correct:
12354 shared_flag='-G'
12355 else
12356 if test "$aix_use_runtimelinking" = yes; then
12357 shared_flag='${wl}-G'
12358 else
12359 shared_flag='${wl}-bM:SRE'
12364 export_dynamic_flag_spec_GO='${wl}-bexpall'
12365 # It seems that -bexpall does not export symbols beginning with
12366 # underscore (_), so it is better to generate a list of symbols to export.
12367 always_export_symbols_GO=yes
12368 if test "$aix_use_runtimelinking" = yes; then
12369 # Warning - without using the other runtime loading flags (-brtl),
12370 # -berok will link without error, but may produce a broken library.
12371 allow_undefined_flag_GO='-berok'
12372 # Determine the default libpath from the value encoded in an
12373 # empty executable.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12378 main ()
12382 return 0;
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12387 lt_aix_libpath_sed='
12388 /Import File Strings/,/^$/ {
12389 /^0/ {
12390 s/^0 *\(.*\)$/\1/
12394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395 # Check for a 64-bit object if we didn't find anything.
12396 if test -z "$aix_libpath"; then
12397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12404 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12405 archive_expsym_cmds_GO='$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"
12406 else
12407 if test "$host_cpu" = ia64; then
12408 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12409 allow_undefined_flag_GO="-z nodefs"
12410 archive_expsym_cmds_GO="\$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"
12411 else
12412 # Determine the default libpath from the value encoded in an
12413 # empty executable.
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12418 main ()
12422 return 0;
12424 _ACEOF
12425 if ac_fn_c_try_link "$LINENO"; then :
12427 lt_aix_libpath_sed='
12428 /Import File Strings/,/^$/ {
12429 /^0/ {
12430 s/^0 *\(.*\)$/\1/
12434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12435 # Check for a 64-bit object if we didn't find anything.
12436 if test -z "$aix_libpath"; then
12437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12444 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 # Warning - without using the other run time loading flags,
12446 # -berok will link without error, but may produce a broken library.
12447 no_undefined_flag_GO=' ${wl}-bernotok'
12448 allow_undefined_flag_GO=' ${wl}-berok'
12449 if test "$with_gnu_ld" = yes; then
12450 # We only use this code for GNU lds that support --whole-archive.
12451 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12452 else
12453 # Exported symbols can be pulled into shared objects from archives
12454 whole_archive_flag_spec_GO='$convenience'
12456 archive_cmds_need_lc_GO=yes
12457 # This is similar to how AIX traditionally builds its shared libraries.
12458 archive_expsym_cmds_GO="\$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'
12463 amigaos*)
12464 case $host_cpu in
12465 powerpc)
12466 # see comment about AmigaOS4 .so support
12467 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 archive_expsym_cmds_GO=''
12470 m68k)
12471 archive_cmds_GO='$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)'
12472 hardcode_libdir_flag_spec_GO='-L$libdir'
12473 hardcode_minus_L_GO=yes
12475 esac
12478 bsdi[45]*)
12479 export_dynamic_flag_spec_GO=-rdynamic
12482 cygwin* | mingw* | pw32* | cegcc*)
12483 # When not using gcc, we currently assume that we are using
12484 # Microsoft Visual C++.
12485 # hardcode_libdir_flag_spec is actually meaningless, as there is
12486 # no search path for DLLs.
12487 hardcode_libdir_flag_spec_GO=' '
12488 allow_undefined_flag_GO=unsupported
12489 # Tell ltmain to make .lib files, not .a files.
12490 libext=lib
12491 # Tell ltmain to make .dll files, not .so files.
12492 shrext_cmds=".dll"
12493 # FIXME: Setting linknames here is a bad hack.
12494 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12495 # The linker will automatically build a .lib file if we build a DLL.
12496 old_archive_from_new_cmds_GO='true'
12497 # FIXME: Should let the user specify the lib program.
12498 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12499 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12500 enable_shared_with_static_runtimes_GO=yes
12503 darwin* | rhapsody*)
12506 archive_cmds_need_lc_GO=no
12507 hardcode_direct_GO=no
12508 hardcode_automatic_GO=yes
12509 hardcode_shlibpath_var_GO=unsupported
12510 if test "$lt_cv_ld_force_load" = "yes"; then
12511 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12512 else
12513 whole_archive_flag_spec_GO=''
12515 link_all_deplibs_GO=yes
12516 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12517 case $cc_basename in
12518 ifort*) _lt_dar_can_shared=yes ;;
12519 *) _lt_dar_can_shared=$GCC ;;
12520 esac
12521 if test "$_lt_dar_can_shared" = "yes"; then
12522 output_verbose_link_cmd=func_echo_all
12523 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12524 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12525 archive_expsym_cmds_GO="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}"
12526 module_expsym_cmds_GO="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}"
12528 else
12529 ld_shlibs_GO=no
12534 dgux*)
12535 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12536 hardcode_libdir_flag_spec_GO='-L$libdir'
12537 hardcode_shlibpath_var_GO=no
12540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12541 # support. Future versions do this automatically, but an explicit c++rt0.o
12542 # does not break anything, and helps significantly (at the cost of a little
12543 # extra space).
12544 freebsd2.2*)
12545 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12546 hardcode_libdir_flag_spec_GO='-R$libdir'
12547 hardcode_direct_GO=yes
12548 hardcode_shlibpath_var_GO=no
12551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12552 freebsd2*)
12553 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12554 hardcode_direct_GO=yes
12555 hardcode_minus_L_GO=yes
12556 hardcode_shlibpath_var_GO=no
12559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12560 freebsd* | dragonfly*)
12561 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12562 hardcode_libdir_flag_spec_GO='-R$libdir'
12563 hardcode_direct_GO=yes
12564 hardcode_shlibpath_var_GO=no
12567 hpux9*)
12568 if test "$GCC" = yes; then
12569 archive_cmds_GO='$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'
12570 else
12571 archive_cmds_GO='$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'
12573 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12574 hardcode_libdir_separator_GO=:
12575 hardcode_direct_GO=yes
12577 # hardcode_minus_L: Not really in the search PATH,
12578 # but as the default location of the library.
12579 hardcode_minus_L_GO=yes
12580 export_dynamic_flag_spec_GO='${wl}-E'
12583 hpux10*)
12584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12585 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12586 else
12587 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12589 if test "$with_gnu_ld" = no; then
12590 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12591 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12592 hardcode_libdir_separator_GO=:
12593 hardcode_direct_GO=yes
12594 hardcode_direct_absolute_GO=yes
12595 export_dynamic_flag_spec_GO='${wl}-E'
12596 # hardcode_minus_L: Not really in the search PATH,
12597 # but as the default location of the library.
12598 hardcode_minus_L_GO=yes
12602 hpux11*)
12603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12604 case $host_cpu in
12605 hppa*64*)
12606 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12608 ia64*)
12609 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12612 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12614 esac
12615 else
12616 case $host_cpu in
12617 hppa*64*)
12618 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12620 ia64*)
12621 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12624 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12626 esac
12628 if test "$with_gnu_ld" = no; then
12629 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12630 hardcode_libdir_separator_GO=:
12632 case $host_cpu in
12633 hppa*64*|ia64*)
12634 hardcode_direct_GO=no
12635 hardcode_shlibpath_var_GO=no
12638 hardcode_direct_GO=yes
12639 hardcode_direct_absolute_GO=yes
12640 export_dynamic_flag_spec_GO='${wl}-E'
12642 # hardcode_minus_L: Not really in the search PATH,
12643 # but as the default location of the library.
12644 hardcode_minus_L_GO=yes
12646 esac
12650 irix5* | irix6* | nonstopux*)
12651 if test "$GCC" = yes; then
12652 archive_cmds_GO='$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'
12653 # Try to use the -exported_symbol ld option, if it does not
12654 # work, assume that -exports_file does not work either and
12655 # implicitly export all symbols.
12656 save_LDFLAGS="$LDFLAGS"
12657 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 int foo(void) {}
12661 _ACEOF
12662 if ac_fn_c_try_link "$LINENO"; then :
12663 archive_expsym_cmds_GO='$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'
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LDFLAGS="$save_LDFLAGS"
12669 else
12670 archive_cmds_GO='$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'
12671 archive_expsym_cmds_GO='$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'
12673 archive_cmds_need_lc_GO='no'
12674 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12675 hardcode_libdir_separator_GO=:
12676 inherit_rpath_GO=yes
12677 link_all_deplibs_GO=yes
12680 netbsd*)
12681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12682 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12683 else
12684 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12686 hardcode_libdir_flag_spec_GO='-R$libdir'
12687 hardcode_direct_GO=yes
12688 hardcode_shlibpath_var_GO=no
12691 newsos6)
12692 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12693 hardcode_direct_GO=yes
12694 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12695 hardcode_libdir_separator_GO=:
12696 hardcode_shlibpath_var_GO=no
12699 *nto* | *qnx*)
12702 openbsd*)
12703 if test -f /usr/libexec/ld.so; then
12704 hardcode_direct_GO=yes
12705 hardcode_shlibpath_var_GO=no
12706 hardcode_direct_absolute_GO=yes
12707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12708 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12709 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12710 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12711 export_dynamic_flag_spec_GO='${wl}-E'
12712 else
12713 case $host_os in
12714 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12715 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12716 hardcode_libdir_flag_spec_GO='-R$libdir'
12719 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12720 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12722 esac
12724 else
12725 ld_shlibs_GO=no
12729 os2*)
12730 hardcode_libdir_flag_spec_GO='-L$libdir'
12731 hardcode_minus_L_GO=yes
12732 allow_undefined_flag_GO=unsupported
12733 archive_cmds_GO='$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'
12734 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12737 osf3*)
12738 if test "$GCC" = yes; then
12739 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12740 archive_cmds_GO='$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'
12741 else
12742 allow_undefined_flag_GO=' -expect_unresolved \*'
12743 archive_cmds_GO='$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'
12745 archive_cmds_need_lc_GO='no'
12746 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12747 hardcode_libdir_separator_GO=:
12750 osf4* | osf5*) # as osf3* with the addition of -msym flag
12751 if test "$GCC" = yes; then
12752 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12753 archive_cmds_GO='$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'
12754 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12755 else
12756 allow_undefined_flag_GO=' -expect_unresolved \*'
12757 archive_cmds_GO='$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'
12758 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12759 $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'
12761 # Both c and cxx compiler support -rpath directly
12762 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12764 archive_cmds_need_lc_GO='no'
12765 hardcode_libdir_separator_GO=:
12768 solaris*)
12769 no_undefined_flag_GO=' -z defs'
12770 if test "$GCC" = yes; then
12771 wlarc='${wl}'
12772 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12773 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12774 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12775 else
12776 case `$CC -V 2>&1` in
12777 *"Compilers 5.0"*)
12778 wlarc=''
12779 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12784 wlarc='${wl}'
12785 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12786 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12787 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12789 esac
12791 hardcode_libdir_flag_spec_GO='-R$libdir'
12792 hardcode_shlibpath_var_GO=no
12793 case $host_os in
12794 solaris2.[0-5] | solaris2.[0-5].*) ;;
12796 # The compiler driver will combine and reorder linker options,
12797 # but understands `-z linker_flag'. GCC discards it without `$wl',
12798 # but is careful enough not to reorder.
12799 # Supported since Solaris 2.6 (maybe 2.5.1?)
12800 if test "$GCC" = yes; then
12801 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12802 else
12803 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12806 esac
12807 link_all_deplibs_GO=yes
12810 sunos4*)
12811 if test "x$host_vendor" = xsequent; then
12812 # Use $CC to link under sequent, because it throws in some extra .o
12813 # files that make .init and .fini sections work.
12814 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12815 else
12816 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12818 hardcode_libdir_flag_spec_GO='-L$libdir'
12819 hardcode_direct_GO=yes
12820 hardcode_minus_L_GO=yes
12821 hardcode_shlibpath_var_GO=no
12824 sysv4)
12825 case $host_vendor in
12826 sni)
12827 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828 hardcode_direct_GO=yes # is this really true???
12830 siemens)
12831 ## LD is ld it makes a PLAMLIB
12832 ## CC just makes a GrossModule.
12833 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12834 reload_cmds_GO='$CC -r -o $output$reload_objs'
12835 hardcode_direct_GO=no
12837 motorola)
12838 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12839 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12841 esac
12842 runpath_var='LD_RUN_PATH'
12843 hardcode_shlibpath_var_GO=no
12846 sysv4.3*)
12847 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12848 hardcode_shlibpath_var_GO=no
12849 export_dynamic_flag_spec_GO='-Bexport'
12852 sysv4*MP*)
12853 if test -d /usr/nec; then
12854 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855 hardcode_shlibpath_var_GO=no
12856 runpath_var=LD_RUN_PATH
12857 hardcode_runpath_var=yes
12858 ld_shlibs_GO=yes
12862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12863 no_undefined_flag_GO='${wl}-z,text'
12864 archive_cmds_need_lc_GO=no
12865 hardcode_shlibpath_var_GO=no
12866 runpath_var='LD_RUN_PATH'
12868 if test "$GCC" = yes; then
12869 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12870 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 else
12872 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877 sysv5* | sco3.2v5* | sco5v6*)
12878 # Note: We can NOT use -z defs as we might desire, because we do not
12879 # link with -lc, and that would cause any symbols used from libc to
12880 # always be unresolved, which means just about no library would
12881 # ever link correctly. If we're not using GNU ld we use -z text
12882 # though, which does catch some bad symbols but isn't as heavy-handed
12883 # as -z defs.
12884 no_undefined_flag_GO='${wl}-z,text'
12885 allow_undefined_flag_GO='${wl}-z,nodefs'
12886 archive_cmds_need_lc_GO=no
12887 hardcode_shlibpath_var_GO=no
12888 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12889 hardcode_libdir_separator_GO=':'
12890 link_all_deplibs_GO=yes
12891 export_dynamic_flag_spec_GO='${wl}-Bexport'
12892 runpath_var='LD_RUN_PATH'
12894 if test "$GCC" = yes; then
12895 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 else
12898 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12899 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12903 uts4*)
12904 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_libdir_flag_spec_GO='-L$libdir'
12906 hardcode_shlibpath_var_GO=no
12910 ld_shlibs_GO=no
12912 esac
12914 if test x$host_vendor = xsni; then
12915 case $host in
12916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12917 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12919 esac
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12924 $as_echo "$ld_shlibs_GO" >&6; }
12925 test "$ld_shlibs_GO" = no && can_build_shared=no
12927 with_gnu_ld_GO=$with_gnu_ld
12935 # Do we need to explicitly link libc?
12937 case "x$archive_cmds_need_lc_GO" in
12938 x|xyes)
12939 # Assume -lc should be added
12940 archive_cmds_need_lc_GO=yes
12942 if test "$enable_shared" = yes && test "$GCC" = yes; then
12943 case $archive_cmds_GO in
12944 *'~'*)
12945 # FIXME: we may have to deal with multi-command sequences.
12947 '$CC '*)
12948 # Test whether the compiler implicitly links with -lc since on some
12949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12950 # to ld, don't add -lc before -lgcc.
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12952 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12953 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 $RM conftest*
12957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; } 2>conftest.err; then
12964 soname=conftest
12965 lib=conftest
12966 libobjs=conftest.$ac_objext
12967 deplibs=
12968 wl=$lt_prog_compiler_wl_GO
12969 pic_flag=$lt_prog_compiler_pic_GO
12970 compiler_flags=-v
12971 linker_flags=-v
12972 verstring=
12973 output_objdir=.
12974 libname=conftest
12975 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12976 allow_undefined_flag_GO=
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12978 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; }
12982 then
12983 lt_cv_archive_cmds_need_lc_GO=no
12984 else
12985 lt_cv_archive_cmds_need_lc_GO=yes
12987 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12988 else
12989 cat conftest.err 1>&5
12991 $RM conftest*
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12995 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12996 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12998 esac
13001 esac
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13068 hardcode_action_GO=
13069 if test -n "$hardcode_libdir_flag_spec_GO" ||
13070 test -n "$runpath_var_GO" ||
13071 test "X$hardcode_automatic_GO" = "Xyes" ; then
13073 # We can hardcode non-existent directories.
13074 if test "$hardcode_direct_GO" != no &&
13075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13076 # have to relink, otherwise we might link with an installed library
13077 # when we should be linking with a yet-to-be-installed one
13078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13079 test "$hardcode_minus_L_GO" != no; then
13080 # Linking always hardcodes the temporary library directory.
13081 hardcode_action_GO=relink
13082 else
13083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13084 hardcode_action_GO=immediate
13086 else
13087 # We cannot hardcode anything, or else we can only hardcode existing
13088 # directories.
13089 hardcode_action_GO=unsupported
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13092 $as_echo "$hardcode_action_GO" >&6; }
13094 if test "$hardcode_action_GO" = relink ||
13095 test "$inherit_rpath_GO" = yes; then
13096 # Fast installation is not supported
13097 enable_fast_install=no
13098 elif test "$shlibpath_overrides_runpath" = yes ||
13099 test "$enable_shared" = no; then
13100 # Fast installation is not necessary
13101 enable_fast_install=needless
13112 ac_ext=c
13113 ac_cpp='$CPP $CPPFLAGS'
13114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119 GCC=$lt_save_GCC
13120 CC="$lt_save_CC"
13125 ac_config_commands="$ac_config_commands libtool"
13130 # Only expand once:
13136 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13139 WERROR="-Werror"
13142 glibgo_toolexecdir=no
13143 glibgo_toolexeclibdir=no
13144 glibgo_prefixdir=$prefix
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13147 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13148 # Check whether --enable-version-specific-runtime-libs was given.
13149 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13150 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13151 yes) version_specific_libs=yes ;;
13152 no) version_specific_libs=no ;;
13153 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13154 esac
13155 else
13156 version_specific_libs=no
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13160 $as_echo "$version_specific_libs" >&6; }
13162 # Version-specific runtime libs processing.
13163 if test $version_specific_libs = yes; then
13164 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13165 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13168 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13169 # Install a library built with a cross compiler in tooldir, not libdir.
13170 if test x"$glibgo_toolexecdir" = x"no"; then
13171 if test -n "$with_cross_host" &&
13172 test x"$with_cross_host" != x"no"; then
13173 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13174 glibgo_toolexeclibdir='${toolexecdir}/lib'
13175 else
13176 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13177 glibgo_toolexeclibdir='${libdir}'
13179 multi_os_directory=`$CC -print-multi-os-directory`
13180 case $multi_os_directory in
13181 .) ;; # Avoid trailing /.
13182 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13183 esac
13190 # See if the user wants to configure without libffi. Some
13191 # architectures don't support it. FIXME: We should set a default
13192 # based on the host.
13194 # Check whether --with-libffi was given.
13195 if test "${with_libffi+set}" = set; then :
13196 withval=$with_libffi; :
13197 else
13198 with_libffi=${with_libffi_default-yes}
13202 LIBFFI=
13203 LIBFFIINCS=
13204 if test "$with_libffi" != no; then
13206 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13208 LIBFFI=../libffi/libffi_convenience.la
13209 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13214 is_darwin=no
13215 is_freebsd=no
13216 is_linux=no
13217 is_rtems=no
13218 is_solaris=no
13219 GOOS=unknown
13220 case ${host} in
13221 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13222 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13223 *-*-linux*) is_linux=yes; GOOS=linux ;;
13224 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13225 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13226 esac
13227 if test $is_darwin = yes; then
13228 LIBGO_IS_DARWIN_TRUE=
13229 LIBGO_IS_DARWIN_FALSE='#'
13230 else
13231 LIBGO_IS_DARWIN_TRUE='#'
13232 LIBGO_IS_DARWIN_FALSE=
13235 if test $is_freebsd = yes; then
13236 LIBGO_IS_FREEBSD_TRUE=
13237 LIBGO_IS_FREEBSD_FALSE='#'
13238 else
13239 LIBGO_IS_FREEBSD_TRUE='#'
13240 LIBGO_IS_FREEBSD_FALSE=
13243 if test $is_linux = yes; then
13244 LIBGO_IS_LINUX_TRUE=
13245 LIBGO_IS_LINUX_FALSE='#'
13246 else
13247 LIBGO_IS_LINUX_TRUE='#'
13248 LIBGO_IS_LINUX_FALSE=
13251 if test $is_rtems = yes; then
13252 LIBGO_IS_RTEMS_TRUE=
13253 LIBGO_IS_RTEMS_FALSE='#'
13254 else
13255 LIBGO_IS_RTEMS_TRUE='#'
13256 LIBGO_IS_RTEMS_FALSE=
13259 if test $is_solaris = yes; then
13260 LIBGO_IS_SOLARIS_TRUE=
13261 LIBGO_IS_SOLARIS_FALSE='#'
13262 else
13263 LIBGO_IS_SOLARIS_TRUE='#'
13264 LIBGO_IS_SOLARIS_FALSE=
13269 is_386=no
13270 is_arm=no
13271 is_m68k=no
13272 is_mips=no
13273 is_mips64=no
13274 is_ppc=no
13275 is_ppc64=no
13276 is_sparc=no
13277 is_sparc64=no
13278 is_x86_64=no
13279 GOARCH=unknown
13280 case ${host} in
13281 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13282 is_arm=yes
13283 GOARCH=arm
13285 i[34567]86-*-* | x86_64-*-*)
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13289 #ifdef __x86_64__
13290 #error 64-bit
13291 #endif
13292 _ACEOF
13293 if ac_fn_c_try_compile "$LINENO"; then :
13294 is_386=yes
13295 else
13296 is_x86_64=yes
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 if test "$is_386" = "yes"; then
13300 GOARCH=386
13301 else
13302 GOARCH=amd64
13305 m68k*-*-*)
13306 is_m68k=yes
13307 GOARCH=m68k
13309 mips*-*-*)
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 #ifdef __mips64
13314 #error 64-bit
13315 #endif
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318 is_mips=yes
13319 else
13320 is_mips64=yes
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 if test "$is_mips" = "yes"; then
13324 GOARCH=mips
13325 else
13326 GOARCH=mips64
13329 rs6000*-*-* | powerpc*-*-*)
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13333 #ifdef _ARCH_PPC64
13334 #error 64-bit
13335 #endif
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338 is_ppc=yes
13339 else
13340 is_ppc64=yes
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 if test "$is_ppc" = "yes"; then
13344 GOARCH=ppc
13345 else
13346 GOARCH=ppc64
13349 sparc*-*-*)
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 #if defined(__sparcv9) || defined(__arch64__)
13354 #error 64-bit
13355 #endif
13356 _ACEOF
13357 if ac_fn_c_try_compile "$LINENO"; then :
13358 is_sparc=yes
13359 else
13360 is_sparc64=yes
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 if test "$is_sparc" = "yes"; then
13364 GOARCH=sparc
13365 else
13366 GOARCH=sparc64
13369 esac
13370 if test $is_386 = yes; then
13371 LIBGO_IS_386_TRUE=
13372 LIBGO_IS_386_FALSE='#'
13373 else
13374 LIBGO_IS_386_TRUE='#'
13375 LIBGO_IS_386_FALSE=
13378 if test $is_arm = yes; then
13379 LIBGO_IS_ARM_TRUE=
13380 LIBGO_IS_ARM_FALSE='#'
13381 else
13382 LIBGO_IS_ARM_TRUE='#'
13383 LIBGO_IS_ARM_FALSE=
13386 if test $is_m68k = yes; then
13387 LIBGO_IS_M68K_TRUE=
13388 LIBGO_IS_M68K_FALSE='#'
13389 else
13390 LIBGO_IS_M68K_TRUE='#'
13391 LIBGO_IS_M68K_FALSE=
13394 if test $is_mips = yes; then
13395 LIBGO_IS_MIPS_TRUE=
13396 LIBGO_IS_MIPS_FALSE='#'
13397 else
13398 LIBGO_IS_MIPS_TRUE='#'
13399 LIBGO_IS_MIPS_FALSE=
13402 if test $is_mips64 = yes; then
13403 LIBGO_IS_MIPS64_TRUE=
13404 LIBGO_IS_MIPS64_FALSE='#'
13405 else
13406 LIBGO_IS_MIPS64_TRUE='#'
13407 LIBGO_IS_MIPS64_FALSE=
13410 if test $is_ppc = yes; then
13411 LIBGO_IS_PPC_TRUE=
13412 LIBGO_IS_PPC_FALSE='#'
13413 else
13414 LIBGO_IS_PPC_TRUE='#'
13415 LIBGO_IS_PPC_FALSE=
13418 if test $is_ppc64 = yes; then
13419 LIBGO_IS_PPC64_TRUE=
13420 LIBGO_IS_PPC64_FALSE='#'
13421 else
13422 LIBGO_IS_PPC64_TRUE='#'
13423 LIBGO_IS_PPC64_FALSE=
13426 if test $is_sparc = yes; then
13427 LIBGO_IS_SPARC_TRUE=
13428 LIBGO_IS_SPARC_FALSE='#'
13429 else
13430 LIBGO_IS_SPARC_TRUE='#'
13431 LIBGO_IS_SPARC_FALSE=
13434 if test $is_sparc64 = yes; then
13435 LIBGO_IS_SPARC64_TRUE=
13436 LIBGO_IS_SPARC64_FALSE='#'
13437 else
13438 LIBGO_IS_SPARC64_TRUE='#'
13439 LIBGO_IS_SPARC64_FALSE=
13442 if test $is_x86_64 = yes; then
13443 LIBGO_IS_X86_64_TRUE=
13444 LIBGO_IS_X86_64_FALSE='#'
13445 else
13446 LIBGO_IS_X86_64_TRUE='#'
13447 LIBGO_IS_X86_64_FALSE=
13452 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13453 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13454 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13458 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13459 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13460 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13465 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13466 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 CFLAGS_hold=$CFLAGS
13470 CFLAGS="$CFLAGS -fsplit-stack"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473 int i;
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"; then :
13476 libgo_cv_c_split_stack_supported=yes
13477 else
13478 libgo_cv_c_split_stack_supported=no
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 CFLAGS=$CFLAGS_hold
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13484 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13485 if test "$libgo_cv_c_split_stack_supported" = yes; then
13486 SPLIT_STACK=-fsplit-stack
13488 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13490 else
13491 SPLIT_STACK=
13494 if test "$libgo_cv_c_split_stack_supported" = yes; then
13495 USING_SPLIT_STACK_TRUE=
13496 USING_SPLIT_STACK_FALSE='#'
13497 else
13498 USING_SPLIT_STACK_TRUE='#'
13499 USING_SPLIT_STACK_FALSE=
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13504 $as_echo_n "checking whether linker supports split stack... " >&6; }
13505 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 libgo_cv_c_linker_supports_split_stack=no
13509 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13510 libgo_cv_c_linker_supports_split_stack=yes
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13514 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13515 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13517 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13521 MATH_LIBS=
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13523 $as_echo_n "checking for sqrt in -lm... " >&6; }
13524 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-lm $LIBS"
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char sqrt ();
13540 main ()
13542 return sqrt ();
13544 return 0;
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ac_cv_lib_m_sqrt=yes
13549 else
13550 ac_cv_lib_m_sqrt=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13557 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13558 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13559 MATH_LIBS=-lm
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13565 $as_echo_n "checking for socket libraries... " >&6; }
13566 if test "${libgo_cv_lib_sockets+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 libgo_cv_lib_sockets=
13570 libgo_check_both=no
13571 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13572 if test "x$ac_cv_func_connect" = x""yes; then :
13573 libgo_check_socket=no
13574 else
13575 libgo_check_socket=yes
13578 if test "$libgo_check_socket" = "yes"; then
13579 unset ac_cv_func_connect
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13581 $as_echo_n "checking for main in -lsocket... " >&6; }
13582 if test "${ac_cv_lib_socket_main+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-lsocket $LIBS"
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13592 main ()
13594 return main ();
13596 return 0;
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_lib_socket_main=yes
13601 else
13602 ac_cv_lib_socket_main=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13609 $as_echo "$ac_cv_lib_socket_main" >&6; }
13610 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13611 libgo_cv_lib_sockets="-lsocket"
13612 else
13613 libgo_check_both=yes
13617 if test "$libgo_check_both" = "yes"; then
13618 libgo_old_libs=$LIBS
13619 LIBS="$LIBS -lsocket -lnsl"
13620 unset ac_cv_func_accept
13621 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13622 if test "x$ac_cv_func_accept" = x""yes; then :
13623 libgo_check_nsl=no
13624 libgo_cv_lib_sockets="-lsocket -lnsl"
13627 unset ac_cv_func_accept
13628 LIBS=$libgo_old_libs
13630 unset ac_cv_func_gethostbyname
13631 libgo_old_libs="$LIBS"
13632 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13633 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13637 $as_echo_n "checking for main in -lnsl... " >&6; }
13638 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-lnsl $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13648 main ()
13650 return main ();
13652 return 0;
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"; then :
13656 ac_cv_lib_nsl_main=yes
13657 else
13658 ac_cv_lib_nsl_main=no
13660 rm -f core conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 LIBS=$ac_check_lib_save_LIBS
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13665 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13666 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13667 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13672 unset ac_cv_func_gethostbyname
13673 LIBS=$libgo_old_libs
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13677 $as_echo "$libgo_cv_lib_sockets" >&6; }
13678 NET_LIBS="$libgo_cv_lib_sockets"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13682 $as_echo_n "checking whether -pthread is supported... " >&6; }
13683 if test "${libgo_cv_lib_pthread+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 CFLAGS_hold=$CFLAGS
13687 CFLAGS="$CFLAGS -pthread"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int i;
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 libgo_cv_lib_pthread=yes
13694 else
13695 libgo_cv_lib_pthread=no
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 CFLAGS=$CFLAGS_hold
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13701 $as_echo "$libgo_cv_lib_pthread" >&6; }
13702 PTHREAD_CFLAGS=
13703 if test "$libgo_cv_lib_pthread" = yes; then
13704 PTHREAD_CFLAGS=-pthread
13708 PTHREAD_LIBS=
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13710 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13711 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_check_lib_save_LIBS=$LIBS
13715 LIBS="-lpthread $LIBS"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char pthread_create ();
13727 main ()
13729 return pthread_create ();
13731 return 0;
13733 _ACEOF
13734 if ac_fn_c_try_link "$LINENO"; then :
13735 ac_cv_lib_pthread_pthread_create=yes
13736 else
13737 ac_cv_lib_pthread_pthread_create=no
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13744 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13745 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13746 PTHREAD_LIBS=-lpthread
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13752 $as_echo_n "checking for library containing sched_yield... " >&6; }
13753 if test "${ac_cv_search_sched_yield+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_func_search_save_LIBS=$LIBS
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char sched_yield ();
13768 main ()
13770 return sched_yield ();
13772 return 0;
13774 _ACEOF
13775 for ac_lib in '' rt; do
13776 if test -z "$ac_lib"; then
13777 ac_res="none required"
13778 else
13779 ac_res=-l$ac_lib
13780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_search_sched_yield=$ac_res
13785 rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext
13787 if test "${ac_cv_search_sched_yield+set}" = set; then :
13788 break
13790 done
13791 if test "${ac_cv_search_sched_yield+set}" = set; then :
13793 else
13794 ac_cv_search_sched_yield=no
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13800 $as_echo "$ac_cv_search_sched_yield" >&6; }
13801 ac_res=$ac_cv_search_sched_yield
13802 if test "$ac_res" != no; then :
13803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13809 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13810 if test "${ac_cv_c_bigendian+set}" = set; then :
13811 $as_echo_n "(cached) " >&6
13812 else
13813 ac_cv_c_bigendian=unknown
13814 # See if we're dealing with a universal compiler.
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 #ifndef __APPLE_CC__
13818 not a universal capable compiler
13819 #endif
13820 typedef int dummy;
13822 _ACEOF
13823 if ac_fn_c_try_compile "$LINENO"; then :
13825 # Check for potential -arch flags. It is not universal unless
13826 # there are at least two -arch flags with different values.
13827 ac_arch=
13828 ac_prev=
13829 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13830 if test -n "$ac_prev"; then
13831 case $ac_word in
13832 i?86 | x86_64 | ppc | ppc64)
13833 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13834 ac_arch=$ac_word
13835 else
13836 ac_cv_c_bigendian=universal
13837 break
13840 esac
13841 ac_prev=
13842 elif test "x$ac_word" = "x-arch"; then
13843 ac_prev=arch
13845 done
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 if test $ac_cv_c_bigendian = unknown; then
13849 # See if sys/param.h defines the BYTE_ORDER macro.
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 #include <sys/types.h>
13853 #include <sys/param.h>
13856 main ()
13858 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13859 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13860 && LITTLE_ENDIAN)
13861 bogus endian macros
13862 #endif
13865 return 0;
13867 _ACEOF
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869 # It does; now see whether it defined to BIG_ENDIAN or not.
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <sys/param.h>
13876 main ()
13878 #if BYTE_ORDER != BIG_ENDIAN
13879 not big endian
13880 #endif
13883 return 0;
13885 _ACEOF
13886 if ac_fn_c_try_compile "$LINENO"; then :
13887 ac_cv_c_bigendian=yes
13888 else
13889 ac_cv_c_bigendian=no
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 if test $ac_cv_c_bigendian = unknown; then
13896 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <limits.h>
13902 main ()
13904 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13905 bogus endian macros
13906 #endif
13909 return 0;
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 # It does; now see whether it defined to _BIG_ENDIAN or not.
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 #include <limits.h>
13919 main ()
13921 #ifndef _BIG_ENDIAN
13922 not big endian
13923 #endif
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_compile "$LINENO"; then :
13930 ac_cv_c_bigendian=yes
13931 else
13932 ac_cv_c_bigendian=no
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 if test $ac_cv_c_bigendian = unknown; then
13939 # Compile a test program.
13940 if test "$cross_compiling" = yes; then :
13941 # Try to guess by grepping values from an object file.
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 short int ascii_mm[] =
13945 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13946 short int ascii_ii[] =
13947 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13948 int use_ascii (int i) {
13949 return ascii_mm[i] + ascii_ii[i];
13951 short int ebcdic_ii[] =
13952 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13953 short int ebcdic_mm[] =
13954 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13955 int use_ebcdic (int i) {
13956 return ebcdic_mm[i] + ebcdic_ii[i];
13958 extern int foo;
13961 main ()
13963 return use_ascii (foo) == use_ebcdic (foo);
13965 return 0;
13967 _ACEOF
13968 if ac_fn_c_try_compile "$LINENO"; then :
13969 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13970 ac_cv_c_bigendian=yes
13972 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13973 if test "$ac_cv_c_bigendian" = unknown; then
13974 ac_cv_c_bigendian=no
13975 else
13976 # finding both strings is unlikely to happen, but who knows?
13977 ac_cv_c_bigendian=unknown
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 $ac_includes_default
13987 main ()
13990 /* Are we little or big endian? From Harbison&Steele. */
13991 union
13993 long int l;
13994 char c[sizeof (long int)];
13995 } u;
13996 u.l = 1;
13997 return u.c[sizeof (long int) - 1] == 1;
14000 return 0;
14002 _ACEOF
14003 if ac_fn_c_try_run "$LINENO"; then :
14004 ac_cv_c_bigendian=no
14005 else
14006 ac_cv_c_bigendian=yes
14008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14009 conftest.$ac_objext conftest.beam conftest.$ac_ext
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14015 $as_echo "$ac_cv_c_bigendian" >&6; }
14016 case $ac_cv_c_bigendian in #(
14017 yes)
14018 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14019 ;; #(
14021 ;; #(
14022 universal)
14024 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14026 ;; #(
14028 as_fn_error "unknown endianness
14029 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14030 esac
14035 # Check whether --with-system-libunwind was given.
14036 if test "${with_system_libunwind+set}" = set; then :
14037 withval=$with_system_libunwind;
14040 # If system-libunwind was not specifically set, pick a default setting.
14041 if test x$with_system_libunwind = x; then
14042 case ${target} in
14043 ia64-*-hpux*) with_system_libunwind=yes ;;
14044 *) with_system_libunwind=no ;;
14045 esac
14047 # Based on system-libunwind and target, do we have ipinfo?
14048 if test x$with_system_libunwind = xyes; then
14049 case ${target} in
14050 ia64-*-*) have_unwind_getipinfo=no ;;
14051 *) have_unwind_getipinfo=yes ;;
14052 esac
14053 else
14054 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14056 case ${target} in
14057 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14058 *) have_unwind_getipinfo=yes ;;
14059 esac
14063 if test x$have_unwind_getipinfo = xyes; then
14065 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14070 # Check whether --enable-sjlj-exceptions was given.
14071 if test "${enable_sjlj_exceptions+set}" = set; then :
14072 enableval=$enable_sjlj_exceptions; case "$enableval" in
14073 yes|no|auto) ;;
14074 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14075 esac
14076 else
14077 enable_sjlj_exceptions=auto
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14082 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14083 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14089 void bar ();
14090 void clean (int *);
14091 void foo ()
14093 int i __attribute__ ((cleanup (clean)));
14094 bar();
14097 _ACEOF
14098 CFLAGS_hold=$CFLAGS
14099 CFLAGS="--save-temps -fexceptions"
14100 libgo_cv_lib_sjlj_exceptions=unknown
14101 if ac_fn_c_try_compile; then :
14102 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14103 libgo_cv_lib_sjlj_exceptions=yes
14104 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14105 libgo_cv_lib_sjlj_exceptions=no
14108 CFLAGS=$CFLAGS_hold
14109 rm -f conftest*
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14113 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14115 if test "$enable_sjlj_exceptions" = "auto"; then
14116 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14119 case $enable_sjlj_exceptions in
14120 yes)
14122 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14128 as_fn_error "unable to detect exception model" "$LINENO" 5
14130 esac
14132 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14133 do :
14134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14136 eval as_val=\$$as_ac_Header
14137 if test "x$as_val" = x""yes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14140 _ACEOF
14144 done
14146 if test "$ac_cv_header_sys_mman_h" = yes; then
14147 HAVE_SYS_MMAN_H_TRUE=
14148 HAVE_SYS_MMAN_H_FALSE='#'
14149 else
14150 HAVE_SYS_MMAN_H_TRUE='#'
14151 HAVE_SYS_MMAN_H_FALSE=
14154 for ac_func in srandom random strsignal
14155 do :
14156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14158 eval as_val=\$$as_ac_var
14159 if test "x$as_val" = x""yes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14162 _ACEOF
14165 done
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14169 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14170 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14176 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14177 uint32 i;
14178 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"; then :
14182 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14183 else
14184 libgo_cv_func___sync_bool_compare_and_swap_4=no
14186 rm -f core conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14190 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14191 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14193 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14198 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14199 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14205 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14206 uint32 i;
14207 int main() { return __sync_fetch_and_add (&i, 1); }
14209 _ACEOF
14210 if ac_fn_c_try_link "$LINENO"; then :
14211 libgo_cv_func___sync_fetch_and_add_4=yes
14212 else
14213 libgo_cv_func___sync_fetch_and_add_4=no
14215 rm -f core conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14219 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14220 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14222 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14227 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14228 if test "${libgo_cv_c_stringops+set}" = set; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 CFLAGS_hold=$CFLAGS
14232 CFLAGS="$CFLAGS -minline-all-stringops"
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 libgo_cv_c_stringops=yes
14239 else
14240 libgo_cv_c_stringops=no
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 CFLAGS=$CFLAGS_hold
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14246 $as_echo "$libgo_cv_c_stringops" >&6; }
14247 STRINGOPS_FLAG=
14248 if test "$libgo_cv_c_stringops" = yes; then
14249 STRINGOPS_FLAG=-minline-all-stringops
14253 CFLAGS_hold=$CFLAGS
14254 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14255 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14256 if test "x$ac_cv_type_off64_t" = x""yes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_OFF64_T 1
14260 _ACEOF
14265 CFLAGS=$CFLAGS_hold
14267 cat >confcache <<\_ACEOF
14268 # This file is a shell script that caches the results of configure
14269 # tests run on this system so they can be shared between configure
14270 # scripts and configure runs, see configure's option --config-cache.
14271 # It is not useful on other systems. If it contains results you don't
14272 # want to keep, you may remove or edit it.
14274 # config.status only pays attention to the cache file if you give it
14275 # the --recheck option to rerun configure.
14277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14279 # following values.
14281 _ACEOF
14283 # The following way of writing the cache mishandles newlines in values,
14284 # but we know of no workaround that is simple, portable, and efficient.
14285 # So, we kill variables containing newlines.
14286 # Ultrix sh set writes to stderr and can't be redirected directly,
14287 # and sets the high bit in the cache file unless we assign to the vars.
14289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14290 eval ac_val=\$$ac_var
14291 case $ac_val in #(
14292 *${as_nl}*)
14293 case $ac_var in #(
14294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14296 esac
14297 case $ac_var in #(
14298 _ | IFS | as_nl) ;; #(
14299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14300 *) { eval $ac_var=; unset $ac_var;} ;;
14301 esac ;;
14302 esac
14303 done
14305 (set) 2>&1 |
14306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14307 *${as_nl}ac_space=\ *)
14308 # `set' does not quote correctly, so add quotes: double-quote
14309 # substitution turns \\\\ into \\, and sed turns \\ into \.
14310 sed -n \
14311 "s/'/'\\\\''/g;
14312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14313 ;; #(
14315 # `set' quotes correctly as required by POSIX, so do not add quotes.
14316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14318 esac |
14319 sort
14321 sed '
14322 /^ac_cv_env_/b end
14323 t clear
14324 :clear
14325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14326 t end
14327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14328 :end' >>confcache
14329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14330 if test -w "$cache_file"; then
14331 test "x$cache_file" != "x/dev/null" &&
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14333 $as_echo "$as_me: updating cache $cache_file" >&6;}
14334 cat confcache >$cache_file
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14340 rm -f confcache
14342 if test ${multilib} = yes; then
14343 multilib_arg="--enable-multilib"
14344 else
14345 multilib_arg=
14348 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14351 ac_config_commands="$ac_config_commands default"
14354 cat >confcache <<\_ACEOF
14355 # This file is a shell script that caches the results of configure
14356 # tests run on this system so they can be shared between configure
14357 # scripts and configure runs, see configure's option --config-cache.
14358 # It is not useful on other systems. If it contains results you don't
14359 # want to keep, you may remove or edit it.
14361 # config.status only pays attention to the cache file if you give it
14362 # the --recheck option to rerun configure.
14364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14366 # following values.
14368 _ACEOF
14370 # The following way of writing the cache mishandles newlines in values,
14371 # but we know of no workaround that is simple, portable, and efficient.
14372 # So, we kill variables containing newlines.
14373 # Ultrix sh set writes to stderr and can't be redirected directly,
14374 # and sets the high bit in the cache file unless we assign to the vars.
14376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14377 eval ac_val=\$$ac_var
14378 case $ac_val in #(
14379 *${as_nl}*)
14380 case $ac_var in #(
14381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14383 esac
14384 case $ac_var in #(
14385 _ | IFS | as_nl) ;; #(
14386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14387 *) { eval $ac_var=; unset $ac_var;} ;;
14388 esac ;;
14389 esac
14390 done
14392 (set) 2>&1 |
14393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14394 *${as_nl}ac_space=\ *)
14395 # `set' does not quote correctly, so add quotes: double-quote
14396 # substitution turns \\\\ into \\, and sed turns \\ into \.
14397 sed -n \
14398 "s/'/'\\\\''/g;
14399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14400 ;; #(
14402 # `set' quotes correctly as required by POSIX, so do not add quotes.
14403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14405 esac |
14406 sort
14408 sed '
14409 /^ac_cv_env_/b end
14410 t clear
14411 :clear
14412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14413 t end
14414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14415 :end' >>confcache
14416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14417 if test -w "$cache_file"; then
14418 test "x$cache_file" != "x/dev/null" &&
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14420 $as_echo "$as_me: updating cache $cache_file" >&6;}
14421 cat confcache >$cache_file
14422 else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14427 rm -f confcache
14429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14430 # Let make expand exec_prefix.
14431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14433 DEFS=-DHAVE_CONFIG_H
14435 ac_libobjs=
14436 ac_ltlibobjs=
14437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14438 # 1. Remove the extension, and $U if already installed.
14439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14440 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14442 # will be set to the directory where LIBOBJS objects are built.
14443 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14444 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14445 done
14446 LIBOBJS=$ac_libobjs
14448 LTLIBOBJS=$ac_ltlibobjs
14451 if test -n "$EXEEXT"; then
14452 am__EXEEXT_TRUE=
14453 am__EXEEXT_FALSE='#'
14454 else
14455 am__EXEEXT_TRUE='#'
14456 am__EXEEXT_FALSE=
14459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14460 as_fn_error "conditional \"AMDEP\" was never defined.
14461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14463 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14464 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14467 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14468 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14471 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14472 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14475 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14476 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14479 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14480 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14483 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14484 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14487 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14488 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14491 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14492 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14495 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14496 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14500 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14503 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14504 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14507 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14508 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14511 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14512 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14515 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14516 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14519 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14520 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14523 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14524 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14527 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14528 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14532 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14537 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14541 : ${CONFIG_STATUS=./config.status}
14542 ac_write_fail=0
14543 ac_clean_files_save=$ac_clean_files
14544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14547 as_write_fail=0
14548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14549 #! $SHELL
14550 # Generated by $as_me.
14551 # Run this file to recreate the current configuration.
14552 # Compiler output produced by configure, useful for debugging
14553 # configure, is in config.log if it exists.
14555 debug=false
14556 ac_cs_recheck=false
14557 ac_cs_silent=false
14559 SHELL=\${CONFIG_SHELL-$SHELL}
14560 export SHELL
14561 _ASEOF
14562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14563 ## -------------------- ##
14564 ## M4sh Initialization. ##
14565 ## -------------------- ##
14567 # Be more Bourne compatible
14568 DUALCASE=1; export DUALCASE # for MKS sh
14569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14570 emulate sh
14571 NULLCMD=:
14572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14573 # is contrary to our usage. Disable this feature.
14574 alias -g '${1+"$@"}'='"$@"'
14575 setopt NO_GLOB_SUBST
14576 else
14577 case `(set -o) 2>/dev/null` in #(
14578 *posix*) :
14579 set -o posix ;; #(
14580 *) :
14582 esac
14586 as_nl='
14588 export as_nl
14589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14593 # Prefer a ksh shell builtin over an external printf program on Solaris,
14594 # but without wasting forks for bash or zsh.
14595 if test -z "$BASH_VERSION$ZSH_VERSION" \
14596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14597 as_echo='print -r --'
14598 as_echo_n='print -rn --'
14599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14600 as_echo='printf %s\n'
14601 as_echo_n='printf %s'
14602 else
14603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14605 as_echo_n='/usr/ucb/echo -n'
14606 else
14607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14608 as_echo_n_body='eval
14609 arg=$1;
14610 case $arg in #(
14611 *"$as_nl"*)
14612 expr "X$arg" : "X\\(.*\\)$as_nl";
14613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14614 esac;
14615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14617 export as_echo_n_body
14618 as_echo_n='sh -c $as_echo_n_body as_echo'
14620 export as_echo_body
14621 as_echo='sh -c $as_echo_body as_echo'
14624 # The user is always right.
14625 if test "${PATH_SEPARATOR+set}" != set; then
14626 PATH_SEPARATOR=:
14627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14629 PATH_SEPARATOR=';'
14634 # IFS
14635 # We need space, tab and new line, in precisely that order. Quoting is
14636 # there to prevent editors from complaining about space-tab.
14637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14638 # splitting by setting IFS to empty value.)
14639 IFS=" "" $as_nl"
14641 # Find who we are. Look in the path if we contain no directory separator.
14642 case $0 in #((
14643 *[\\/]* ) as_myself=$0 ;;
14644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645 for as_dir in $PATH
14647 IFS=$as_save_IFS
14648 test -z "$as_dir" && as_dir=.
14649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14650 done
14651 IFS=$as_save_IFS
14654 esac
14655 # We did not find ourselves, most probably we were run as `sh COMMAND'
14656 # in which case we are not to be found in the path.
14657 if test "x$as_myself" = x; then
14658 as_myself=$0
14660 if test ! -f "$as_myself"; then
14661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14662 exit 1
14665 # Unset variables that we do not need and which cause bugs (e.g. in
14666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14667 # suppresses any "Segmentation fault" message there. '((' could
14668 # trigger a bug in pdksh 5.2.14.
14669 for as_var in BASH_ENV ENV MAIL MAILPATH
14670 do eval test x\${$as_var+set} = xset \
14671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14672 done
14673 PS1='$ '
14674 PS2='> '
14675 PS4='+ '
14677 # NLS nuisances.
14678 LC_ALL=C
14679 export LC_ALL
14680 LANGUAGE=C
14681 export LANGUAGE
14683 # CDPATH.
14684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14687 # as_fn_error ERROR [LINENO LOG_FD]
14688 # ---------------------------------
14689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14691 # script with status $?, using 1 if that was 0.
14692 as_fn_error ()
14694 as_status=$?; test $as_status -eq 0 && as_status=1
14695 if test "$3"; then
14696 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14699 $as_echo "$as_me: error: $1" >&2
14700 as_fn_exit $as_status
14701 } # as_fn_error
14704 # as_fn_set_status STATUS
14705 # -----------------------
14706 # Set $? to STATUS, without forking.
14707 as_fn_set_status ()
14709 return $1
14710 } # as_fn_set_status
14712 # as_fn_exit STATUS
14713 # -----------------
14714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14715 as_fn_exit ()
14717 set +e
14718 as_fn_set_status $1
14719 exit $1
14720 } # as_fn_exit
14722 # as_fn_unset VAR
14723 # ---------------
14724 # Portably unset VAR.
14725 as_fn_unset ()
14727 { eval $1=; unset $1;}
14729 as_unset=as_fn_unset
14730 # as_fn_append VAR VALUE
14731 # ----------------------
14732 # Append the text in VALUE to the end of the definition contained in VAR. Take
14733 # advantage of any shell optimizations that allow amortized linear growth over
14734 # repeated appends, instead of the typical quadratic growth present in naive
14735 # implementations.
14736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14737 eval 'as_fn_append ()
14739 eval $1+=\$2
14741 else
14742 as_fn_append ()
14744 eval $1=\$$1\$2
14746 fi # as_fn_append
14748 # as_fn_arith ARG...
14749 # ------------------
14750 # Perform arithmetic evaluation on the ARGs, and store the result in the
14751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14752 # must be portable across $(()) and expr.
14753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14754 eval 'as_fn_arith ()
14756 as_val=$(( $* ))
14758 else
14759 as_fn_arith ()
14761 as_val=`expr "$@" || test $? -eq 1`
14763 fi # as_fn_arith
14766 if expr a : '\(a\)' >/dev/null 2>&1 &&
14767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14768 as_expr=expr
14769 else
14770 as_expr=false
14773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14774 as_basename=basename
14775 else
14776 as_basename=false
14779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14780 as_dirname=dirname
14781 else
14782 as_dirname=false
14785 as_me=`$as_basename -- "$0" ||
14786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14787 X"$0" : 'X\(//\)$' \| \
14788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14789 $as_echo X/"$0" |
14790 sed '/^.*\/\([^/][^/]*\)\/*$/{
14791 s//\1/
14794 /^X\/\(\/\/\)$/{
14795 s//\1/
14798 /^X\/\(\/\).*/{
14799 s//\1/
14802 s/.*/./; q'`
14804 # Avoid depending upon Character Ranges.
14805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14808 as_cr_digits='0123456789'
14809 as_cr_alnum=$as_cr_Letters$as_cr_digits
14811 ECHO_C= ECHO_N= ECHO_T=
14812 case `echo -n x` in #(((((
14813 -n*)
14814 case `echo 'xy\c'` in
14815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14816 xy) ECHO_C='\c';;
14817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14818 ECHO_T=' ';;
14819 esac;;
14821 ECHO_N='-n';;
14822 esac
14824 rm -f conf$$ conf$$.exe conf$$.file
14825 if test -d conf$$.dir; then
14826 rm -f conf$$.dir/conf$$.file
14827 else
14828 rm -f conf$$.dir
14829 mkdir conf$$.dir 2>/dev/null
14831 if (echo >conf$$.file) 2>/dev/null; then
14832 if ln -s conf$$.file conf$$ 2>/dev/null; then
14833 as_ln_s='ln -s'
14834 # ... but there are two gotchas:
14835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14837 # In both cases, we have to default to `cp -p'.
14838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14839 as_ln_s='cp -p'
14840 elif ln conf$$.file conf$$ 2>/dev/null; then
14841 as_ln_s=ln
14842 else
14843 as_ln_s='cp -p'
14845 else
14846 as_ln_s='cp -p'
14848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14849 rmdir conf$$.dir 2>/dev/null
14852 # as_fn_mkdir_p
14853 # -------------
14854 # Create "$as_dir" as a directory, including parents if necessary.
14855 as_fn_mkdir_p ()
14858 case $as_dir in #(
14859 -*) as_dir=./$as_dir;;
14860 esac
14861 test -d "$as_dir" || eval $as_mkdir_p || {
14862 as_dirs=
14863 while :; do
14864 case $as_dir in #(
14865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14866 *) as_qdir=$as_dir;;
14867 esac
14868 as_dirs="'$as_qdir' $as_dirs"
14869 as_dir=`$as_dirname -- "$as_dir" ||
14870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871 X"$as_dir" : 'X\(//\)[^/]' \| \
14872 X"$as_dir" : 'X\(//\)$' \| \
14873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14874 $as_echo X"$as_dir" |
14875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14876 s//\1/
14879 /^X\(\/\/\)[^/].*/{
14880 s//\1/
14883 /^X\(\/\/\)$/{
14884 s//\1/
14887 /^X\(\/\).*/{
14888 s//\1/
14891 s/.*/./; q'`
14892 test -d "$as_dir" && break
14893 done
14894 test -z "$as_dirs" || eval "mkdir $as_dirs"
14895 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14898 } # as_fn_mkdir_p
14899 if mkdir -p . 2>/dev/null; then
14900 as_mkdir_p='mkdir -p "$as_dir"'
14901 else
14902 test -d ./-p && rmdir ./-p
14903 as_mkdir_p=false
14906 if test -x / >/dev/null 2>&1; then
14907 as_test_x='test -x'
14908 else
14909 if ls -dL / >/dev/null 2>&1; then
14910 as_ls_L_option=L
14911 else
14912 as_ls_L_option=
14914 as_test_x='
14915 eval sh -c '\''
14916 if test -d "$1"; then
14917 test -d "$1/.";
14918 else
14919 case $1 in #(
14920 -*)set "./$1";;
14921 esac;
14922 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14923 ???[sx]*):;;*)false;;esac;fi
14924 '\'' sh
14927 as_executable_p=$as_test_x
14929 # Sed expression to map a string onto a valid CPP name.
14930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14932 # Sed expression to map a string onto a valid variable name.
14933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14936 exec 6>&1
14937 ## ----------------------------------- ##
14938 ## Main body of $CONFIG_STATUS script. ##
14939 ## ----------------------------------- ##
14940 _ASEOF
14941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14944 # Save the log message, to keep $0 and so on meaningful, and to
14945 # report actual input values of CONFIG_FILES etc. instead of their
14946 # values after options handling.
14947 ac_log="
14948 This file was extended by package-unused $as_me version-unused, which was
14949 generated by GNU Autoconf 2.64. Invocation command line was
14951 CONFIG_FILES = $CONFIG_FILES
14952 CONFIG_HEADERS = $CONFIG_HEADERS
14953 CONFIG_LINKS = $CONFIG_LINKS
14954 CONFIG_COMMANDS = $CONFIG_COMMANDS
14955 $ $0 $@
14957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14960 _ACEOF
14962 case $ac_config_files in *"
14963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14964 esac
14966 case $ac_config_headers in *"
14967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14968 esac
14971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14972 # Files that config.status was made for.
14973 config_files="$ac_config_files"
14974 config_headers="$ac_config_headers"
14975 config_commands="$ac_config_commands"
14977 _ACEOF
14979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14980 ac_cs_usage="\
14981 \`$as_me' instantiates files and other configuration actions
14982 from templates according to the current configuration. Unless the files
14983 and actions are specified as TAGs, all are instantiated by default.
14985 Usage: $0 [OPTION]... [TAG]...
14987 -h, --help print this help, then exit
14988 -V, --version print version number and configuration settings, then exit
14989 -q, --quiet, --silent
14990 do not print progress messages
14991 -d, --debug don't remove temporary files
14992 --recheck update $as_me by reconfiguring in the same conditions
14993 --file=FILE[:TEMPLATE]
14994 instantiate the configuration file FILE
14995 --header=FILE[:TEMPLATE]
14996 instantiate the configuration header FILE
14998 Configuration files:
14999 $config_files
15001 Configuration headers:
15002 $config_headers
15004 Configuration commands:
15005 $config_commands
15007 Report bugs to the package provider."
15009 _ACEOF
15010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15011 ac_cs_version="\\
15012 package-unused config.status version-unused
15013 configured by $0, generated by GNU Autoconf 2.64,
15014 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15016 Copyright (C) 2009 Free Software Foundation, Inc.
15017 This config.status script is free software; the Free Software Foundation
15018 gives unlimited permission to copy, distribute and modify it."
15020 ac_pwd='$ac_pwd'
15021 srcdir='$srcdir'
15022 INSTALL='$INSTALL'
15023 MKDIR_P='$MKDIR_P'
15024 AWK='$AWK'
15025 test -n "\$AWK" || AWK=awk
15026 _ACEOF
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 # The default lists apply if the user does not specify any file.
15030 ac_need_defaults=:
15031 while test $# != 0
15033 case $1 in
15034 --*=*)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037 ac_shift=:
15040 ac_option=$1
15041 ac_optarg=$2
15042 ac_shift=shift
15044 esac
15046 case $ac_option in
15047 # Handling of the options.
15048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15049 ac_cs_recheck=: ;;
15050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15051 $as_echo "$ac_cs_version"; exit ;;
15052 --debug | --debu | --deb | --de | --d | -d )
15053 debug=: ;;
15054 --file | --fil | --fi | --f )
15055 $ac_shift
15056 case $ac_optarg in
15057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15058 esac
15059 as_fn_append CONFIG_FILES " '$ac_optarg'"
15060 ac_need_defaults=false;;
15061 --header | --heade | --head | --hea )
15062 $ac_shift
15063 case $ac_optarg in
15064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15065 esac
15066 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15067 ac_need_defaults=false;;
15068 --he | --h)
15069 # Conflict between --help and --header
15070 as_fn_error "ambiguous option: \`$1'
15071 Try \`$0 --help' for more information.";;
15072 --help | --hel | -h )
15073 $as_echo "$ac_cs_usage"; exit ;;
15074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15076 ac_cs_silent=: ;;
15078 # This is an error.
15079 -*) as_fn_error "unrecognized option: \`$1'
15080 Try \`$0 --help' for more information." ;;
15082 *) as_fn_append ac_config_targets " $1"
15083 ac_need_defaults=false ;;
15085 esac
15086 shift
15087 done
15089 ac_configure_extra_args=
15091 if $ac_cs_silent; then
15092 exec 6>/dev/null
15093 ac_configure_extra_args="$ac_configure_extra_args --silent"
15096 _ACEOF
15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098 if \$ac_cs_recheck; then
15099 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15100 shift
15101 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15102 CONFIG_SHELL='$SHELL'
15103 export CONFIG_SHELL
15104 exec "\$@"
15107 _ACEOF
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15109 exec 5>>config.log
15111 echo
15112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15113 ## Running $as_me. ##
15114 _ASBOX
15115 $as_echo "$ac_log"
15116 } >&5
15118 _ACEOF
15119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 # INIT-COMMANDS
15124 srcdir="$srcdir"
15125 host="$host"
15126 target="$target"
15127 with_multisubdir="$with_multisubdir"
15128 with_multisrctop="$with_multisrctop"
15129 with_target_subdir="$with_target_subdir"
15130 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15131 multi_basedir="$multi_basedir"
15132 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15133 CC="$CC"
15134 CXX="$CXX"
15135 GFORTRAN="$GFORTRAN"
15136 GCJ="$GCJ"
15137 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15140 # The HP-UX ksh and POSIX shell print the target directory to stdout
15141 # if CDPATH is set.
15142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15144 sed_quote_subst='$sed_quote_subst'
15145 double_quote_subst='$double_quote_subst'
15146 delay_variable_subst='$delay_variable_subst'
15147 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15148 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15149 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15150 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15151 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15152 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15153 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15154 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15155 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15156 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15157 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15159 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15160 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15161 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15162 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15163 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15164 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15165 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15166 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15167 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15168 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15169 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15170 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15171 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15172 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15173 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15174 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15175 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15176 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15177 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15178 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15179 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15180 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15181 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15182 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15183 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15184 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15185 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15186 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15187 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15188 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15189 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15190 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15191 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15192 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15193 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15194 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15195 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"`'
15196 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15197 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15198 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15199 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15200 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15201 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15202 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15203 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15204 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15205 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15206 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15207 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15208 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15209 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15210 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15211 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15212 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15213 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15214 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15215 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15216 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15217 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15218 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15219 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15220 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15221 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15222 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15223 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15224 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15225 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15226 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15227 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15228 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15229 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15230 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15231 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15232 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15233 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15234 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15235 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15236 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15237 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15238 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15239 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15240 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15241 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15242 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15243 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15244 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15245 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15246 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15247 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15248 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15249 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15250 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15251 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15252 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15253 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15254 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15255 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15256 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15257 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15258 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15259 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15260 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15261 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15262 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15263 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15264 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15265 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15266 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15267 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15268 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15269 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15270 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15271 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15272 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15273 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15274 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15275 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15276 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15277 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15278 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15279 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15280 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15281 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15282 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15283 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15284 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15285 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15286 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15287 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15288 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15289 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15290 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15291 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15292 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15293 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15294 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15295 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15296 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15297 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15298 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15299 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15300 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15301 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15302 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15303 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15304 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15305 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15306 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15307 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15308 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15309 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15311 LTCC='$LTCC'
15312 LTCFLAGS='$LTCFLAGS'
15313 compiler='$compiler_DEFAULT'
15315 # A function that is used when there is no print builtin or printf.
15316 func_fallback_echo ()
15318 eval 'cat <<_LTECHO_EOF
15320 _LTECHO_EOF'
15323 # Quote evaled strings.
15324 for var in SED \
15325 GREP \
15326 EGREP \
15327 FGREP \
15328 SHELL \
15329 ECHO \
15330 LD \
15331 NM \
15332 LN_S \
15333 lt_SP2NL \
15334 lt_NL2SP \
15335 reload_flag \
15336 OBJDUMP \
15337 deplibs_check_method \
15338 file_magic_cmd \
15339 AR \
15340 AR_FLAGS \
15341 STRIP \
15342 RANLIB \
15343 CC \
15344 CFLAGS \
15345 compiler \
15346 lt_cv_sys_global_symbol_pipe \
15347 lt_cv_sys_global_symbol_to_cdecl \
15348 lt_cv_sys_global_symbol_to_c_name_address \
15349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15350 lt_prog_compiler_no_builtin_flag \
15351 lt_prog_compiler_wl \
15352 lt_prog_compiler_pic \
15353 lt_prog_compiler_static \
15354 lt_cv_prog_compiler_c_o \
15355 need_locks \
15356 DSYMUTIL \
15357 NMEDIT \
15358 LIPO \
15359 OTOOL \
15360 OTOOL64 \
15361 shrext_cmds \
15362 export_dynamic_flag_spec \
15363 whole_archive_flag_spec \
15364 compiler_needs_object \
15365 with_gnu_ld \
15366 allow_undefined_flag \
15367 no_undefined_flag \
15368 hardcode_libdir_flag_spec \
15369 hardcode_libdir_flag_spec_ld \
15370 hardcode_libdir_separator \
15371 fix_srcfile_path \
15372 exclude_expsyms \
15373 include_expsyms \
15374 file_list_spec \
15375 variables_saved_for_relink \
15376 libname_spec \
15377 library_names_spec \
15378 soname_spec \
15379 install_override_mode \
15380 finish_eval \
15381 old_striplib \
15382 striplib \
15383 LD_GO \
15384 reload_flag_GO \
15385 compiler_GO \
15386 lt_prog_compiler_no_builtin_flag_GO \
15387 lt_prog_compiler_wl_GO \
15388 lt_prog_compiler_pic_GO \
15389 lt_prog_compiler_static_GO \
15390 lt_cv_prog_compiler_c_o_GO \
15391 export_dynamic_flag_spec_GO \
15392 whole_archive_flag_spec_GO \
15393 compiler_needs_object_GO \
15394 with_gnu_ld_GO \
15395 allow_undefined_flag_GO \
15396 no_undefined_flag_GO \
15397 hardcode_libdir_flag_spec_GO \
15398 hardcode_libdir_flag_spec_ld_GO \
15399 hardcode_libdir_separator_GO \
15400 fix_srcfile_path_GO \
15401 exclude_expsyms_GO \
15402 include_expsyms_GO \
15403 file_list_spec_GO; do
15404 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15405 *[\\\\\\\`\\"\\\$]*)
15406 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15409 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15411 esac
15412 done
15414 # Double-quote double-evaled strings.
15415 for var in reload_cmds \
15416 old_postinstall_cmds \
15417 old_postuninstall_cmds \
15418 old_archive_cmds \
15419 extract_expsyms_cmds \
15420 old_archive_from_new_cmds \
15421 old_archive_from_expsyms_cmds \
15422 archive_cmds \
15423 archive_expsym_cmds \
15424 module_cmds \
15425 module_expsym_cmds \
15426 export_symbols_cmds \
15427 prelink_cmds \
15428 postinstall_cmds \
15429 postuninstall_cmds \
15430 finish_cmds \
15431 sys_lib_search_path_spec \
15432 sys_lib_dlsearch_path_spec \
15433 reload_cmds_GO \
15434 old_archive_cmds_GO \
15435 old_archive_from_new_cmds_GO \
15436 old_archive_from_expsyms_cmds_GO \
15437 archive_cmds_GO \
15438 archive_expsym_cmds_GO \
15439 module_cmds_GO \
15440 module_expsym_cmds_GO \
15441 export_symbols_cmds_GO \
15442 prelink_cmds_GO; do
15443 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15444 *[\\\\\\\`\\"\\\$]*)
15445 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15448 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15450 esac
15451 done
15453 ac_aux_dir='$ac_aux_dir'
15454 xsi_shell='$xsi_shell'
15455 lt_shell_append='$lt_shell_append'
15457 # See if we are running on zsh, and set the options which allow our
15458 # commands through without removal of \ escapes INIT.
15459 if test -n "\${ZSH_VERSION+set}" ; then
15460 setopt NO_GLOB_SUBST
15464 PACKAGE='$PACKAGE'
15465 VERSION='$VERSION'
15466 TIMESTAMP='$TIMESTAMP'
15467 RM='$RM'
15468 ofile='$ofile'
15475 # Variables needed in config.status (file generation) which aren't already
15476 # passed by autoconf.
15477 SUBDIRS="$SUBDIRS"
15480 _ACEOF
15482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 # Handling of arguments.
15485 for ac_config_target in $ac_config_targets
15487 case $ac_config_target in
15488 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15489 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15490 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15491 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15493 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15494 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15496 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15497 esac
15498 done
15501 # If the user did not use the arguments to specify the items to instantiate,
15502 # then the envvar interface is used. Set only those that are not.
15503 # We use the long form for the default assignment because of an extremely
15504 # bizarre bug on SunOS 4.1.3.
15505 if $ac_need_defaults; then
15506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15511 # Have a temporary directory for convenience. Make it in the build tree
15512 # simply because there is no reason against having it here, and in addition,
15513 # creating and moving files from /tmp can sometimes cause problems.
15514 # Hook for its removal unless debugging.
15515 # Note that there is a small window in which the directory will not be cleaned:
15516 # after its creation but before its name has been assigned to `$tmp'.
15517 $debug ||
15519 tmp=
15520 trap 'exit_status=$?
15521 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15523 trap 'as_fn_exit 1' 1 2 13 15
15525 # Create a (secure) tmp directory for tmp files.
15528 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15529 test -n "$tmp" && test -d "$tmp"
15530 } ||
15532 tmp=./conf$$-$RANDOM
15533 (umask 077 && mkdir "$tmp")
15534 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15536 # Set up the scripts for CONFIG_FILES section.
15537 # No need to generate them if there are no CONFIG_FILES.
15538 # This happens for instance with `./config.status config.h'.
15539 if test -n "$CONFIG_FILES"; then
15542 ac_cr=`echo X | tr X '\015'`
15543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15544 # But we know of no other shell where ac_cr would be empty at this
15545 # point, so we can use a bashism as a fallback.
15546 if test "x$ac_cr" = x; then
15547 eval ac_cr=\$\'\\r\'
15549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15551 ac_cs_awk_cr='\r'
15552 else
15553 ac_cs_awk_cr=$ac_cr
15556 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15557 _ACEOF
15561 echo "cat >conf$$subs.awk <<_ACEOF" &&
15562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15563 echo "_ACEOF"
15564 } >conf$$subs.sh ||
15565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15567 ac_delim='%!_!# '
15568 for ac_last_try in false false false false false :; do
15569 . ./conf$$subs.sh ||
15570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15573 if test $ac_delim_n = $ac_delim_num; then
15574 break
15575 elif $ac_last_try; then
15576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15577 else
15578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15580 done
15581 rm -f conf$$subs.sh
15583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15584 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15585 _ACEOF
15586 sed -n '
15588 s/^/S["/; s/!.*/"]=/
15591 s/^[^!]*!//
15592 :repl
15593 t repl
15594 s/'"$ac_delim"'$//
15595 t delim
15598 s/\(.\{148\}\).*/\1/
15599 t more1
15600 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15603 b repl
15604 :more1
15605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15608 s/.\{148\}//
15609 t nl
15610 :delim
15612 s/\(.\{148\}\).*/\1/
15613 t more2
15614 s/["\\]/\\&/g; s/^/"/; s/$/"/
15617 :more2
15618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15621 s/.\{148\}//
15622 t delim
15623 ' <conf$$subs.awk | sed '
15624 /^[^""]/{
15626 s/\n//
15628 ' >>$CONFIG_STATUS || ac_write_fail=1
15629 rm -f conf$$subs.awk
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 _ACAWK
15632 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15633 for (key in S) S_is_set[key] = 1
15634 FS = "\a"
15638 line = $ 0
15639 nfields = split(line, field, "@")
15640 substed = 0
15641 len = length(field[1])
15642 for (i = 2; i < nfields; i++) {
15643 key = field[i]
15644 keylen = length(key)
15645 if (S_is_set[key]) {
15646 value = S[key]
15647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15648 len += length(value) + length(field[++i])
15649 substed = 1
15650 } else
15651 len += 1 + keylen
15654 print line
15657 _ACAWK
15658 _ACEOF
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15661 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15662 else
15664 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15665 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15666 _ACEOF
15668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15670 # trailing colons and then remove the whole line if VPATH becomes empty
15671 # (actually we leave an empty line to preserve line numbers).
15672 if test "x$srcdir" = x.; then
15673 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15674 s/:*\$(srcdir):*/:/
15675 s/:*\${srcdir}:*/:/
15676 s/:*@srcdir@:*/:/
15677 s/^\([^=]*=[ ]*\):*/\1/
15678 s/:*$//
15679 s/^[^=]*=[ ]*$//
15683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15684 fi # test -n "$CONFIG_FILES"
15686 # Set up the scripts for CONFIG_HEADERS section.
15687 # No need to generate them if there are no CONFIG_HEADERS.
15688 # This happens for instance with `./config.status Makefile'.
15689 if test -n "$CONFIG_HEADERS"; then
15690 cat >"$tmp/defines.awk" <<\_ACAWK ||
15691 BEGIN {
15692 _ACEOF
15694 # Transform confdefs.h into an awk script `defines.awk', embedded as
15695 # here-document in config.status, that substitutes the proper values into
15696 # config.h.in to produce config.h.
15698 # Create a delimiter string that does not exist in confdefs.h, to ease
15699 # handling of long lines.
15700 ac_delim='%!_!# '
15701 for ac_last_try in false false :; do
15702 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15703 if test -z "$ac_t"; then
15704 break
15705 elif $ac_last_try; then
15706 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15707 else
15708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710 done
15712 # For the awk script, D is an array of macro values keyed by name,
15713 # likewise P contains macro parameters if any. Preserve backslash
15714 # newline sequences.
15716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15717 sed -n '
15718 s/.\{148\}/&'"$ac_delim"'/g
15719 t rset
15720 :rset
15721 s/^[ ]*#[ ]*define[ ][ ]*/ /
15722 t def
15724 :def
15725 s/\\$//
15726 t bsnl
15727 s/["\\]/\\&/g
15728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15729 D["\1"]=" \3"/p
15730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15732 :bsnl
15733 s/["\\]/\\&/g
15734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15735 D["\1"]=" \3\\\\\\n"\\/p
15736 t cont
15737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15738 t cont
15740 :cont
15742 s/.\{148\}/&'"$ac_delim"'/g
15743 t clear
15744 :clear
15745 s/\\$//
15746 t bsnlc
15747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15749 :bsnlc
15750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15751 b cont
15752 ' <confdefs.h | sed '
15753 s/'"$ac_delim"'/"\\\
15754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15757 for (key in D) D_is_set[key] = 1
15758 FS = "\a"
15760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15761 line = \$ 0
15762 split(line, arg, " ")
15763 if (arg[1] == "#") {
15764 defundef = arg[2]
15765 mac1 = arg[3]
15766 } else {
15767 defundef = substr(arg[1], 2)
15768 mac1 = arg[2]
15770 split(mac1, mac2, "(") #)
15771 macro = mac2[1]
15772 prefix = substr(line, 1, index(line, defundef) - 1)
15773 if (D_is_set[macro]) {
15774 # Preserve the white space surrounding the "#".
15775 print prefix "define", macro P[macro] D[macro]
15776 next
15777 } else {
15778 # Replace #undef with comments. This is necessary, for example,
15779 # in the case of _POSIX_SOURCE, which is predefined and required
15780 # on some systems where configure will not decide to define it.
15781 if (defundef == "undef") {
15782 print "/*", prefix defundef, macro, "*/"
15783 next
15787 { print }
15788 _ACAWK
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15792 fi # test -n "$CONFIG_HEADERS"
15795 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15796 shift
15797 for ac_tag
15799 case $ac_tag in
15800 :[FHLC]) ac_mode=$ac_tag; continue;;
15801 esac
15802 case $ac_mode$ac_tag in
15803 :[FHL]*:*);;
15804 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15805 :[FH]-) ac_tag=-:-;;
15806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15807 esac
15808 ac_save_IFS=$IFS
15809 IFS=:
15810 set x $ac_tag
15811 IFS=$ac_save_IFS
15812 shift
15813 ac_file=$1
15814 shift
15816 case $ac_mode in
15817 :L) ac_source=$1;;
15818 :[FH])
15819 ac_file_inputs=
15820 for ac_f
15822 case $ac_f in
15823 -) ac_f="$tmp/stdin";;
15824 *) # Look for the file first in the build tree, then in the source tree
15825 # (if the path is not absolute). The absolute path cannot be DOS-style,
15826 # because $ac_f cannot contain `:'.
15827 test -f "$ac_f" ||
15828 case $ac_f in
15829 [\\/$]*) false;;
15830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15831 esac ||
15832 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15833 esac
15834 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15835 as_fn_append ac_file_inputs " '$ac_f'"
15836 done
15838 # Let's still pretend it is `configure' which instantiates (i.e., don't
15839 # use $as_me), people would be surprised to read:
15840 # /* config.h. Generated by config.status. */
15841 configure_input='Generated from '`
15842 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15843 `' by configure.'
15844 if test x"$ac_file" != x-; then
15845 configure_input="$ac_file. $configure_input"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15847 $as_echo "$as_me: creating $ac_file" >&6;}
15849 # Neutralize special characters interpreted by sed in replacement strings.
15850 case $configure_input in #(
15851 *\&* | *\|* | *\\* )
15852 ac_sed_conf_input=`$as_echo "$configure_input" |
15853 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15854 *) ac_sed_conf_input=$configure_input;;
15855 esac
15857 case $ac_tag in
15858 *:-:* | *:-) cat >"$tmp/stdin" \
15859 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15860 esac
15862 esac
15864 ac_dir=`$as_dirname -- "$ac_file" ||
15865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15866 X"$ac_file" : 'X\(//\)[^/]' \| \
15867 X"$ac_file" : 'X\(//\)$' \| \
15868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15869 $as_echo X"$ac_file" |
15870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15871 s//\1/
15874 /^X\(\/\/\)[^/].*/{
15875 s//\1/
15878 /^X\(\/\/\)$/{
15879 s//\1/
15882 /^X\(\/\).*/{
15883 s//\1/
15886 s/.*/./; q'`
15887 as_dir="$ac_dir"; as_fn_mkdir_p
15888 ac_builddir=.
15890 case "$ac_dir" in
15891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15894 # A ".." for each directory in $ac_dir_suffix.
15895 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15896 case $ac_top_builddir_sub in
15897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15899 esac ;;
15900 esac
15901 ac_abs_top_builddir=$ac_pwd
15902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15903 # for backward compatibility:
15904 ac_top_builddir=$ac_top_build_prefix
15906 case $srcdir in
15907 .) # We are building in place.
15908 ac_srcdir=.
15909 ac_top_srcdir=$ac_top_builddir_sub
15910 ac_abs_top_srcdir=$ac_pwd ;;
15911 [\\/]* | ?:[\\/]* ) # Absolute name.
15912 ac_srcdir=$srcdir$ac_dir_suffix;
15913 ac_top_srcdir=$srcdir
15914 ac_abs_top_srcdir=$srcdir ;;
15915 *) # Relative name.
15916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15917 ac_top_srcdir=$ac_top_build_prefix$srcdir
15918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15919 esac
15920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15923 case $ac_mode in
15926 # CONFIG_FILE
15929 case $INSTALL in
15930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15932 esac
15933 ac_MKDIR_P=$MKDIR_P
15934 case $MKDIR_P in
15935 [\\/$]* | ?:[\\/]* ) ;;
15936 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15937 esac
15938 _ACEOF
15940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15941 # If the template does not know about datarootdir, expand it.
15942 # FIXME: This hack should be removed a few years after 2.60.
15943 ac_datarootdir_hack=; ac_datarootdir_seen=
15944 ac_sed_dataroot='
15945 /datarootdir/ {
15949 /@datadir@/p
15950 /@docdir@/p
15951 /@infodir@/p
15952 /@localedir@/p
15953 /@mandir@/p'
15954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15955 *datarootdir*) ac_datarootdir_seen=yes;;
15956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15959 _ACEOF
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 ac_datarootdir_hack='
15962 s&@datadir@&$datadir&g
15963 s&@docdir@&$docdir&g
15964 s&@infodir@&$infodir&g
15965 s&@localedir@&$localedir&g
15966 s&@mandir@&$mandir&g
15967 s&\\\${datarootdir}&$datarootdir&g' ;;
15968 esac
15969 _ACEOF
15971 # Neutralize VPATH when `$srcdir' = `.'.
15972 # Shell code in configure.ac might set extrasub.
15973 # FIXME: do we really want to maintain this feature?
15974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15975 ac_sed_extra="$ac_vpsub
15976 $extrasub
15977 _ACEOF
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15981 s|@configure_input@|$ac_sed_conf_input|;t t
15982 s&@top_builddir@&$ac_top_builddir_sub&;t t
15983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15984 s&@srcdir@&$ac_srcdir&;t t
15985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15986 s&@top_srcdir@&$ac_top_srcdir&;t t
15987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15988 s&@builddir@&$ac_builddir&;t t
15989 s&@abs_builddir@&$ac_abs_builddir&;t t
15990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15991 s&@INSTALL@&$ac_INSTALL&;t t
15992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15993 $ac_datarootdir_hack
15995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15996 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15999 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16002 which seems to be undefined. Please make sure it is defined." >&5
16003 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16004 which seems to be undefined. Please make sure it is defined." >&2;}
16006 rm -f "$tmp/stdin"
16007 case $ac_file in
16008 -) cat "$tmp/out" && rm -f "$tmp/out";;
16009 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16010 esac \
16011 || as_fn_error "could not create $ac_file" "$LINENO" 5
16015 # CONFIG_HEADER
16017 if test x"$ac_file" != x-; then
16019 $as_echo "/* $configure_input */" \
16020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16021 } >"$tmp/config.h" \
16022 || as_fn_error "could not create $ac_file" "$LINENO" 5
16023 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16025 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16026 else
16027 rm -f "$ac_file"
16028 mv "$tmp/config.h" "$ac_file" \
16029 || as_fn_error "could not create $ac_file" "$LINENO" 5
16031 else
16032 $as_echo "/* $configure_input */" \
16033 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16034 || as_fn_error "could not create -" "$LINENO" 5
16036 # Compute "$ac_file"'s index in $config_headers.
16037 _am_arg="$ac_file"
16038 _am_stamp_count=1
16039 for _am_header in $config_headers :; do
16040 case $_am_header in
16041 $_am_arg | $_am_arg:* )
16042 break ;;
16044 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16045 esac
16046 done
16047 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16048 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16049 X"$_am_arg" : 'X\(//\)[^/]' \| \
16050 X"$_am_arg" : 'X\(//\)$' \| \
16051 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16052 $as_echo X"$_am_arg" |
16053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16054 s//\1/
16057 /^X\(\/\/\)[^/].*/{
16058 s//\1/
16061 /^X\(\/\/\)$/{
16062 s//\1/
16065 /^X\(\/\).*/{
16066 s//\1/
16069 s/.*/./; q'`/stamp-h$_am_stamp_count
16072 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16073 $as_echo "$as_me: executing $ac_file commands" >&6;}
16075 esac
16078 case $ac_file$ac_mode in
16079 "default-1":C)
16080 # Only add multilib support code if we just rebuilt the top-level
16081 # Makefile.
16082 case " $CONFIG_FILES " in
16083 *" Makefile "*)
16084 ac_file=Makefile . ${multi_basedir}/config-ml.in
16086 esac ;;
16087 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16088 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16089 # are listed without --file. Let's play safe and only enable the eval
16090 # if we detect the quoting.
16091 case $CONFIG_FILES in
16092 *\'*) eval set x "$CONFIG_FILES" ;;
16093 *) set x $CONFIG_FILES ;;
16094 esac
16095 shift
16096 for mf
16098 # Strip MF so we end up with the name of the file.
16099 mf=`echo "$mf" | sed -e 's/:.*$//'`
16100 # Check whether this is an Automake generated Makefile or not.
16101 # We used to match only the files named `Makefile.in', but
16102 # some people rename them; so instead we look at the file content.
16103 # Grep'ing the first line is not enough: some people post-process
16104 # each Makefile.in and add a new line on top of each file to say so.
16105 # Grep'ing the whole file is not good either: AIX grep has a line
16106 # limit of 2048, but all sed's we know have understand at least 4000.
16107 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16108 dirpart=`$as_dirname -- "$mf" ||
16109 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16110 X"$mf" : 'X\(//\)[^/]' \| \
16111 X"$mf" : 'X\(//\)$' \| \
16112 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16113 $as_echo X"$mf" |
16114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16115 s//\1/
16118 /^X\(\/\/\)[^/].*/{
16119 s//\1/
16122 /^X\(\/\/\)$/{
16123 s//\1/
16126 /^X\(\/\).*/{
16127 s//\1/
16130 s/.*/./; q'`
16131 else
16132 continue
16134 # Extract the definition of DEPDIR, am__include, and am__quote
16135 # from the Makefile without running `make'.
16136 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16137 test -z "$DEPDIR" && continue
16138 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16139 test -z "am__include" && continue
16140 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16141 # When using ansi2knr, U may be empty or an underscore; expand it
16142 U=`sed -n 's/^U = //p' < "$mf"`
16143 # Find all dependency output files, they are included files with
16144 # $(DEPDIR) in their names. We invoke sed twice because it is the
16145 # simplest approach to changing $(DEPDIR) to its actual value in the
16146 # expansion.
16147 for file in `sed -n "
16148 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16149 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16150 # Make sure the directory exists.
16151 test -f "$dirpart/$file" && continue
16152 fdir=`$as_dirname -- "$file" ||
16153 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16154 X"$file" : 'X\(//\)[^/]' \| \
16155 X"$file" : 'X\(//\)$' \| \
16156 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16157 $as_echo X"$file" |
16158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16159 s//\1/
16162 /^X\(\/\/\)[^/].*/{
16163 s//\1/
16166 /^X\(\/\/\)$/{
16167 s//\1/
16170 /^X\(\/\).*/{
16171 s//\1/
16174 s/.*/./; q'`
16175 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16176 # echo "creating $dirpart/$file"
16177 echo '# dummy' > "$dirpart/$file"
16178 done
16179 done
16182 "libtool":C)
16184 # See if we are running on zsh, and set the options which allow our
16185 # commands through without removal of \ escapes.
16186 if test -n "${ZSH_VERSION+set}" ; then
16187 setopt NO_GLOB_SUBST
16190 cfgfile="${ofile}T"
16191 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16192 $RM "$cfgfile"
16194 cat <<_LT_EOF >> "$cfgfile"
16195 #! $SHELL
16197 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16198 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16199 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16202 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16203 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16204 # Written by Gordon Matzigkeit, 1996
16206 # This file is part of GNU Libtool.
16208 # GNU Libtool is free software; you can redistribute it and/or
16209 # modify it under the terms of the GNU General Public License as
16210 # published by the Free Software Foundation; either version 2 of
16211 # the License, or (at your option) any later version.
16213 # As a special exception to the GNU General Public License,
16214 # if you distribute this file as part of a program or library that
16215 # is built using GNU Libtool, you may include this file under the
16216 # same distribution terms that you use for the rest of that program.
16218 # GNU Libtool is distributed in the hope that it will be useful,
16219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16221 # GNU General Public License for more details.
16223 # You should have received a copy of the GNU General Public License
16224 # along with GNU Libtool; see the file COPYING. If not, a copy
16225 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16226 # obtained by writing to the Free Software Foundation, Inc.,
16227 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16230 # The names of the tagged configurations supported by this script.
16231 available_tags="GO "
16233 # ### BEGIN LIBTOOL CONFIG
16235 # A sed program that does not truncate output.
16236 SED=$lt_SED
16238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16239 Xsed="\$SED -e 1s/^X//"
16241 # A grep program that handles long lines.
16242 GREP=$lt_GREP
16244 # An ERE matcher.
16245 EGREP=$lt_EGREP
16247 # A literal string matcher.
16248 FGREP=$lt_FGREP
16250 # Shell to use when invoking shell scripts.
16251 SHELL=$lt_SHELL
16253 # An echo program that protects backslashes.
16254 ECHO=$lt_ECHO
16256 # Which release of libtool.m4 was used?
16257 macro_version=$macro_version
16258 macro_revision=$macro_revision
16260 # Whether or not to build shared libraries.
16261 build_libtool_libs=$enable_shared
16263 # Whether or not to build static libraries.
16264 build_old_libs=$enable_static
16266 # What type of objects to build.
16267 pic_mode=$pic_mode
16269 # Whether or not to optimize for fast installation.
16270 fast_install=$enable_fast_install
16272 # The host system.
16273 host_alias=$host_alias
16274 host=$host
16275 host_os=$host_os
16277 # The build system.
16278 build_alias=$build_alias
16279 build=$build
16280 build_os=$build_os
16282 # A BSD- or MS-compatible name lister.
16283 NM=$lt_NM
16285 # Whether we need soft or hard links.
16286 LN_S=$lt_LN_S
16288 # What is the maximum length of a command?
16289 max_cmd_len=$max_cmd_len
16291 # Object file suffix (normally "o").
16292 objext=$ac_objext
16294 # Executable file suffix (normally "").
16295 exeext=$exeext
16297 # whether the shell understands "unset".
16298 lt_unset=$lt_unset
16300 # turn spaces into newlines.
16301 SP2NL=$lt_lt_SP2NL
16303 # turn newlines into spaces.
16304 NL2SP=$lt_lt_NL2SP
16306 # An object symbol dumper.
16307 OBJDUMP=$lt_OBJDUMP
16309 # Method to check whether dependent libraries are shared objects.
16310 deplibs_check_method=$lt_deplibs_check_method
16312 # Command to use when deplibs_check_method == "file_magic".
16313 file_magic_cmd=$lt_file_magic_cmd
16315 # The archiver.
16316 AR=$lt_AR
16317 AR_FLAGS=$lt_AR_FLAGS
16319 # A symbol stripping program.
16320 STRIP=$lt_STRIP
16322 # Commands used to install an old-style archive.
16323 RANLIB=$lt_RANLIB
16324 old_postinstall_cmds=$lt_old_postinstall_cmds
16325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16327 # Whether to use a lock for old archive extraction.
16328 lock_old_archive_extraction=$lock_old_archive_extraction
16330 # A C compiler.
16331 LTCC=$lt_CC
16333 # LTCC compiler flags.
16334 LTCFLAGS=$lt_CFLAGS
16336 # Take the output of nm and produce a listing of raw symbols and C names.
16337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16339 # Transform the output of nm in a proper C declaration.
16340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16342 # Transform the output of nm in a C name address pair.
16343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16345 # Transform the output of nm in a C name address pair when lib prefix is needed.
16346 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16348 # The name of the directory that contains temporary libtool files.
16349 objdir=$objdir
16351 # Used to examine libraries when file_magic_cmd begins with "file".
16352 MAGIC_CMD=$MAGIC_CMD
16354 # Must we lock files when doing compilation?
16355 need_locks=$lt_need_locks
16357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16358 DSYMUTIL=$lt_DSYMUTIL
16360 # Tool to change global to local symbols on Mac OS X.
16361 NMEDIT=$lt_NMEDIT
16363 # Tool to manipulate fat objects and archives on Mac OS X.
16364 LIPO=$lt_LIPO
16366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16367 OTOOL=$lt_OTOOL
16369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16370 OTOOL64=$lt_OTOOL64
16372 # Old archive suffix (normally "a").
16373 libext=$libext
16375 # Shared library suffix (normally ".so").
16376 shrext_cmds=$lt_shrext_cmds
16378 # The commands to extract the exported symbol list from a shared archive.
16379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16381 # Variables whose values should be saved in libtool wrapper scripts and
16382 # restored at link time.
16383 variables_saved_for_relink=$lt_variables_saved_for_relink
16385 # Do we need the "lib" prefix for modules?
16386 need_lib_prefix=$need_lib_prefix
16388 # Do we need a version for libraries?
16389 need_version=$need_version
16391 # Library versioning type.
16392 version_type=$version_type
16394 # Shared library runtime path variable.
16395 runpath_var=$runpath_var
16397 # Shared library path variable.
16398 shlibpath_var=$shlibpath_var
16400 # Is shlibpath searched before the hard-coded library search path?
16401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16403 # Format of library name prefix.
16404 libname_spec=$lt_libname_spec
16406 # List of archive names. First name is the real one, the rest are links.
16407 # The last name is the one that the linker finds with -lNAME
16408 library_names_spec=$lt_library_names_spec
16410 # The coded name of the library, if different from the real name.
16411 soname_spec=$lt_soname_spec
16413 # Permission mode override for installation of shared libraries.
16414 install_override_mode=$lt_install_override_mode
16416 # Command to use after installation of a shared archive.
16417 postinstall_cmds=$lt_postinstall_cmds
16419 # Command to use after uninstallation of a shared archive.
16420 postuninstall_cmds=$lt_postuninstall_cmds
16422 # Commands used to finish a libtool library installation in a directory.
16423 finish_cmds=$lt_finish_cmds
16425 # As "finish_cmds", except a single script fragment to be evaled but
16426 # not shown.
16427 finish_eval=$lt_finish_eval
16429 # Whether we should hardcode library paths into libraries.
16430 hardcode_into_libs=$hardcode_into_libs
16432 # Compile-time system search path for libraries.
16433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16435 # Run-time system search path for libraries.
16436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16438 # Whether dlopen is supported.
16439 dlopen_support=$enable_dlopen
16441 # Whether dlopen of programs is supported.
16442 dlopen_self=$enable_dlopen_self
16444 # Whether dlopen of statically linked programs is supported.
16445 dlopen_self_static=$enable_dlopen_self_static
16447 # Commands to strip libraries.
16448 old_striplib=$lt_old_striplib
16449 striplib=$lt_striplib
16452 # The linker used to build libraries.
16453 LD=$lt_LD
16455 # How to create reloadable object files.
16456 reload_flag=$lt_reload_flag
16457 reload_cmds=$lt_reload_cmds
16459 # Commands used to build an old-style archive.
16460 old_archive_cmds=$lt_old_archive_cmds
16462 # A language specific compiler.
16463 CC=$lt_compiler
16465 # Is the compiler the GNU compiler?
16466 with_gcc=$GCC
16468 # Compiler flag to turn off builtin functions.
16469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16471 # How to pass a linker flag through the compiler.
16472 wl=$lt_lt_prog_compiler_wl
16474 # Additional compiler flags for building library objects.
16475 pic_flag=$lt_lt_prog_compiler_pic
16477 # Compiler flag to prevent dynamic linking.
16478 link_static_flag=$lt_lt_prog_compiler_static
16480 # Does compiler simultaneously support -c and -o options?
16481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16483 # Whether or not to add -lc for building shared libraries.
16484 build_libtool_need_lc=$archive_cmds_need_lc
16486 # Whether or not to disallow shared libs when runtime libs are static.
16487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16489 # Compiler flag to allow reflexive dlopens.
16490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16492 # Compiler flag to generate shared objects directly from archives.
16493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16495 # Whether the compiler copes with passing no objects directly.
16496 compiler_needs_object=$lt_compiler_needs_object
16498 # Create an old-style archive from a shared archive.
16499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16501 # Create a temporary old-style archive to link instead of a shared archive.
16502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16504 # Commands used to build a shared archive.
16505 archive_cmds=$lt_archive_cmds
16506 archive_expsym_cmds=$lt_archive_expsym_cmds
16508 # Commands used to build a loadable module if different from building
16509 # a shared archive.
16510 module_cmds=$lt_module_cmds
16511 module_expsym_cmds=$lt_module_expsym_cmds
16513 # Whether we are building with GNU ld or not.
16514 with_gnu_ld=$lt_with_gnu_ld
16516 # Flag that allows shared libraries with undefined symbols to be built.
16517 allow_undefined_flag=$lt_allow_undefined_flag
16519 # Flag that enforces no undefined symbols.
16520 no_undefined_flag=$lt_no_undefined_flag
16522 # Flag to hardcode \$libdir into a binary during linking.
16523 # This must work even if \$libdir does not exist
16524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16526 # If ld is used when linking, flag to hardcode \$libdir into a binary
16527 # during linking. This must work even if \$libdir does not exist.
16528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16530 # Whether we need a single "-rpath" flag with a separated argument.
16531 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16534 # DIR into the resulting binary.
16535 hardcode_direct=$hardcode_direct
16537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16538 # DIR into the resulting binary and the resulting library dependency is
16539 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16540 # library is relocated.
16541 hardcode_direct_absolute=$hardcode_direct_absolute
16543 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16544 # into the resulting binary.
16545 hardcode_minus_L=$hardcode_minus_L
16547 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16548 # into the resulting binary.
16549 hardcode_shlibpath_var=$hardcode_shlibpath_var
16551 # Set to "yes" if building a shared library automatically hardcodes DIR
16552 # into the library and all subsequent libraries and executables linked
16553 # against it.
16554 hardcode_automatic=$hardcode_automatic
16556 # Set to yes if linker adds runtime paths of dependent libraries
16557 # to runtime path list.
16558 inherit_rpath=$inherit_rpath
16560 # Whether libtool must link a program against all its dependency libraries.
16561 link_all_deplibs=$link_all_deplibs
16563 # Fix the shell variable \$srcfile for the compiler.
16564 fix_srcfile_path=$lt_fix_srcfile_path
16566 # Set to "yes" if exported symbols are required.
16567 always_export_symbols=$always_export_symbols
16569 # The commands to list exported symbols.
16570 export_symbols_cmds=$lt_export_symbols_cmds
16572 # Symbols that should not be listed in the preloaded symbols.
16573 exclude_expsyms=$lt_exclude_expsyms
16575 # Symbols that must always be exported.
16576 include_expsyms=$lt_include_expsyms
16578 # Commands necessary for linking programs (against libraries) with templates.
16579 prelink_cmds=$lt_prelink_cmds
16581 # Specify filename containing input files.
16582 file_list_spec=$lt_file_list_spec
16584 # How to hardcode a shared library path into an executable.
16585 hardcode_action=$hardcode_action
16587 # ### END LIBTOOL CONFIG
16589 _LT_EOF
16591 case $host_os in
16592 aix3*)
16593 cat <<\_LT_EOF >> "$cfgfile"
16594 # AIX sometimes has problems with the GCC collect2 program. For some
16595 # reason, if we set the COLLECT_NAMES environment variable, the problems
16596 # vanish in a puff of smoke.
16597 if test "X${COLLECT_NAMES+set}" != Xset; then
16598 COLLECT_NAMES=
16599 export COLLECT_NAMES
16601 _LT_EOF
16603 esac
16606 ltmain="$ac_aux_dir/ltmain.sh"
16609 # We use sed instead of cat because bash on DJGPP gets confused if
16610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16611 # text mode, it properly converts lines to CR/LF. This bash problem
16612 # is reportedly fixed, but why not run on old versions too?
16613 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16614 || (rm -f "$cfgfile"; exit 1)
16616 case $xsi_shell in
16617 yes)
16618 cat << \_LT_EOF >> "$cfgfile"
16620 # func_dirname file append nondir_replacement
16621 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16622 # otherwise set result to NONDIR_REPLACEMENT.
16623 func_dirname ()
16625 case ${1} in
16626 */*) func_dirname_result="${1%/*}${2}" ;;
16627 * ) func_dirname_result="${3}" ;;
16628 esac
16631 # func_basename file
16632 func_basename ()
16634 func_basename_result="${1##*/}"
16637 # func_dirname_and_basename file append nondir_replacement
16638 # perform func_basename and func_dirname in a single function
16639 # call:
16640 # dirname: Compute the dirname of FILE. If nonempty,
16641 # add APPEND to the result, otherwise set result
16642 # to NONDIR_REPLACEMENT.
16643 # value returned in "$func_dirname_result"
16644 # basename: Compute filename of FILE.
16645 # value retuned in "$func_basename_result"
16646 # Implementation must be kept synchronized with func_dirname
16647 # and func_basename. For efficiency, we do not delegate to
16648 # those functions but instead duplicate the functionality here.
16649 func_dirname_and_basename ()
16651 case ${1} in
16652 */*) func_dirname_result="${1%/*}${2}" ;;
16653 * ) func_dirname_result="${3}" ;;
16654 esac
16655 func_basename_result="${1##*/}"
16658 # func_stripname prefix suffix name
16659 # strip PREFIX and SUFFIX off of NAME.
16660 # PREFIX and SUFFIX must not contain globbing or regex special
16661 # characters, hashes, percent signs, but SUFFIX may contain a leading
16662 # dot (in which case that matches only a dot).
16663 func_stripname ()
16665 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16666 # positional parameters, so assign one to ordinary parameter first.
16667 func_stripname_result=${3}
16668 func_stripname_result=${func_stripname_result#"${1}"}
16669 func_stripname_result=${func_stripname_result%"${2}"}
16672 # func_opt_split
16673 func_opt_split ()
16675 func_opt_split_opt=${1%%=*}
16676 func_opt_split_arg=${1#*=}
16679 # func_lo2o object
16680 func_lo2o ()
16682 case ${1} in
16683 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16684 *) func_lo2o_result=${1} ;;
16685 esac
16688 # func_xform libobj-or-source
16689 func_xform ()
16691 func_xform_result=${1%.*}.lo
16694 # func_arith arithmetic-term...
16695 func_arith ()
16697 func_arith_result=$(( $* ))
16700 # func_len string
16701 # STRING may not start with a hyphen.
16702 func_len ()
16704 func_len_result=${#1}
16707 _LT_EOF
16709 *) # Bourne compatible functions.
16710 cat << \_LT_EOF >> "$cfgfile"
16712 # func_dirname file append nondir_replacement
16713 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16714 # otherwise set result to NONDIR_REPLACEMENT.
16715 func_dirname ()
16717 # Extract subdirectory from the argument.
16718 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16719 if test "X$func_dirname_result" = "X${1}"; then
16720 func_dirname_result="${3}"
16721 else
16722 func_dirname_result="$func_dirname_result${2}"
16726 # func_basename file
16727 func_basename ()
16729 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16733 # func_stripname prefix suffix name
16734 # strip PREFIX and SUFFIX off of NAME.
16735 # PREFIX and SUFFIX must not contain globbing or regex special
16736 # characters, hashes, percent signs, but SUFFIX may contain a leading
16737 # dot (in which case that matches only a dot).
16738 # func_strip_suffix prefix name
16739 func_stripname ()
16741 case ${2} in
16742 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16743 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16744 esac
16747 # sed scripts:
16748 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16749 my_sed_long_arg='1s/^-[^=]*=//'
16751 # func_opt_split
16752 func_opt_split ()
16754 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16755 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16758 # func_lo2o object
16759 func_lo2o ()
16761 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16764 # func_xform libobj-or-source
16765 func_xform ()
16767 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16770 # func_arith arithmetic-term...
16771 func_arith ()
16773 func_arith_result=`expr "$@"`
16776 # func_len string
16777 # STRING may not start with a hyphen.
16778 func_len ()
16780 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16783 _LT_EOF
16784 esac
16786 case $lt_shell_append in
16787 yes)
16788 cat << \_LT_EOF >> "$cfgfile"
16790 # func_append var value
16791 # Append VALUE to the end of shell variable VAR.
16792 func_append ()
16794 eval "$1+=\$2"
16796 _LT_EOF
16799 cat << \_LT_EOF >> "$cfgfile"
16801 # func_append var value
16802 # Append VALUE to the end of shell variable VAR.
16803 func_append ()
16805 eval "$1=\$$1\$2"
16808 _LT_EOF
16810 esac
16813 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16814 || (rm -f "$cfgfile"; exit 1)
16816 mv -f "$cfgfile" "$ofile" ||
16817 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16818 chmod +x "$ofile"
16821 cat <<_LT_EOF >> "$ofile"
16823 # ### BEGIN LIBTOOL TAG CONFIG: GO
16825 # The linker used to build libraries.
16826 LD=$lt_LD_GO
16828 # How to create reloadable object files.
16829 reload_flag=$lt_reload_flag_GO
16830 reload_cmds=$lt_reload_cmds_GO
16832 # Commands used to build an old-style archive.
16833 old_archive_cmds=$lt_old_archive_cmds_GO
16835 # A language specific compiler.
16836 CC=$lt_compiler_GO
16838 # Is the compiler the GNU compiler?
16839 with_gcc=$GCC_GO
16841 # Compiler flag to turn off builtin functions.
16842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16844 # How to pass a linker flag through the compiler.
16845 wl=$lt_lt_prog_compiler_wl_GO
16847 # Additional compiler flags for building library objects.
16848 pic_flag=$lt_lt_prog_compiler_pic_GO
16850 # Compiler flag to prevent dynamic linking.
16851 link_static_flag=$lt_lt_prog_compiler_static_GO
16853 # Does compiler simultaneously support -c and -o options?
16854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16856 # Whether or not to add -lc for building shared libraries.
16857 build_libtool_need_lc=$archive_cmds_need_lc_GO
16859 # Whether or not to disallow shared libs when runtime libs are static.
16860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16862 # Compiler flag to allow reflexive dlopens.
16863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16865 # Compiler flag to generate shared objects directly from archives.
16866 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16868 # Whether the compiler copes with passing no objects directly.
16869 compiler_needs_object=$lt_compiler_needs_object_GO
16871 # Create an old-style archive from a shared archive.
16872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16874 # Create a temporary old-style archive to link instead of a shared archive.
16875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16877 # Commands used to build a shared archive.
16878 archive_cmds=$lt_archive_cmds_GO
16879 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16881 # Commands used to build a loadable module if different from building
16882 # a shared archive.
16883 module_cmds=$lt_module_cmds_GO
16884 module_expsym_cmds=$lt_module_expsym_cmds_GO
16886 # Whether we are building with GNU ld or not.
16887 with_gnu_ld=$lt_with_gnu_ld_GO
16889 # Flag that allows shared libraries with undefined symbols to be built.
16890 allow_undefined_flag=$lt_allow_undefined_flag_GO
16892 # Flag that enforces no undefined symbols.
16893 no_undefined_flag=$lt_no_undefined_flag_GO
16895 # Flag to hardcode \$libdir into a binary during linking.
16896 # This must work even if \$libdir does not exist
16897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16899 # If ld is used when linking, flag to hardcode \$libdir into a binary
16900 # during linking. This must work even if \$libdir does not exist.
16901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16903 # Whether we need a single "-rpath" flag with a separated argument.
16904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16907 # DIR into the resulting binary.
16908 hardcode_direct=$hardcode_direct_GO
16910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16911 # DIR into the resulting binary and the resulting library dependency is
16912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16913 # library is relocated.
16914 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16917 # into the resulting binary.
16918 hardcode_minus_L=$hardcode_minus_L_GO
16920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16921 # into the resulting binary.
16922 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16924 # Set to "yes" if building a shared library automatically hardcodes DIR
16925 # into the library and all subsequent libraries and executables linked
16926 # against it.
16927 hardcode_automatic=$hardcode_automatic_GO
16929 # Set to yes if linker adds runtime paths of dependent libraries
16930 # to runtime path list.
16931 inherit_rpath=$inherit_rpath_GO
16933 # Whether libtool must link a program against all its dependency libraries.
16934 link_all_deplibs=$link_all_deplibs_GO
16936 # Fix the shell variable \$srcfile for the compiler.
16937 fix_srcfile_path=$lt_fix_srcfile_path_GO
16939 # Set to "yes" if exported symbols are required.
16940 always_export_symbols=$always_export_symbols_GO
16942 # The commands to list exported symbols.
16943 export_symbols_cmds=$lt_export_symbols_cmds_GO
16945 # Symbols that should not be listed in the preloaded symbols.
16946 exclude_expsyms=$lt_exclude_expsyms_GO
16948 # Symbols that must always be exported.
16949 include_expsyms=$lt_include_expsyms_GO
16951 # Commands necessary for linking programs (against libraries) with templates.
16952 prelink_cmds=$lt_prelink_cmds_GO
16954 # Specify filename containing input files.
16955 file_list_spec=$lt_file_list_spec_GO
16957 # How to hardcode a shared library path into an executable.
16958 hardcode_action=$hardcode_action_GO
16960 # ### END LIBTOOL TAG CONFIG: GO
16961 _LT_EOF
16964 "default":C) if test -n "$CONFIG_FILES"; then
16965 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16966 # that multilib installs will end up installed in the correct place.
16967 # The testsuite needs it for multilib-aware ABI baseline files.
16968 # To work around this not being passed down from config-ml.in ->
16969 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16970 # append it here. Only modify Makefiles that have just been created.
16972 # Also, get rid of this simulated-VPATH thing that automake does.
16973 cat > vpsed << \_EOF
16974 s!`test -f '$<' || echo '$(srcdir)/'`!!
16975 _EOF
16976 for i in $SUBDIRS; do
16977 case $CONFIG_FILES in
16978 *${i}/Makefile*)
16979 #echo "Adding MULTISUBDIR to $i/Makefile"
16980 sed -f vpsed $i/Makefile > tmp
16981 grep '^MULTISUBDIR =' Makefile >> tmp
16982 mv tmp $i/Makefile
16984 esac
16985 done
16986 rm vpsed
16990 esac
16991 done # for ac_tag
16994 as_fn_exit 0
16995 _ACEOF
16996 ac_clean_files=$ac_clean_files_save
16998 test $ac_write_fail = 0 ||
16999 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17002 # configure is writing to config.log, and then calls config.status.
17003 # config.status does its own redirection, appending to config.log.
17004 # Unfortunately, on DOS this fails, as config.log is still kept open
17005 # by configure, so config.status won't be able to write to it; its
17006 # output is simply discarded. So we exec the FD to /dev/null,
17007 # effectively closing config.log, so it can be properly (re)opened and
17008 # appended to by config.status. When coming back to configure, we
17009 # need to make the FD available again.
17010 if test "$no_create" != yes; then
17011 ac_cs_success=:
17012 ac_config_status_args=
17013 test "$silent" = yes &&
17014 ac_config_status_args="$ac_config_status_args --quiet"
17015 exec 5>/dev/null
17016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17017 exec 5>>config.log
17018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17019 # would make configure fail if this is the last instruction.
17020 $ac_cs_success || as_fn_exit $?
17022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}