Daily bump.
[official-gcc.git] / libgo / configure
blobfbf6297b67b857a50f32954941b3bf99470a949d
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_WAIT4_FALSE
607 HAVE_WAIT4_TRUE
608 HAVE_STRERROR_R_FALSE
609 HAVE_STRERROR_R_TRUE
610 HAVE_SYS_MMAN_H_FALSE
611 HAVE_SYS_MMAN_H_TRUE
612 PTHREAD_LIBS
613 PTHREAD_CFLAGS
614 NET_LIBS
615 MATH_LIBS
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
618 SPLIT_STACK
619 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
620 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
621 GOARCH
622 LIBGO_IS_X86_64_FALSE
623 LIBGO_IS_X86_64_TRUE
624 LIBGO_IS_SPARC64_FALSE
625 LIBGO_IS_SPARC64_TRUE
626 LIBGO_IS_SPARC_FALSE
627 LIBGO_IS_SPARC_TRUE
628 LIBGO_IS_PPC64_FALSE
629 LIBGO_IS_PPC64_TRUE
630 LIBGO_IS_PPC_FALSE
631 LIBGO_IS_PPC_TRUE
632 LIBGO_IS_MIPS64_FALSE
633 LIBGO_IS_MIPS64_TRUE
634 LIBGO_IS_MIPS_FALSE
635 LIBGO_IS_MIPS_TRUE
636 LIBGO_IS_M68K_FALSE
637 LIBGO_IS_M68K_TRUE
638 LIBGO_IS_ARM_FALSE
639 LIBGO_IS_ARM_TRUE
640 LIBGO_IS_386_FALSE
641 LIBGO_IS_386_TRUE
642 GOOS
643 LIBGO_IS_SOLARIS_FALSE
644 LIBGO_IS_SOLARIS_TRUE
645 LIBGO_IS_RTEMS_FALSE
646 LIBGO_IS_RTEMS_TRUE
647 LIBGO_IS_LINUX_FALSE
648 LIBGO_IS_LINUX_TRUE
649 LIBGO_IS_FREEBSD_FALSE
650 LIBGO_IS_FREEBSD_TRUE
651 LIBGO_IS_DARWIN_FALSE
652 LIBGO_IS_DARWIN_TRUE
653 LIBFFIINCS
654 LIBFFI
655 glibgo_toolexeclibdir
656 glibgo_toolexecdir
657 glibgo_prefixdir
658 WERROR
659 WARN_FLAGS
660 enable_static
661 enable_shared
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
669 OBJDUMP
670 LN_S
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LIBTOOL
675 OBJCOPY
676 RANLIB
678 FGREP
679 EGREP
680 GREP
682 MAINT
683 MAINTAINER_MODE_FALSE
684 MAINTAINER_MODE_TRUE
685 GOCFLAGS
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_os
727 target_vendor
728 target_cpu
729 target
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 multi_basedir
739 libtool_VERSION
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_multilib
782 enable_dependency_tracking
783 enable_maintainer_mode
784 with_gnu_ld
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 enable_libtool_lock
790 enable_version_specific_runtime_libs
791 with_libffi
792 with_system_libunwind
793 enable_sjlj_exceptions
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CPPFLAGS'
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
850 ac_prev=
851 ac_dashdash=
852 for ac_option
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
861 case $ac_option in
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *) ac_optarg=yes ;;
864 esac
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
870 ac_dashdash=yes ;;
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
889 --config-cache | -C)
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information."
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used." >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1293 /^X\(\/\/\)$/{
1294 s//\1/
1297 /^X\(\/\).*/{
1298 s//\1/
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1306 else
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1396 cat <<\_ACEOF
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1407 _ACEOF
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of package-unused version-unused:";;
1413 esac
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-multilib build many library versions (default)
1421 --disable-dependency-tracking speeds up one-time build
1422 --enable-dependency-tracking do not reject slow dependency extractors
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --enable-version-specific-runtime-libs
1431 Specify that runtime libraries should be installed
1432 in a compiler-specific directory
1433 --enable-sjlj-exceptions
1434 force use of builtin_setjmp for exceptions
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --without-libffi don't use libffi
1443 --with-system-libunwind use installed libunwind
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 GOC Go compiler command
1454 GOCFLAGS Go compiler flags
1455 CPP C preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to the package provider.
1461 _ACEOF
1462 ac_status=$?
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 package-unused configure version-unused
1524 generated by GNU Autoconf 2.64
1526 Copyright (C) 2009 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 $as_test_x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 return $ac_retval
1619 } # ac_fn_c_try_link
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1631 $as_echo_n "(cached) " >&6
1632 else
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"; then :
1639 eval "$3=yes"
1640 else
1641 eval "$3=no"
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 } # ac_fn_c_check_header_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } >/dev/null && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=1
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685 return $ac_retval
1687 } # ac_fn_c_try_cpp
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_func LINENO FUNC VAR
1732 # ----------------------------------
1733 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1734 ac_fn_c_check_func ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1746 #define $2 innocuous_$2
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char $2 (); below.
1750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1751 <limits.h> exists even on freestanding compilers. */
1753 #ifdef __STDC__
1754 # include <limits.h>
1755 #else
1756 # include <assert.h>
1757 #endif
1759 #undef $2
1761 /* Override any GCC internal prototype to avoid an error.
1762 Use char because int might match the return type of a GCC
1763 builtin and then its argument prototype would still apply. */
1764 #ifdef __cplusplus
1765 extern "C"
1766 #endif
1767 char $2 ();
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined __stub_$2 || defined __stub___$2
1772 choke me
1773 #endif
1776 main ()
1778 return $2 ();
1780 return 0;
1782 _ACEOF
1783 if ac_fn_c_try_link "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext \
1789 conftest$ac_exeext conftest.$ac_ext
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_func
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1802 # accordingly.
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 else
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1826 else
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1842 else
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 yes:no: )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 no:yes:* )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1886 # -------------------------------------------
1887 # Tests whether TYPE exists after having included INCLUDES, setting cache
1888 # variable VAR accordingly.
1889 ac_fn_c_check_type ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 eval "$3=no"
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1902 main ()
1904 if (sizeof ($2))
1905 return 0;
1907 return 0;
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 main ()
1917 if (sizeof (($2)))
1918 return 0;
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1925 else
1926 eval "$3=yes"
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_c_check_type
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1942 It was created by package-unused $as_me version-unused, which was
1943 generated by GNU Autoconf 2.64. Invocation command line was
1945 $ $0 $@
1947 _ACEOF
1948 exec 5>>config.log
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972 _ASUNAME
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1983 } >&5
1985 cat >&5 <<_ACEOF
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1992 _ACEOF
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2006 for ac_arg
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2035 as_fn_append ac_configure_args " '$ac_arg'"
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2051 echo
2053 cat <<\_ASBOX
2054 ## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##
2057 _ASBOX
2058 echo
2059 # The following way of writing the cache mishandles newlines in values,
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in #(
2064 *${as_nl}*)
2065 case $ac_var in #(
2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068 esac
2069 case $ac_var in #(
2070 _ | IFS | as_nl) ;; #(
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072 *) { eval $ac_var=; unset $ac_var;} ;;
2073 esac ;;
2074 esac
2075 done
2076 (set) 2>&1 |
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078 *${as_nl}ac_space=\ *)
2079 sed -n \
2080 "s/'\''/'\''\\\\'\'''\''/g;
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082 ;; #(
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 esac |
2087 sort
2089 echo
2091 cat <<\_ASBOX
2092 ## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##
2095 _ASBOX
2096 echo
2097 for ac_var in $ac_subst_vars
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2107 if test -n "$ac_subst_files"; then
2108 cat <<\_ASBOX
2109 ## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##
2112 _ASBOX
2113 echo
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
2121 done | sort
2122 echo
2125 if test -s confdefs.h; then
2126 cat <<\_ASBOX
2127 ## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##
2130 _ASBOX
2131 echo
2132 cat confdefs.h
2133 echo
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2138 } >&5
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 exit $exit_status
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 done
2146 ac_signal=0
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2151 $as_echo "/* confdefs.h */" > confdefs.h
2153 # Predefined preprocessor variables.
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 _ACEOF
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_URL "$PACKAGE_URL"
2177 _ACEOF
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 ac_site_file1=NONE
2183 ac_site_file2=NONE
2184 if test -n "$CONFIG_SITE"; then
2185 ac_site_file1=$CONFIG_SITE
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2189 else
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 test "x$ac_site_file" = xNONE && continue
2196 if test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2200 . "$ac_site_file"
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special
2206 # files actually), so we avoid doing that.
2207 if test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 ac_config_headers="$ac_config_headers config.h"
2296 libtool_VERSION=1:0:0
2299 # Default to --enable-multilib
2300 # Check whether --enable-multilib was given.
2301 if test "${enable_multilib+set}" = set; then :
2302 enableval=$enable_multilib; case "$enableval" in
2303 yes) multilib=yes ;;
2304 no) multilib=no ;;
2305 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2306 esac
2307 else
2308 multilib=yes
2312 # We may get other options which we leave undocumented:
2313 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2314 # See config-ml.in if you want the gory details.
2316 if test "$srcdir" = "."; then
2317 if test "$with_target_subdir" != "."; then
2318 multi_basedir="$srcdir/$with_multisrctop../.."
2319 else
2320 multi_basedir="$srcdir/$with_multisrctop.."
2322 else
2323 multi_basedir="$srcdir/.."
2327 # Even if the default multilib is not a cross compilation,
2328 # it may be that some of the other multilibs are.
2329 if test $cross_compiling = no && test $multilib = yes \
2330 && test "x${with_multisubdir}" != x ; then
2331 cross_compiling=maybe
2334 ac_config_commands="$ac_config_commands default-1"
2337 ac_aux_dir=
2338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2339 for ac_t in install-sh install.sh shtool; do
2340 if test -f "$ac_dir/$ac_t"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/$ac_t -c"
2343 break 2
2345 done
2346 done
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if test "${ac_cv_build+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2399 $as_echo_n "checking host system type... " >&6; }
2400 if test "${ac_cv_host+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test "x$host_alias" = x; then
2404 ac_cv_host=$ac_cv_build
2405 else
2406 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2407 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2412 $as_echo "$ac_cv_host" >&6; }
2413 case $ac_cv_host in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2416 esac
2417 host=$ac_cv_host
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_host
2420 shift
2421 host_cpu=$1
2422 host_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 host_os=$*
2427 IFS=$ac_save_IFS
2428 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2432 $as_echo_n "checking target system type... " >&6; }
2433 if test "${ac_cv_target+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test "x$target_alias" = x; then
2437 ac_cv_target=$ac_cv_host
2438 else
2439 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2445 $as_echo "$ac_cv_target" >&6; }
2446 case $ac_cv_target in
2447 *-*-*) ;;
2448 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2449 esac
2450 target=$ac_cv_target
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_target
2453 shift
2454 target_cpu=$1
2455 target_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 target_os=$*
2460 IFS=$ac_save_IFS
2461 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2464 # The aliases save the names the user supplied, while $host etc.
2465 # will get canonicalized.
2466 test -n "$target_alias" &&
2467 test "$program_prefix$program_suffix$program_transform_name" = \
2468 NONENONEs,x,x, &&
2469 program_prefix=${target_alias}-
2471 target_alias=${target_alias-$host_alias}
2473 am__api_version='1.11'
2475 # Find a good install program. We prefer a C program (faster),
2476 # so one script is as good as another. But avoid the broken or
2477 # incompatible versions:
2478 # SysV /etc/install, /usr/sbin/install
2479 # SunOS /usr/etc/install
2480 # IRIX /sbin/install
2481 # AIX /bin/install
2482 # AmigaOS /C/install, which installs bootblocks on floppy discs
2483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486 # OS/2's system install, which has a completely different semantic
2487 # ./install, which can be erroneously created by make from ./install.sh.
2488 # Reject install programs that cannot install multiple files.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2491 if test -z "$INSTALL"; then
2492 if test "${ac_cv_path_install+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501 case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 /usr/ucb/* ) ;;
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2509 # by default.
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2521 else
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2525 mkdir conftest.dir
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2530 then
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2536 done
2537 done
2539 esac
2541 done
2542 IFS=$as_save_IFS
2544 rm -rf conftest.one conftest.two conftest.dir
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558 $as_echo "$INSTALL" >&6; }
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569 $as_echo_n "checking whether build environment is sane... " >&6; }
2570 # Just in case
2571 sleep 1
2572 echo timestamp > conftest.file
2573 # Reject unsafe characters in $srcdir or the absolute working directory
2574 # name. Accept space and tab only in the latter.
2575 am_lf='
2577 case `pwd` in
2578 *[\\\"\#\$\&\'\`$am_lf]*)
2579 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2580 esac
2581 case $srcdir in
2582 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2583 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2584 esac
2586 # Do `set' in a subshell so we don't clobber the current shell's
2587 # arguments. Must try -L first in case configure is actually a
2588 # symlink; some systems play weird games with the mod time of symlinks
2589 # (eg FreeBSD returns the mod time of the symlink's containing
2590 # directory).
2591 if (
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2594 # -L didn't work.
2595 set X `ls -t "$srcdir/configure" conftest.file`
2597 rm -f conftest.file
2598 if test "$*" != "X $srcdir/configure conftest.file" \
2599 && test "$*" != "X conftest.file $srcdir/configure"; then
2601 # If neither matched, then we have a broken ls. This can happen
2602 # if, for instance, CONFIG_SHELL is bash and it inherits a
2603 # broken ls alias from the environment. This has actually
2604 # happened. Such a system could not be considered "sane".
2605 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2606 alias in your environment" "$LINENO" 5
2609 test "$2" = conftest.file
2611 then
2612 # Ok.
2614 else
2615 as_fn_error "newly created file is older than distributed files!
2616 Check your system clock" "$LINENO" 5
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 test "$program_prefix" != NONE &&
2621 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2622 # Use a double $ so make ignores it.
2623 test "$program_suffix" != NONE &&
2624 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2625 # Double any \ or $.
2626 # By default was `s,x,x', remove it if useless.
2627 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2628 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2633 if test x"${MISSING+set}" != xset; then
2634 case $am_aux_dir in
2635 *\ * | *\ *)
2636 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2638 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2639 esac
2641 # Use eval to expand $SHELL
2642 if eval "$MISSING --run true"; then
2643 am_missing_run="$MISSING --run "
2644 else
2645 am_missing_run=
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2647 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650 if test x"${install_sh}" != xset; then
2651 case $am_aux_dir in
2652 *\ * | *\ *)
2653 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2655 install_sh="\${SHELL} $am_aux_dir/install-sh"
2656 esac
2659 # Installed binaries are usually stripped using `strip' when the user
2660 # run `make install-strip'. However `strip' might not be the right
2661 # tool to use in cross-compilation environments, therefore Automake
2662 # will honor the `STRIP' environment variable to overrule this program.
2663 if test "$cross_compiling" != no; then
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_STRIP+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$STRIP"; then
2673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2686 done
2687 done
2688 IFS=$as_save_IFS
2692 STRIP=$ac_cv_prog_STRIP
2693 if test -n "$STRIP"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2695 $as_echo "$STRIP" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$ac_cv_prog_STRIP"; then
2704 ac_ct_STRIP=$STRIP
2705 # Extract the first word of "strip", so it can be a program name with args.
2706 set dummy strip; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$ac_ct_STRIP"; then
2713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_STRIP="strip"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2733 if test -n "$ac_ct_STRIP"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2735 $as_echo "$ac_ct_STRIP" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2741 if test "x$ac_ct_STRIP" = x; then
2742 STRIP=":"
2743 else
2744 case $cross_compiling:$ac_tool_warned in
2745 yes:)
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748 ac_tool_warned=yes ;;
2749 esac
2750 STRIP=$ac_ct_STRIP
2752 else
2753 STRIP="$ac_cv_prog_STRIP"
2757 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2760 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2761 if test -z "$MKDIR_P"; then
2762 if test "${ac_cv_path_mkdir+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_prog in mkdir gmkdir; do
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2773 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2774 'mkdir (GNU coreutils) '* | \
2775 'mkdir (coreutils) '* | \
2776 'mkdir (fileutils) '4.1*)
2777 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2778 break 3;;
2779 esac
2780 done
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 if test "${ac_cv_path_mkdir+set}" = set; then
2788 MKDIR_P="$ac_cv_path_mkdir -p"
2789 else
2790 # As a last resort, use the slow shell script. Don't cache a
2791 # value for MKDIR_P within a source directory, because that will
2792 # break other packages using the cache if that directory is
2793 # removed, or if the value is a relative name.
2794 test -d ./--version && rmdir ./--version
2795 MKDIR_P="$ac_install_sh -d"
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2799 $as_echo "$MKDIR_P" >&6; }
2801 mkdir_p="$MKDIR_P"
2802 case $mkdir_p in
2803 [\\/$]* | ?:[\\/]*) ;;
2804 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2805 esac
2807 for ac_prog in gawk mawk nawk awk
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_AWK+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_AWK="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2832 IFS=$as_save_IFS
2836 AWK=$ac_cv_prog_AWK
2837 if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839 $as_echo "$AWK" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2846 test -n "$AWK" && break
2847 done
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2851 set x ${MAKE-make}
2852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 cat >conftest.make <<\_ACEOF
2857 SHELL = /bin/sh
2858 all:
2859 @echo '@@@%%%=$(MAKE)=@@@%%%'
2860 _ACEOF
2861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2863 *@@@%%%=?*=@@@%%%*)
2864 eval ac_cv_prog_make_${ac_make}_set=yes;;
2866 eval ac_cv_prog_make_${ac_make}_set=no;;
2867 esac
2868 rm -f conftest.make
2870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 SET_MAKE=
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 SET_MAKE="MAKE=${MAKE-make}"
2880 rm -rf .tst 2>/dev/null
2881 mkdir .tst 2>/dev/null
2882 if test -d .tst; then
2883 am__leading_dot=.
2884 else
2885 am__leading_dot=_
2887 rmdir .tst 2>/dev/null
2889 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891 # is not polluted with repeated "-I."
2892 am__isrc=' -I$(srcdir)'
2893 # test to see if srcdir already configured
2894 if test -f $srcdir/config.status; then
2895 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2903 else
2904 CYGPATH_W=echo
2909 # Define the identity of the package.
2910 PACKAGE='libgo'
2911 VERSION='version-unused'
2914 # Some tools Automake needs.
2916 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2930 # We need awk for the "check" target. The system "awk" is bad on
2931 # some platforms.
2932 # Always define AMTAR for backward compatibility.
2934 AMTAR=${AMTAR-"${am_missing_run}tar"}
2936 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2976 IFS=$as_save_IFS
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2991 if test -z "$ac_cv_prog_CC"; then
2992 ac_ct_CC=$CC
2993 # Extract the first word of "gcc", so it can be a program name with args.
2994 set dummy gcc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC="gcc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3014 done
3015 done
3016 IFS=$as_save_IFS
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 $as_echo "$ac_ct_CC" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3040 else
3041 CC="$ac_cv_prog_CC"
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 ac_prog_rejected=no
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected=yes
3106 continue
3108 ac_cv_prog_CC="cc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy $ac_cv_prog_CC
3119 shift
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3124 shift
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$CC" && break
3183 done
3185 if test -z "$CC"; then
3186 ac_ct_CC=$CC
3187 for ac_prog in cl.exe
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$ac_ct_CC" && break
3227 done
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236 ac_tool_warned=yes ;;
3237 esac
3238 CC=$ac_ct_CC
3245 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error "no acceptable C compiler found in \$PATH
3248 See \`config.log' for more details." "$LINENO" 5; }
3250 # Provide some information about the compiler.
3251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252 set X $ac_compile
3253 ac_compiler=$2
3254 for ac_option in --version -v -V -qversion; do
3255 { { ac_try="$ac_compiler $ac_option >&5"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263 ac_status=$?
3264 if test -s conftest.err; then
3265 sed '10a\
3266 ... rest of stderr output deleted ...
3267 10q' conftest.err >conftest.er1
3268 cat conftest.er1 >&5
3269 rm -f conftest.er1 conftest.err
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 done
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 ac_clean_files_save=$ac_clean_files
3287 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3288 # Try to create an executable without -o first, disregard a.out.
3289 # It will help us diagnose broken compilers, and finding out an intuition
3290 # of exeext.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3292 $as_echo_n "checking for C compiler default output file name... " >&6; }
3293 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3295 # The possible output files:
3296 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3298 ac_rmfiles=
3299 for ac_file in $ac_files
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304 esac
3305 done
3306 rm -f $ac_rmfiles
3308 if { { ac_try="$ac_link_default"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link_default") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3322 # so that the user can short-circuit this test for compilers unknown to
3323 # Autoconf.
3324 for ac_file in $ac_files ''
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3330 [ab].out )
3331 # We found the default executable, but exeext='' is most
3332 # certainly right.
3333 break;;
3334 *.* )
3335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336 then :; else
3337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 # We set ac_cv_exeext here because the later test for it is not
3340 # safe: cross compilers may not add the suffix if given an `-o'
3341 # argument, so we may need to know it at that point already.
3342 # Even if this section looks crufty: it has the advantage of
3343 # actually working.
3344 break;;
3346 break;;
3347 esac
3348 done
3349 test "$ac_cv_exeext" = no && ac_cv_exeext=
3351 else
3352 ac_file=''
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 if test -z "$ac_file"; then :
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 { as_fn_set_status 77
3363 as_fn_error "C compiler cannot create executables
3364 See \`config.log' for more details." "$LINENO" 5; }; }
3366 ac_exeext=$ac_cv_exeext
3368 # Check that the compiler produces executables we can run. If not, either
3369 # the compiler is broken, or we cross compile.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3371 $as_echo_n "checking whether the C compiler works... " >&6; }
3372 # If not cross compiling, check that we can run a simple program.
3373 if test "$cross_compiling" != yes; then
3374 if { ac_try='./$ac_file'
3375 { { case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_try") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; }; then
3385 cross_compiling=no
3386 else
3387 if test "$cross_compiling" = maybe; then
3388 cross_compiling=yes
3389 else
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error "cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." "$LINENO" 5; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399 $as_echo "yes" >&6; }
3401 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3402 ac_clean_files=$ac_clean_files_save
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3411 $as_echo_n "checking for suffix of executables... " >&6; }
3412 if { { ac_try="$ac_link"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419 (eval "$ac_link") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }; then :
3423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3424 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3425 # work properly (i.e., refer to `conftest.exe'), while it won't with
3426 # `rm'.
3427 for ac_file in conftest.exe conftest conftest.*; do
3428 test -f "$ac_file" || continue
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 break;;
3433 * ) break;;
3434 esac
3435 done
3436 else
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error "cannot compute suffix of executables: cannot compile and link
3440 See \`config.log' for more details." "$LINENO" 5; }
3442 rm -f conftest$ac_cv_exeext
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3444 $as_echo "$ac_cv_exeext" >&6; }
3446 rm -f conftest.$ac_ext
3447 EXEEXT=$ac_cv_exeext
3448 ac_exeext=$EXEEXT
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450 $as_echo_n "checking for suffix of object files... " >&6; }
3451 if test "${ac_cv_objext+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3458 main ()
3462 return 0;
3464 _ACEOF
3465 rm -f conftest.o conftest.obj
3466 if { { ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compile") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482 break;;
3483 esac
3484 done
3485 else
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error "cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." "$LINENO" 5; }
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497 $as_echo "$ac_cv_objext" >&6; }
3498 OBJEXT=$ac_cv_objext
3499 ac_objext=$OBJEXT
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3509 main ()
3511 #ifndef __GNUC__
3512 choke me
3513 #endif
3516 return 0;
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_compiler_gnu=yes
3521 else
3522 ac_compiler_gnu=no
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530 if test $ac_compiler_gnu = yes; then
3531 GCC=yes
3532 else
3533 GCC=
3535 ac_test_CFLAGS=${CFLAGS+set}
3536 ac_save_CFLAGS=$CFLAGS
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3539 if test "${ac_cv_prog_cc_g+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 ac_save_c_werror_flag=$ac_c_werror_flag
3543 ac_c_werror_flag=yes
3544 ac_cv_prog_cc_g=no
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_g=yes
3559 else
3560 CFLAGS=""
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3565 main ()
3569 return 0;
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3574 else
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3581 main ()
3585 return 0;
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_g=yes
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3604 CFLAGS="-g -O2"
3605 else
3606 CFLAGS="-g"
3608 else
3609 if test "$GCC" = yes; then
3610 CFLAGS="-O2"
3611 else
3612 CFLAGS=
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 ac_cv_prog_cc_c89=no
3621 ac_save_CC=$CC
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <stdarg.h>
3625 #include <stdio.h>
3626 #include <sys/types.h>
3627 #include <sys/stat.h>
3628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3629 struct buf { int x; };
3630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631 static char *e (p, i)
3632 char **p;
3633 int i;
3635 return p[i];
3637 static char *f (char * (*g) (char **, int), char **p, ...)
3639 char *s;
3640 va_list v;
3641 va_start (v,p);
3642 s = g (p, va_arg (v,int));
3643 va_end (v);
3644 return s;
3647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3648 function prototypes and stuff, but not '\xHH' hex character constants.
3649 These don't provoke an error unfortunately, instead are silently treated
3650 as 'x'. The following induces an error, until -std is added to get
3651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3652 array size at least. It's necessary to write '\x00'==0 to get something
3653 that's true only with -std. */
3654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657 inside strings and character constants. */
3658 #define FOO(x) 'x'
3659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 int argc;
3666 char **argv;
3668 main ()
3670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3672 return 0;
3674 _ACEOF
3675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678 CC="$ac_save_CC $ac_arg"
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_c89=$ac_arg
3682 rm -f core conftest.err conftest.$ac_objext
3683 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 done
3685 rm -f conftest.$ac_ext
3686 CC=$ac_save_CC
3689 # AC_CACHE_VAL
3690 case "x$ac_cv_prog_cc_c89" in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693 $as_echo "none needed" >&6; } ;;
3694 xno)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696 $as_echo "unsupported" >&6; } ;;
3698 CC="$CC $ac_cv_prog_cc_c89"
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 esac
3702 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 DEPDIR="${am__leading_dot}deps"
3713 ac_config_commands="$ac_config_commands depfiles"
3716 am_make=${MAKE-make}
3717 cat > confinc << 'END'
3718 am__doit:
3719 @echo this is the am__doit target
3720 .PHONY: am__doit
3722 # If we don't find an include directive, just comment out the code.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3724 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3725 am__include="#"
3726 am__quote=
3727 _am_result=none
3728 # First try GNU make style include.
3729 echo "include confinc" > confmf
3730 # Ignore all kinds of additional output from `make'.
3731 case `$am_make -s -f confmf 2> /dev/null` in #(
3732 *the\ am__doit\ target*)
3733 am__include=include
3734 am__quote=
3735 _am_result=GNU
3737 esac
3738 # Now try BSD make style include.
3739 if test "$am__include" = "#"; then
3740 echo '.include "confinc"' > confmf
3741 case `$am_make -s -f confmf 2> /dev/null` in #(
3742 *the\ am__doit\ target*)
3743 am__include=.include
3744 am__quote="\""
3745 _am_result=BSD
3747 esac
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3752 $as_echo "$_am_result" >&6; }
3753 rm -f confinc confmf
3755 # Check whether --enable-dependency-tracking was given.
3756 if test "${enable_dependency_tracking+set}" = set; then :
3757 enableval=$enable_dependency_tracking;
3760 if test "x$enable_dependency_tracking" != xno; then
3761 am_depcomp="$ac_aux_dir/depcomp"
3762 AMDEPBACKSLASH='\'
3764 if test "x$enable_dependency_tracking" != xno; then
3765 AMDEP_TRUE=
3766 AMDEP_FALSE='#'
3767 else
3768 AMDEP_TRUE='#'
3769 AMDEP_FALSE=
3774 depcc="$CC" am_compiler_list=
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named `D' -- because `-MD' means `put the output
3786 # in D'.
3787 mkdir conftest.dir
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3791 cd conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3797 # directory.
3798 mkdir sub
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 am__universal=false
3805 case " $depcc " in #(
3806 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807 esac
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3817 : > sub/conftest.c
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3823 done
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827 # mode. It turns out that the SunPro C++ compiler does not properly
3828 # handle `-M -o', and we need to detect this. Also, some Intel
3829 # versions had trouble with output in subdirs
3830 am__obj=sub/conftest.${OBJEXT-o}
3831 am__minus_obj="-o $am__obj"
3832 case $depmode in
3833 gcc)
3834 # This depmode causes a compiler race in universal mode.
3835 test "$am__universal" = false || continue
3837 nosideeffect)
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3841 continue
3842 else
3843 break
3846 msvisualcpp | msvcmsys)
3847 # This compiler won't grok `-c -o', but also, the minuso test has
3848 # not run yet. These depmodes are late enough in the game, and
3849 # so weak that their functioning should not be impacted.
3850 am__obj=conftest.${OBJEXT-o}
3851 am__minus_obj=
3853 none) break ;;
3854 esac
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=$am__obj \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3874 break
3877 done
3879 cd ..
3880 rm -rf conftest.dir
3881 else
3882 am_cv_CC_dependencies_compiler_type=none
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3901 ac_ext=go
3902 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3903 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compile_gnu=yes
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_GOC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$GOC"; then
3914 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3927 done
3928 done
3929 IFS=$as_save_IFS
3933 GOC=$ac_cv_prog_GOC
3934 if test -n "$GOC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3936 $as_echo "$GOC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3944 if test -z "$ac_cv_prog_GOC"; then
3945 ac_ct_GOC=$GOC
3946 # Extract the first word of "gccgo", so it can be a program name with args.
3947 set dummy gccgo; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$ac_ct_GOC"; then
3954 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_ac_ct_GOC="gccgo"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3974 if test -n "$ac_ct_GOC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3976 $as_echo "$ac_ct_GOC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3982 if test "x$ac_ct_GOC" = x; then
3983 GOC=""
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 GOC=$ac_ct_GOC
3993 else
3994 GOC="$ac_cv_prog_GOC"
3997 if test -z "$GOC"; then
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if test "${ac_cv_prog_GOC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$GOC"; then
4007 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4022 IFS=$as_save_IFS
4026 GOC=$ac_cv_prog_GOC
4027 if test -n "$GOC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4029 $as_echo "$GOC" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4038 if test -z "$GOC"; then
4039 # Extract the first word of "gccgo", so it can be a program name with args.
4040 set dummy gccgo; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_GOC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -n "$GOC"; then
4047 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4048 else
4049 ac_prog_rejected=no
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4058 ac_prog_rejected=yes
4059 continue
4061 ac_cv_prog_GOC="gccgo"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4065 done
4066 done
4067 IFS=$as_save_IFS
4069 if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_GOC
4072 shift
4073 if test $# != 0; then
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set GOC to just the basename; use the full file name.
4077 shift
4078 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4083 GOC=$ac_cv_prog_GOC
4084 if test -n "$GOC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4086 $as_echo "$GOC" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4096 # Provide some information about the compiler.
4097 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4098 set X $ac_compile
4099 ac_compiler=$2
4100 { { ac_try="$ac_compiler --version >&5"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_compiler --version >&5") 2>conftest.err
4108 ac_status=$?
4109 if test -s conftest.err; then
4110 sed '10a\
4111 ... rest of stderr output deleted ...
4112 10q' conftest.err >conftest.er1
4113 cat conftest.er1 >&5
4114 rm -f conftest.er1 conftest.err
4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117 test $ac_status = 0; }
4118 GOCFLAGS="-g -O2"
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4131 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4132 # Check whether --enable-maintainer-mode was given.
4133 if test "${enable_maintainer_mode+set}" = set; then :
4134 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4135 else
4136 USE_MAINTAINER_MODE=no
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4140 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4141 if test $USE_MAINTAINER_MODE = yes; then
4142 MAINTAINER_MODE_TRUE=
4143 MAINTAINER_MODE_FALSE='#'
4144 else
4145 MAINTAINER_MODE_TRUE='#'
4146 MAINTAINER_MODE_FALSE=
4149 MAINT=$MAINTAINER_MODE_TRUE
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4154 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4155 if test "${ac_cv_path_SED+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4159 for ac_i in 1 2 3 4 5 6 7; do
4160 ac_script="$ac_script$as_nl$ac_script"
4161 done
4162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4163 { ac_script=; unset ac_script;}
4164 if test -z "$SED"; then
4165 ac_path_SED_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_prog in sed gsed; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4175 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4176 # Check for GNU ac_path_SED and select it if it is found.
4177 # Check for GNU $ac_path_SED
4178 case `"$ac_path_SED" --version 2>&1` in
4179 *GNU*)
4180 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4182 ac_count=0
4183 $as_echo_n 0123456789 >"conftest.in"
4184 while :
4186 cat "conftest.in" "conftest.in" >"conftest.tmp"
4187 mv "conftest.tmp" "conftest.in"
4188 cp "conftest.in" "conftest.nl"
4189 $as_echo '' >> "conftest.nl"
4190 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192 as_fn_arith $ac_count + 1 && ac_count=$as_val
4193 if test $ac_count -gt ${ac_path_SED_max-0}; then
4194 # Best one so far, save it but keep looking for a better one
4195 ac_cv_path_SED="$ac_path_SED"
4196 ac_path_SED_max=$ac_count
4198 # 10*(2^10) chars as input seems more than enough
4199 test $ac_count -gt 10 && break
4200 done
4201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 esac
4204 $ac_path_SED_found && break 3
4205 done
4206 done
4207 done
4208 IFS=$as_save_IFS
4209 if test -z "$ac_cv_path_SED"; then
4210 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4212 else
4213 ac_cv_path_SED=$SED
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4218 $as_echo "$ac_cv_path_SED" >&6; }
4219 SED="$ac_cv_path_SED"
4220 rm -f conftest.sed
4222 test -z "$SED" && SED=sed
4223 Xsed="$SED -e 1s/^X//"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4236 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4237 if test "${ac_cv_path_GREP+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -z "$GREP"; then
4241 ac_path_GREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in grep ggrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252 # Check for GNU ac_path_GREP and select it if it is found.
4253 # Check for GNU $ac_path_GREP
4254 case `"$ac_path_GREP" --version 2>&1` in
4255 *GNU*)
4256 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4258 ac_count=0
4259 $as_echo_n 0123456789 >"conftest.in"
4260 while :
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo 'GREP' >> "conftest.nl"
4266 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 as_fn_arith $ac_count + 1 && ac_count=$as_val
4269 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_GREP="$ac_path_GREP"
4272 ac_path_GREP_max=$ac_count
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4276 done
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4280 $ac_path_GREP_found && break 3
4281 done
4282 done
4283 done
4284 IFS=$as_save_IFS
4285 if test -z "$ac_cv_path_GREP"; then
4286 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 else
4289 ac_cv_path_GREP=$GREP
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4294 $as_echo "$ac_cv_path_GREP" >&6; }
4295 GREP="$ac_cv_path_GREP"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4299 $as_echo_n "checking for egrep... " >&6; }
4300 if test "${ac_cv_path_EGREP+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4304 then ac_cv_path_EGREP="$GREP -E"
4305 else
4306 if test -z "$EGREP"; then
4307 ac_path_EGREP_found=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in egrep; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4317 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4318 # Check for GNU ac_path_EGREP and select it if it is found.
4319 # Check for GNU $ac_path_EGREP
4320 case `"$ac_path_EGREP" --version 2>&1` in
4321 *GNU*)
4322 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 ac_count=0
4325 $as_echo_n 0123456789 >"conftest.in"
4326 while :
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo 'EGREP' >> "conftest.nl"
4332 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334 as_fn_arith $ac_count + 1 && ac_count=$as_val
4335 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_EGREP="$ac_path_EGREP"
4338 ac_path_EGREP_max=$ac_count
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4342 done
4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4346 $ac_path_EGREP_found && break 3
4347 done
4348 done
4349 done
4350 IFS=$as_save_IFS
4351 if test -z "$ac_cv_path_EGREP"; then
4352 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4354 else
4355 ac_cv_path_EGREP=$EGREP
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4361 $as_echo "$ac_cv_path_EGREP" >&6; }
4362 EGREP="$ac_cv_path_EGREP"
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4366 $as_echo_n "checking for fgrep... " >&6; }
4367 if test "${ac_cv_path_FGREP+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4371 then ac_cv_path_FGREP="$GREP -F"
4372 else
4373 if test -z "$FGREP"; then
4374 ac_path_FGREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_prog in fgrep; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4384 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4385 # Check for GNU ac_path_FGREP and select it if it is found.
4386 # Check for GNU $ac_path_FGREP
4387 case `"$ac_path_FGREP" --version 2>&1` in
4388 *GNU*)
4389 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'FGREP' >> "conftest.nl"
4399 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401 as_fn_arith $ac_count + 1 && ac_count=$as_val
4402 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_FGREP="$ac_path_FGREP"
4405 ac_path_FGREP_max=$ac_count
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 esac
4413 $ac_path_FGREP_found && break 3
4414 done
4415 done
4416 done
4417 IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_FGREP"; then
4419 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421 else
4422 ac_cv_path_FGREP=$FGREP
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4428 $as_echo "$ac_cv_path_FGREP" >&6; }
4429 FGREP="$ac_cv_path_FGREP"
4432 test -z "$GREP" && GREP=grep
4450 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4451 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4455 $as_echo_n "checking how to print strings... " >&6; }
4456 # Test print first, because it will be a builtin if present.
4457 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4458 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4459 ECHO='print -r --'
4460 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4461 ECHO='printf %s\n'
4462 else
4463 # Use this function as a fallback that always works.
4464 func_fallback_echo ()
4466 eval 'cat <<_LTECHO_EOF
4468 _LTECHO_EOF'
4470 ECHO='func_fallback_echo'
4473 # func_echo_all arg...
4474 # Invoke $ECHO with all args, space-separated.
4475 func_echo_all ()
4477 $ECHO ""
4480 case "$ECHO" in
4481 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4482 $as_echo "printf" >&6; } ;;
4483 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4484 $as_echo "print -r" >&6; } ;;
4485 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4486 $as_echo "cat" >&6; } ;;
4487 esac
4504 # Check whether --with-gnu-ld was given.
4505 if test "${with_gnu_ld+set}" = set; then :
4506 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4507 else
4508 with_gnu_ld=no
4511 ac_prog=ld
4512 if test "$GCC" = yes; then
4513 # Check if gcc -print-prog-name=ld gives a path.
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4515 $as_echo_n "checking for ld used by $CC... " >&6; }
4516 case $host in
4517 *-*-mingw*)
4518 # gcc leaves a trailing carriage return which upsets mingw
4519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4522 esac
4523 case $ac_prog in
4524 # Accept absolute paths.
4525 [\\/]* | ?:[\\/]*)
4526 re_direlt='/[^/][^/]*/\.\./'
4527 # Canonicalize the pathname of ld
4528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4531 done
4532 test -z "$LD" && LD="$ac_prog"
4535 # If it fails, then pretend we aren't using GCC.
4536 ac_prog=ld
4539 # If it is relative, then search for the first ld in PATH.
4540 with_gnu_ld=unknown
4542 esac
4543 elif test "$with_gnu_ld" = yes; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4545 $as_echo_n "checking for GNU ld... " >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4548 $as_echo_n "checking for non-GNU ld... " >&6; }
4550 if test "${lt_cv_path_LD+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -z "$LD"; then
4554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4555 for ac_dir in $PATH; do
4556 IFS="$lt_save_ifs"
4557 test -z "$ac_dir" && ac_dir=.
4558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4559 lt_cv_path_LD="$ac_dir/$ac_prog"
4560 # Check to see if the program is GNU ld. I'd rather use --version,
4561 # but apparently some variants of GNU ld only accept -v.
4562 # Break only if it was the GNU/non-GNU ld that we prefer.
4563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4564 *GNU* | *'with BFD'*)
4565 test "$with_gnu_ld" != no && break
4568 test "$with_gnu_ld" != yes && break
4570 esac
4572 done
4573 IFS="$lt_save_ifs"
4574 else
4575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4579 LD="$lt_cv_path_LD"
4580 if test -n "$LD"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4582 $as_echo "$LD" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4587 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596 lt_cv_prog_gnu_ld=yes
4599 lt_cv_prog_gnu_ld=no
4601 esac
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$RANLIB"; then
4624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 RANLIB=$ac_cv_prog_RANLIB
4644 if test -n "$RANLIB"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4646 $as_echo "$RANLIB" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4654 if test -z "$ac_cv_prog_RANLIB"; then
4655 ac_ct_RANLIB=$RANLIB
4656 # Extract the first word of "ranlib", so it can be a program name with args.
4657 set dummy ranlib; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$ac_ct_RANLIB"; then
4664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_RANLIB="ranlib"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4684 if test -n "$ac_ct_RANLIB"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4686 $as_echo "$ac_ct_RANLIB" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4692 if test "x$ac_ct_RANLIB" = x; then
4693 RANLIB=":"
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 RANLIB=$ac_ct_RANLIB
4703 else
4704 RANLIB="$ac_cv_prog_RANLIB"
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$OBJCOPY"; then
4716 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 OBJCOPY=$ac_cv_prog_OBJCOPY
4736 if test -n "$OBJCOPY"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4738 $as_echo "$OBJCOPY" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4746 if test -z "$ac_cv_prog_OBJCOPY"; then
4747 ac_ct_OBJCOPY=$OBJCOPY
4748 # Extract the first word of "objcopy", so it can be a program name with args.
4749 set dummy objcopy; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 if test -n "$ac_ct_OBJCOPY"; then
4756 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4771 IFS=$as_save_IFS
4775 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4776 if test -n "$ac_ct_OBJCOPY"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4778 $as_echo "$ac_ct_OBJCOPY" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4784 if test "x$ac_ct_OBJCOPY" = x; then
4785 OBJCOPY="missing-objcopy"
4786 else
4787 case $cross_compiling:$ac_tool_warned in
4788 yes:)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 OBJCOPY=$ac_ct_OBJCOPY
4795 else
4796 OBJCOPY="$ac_cv_prog_OBJCOPY"
4800 enable_dlopen=yes
4804 case `pwd` in
4805 *\ * | *\ *)
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4807 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4808 esac
4812 macro_version='2.2.7a'
4813 macro_revision='1.3134'
4827 ltmain="$ac_aux_dir/ltmain.sh"
4829 # Backslashify metacharacters that are still active within
4830 # double-quoted strings.
4831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4833 # Same as above, but do not quote variable references.
4834 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4836 # Sed substitution to delay expansion of an escaped shell variable in a
4837 # double_quote_subst'ed string.
4838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4840 # Sed substitution to delay expansion of an escaped single quote.
4841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4843 # Sed substitution to avoid accidental globbing in evaled expressions
4844 no_glob_subst='s/\*/\\\*/g'
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848 if test "${lt_cv_path_NM+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM="$NM"
4854 else
4855 lt_nm_to_check="${ac_tool_prefix}nm"
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS="$lt_save_ifs"
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm="$ac_dir/$lt_tmp_nm"
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4871 */dev/null* | *'Invalid file or object type'*)
4872 lt_cv_path_NM="$tmp_nm -B"
4873 break
4876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 */dev/null*)
4878 lt_cv_path_NM="$tmp_nm -p"
4879 break
4882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4883 continue # so that we can try to find one that supports BSD flags
4885 esac
4887 esac
4889 done
4890 IFS="$lt_save_ifs"
4891 done
4892 : ${lt_cv_path_NM=no}
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4896 $as_echo "$lt_cv_path_NM" >&6; }
4897 if test "$lt_cv_path_NM" != "no"; then
4898 NM="$lt_cv_path_NM"
4899 else
4900 # Didn't find any BSD compatible name lister, look for dumpbin.
4901 if test -n "$DUMPBIN"; then :
4902 # Let the user override the test.
4903 else
4904 if test -n "$ac_tool_prefix"; then
4905 for ac_prog in dumpbin "link -dump"
4907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$DUMPBIN"; then
4915 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 DUMPBIN=$ac_cv_prog_DUMPBIN
4935 if test -n "$DUMPBIN"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4937 $as_echo "$DUMPBIN" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$DUMPBIN" && break
4945 done
4947 if test -z "$DUMPBIN"; then
4948 ac_ct_DUMPBIN=$DUMPBIN
4949 for ac_prog in dumpbin "link -dump"
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_DUMPBIN"; then
4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4979 if test -n "$ac_ct_DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4981 $as_echo "$ac_ct_DUMPBIN" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 test -n "$ac_ct_DUMPBIN" && break
4989 done
4991 if test "x$ac_ct_DUMPBIN" = x; then
4992 DUMPBIN=":"
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995 yes:)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
4999 esac
5000 DUMPBIN=$ac_ct_DUMPBIN
5004 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5005 *COFF*)
5006 DUMPBIN="$DUMPBIN -symbols"
5009 DUMPBIN=:
5011 esac
5014 if test "$DUMPBIN" != ":"; then
5015 NM="$DUMPBIN"
5018 test -z "$NM" && NM=nm
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5026 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5027 if test "${lt_cv_nm_interface+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 lt_cv_nm_interface="BSD nm"
5031 echo "int some_variable = 0;" > conftest.$ac_ext
5032 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5033 (eval "$ac_compile" 2>conftest.err)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5036 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5037 cat conftest.err >&5
5038 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5039 cat conftest.out >&5
5040 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5041 lt_cv_nm_interface="MS dumpbin"
5043 rm -f conftest*
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5046 $as_echo "$lt_cv_nm_interface" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049 $as_echo_n "checking whether ln -s works... " >&6; }
5050 LN_S=$as_ln_s
5051 if test "$LN_S" = "ln -s"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056 $as_echo "no, using $LN_S" >&6; }
5059 # find the maximum length of command line arguments
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5061 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5062 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5066 teststring="ABCD"
5068 case $build_os in
5069 msdosdjgpp*)
5070 # On DJGPP, this test can blow up pretty badly due to problems in libc
5071 # (any single argument exceeding 2000 bytes causes a buffer overrun
5072 # during glob expansion). Even if it were fixed, the result of this
5073 # check would be larger than it should be.
5074 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5077 gnu*)
5078 # Under GNU Hurd, this test is not required because there is
5079 # no limit to the length of command line arguments.
5080 # Libtool will interpret -1 as no limit whatsoever
5081 lt_cv_sys_max_cmd_len=-1;
5084 cygwin* | mingw* | cegcc*)
5085 # On Win9x/ME, this test blows up -- it succeeds, but takes
5086 # about 5 minutes as the teststring grows exponentially.
5087 # Worse, since 9x/ME are not pre-emptively multitasking,
5088 # you end up with a "frozen" computer, even though with patience
5089 # the test eventually succeeds (with a max line length of 256k).
5090 # Instead, let's just punt: use the minimum linelength reported by
5091 # all of the supported platforms: 8192 (on NT/2K/XP).
5092 lt_cv_sys_max_cmd_len=8192;
5095 mint*)
5096 # On MiNT this can take a long time and run out of memory.
5097 lt_cv_sys_max_cmd_len=8192;
5100 amigaos*)
5101 # On AmigaOS with pdksh, this test takes hours, literally.
5102 # So we just punt and use a minimum line length of 8192.
5103 lt_cv_sys_max_cmd_len=8192;
5106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5107 # This has been around since 386BSD, at least. Likely further.
5108 if test -x /sbin/sysctl; then
5109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5110 elif test -x /usr/sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5112 else
5113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5115 # And add a safety zone
5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120 interix*)
5121 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5122 lt_cv_sys_max_cmd_len=196608
5125 osf*)
5126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5128 # nice to cause kernel panics so lets avoid the loop below.
5129 # First set a reasonable default.
5130 lt_cv_sys_max_cmd_len=16384
5132 if test -x /sbin/sysconfig; then
5133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5134 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5135 esac
5138 sco3.2v5*)
5139 lt_cv_sys_max_cmd_len=102400
5141 sysv5* | sco5v6* | sysv4.2uw2*)
5142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5143 if test -n "$kargmax"; then
5144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5145 else
5146 lt_cv_sys_max_cmd_len=32768
5150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5151 if test -n "$lt_cv_sys_max_cmd_len"; then
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154 else
5155 # Make teststring a little bigger before we do anything with it.
5156 # a 1K string should be a reasonable start.
5157 for i in 1 2 3 4 5 6 7 8 ; do
5158 teststring=$teststring$teststring
5159 done
5160 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5161 # If test is not a shell built-in, we'll probably end up computing a
5162 # maximum length that is only half of the actual maximum length, but
5163 # we can't tell.
5164 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5165 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5166 test $i != 17 # 1/2 MB should be enough
5168 i=`expr $i + 1`
5169 teststring=$teststring$teststring
5170 done
5171 # Only check the string length outside the loop.
5172 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5173 teststring=
5174 # Add a significant safety factor because C++ compilers can tack on
5175 # massive amounts of additional arguments before passing them to the
5176 # linker. It appears as though 1/2 is a usable value.
5177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180 esac
5184 if test -n $lt_cv_sys_max_cmd_len ; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5186 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5189 $as_echo "none" >&6; }
5191 max_cmd_len=$lt_cv_sys_max_cmd_len
5198 : ${CP="cp -f"}
5199 : ${MV="mv -f"}
5200 : ${RM="rm -f"}
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5203 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5204 # Try some XSI features
5205 xsi_shell=no
5206 ( _lt_dummy="a/b/c"
5207 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5208 = c,a/b,, \
5209 && eval 'test $(( 1 + 1 )) -eq 2 \
5210 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5211 && xsi_shell=yes
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5213 $as_echo "$xsi_shell" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5217 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5218 lt_shell_append=no
5219 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5220 >/dev/null 2>&1 \
5221 && lt_shell_append=yes
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5223 $as_echo "$lt_shell_append" >&6; }
5226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5227 lt_unset=unset
5228 else
5229 lt_unset=false
5236 # test EBCDIC or ASCII
5237 case `echo X|tr X '\101'` in
5238 A) # ASCII based system
5239 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5240 lt_SP2NL='tr \040 \012'
5241 lt_NL2SP='tr \015\012 \040\040'
5243 *) # EBCDIC based system
5244 lt_SP2NL='tr \100 \n'
5245 lt_NL2SP='tr \r\n \100\100'
5247 esac
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5258 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5259 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 lt_cv_ld_reload_flag='-r'
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5265 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5266 reload_flag=$lt_cv_ld_reload_flag
5267 case $reload_flag in
5268 "" | " "*) ;;
5269 *) reload_flag=" $reload_flag" ;;
5270 esac
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 case $host_os in
5273 darwin*)
5274 if test "$GCC" = yes; then
5275 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5276 else
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 esac
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$OBJDUMP"; then
5299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 OBJDUMP=$ac_cv_prog_OBJDUMP
5319 if test -n "$OBJDUMP"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5321 $as_echo "$OBJDUMP" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5329 if test -z "$ac_cv_prog_OBJDUMP"; then
5330 ac_ct_OBJDUMP=$OBJDUMP
5331 # Extract the first word of "objdump", so it can be a program name with args.
5332 set dummy objdump; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$ac_ct_OBJDUMP"; then
5339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5359 if test -n "$ac_ct_OBJDUMP"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5361 $as_echo "$ac_ct_OBJDUMP" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5367 if test "x$ac_ct_OBJDUMP" = x; then
5368 OBJDUMP="false"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 OBJDUMP=$ac_ct_OBJDUMP
5378 else
5379 OBJDUMP="$ac_cv_prog_OBJDUMP"
5382 test -z "$OBJDUMP" && OBJDUMP=objdump
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5393 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5394 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 lt_cv_file_magic_cmd='$MAGIC_CMD'
5398 lt_cv_file_magic_test_file=
5399 lt_cv_deplibs_check_method='unknown'
5400 # Need to set the preceding variable on all platforms that support
5401 # interlibrary dependencies.
5402 # 'none' -- dependencies not supported.
5403 # `unknown' -- same as none, but documents that we really don't know.
5404 # 'pass_all' -- all dependencies passed with no checks.
5405 # 'test_compile' -- check by making test program.
5406 # 'file_magic [[regex]]' -- check by looking for files in library path
5407 # which responds to the $file_magic_cmd with a given extended regex.
5408 # If you have `file' or equivalent on your system and you're not sure
5409 # whether `pass_all' will *always* work, you probably want this one.
5411 case $host_os in
5412 aix[4-9]*)
5413 lt_cv_deplibs_check_method=pass_all
5416 beos*)
5417 lt_cv_deplibs_check_method=pass_all
5420 bsdi[45]*)
5421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5422 lt_cv_file_magic_cmd='/usr/bin/file -L'
5423 lt_cv_file_magic_test_file=/shlib/libc.so
5426 cygwin*)
5427 # func_win32_libid is a shell function defined in ltmain.sh
5428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5429 lt_cv_file_magic_cmd='func_win32_libid'
5432 mingw* | pw32*)
5433 # Base MSYS/MinGW do not provide the 'file' command needed by
5434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5435 # unless we find 'file', for example because we are cross-compiling.
5436 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5437 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 else
5441 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 cegcc*)
5447 # use the weaker test based on 'objdump'. See mingw*.
5448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5449 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 darwin* | rhapsody*)
5453 lt_cv_deplibs_check_method=pass_all
5456 freebsd* | dragonfly*)
5457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5458 case $host_cpu in
5459 i*86 )
5460 # Not sure whether the presence of OpenBSD here was a mistake.
5461 # Let's accept both of them until this is cleared up.
5462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5466 esac
5467 else
5468 lt_cv_deplibs_check_method=pass_all
5472 gnu*)
5473 lt_cv_deplibs_check_method=pass_all
5476 haiku*)
5477 lt_cv_deplibs_check_method=pass_all
5480 hpux10.20* | hpux11*)
5481 lt_cv_file_magic_cmd=/usr/bin/file
5482 case $host_cpu in
5483 ia64*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5487 hppa*64*)
5488 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]'
5489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5495 esac
5498 interix[3-9]*)
5499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503 irix5* | irix6* | nonstopux*)
5504 case $LD in
5505 *-32|*"-32 ") libmagic=32-bit;;
5506 *-n32|*"-n32 ") libmagic=N32;;
5507 *-64|*"-64 ") libmagic=64-bit;;
5508 *) libmagic=never-match;;
5509 esac
5510 lt_cv_deplibs_check_method=pass_all
5513 # This must be Linux ELF.
5514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5515 lt_cv_deplibs_check_method=pass_all
5518 netbsd*)
5519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526 newos6*)
5527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532 *nto* | *qnx*)
5533 lt_cv_deplibs_check_method=pass_all
5536 openbsd*)
5537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 else
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5544 osf3* | osf4* | osf5*)
5545 lt_cv_deplibs_check_method=pass_all
5548 rdos*)
5549 lt_cv_deplibs_check_method=pass_all
5552 solaris*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5557 lt_cv_deplibs_check_method=pass_all
5560 sysv4 | sysv4.3*)
5561 case $host_vendor in
5562 motorola)
5563 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]'
5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5566 ncr)
5567 lt_cv_deplibs_check_method=pass_all
5569 sequent)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5573 sni)
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576 lt_cv_file_magic_test_file=/lib/libc.so
5578 siemens)
5579 lt_cv_deplibs_check_method=pass_all
5582 lt_cv_deplibs_check_method=pass_all
5584 esac
5587 tpf*)
5588 lt_cv_deplibs_check_method=pass_all
5590 esac
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5595 file_magic_cmd=$lt_cv_file_magic_cmd
5596 deplibs_check_method=$lt_cv_deplibs_check_method
5597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ar; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_AR+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$AR"; then
5619 ac_cv_prog_AR="$AR" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_AR="${ac_tool_prefix}ar"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 AR=$ac_cv_prog_AR
5639 if test -n "$AR"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5641 $as_echo "$AR" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5649 if test -z "$ac_cv_prog_AR"; then
5650 ac_ct_AR=$AR
5651 # Extract the first word of "ar", so it can be a program name with args.
5652 set dummy ar; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_AR"; then
5659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_AR="ar"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5679 if test -n "$ac_ct_AR"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5681 $as_echo "$ac_ct_AR" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5687 if test "x$ac_ct_AR" = x; then
5688 AR="false"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 AR=$ac_ct_AR
5698 else
5699 AR="$ac_cv_prog_AR"
5702 test -z "$AR" && AR=ar
5703 test -z "$AR_FLAGS" && AR_FLAGS=cru
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}strip; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_STRIP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$STRIP"; then
5724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 STRIP=$ac_cv_prog_STRIP
5744 if test -n "$STRIP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746 $as_echo "$STRIP" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_STRIP"; then
5755 ac_ct_STRIP=$STRIP
5756 # Extract the first word of "strip", so it can be a program name with args.
5757 set dummy strip; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_STRIP"; then
5764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_STRIP="strip"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784 if test -n "$ac_ct_STRIP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786 $as_echo "$ac_ct_STRIP" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_STRIP" = x; then
5793 STRIP=":"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 STRIP=$ac_ct_STRIP
5803 else
5804 STRIP="$ac_cv_prog_STRIP"
5807 test -z "$STRIP" && STRIP=:
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$RANLIB"; then
5823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845 $as_echo "$RANLIB" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856 set dummy ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883 if test -n "$ac_ct_RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885 $as_echo "$ac_ct_RANLIB" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_RANLIB" = x; then
5892 RANLIB=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 RANLIB=$ac_ct_RANLIB
5902 else
5903 RANLIB="$ac_cv_prog_RANLIB"
5906 test -z "$RANLIB" && RANLIB=:
5913 # Determine commands to create old-style static archives.
5914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915 old_postinstall_cmds='chmod 644 $oldlib'
5916 old_postuninstall_cmds=
5918 if test -n "$RANLIB"; then
5919 case $host_os in
5920 openbsd*)
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5926 esac
5927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 case $host_os in
5931 darwin*)
5932 lock_old_archive_extraction=yes ;;
5934 lock_old_archive_extraction=no ;;
5935 esac
5975 # If no C compiler was specified, use CC.
5976 LTCC=${LTCC-"$CC"}
5978 # If no C compiler flags were specified, use CFLAGS.
5979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5981 # Allow CC to be a program name with arguments.
5982 compiler=$CC
5985 # Check for command to grab the raw symbol name followed by C symbol from nm.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5992 # These are sane defaults that work on at least a few old systems.
5993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5995 # Character class describing NM global symbol codes.
5996 symcode='[BCDEGRST]'
5998 # Regexp to match symbols that can be accessed directly from C.
5999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6001 # Define system-specific variables.
6002 case $host_os in
6003 aix*)
6004 symcode='[BCDT]'
6006 cygwin* | mingw* | pw32* | cegcc*)
6007 symcode='[ABCDGISTW]'
6009 hpux*)
6010 if test "$host_cpu" = ia64; then
6011 symcode='[ABCDEGRST]'
6014 irix* | nonstopux*)
6015 symcode='[BCDEGRST]'
6017 osf*)
6018 symcode='[BCDEGQRST]'
6020 solaris*)
6021 symcode='[BDRT]'
6023 sco3.2v5*)
6024 symcode='[DT]'
6026 sysv4.2uw2*)
6027 symcode='[DT]'
6029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6030 symcode='[ABDT]'
6032 sysv4)
6033 symcode='[DFNSTU]'
6035 esac
6037 # If we're using GNU nm, then use its standard symbol codes.
6038 case `$NM -V 2>&1` in
6039 *GNU* | *'with BFD'*)
6040 symcode='[ABCDGIRSTW]' ;;
6041 esac
6043 # Transform an extracted symbol line into a proper C declaration.
6044 # Some systems (esp. on ia64) link data and code symbols differently,
6045 # so use this general approach.
6046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 # Transform an extracted symbol line into symbol name and symbol address
6049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6050 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'"
6052 # Handle CRLF in mingw tool chain
6053 opt_cr=
6054 case $build_os in
6055 mingw*)
6056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 esac
6060 # Try without a prefix underscore, then with it.
6061 for ac_symprfx in "" "_"; do
6063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064 symxfrm="\\1 $ac_symprfx\\2 \\2"
6066 # Write the raw and C identifiers.
6067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068 # Fake it for dumpbin and say T for any non-static function
6069 # and D for any global variable.
6070 # Also find C++ and __fastcall symbols from MSVC++,
6071 # which start with @ or ?.
6072 lt_cv_sys_global_symbol_pipe="$AWK '"\
6073 " {last_section=section; section=\$ 3};"\
6074 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6075 " \$ 0!~/External *\|/{next};"\
6076 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6077 " {if(hide[section]) next};"\
6078 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6079 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6080 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6081 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6082 " ' prfx=^$ac_symprfx"
6083 else
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 # Check to see that the pipe works correctly.
6088 pipe_works=no
6090 rm -f conftest*
6091 cat > conftest.$ac_ext <<_LT_EOF
6092 #ifdef __cplusplus
6093 extern "C" {
6094 #endif
6095 char nm_test_var;
6096 void nm_test_func(void);
6097 void nm_test_func(void){}
6098 #ifdef __cplusplus
6100 #endif
6101 int main(){nm_test_var='a';nm_test_func();return(0);}
6102 _LT_EOF
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 # Now try to grab the symbols.
6110 nlist=conftest.nm
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6112 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } && test -s "$nlist"; then
6116 # Try sorting and uniquifying the output.
6117 if sort "$nlist" | uniq > "$nlist"T; then
6118 mv -f "$nlist"T "$nlist"
6119 else
6120 rm -f "$nlist"T
6123 # Make sure that we snagged all the symbols we need.
6124 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6125 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6126 cat <<_LT_EOF > conftest.$ac_ext
6127 #ifdef __cplusplus
6128 extern "C" {
6129 #endif
6131 _LT_EOF
6132 # Now generate the symbol file.
6133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6135 cat <<_LT_EOF >> conftest.$ac_ext
6137 /* The mapping between symbol names and symbols. */
6138 const struct {
6139 const char *name;
6140 void *address;
6142 lt__PROGRAM__LTX_preloaded_symbols[] =
6144 { "@PROGRAM@", (void *) 0 },
6145 _LT_EOF
6146 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6147 cat <<\_LT_EOF >> conftest.$ac_ext
6148 {0, (void *) 0}
6151 /* This works around a problem in FreeBSD linker */
6152 #ifdef FREEBSD_WORKAROUND
6153 static const void *lt_preloaded_setup() {
6154 return lt__PROGRAM__LTX_preloaded_symbols;
6156 #endif
6158 #ifdef __cplusplus
6160 #endif
6161 _LT_EOF
6162 # Now try linking the two files.
6163 mv conftest.$ac_objext conftstm.$ac_objext
6164 lt_save_LIBS="$LIBS"
6165 lt_save_CFLAGS="$CFLAGS"
6166 LIBS="conftstm.$ac_objext"
6167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6173 pipe_works=yes
6175 LIBS="$lt_save_LIBS"
6176 CFLAGS="$lt_save_CFLAGS"
6177 else
6178 echo "cannot find nm_test_func in $nlist" >&5
6180 else
6181 echo "cannot find nm_test_var in $nlist" >&5
6183 else
6184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186 else
6187 echo "$progname: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 rm -rf conftest* conftst*
6192 # Do not use the global_symbol_pipe unless it works.
6193 if test "$pipe_works" = yes; then
6194 break
6195 else
6196 lt_cv_sys_global_symbol_pipe=
6198 done
6202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6203 lt_cv_sys_global_symbol_to_cdecl=
6205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6207 $as_echo "failed" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6210 $as_echo "ok" >&6; }
6235 # Check whether --enable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then :
6237 enableval=$enable_libtool_lock;
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6242 # Some flags need to be propagated to the compiler or linker for good
6243 # libtool support.
6244 case $host in
6245 ia64-*-hpux*)
6246 # Find out which ABI we are using.
6247 echo 'int i;' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 case `/usr/bin/file conftest.$ac_objext` in
6254 *ELF-32*)
6255 HPUX_IA64_MODE="32"
6257 *ELF-64*)
6258 HPUX_IA64_MODE="64"
6260 esac
6262 rm -rf conftest*
6264 *-*-irix6*)
6265 # Find out which ABI we are using.
6266 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 if test "$lt_cv_prog_gnu_ld" = yes; then
6273 case `/usr/bin/file conftest.$ac_objext` in
6274 *32-bit*)
6275 LD="${LD-ld} -melf32bsmip"
6277 *N32*)
6278 LD="${LD-ld} -melf32bmipn32"
6280 *64-bit*)
6281 LD="${LD-ld} -melf64bmip"
6283 esac
6284 else
6285 case `/usr/bin/file conftest.$ac_objext` in
6286 *32-bit*)
6287 LD="${LD-ld} -32"
6289 *N32*)
6290 LD="${LD-ld} -n32"
6292 *64-bit*)
6293 LD="${LD-ld} -64"
6295 esac
6298 rm -rf conftest*
6301 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6302 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6303 # Find out which ABI we are using.
6304 echo 'int i;' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 case `/usr/bin/file conftest.o` in
6311 *32-bit*)
6312 case $host in
6313 x86_64-*kfreebsd*-gnu)
6314 LD="${LD-ld} -m elf_i386_fbsd"
6316 x86_64-*linux*)
6317 LD="${LD-ld} -m elf_i386"
6319 ppc64-*linux*|powerpc64-*linux*)
6320 LD="${LD-ld} -m elf32ppclinux"
6322 s390x-*linux*)
6323 LD="${LD-ld} -m elf_s390"
6325 sparc64-*linux*)
6326 LD="${LD-ld} -m elf32_sparc"
6328 esac
6330 *64-bit*)
6331 case $host in
6332 x86_64-*kfreebsd*-gnu)
6333 LD="${LD-ld} -m elf_x86_64_fbsd"
6335 x86_64-*linux*)
6336 LD="${LD-ld} -m elf_x86_64"
6338 ppc*-*linux*|powerpc*-*linux*)
6339 LD="${LD-ld} -m elf64ppc"
6341 s390*-*linux*|s390*-*tpf*)
6342 LD="${LD-ld} -m elf64_s390"
6344 sparc*-*linux*)
6345 LD="${LD-ld} -m elf64_sparc"
6347 esac
6349 esac
6351 rm -rf conftest*
6354 *-*-sco3.2v5*)
6355 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6356 SAVE_CFLAGS="$CFLAGS"
6357 CFLAGS="$CFLAGS -belf"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6359 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6360 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 ac_ext=c
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6373 main ()
6377 return 0;
6379 _ACEOF
6380 if ac_fn_c_try_link "$LINENO"; then :
6381 lt_cv_cc_needs_belf=yes
6382 else
6383 lt_cv_cc_needs_belf=no
6385 rm -f core conftest.err conftest.$ac_objext \
6386 conftest$ac_exeext conftest.$ac_ext
6387 ac_ext=c
6388 ac_cpp='$CPP $CPPFLAGS'
6389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6395 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6396 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6398 CFLAGS="$SAVE_CFLAGS"
6401 *-*solaris*)
6402 # Find out which ABI we are using.
6403 echo 'int i;' > conftest.$ac_ext
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 case `/usr/bin/file conftest.o` in
6410 *64-bit*)
6411 case $lt_cv_prog_gnu_ld in
6412 yes*)
6413 case $host in
6414 i?86-*-solaris*)
6415 LD="${LD-ld} -m elf_x86_64"
6417 sparc*-*-solaris*)
6418 LD="${LD-ld} -m elf64_sparc"
6420 esac
6421 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6422 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6423 LD="${LD-ld}_sol2"
6427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6428 LD="${LD-ld} -64"
6431 esac
6433 esac
6435 rm -rf conftest*
6437 esac
6439 need_locks="$enable_libtool_lock"
6442 case $host_os in
6443 rhapsody* | darwin*)
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$DSYMUTIL"; then
6453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6473 if test -n "$DSYMUTIL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6475 $as_echo "$DSYMUTIL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_DSYMUTIL"; then
6484 ac_ct_DSYMUTIL=$DSYMUTIL
6485 # Extract the first word of "dsymutil", so it can be a program name with args.
6486 set dummy dsymutil; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_DSYMUTIL"; then
6493 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6506 done
6507 done
6508 IFS=$as_save_IFS
6512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6513 if test -n "$ac_ct_DSYMUTIL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_DSYMUTIL" = x; then
6522 DSYMUTIL=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 DSYMUTIL=$ac_ct_DSYMUTIL
6532 else
6533 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$NMEDIT"; then
6545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6558 done
6559 done
6560 IFS=$as_save_IFS
6564 NMEDIT=$ac_cv_prog_NMEDIT
6565 if test -n "$NMEDIT"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6567 $as_echo "$NMEDIT" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6575 if test -z "$ac_cv_prog_NMEDIT"; then
6576 ac_ct_NMEDIT=$NMEDIT
6577 # Extract the first word of "nmedit", so it can be a program name with args.
6578 set dummy nmedit; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 if test -n "$ac_ct_NMEDIT"; then
6585 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6598 done
6599 done
6600 IFS=$as_save_IFS
6604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6605 if test -n "$ac_ct_NMEDIT"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6607 $as_echo "$ac_ct_NMEDIT" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6613 if test "x$ac_ct_NMEDIT" = x; then
6614 NMEDIT=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 NMEDIT=$ac_ct_NMEDIT
6624 else
6625 NMEDIT="$ac_cv_prog_NMEDIT"
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_LIPO+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$LIPO"; then
6637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6650 done
6651 done
6652 IFS=$as_save_IFS
6656 LIPO=$ac_cv_prog_LIPO
6657 if test -n "$LIPO"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6659 $as_echo "$LIPO" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6667 if test -z "$ac_cv_prog_LIPO"; then
6668 ac_ct_LIPO=$LIPO
6669 # Extract the first word of "lipo", so it can be a program name with args.
6670 set dummy lipo; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 if test -n "$ac_ct_LIPO"; then
6677 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_LIPO="lipo"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6697 if test -n "$ac_ct_LIPO"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6699 $as_echo "$ac_ct_LIPO" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 if test "x$ac_ct_LIPO" = x; then
6706 LIPO=":"
6707 else
6708 case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714 LIPO=$ac_ct_LIPO
6716 else
6717 LIPO="$ac_cv_prog_LIPO"
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}otool; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$OTOOL"; then
6729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6742 done
6743 done
6744 IFS=$as_save_IFS
6748 OTOOL=$ac_cv_prog_OTOOL
6749 if test -n "$OTOOL"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6751 $as_echo "$OTOOL" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test -z "$ac_cv_prog_OTOOL"; then
6760 ac_ct_OTOOL=$OTOOL
6761 # Extract the first word of "otool", so it can be a program name with args.
6762 set dummy otool; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$ac_ct_OTOOL"; then
6769 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_OTOOL="otool"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6782 done
6783 done
6784 IFS=$as_save_IFS
6788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6789 if test -n "$ac_ct_OTOOL"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6791 $as_echo "$ac_ct_OTOOL" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6797 if test "x$ac_ct_OTOOL" = x; then
6798 OTOOL=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 OTOOL=$ac_ct_OTOOL
6808 else
6809 OTOOL="$ac_cv_prog_OTOOL"
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$OTOOL64"; then
6821 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6834 done
6835 done
6836 IFS=$as_save_IFS
6840 OTOOL64=$ac_cv_prog_OTOOL64
6841 if test -n "$OTOOL64"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6843 $as_echo "$OTOOL64" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6851 if test -z "$ac_cv_prog_OTOOL64"; then
6852 ac_ct_OTOOL64=$OTOOL64
6853 # Extract the first word of "otool64", so it can be a program name with args.
6854 set dummy otool64; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$ac_ct_OTOOL64"; then
6861 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_ac_ct_OTOOL64="otool64"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6874 done
6875 done
6876 IFS=$as_save_IFS
6880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6881 if test -n "$ac_ct_OTOOL64"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6883 $as_echo "$ac_ct_OTOOL64" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6889 if test "x$ac_ct_OTOOL64" = x; then
6890 OTOOL64=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 OTOOL64=$ac_ct_OTOOL64
6900 else
6901 OTOOL64="$ac_cv_prog_OTOOL64"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6931 $as_echo_n "checking for -single_module linker flag... " >&6; }
6932 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 lt_cv_apple_cc_single_mod=no
6936 if test -z "${LT_MULTI_MODULE}"; then
6937 # By default we will add the -single_module flag. You can override
6938 # by either setting the environment variable LT_MULTI_MODULE
6939 # non-empty at configure time, or by adding -multi_module to the
6940 # link flags.
6941 rm -rf libconftest.dylib*
6942 echo "int foo(void){return 1;}" > conftest.c
6943 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944 -dynamiclib -Wl,-single_module conftest.c" >&5
6945 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6947 _lt_result=$?
6948 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6949 lt_cv_apple_cc_single_mod=yes
6950 else
6951 cat conftest.err >&5
6953 rm -rf libconftest.dylib*
6954 rm -f conftest.*
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6958 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6960 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6961 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 lt_cv_ld_exported_symbols_list=no
6965 save_LDFLAGS=$LDFLAGS
6966 echo "_main" > conftest.sym
6967 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6972 main ()
6976 return 0;
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 lt_cv_ld_exported_symbols_list=yes
6981 else
6982 lt_cv_ld_exported_symbols_list=no
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 LDFLAGS="$save_LDFLAGS"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6990 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6992 $as_echo_n "checking for -force_load linker flag... " >&6; }
6993 if test "${lt_cv_ld_force_load+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 lt_cv_ld_force_load=no
6997 cat > conftest.c << _LT_EOF
6998 int forced_loaded() { return 2;}
6999 _LT_EOF
7000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7002 echo "$AR cru libconftest.a conftest.o" >&5
7003 $AR cru libconftest.a conftest.o 2>&5
7004 cat > conftest.c << _LT_EOF
7005 int main() { return 0;}
7006 _LT_EOF
7007 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7008 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7009 _lt_result=$?
7010 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7011 lt_cv_ld_force_load=yes
7012 else
7013 cat conftest.err >&5
7015 rm -f conftest.err libconftest.a conftest conftest.c
7016 rm -rf conftest.dSYM
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7020 $as_echo "$lt_cv_ld_force_load" >&6; }
7021 case $host_os in
7022 rhapsody* | darwin1.[012])
7023 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7024 darwin1.*)
7025 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7026 darwin*) # darwin 5.x on
7027 # if running on 10.5 or later, the deployment target defaults
7028 # to the OS version, if on x86, and 10.4, the deployment
7029 # target defaults to 10.4. Don't you love it?
7030 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7031 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 10.[012]*)
7034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 10.*)
7036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7037 esac
7039 esac
7040 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7041 _lt_dar_single_mod='$single_module'
7043 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7044 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7045 else
7046 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7048 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7049 _lt_dsymutil='~$DSYMUTIL $lib || :'
7050 else
7051 _lt_dsymutil=
7054 esac
7056 ac_ext=c
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7062 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7063 # On Suns, sometimes $CPP names a directory.
7064 if test -n "$CPP" && test -d "$CPP"; then
7065 CPP=
7067 if test -z "$CPP"; then
7068 if test "${ac_cv_prog_CPP+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 # Double quotes because CPP needs to be expanded
7072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7074 ac_preproc_ok=false
7075 for ac_c_preproc_warn_flag in '' yes
7077 # Use a header file that comes with gcc, so configuring glibc
7078 # with a fresh cross-compiler works.
7079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 # <limits.h> exists even on freestanding compilers.
7081 # On the NeXT, cc -E runs the code through the compiler's parser,
7082 # not just through cpp. "Syntax error" is here to catch this case.
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 #ifdef __STDC__
7086 # include <limits.h>
7087 #else
7088 # include <assert.h>
7089 #endif
7090 Syntax error
7091 _ACEOF
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7094 else
7095 # Broken: fails on valid input.
7096 continue
7098 rm -f conftest.err conftest.$ac_ext
7100 # OK, works on sane cases. Now check whether nonexistent headers
7101 # can be detected and how.
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 #include <ac_nonexistent.h>
7105 _ACEOF
7106 if ac_fn_c_try_cpp "$LINENO"; then :
7107 # Broken: success on invalid input.
7108 continue
7109 else
7110 # Passes both tests.
7111 ac_preproc_ok=:
7112 break
7114 rm -f conftest.err conftest.$ac_ext
7116 done
7117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7118 rm -f conftest.err conftest.$ac_ext
7119 if $ac_preproc_ok; then :
7120 break
7123 done
7124 ac_cv_prog_CPP=$CPP
7127 CPP=$ac_cv_prog_CPP
7128 else
7129 ac_cv_prog_CPP=$CPP
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7132 $as_echo "$CPP" >&6; }
7133 ac_preproc_ok=false
7134 for ac_c_preproc_warn_flag in '' yes
7136 # Use a header file that comes with gcc, so configuring glibc
7137 # with a fresh cross-compiler works.
7138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7139 # <limits.h> exists even on freestanding compilers.
7140 # On the NeXT, cc -E runs the code through the compiler's parser,
7141 # not just through cpp. "Syntax error" is here to catch this case.
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #ifdef __STDC__
7145 # include <limits.h>
7146 #else
7147 # include <assert.h>
7148 #endif
7149 Syntax error
7150 _ACEOF
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7153 else
7154 # Broken: fails on valid input.
7155 continue
7157 rm -f conftest.err conftest.$ac_ext
7159 # OK, works on sane cases. Now check whether nonexistent headers
7160 # can be detected and how.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <ac_nonexistent.h>
7164 _ACEOF
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7166 # Broken: success on invalid input.
7167 continue
7168 else
7169 # Passes both tests.
7170 ac_preproc_ok=:
7171 break
7173 rm -f conftest.err conftest.$ac_ext
7175 done
7176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7177 rm -f conftest.err conftest.$ac_ext
7178 if $ac_preproc_ok; then :
7180 else
7181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7183 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7184 See \`config.log' for more details." "$LINENO" 5; }
7187 ac_ext=c
7188 ac_cpp='$CPP $CPPFLAGS'
7189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7195 $as_echo_n "checking for ANSI C header files... " >&6; }
7196 if test "${ac_cv_header_stdc+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <stdlib.h>
7202 #include <stdarg.h>
7203 #include <string.h>
7204 #include <float.h>
7207 main ()
7211 return 0;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 ac_cv_header_stdc=yes
7216 else
7217 ac_cv_header_stdc=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 if test $ac_cv_header_stdc = yes; then
7222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 #include <string.h>
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "memchr" >/dev/null 2>&1; then :
7231 else
7232 ac_cv_header_stdc=no
7234 rm -f conftest*
7238 if test $ac_cv_header_stdc = yes; then
7239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <stdlib.h>
7244 _ACEOF
7245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 $EGREP "free" >/dev/null 2>&1; then :
7248 else
7249 ac_cv_header_stdc=no
7251 rm -f conftest*
7255 if test $ac_cv_header_stdc = yes; then
7256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7257 if test "$cross_compiling" = yes; then :
7259 else
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <ctype.h>
7263 #include <stdlib.h>
7264 #if ((' ' & 0x0FF) == 0x020)
7265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7267 #else
7268 # define ISLOWER(c) \
7269 (('a' <= (c) && (c) <= 'i') \
7270 || ('j' <= (c) && (c) <= 'r') \
7271 || ('s' <= (c) && (c) <= 'z'))
7272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7273 #endif
7275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7277 main ()
7279 int i;
7280 for (i = 0; i < 256; i++)
7281 if (XOR (islower (i), ISLOWER (i))
7282 || toupper (i) != TOUPPER (i))
7283 return 2;
7284 return 0;
7286 _ACEOF
7287 if ac_fn_c_try_run "$LINENO"; then :
7289 else
7290 ac_cv_header_stdc=no
7292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7299 $as_echo "$ac_cv_header_stdc" >&6; }
7300 if test $ac_cv_header_stdc = yes; then
7302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7308 inttypes.h stdint.h unistd.h
7309 do :
7310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7313 eval as_val=\$$as_ac_Header
7314 if test "x$as_val" = x""yes; then :
7315 cat >>confdefs.h <<_ACEOF
7316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7317 _ACEOF
7321 done
7324 for ac_header in dlfcn.h
7325 do :
7326 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7328 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7329 cat >>confdefs.h <<_ACEOF
7330 #define HAVE_DLFCN_H 1
7331 _ACEOF
7335 done
7337 if test -n "$ac_tool_prefix"; then
7338 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7339 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if test "${ac_cv_prog_GOC+set}" = set; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$GOC"; then
7346 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7359 done
7360 done
7361 IFS=$as_save_IFS
7365 GOC=$ac_cv_prog_GOC
7366 if test -n "$GOC"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7368 $as_echo "$GOC" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7376 if test -z "$ac_cv_prog_GOC"; then
7377 ac_ct_GOC=$GOC
7378 # Extract the first word of "gccgo", so it can be a program name with args.
7379 set dummy gccgo; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$ac_ct_GOC"; then
7386 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_ac_ct_GOC="gccgo"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7405 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7406 if test -n "$ac_ct_GOC"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7408 $as_echo "$ac_ct_GOC" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7414 if test "x$ac_ct_GOC" = x; then
7415 GOC=""
7416 else
7417 case $cross_compiling:$ac_tool_warned in
7418 yes:)
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421 ac_tool_warned=yes ;;
7422 esac
7423 GOC=$ac_ct_GOC
7425 else
7426 GOC="$ac_cv_prog_GOC"
7434 # Set options
7439 enable_win32_dll=no
7442 # Check whether --enable-shared was given.
7443 if test "${enable_shared+set}" = set; then :
7444 enableval=$enable_shared; p=${PACKAGE-default}
7445 case $enableval in
7446 yes) enable_shared=yes ;;
7447 no) enable_shared=no ;;
7449 enable_shared=no
7450 # Look at the argument we got. We use all the common list separators.
7451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7452 for pkg in $enableval; do
7453 IFS="$lt_save_ifs"
7454 if test "X$pkg" = "X$p"; then
7455 enable_shared=yes
7457 done
7458 IFS="$lt_save_ifs"
7460 esac
7461 else
7462 enable_shared=yes
7473 # Check whether --enable-static was given.
7474 if test "${enable_static+set}" = set; then :
7475 enableval=$enable_static; p=${PACKAGE-default}
7476 case $enableval in
7477 yes) enable_static=yes ;;
7478 no) enable_static=no ;;
7480 enable_static=no
7481 # Look at the argument we got. We use all the common list separators.
7482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7483 for pkg in $enableval; do
7484 IFS="$lt_save_ifs"
7485 if test "X$pkg" = "X$p"; then
7486 enable_static=yes
7488 done
7489 IFS="$lt_save_ifs"
7491 esac
7492 else
7493 enable_static=yes
7505 # Check whether --with-pic was given.
7506 if test "${with_pic+set}" = set; then :
7507 withval=$with_pic; pic_mode="$withval"
7508 else
7509 pic_mode=default
7513 test -z "$pic_mode" && pic_mode=default
7521 # Check whether --enable-fast-install was given.
7522 if test "${enable_fast_install+set}" = set; then :
7523 enableval=$enable_fast_install; p=${PACKAGE-default}
7524 case $enableval in
7525 yes) enable_fast_install=yes ;;
7526 no) enable_fast_install=no ;;
7528 enable_fast_install=no
7529 # Look at the argument we got. We use all the common list separators.
7530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7531 for pkg in $enableval; do
7532 IFS="$lt_save_ifs"
7533 if test "X$pkg" = "X$p"; then
7534 enable_fast_install=yes
7536 done
7537 IFS="$lt_save_ifs"
7539 esac
7540 else
7541 enable_fast_install=yes
7554 # This can be used to rebuild libtool when needed
7555 LIBTOOL_DEPS="$ltmain"
7557 # Always use our own libtool.
7558 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7585 test -z "$LN_S" && LN_S="ln -s"
7600 if test -n "${ZSH_VERSION+set}" ; then
7601 setopt NO_GLOB_SUBST
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7605 $as_echo_n "checking for objdir... " >&6; }
7606 if test "${lt_cv_objdir+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 rm -f .libs 2>/dev/null
7610 mkdir .libs 2>/dev/null
7611 if test -d .libs; then
7612 lt_cv_objdir=.libs
7613 else
7614 # MS-DOS does not allow filenames that begin with a dot.
7615 lt_cv_objdir=_libs
7617 rmdir .libs 2>/dev/null
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7620 $as_echo "$lt_cv_objdir" >&6; }
7621 objdir=$lt_cv_objdir
7627 cat >>confdefs.h <<_ACEOF
7628 #define LT_OBJDIR "$lt_cv_objdir/"
7629 _ACEOF
7634 case $host_os in
7635 aix3*)
7636 # AIX sometimes has problems with the GCC collect2 program. For some
7637 # reason, if we set the COLLECT_NAMES environment variable, the problems
7638 # vanish in a puff of smoke.
7639 if test "X${COLLECT_NAMES+set}" != Xset; then
7640 COLLECT_NAMES=
7641 export COLLECT_NAMES
7644 esac
7646 # Global variables:
7647 ofile=libtool
7648 can_build_shared=yes
7650 # All known linkers require a `.a' archive for static linking (except MSVC,
7651 # which needs '.lib').
7652 libext=a
7654 with_gnu_ld="$lt_cv_prog_gnu_ld"
7656 old_CC="$CC"
7657 old_CFLAGS="$CFLAGS"
7659 # Set sane defaults for various variables
7660 test -z "$CC" && CC=cc
7661 test -z "$LTCC" && LTCC=$CC
7662 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7663 test -z "$LD" && LD=ld
7664 test -z "$ac_objext" && ac_objext=o
7666 for cc_temp in $compiler""; do
7667 case $cc_temp in
7668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7670 \-*) ;;
7671 *) break;;
7672 esac
7673 done
7674 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7677 # Only perform the check for file, if the check method requires it
7678 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7679 case $deplibs_check_method in
7680 file_magic*)
7681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7683 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7684 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 case $MAGIC_CMD in
7688 [\\/*] | ?:[\\/]*)
7689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7692 lt_save_MAGIC_CMD="$MAGIC_CMD"
7693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7695 for ac_dir in $ac_dummy; do
7696 IFS="$lt_save_ifs"
7697 test -z "$ac_dir" && ac_dir=.
7698 if test -f $ac_dir/${ac_tool_prefix}file; then
7699 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7700 if test -n "$file_magic_test_file"; then
7701 case $deplibs_check_method in
7702 "file_magic "*)
7703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7706 $EGREP "$file_magic_regex" > /dev/null; then
7708 else
7709 cat <<_LT_EOF 1>&2
7711 *** Warning: the command libtool uses to detect shared libraries,
7712 *** $file_magic_cmd, produces output that libtool cannot recognize.
7713 *** The result is that libtool may fail to recognize shared libraries
7714 *** as such. This will affect the creation of libtool libraries that
7715 *** depend on shared libraries, but programs linked with such libtool
7716 *** libraries will work regardless of this problem. Nevertheless, you
7717 *** may want to report the problem to your system manager and/or to
7718 *** bug-libtool@gnu.org
7720 _LT_EOF
7721 fi ;;
7722 esac
7724 break
7726 done
7727 IFS="$lt_save_ifs"
7728 MAGIC_CMD="$lt_save_MAGIC_CMD"
7730 esac
7733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7734 if test -n "$MAGIC_CMD"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7736 $as_echo "$MAGIC_CMD" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7746 if test -z "$lt_cv_path_MAGIC_CMD"; then
7747 if test -n "$ac_tool_prefix"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7749 $as_echo_n "checking for file... " >&6; }
7750 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 case $MAGIC_CMD in
7754 [\\/*] | ?:[\\/]*)
7755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758 lt_save_MAGIC_CMD="$MAGIC_CMD"
7759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7761 for ac_dir in $ac_dummy; do
7762 IFS="$lt_save_ifs"
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/file; then
7765 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7766 if test -n "$file_magic_test_file"; then
7767 case $deplibs_check_method in
7768 "file_magic "*)
7769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7772 $EGREP "$file_magic_regex" > /dev/null; then
7774 else
7775 cat <<_LT_EOF 1>&2
7777 *** Warning: the command libtool uses to detect shared libraries,
7778 *** $file_magic_cmd, produces output that libtool cannot recognize.
7779 *** The result is that libtool may fail to recognize shared libraries
7780 *** as such. This will affect the creation of libtool libraries that
7781 *** depend on shared libraries, but programs linked with such libtool
7782 *** libraries will work regardless of this problem. Nevertheless, you
7783 *** may want to report the problem to your system manager and/or to
7784 *** bug-libtool@gnu.org
7786 _LT_EOF
7787 fi ;;
7788 esac
7790 break
7792 done
7793 IFS="$lt_save_ifs"
7794 MAGIC_CMD="$lt_save_MAGIC_CMD"
7796 esac
7799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7800 if test -n "$MAGIC_CMD"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7802 $as_echo "$MAGIC_CMD" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 else
7810 MAGIC_CMD=:
7816 esac
7818 # Use C for the default configuration in the libtool script
7820 lt_save_CC="$CC"
7821 ac_ext=c
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828 # Source file extension for C test sources.
7829 ac_ext=c
7831 # Object file extension for compiled C test sources.
7832 objext=o
7833 objext=$objext
7835 # Code to be used in simple compile tests
7836 lt_simple_compile_test_code="int some_variable = 0;"
7838 # Code to be used in simple link tests
7839 lt_simple_link_test_code='int main(){return(0);}'
7847 # If no C compiler was specified, use CC.
7848 LTCC=${LTCC-"$CC"}
7850 # If no C compiler flags were specified, use CFLAGS.
7851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7853 # Allow CC to be a program name with arguments.
7854 compiler=$CC
7856 # Save the default compiler, since it gets overwritten when the other
7857 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7858 compiler_DEFAULT=$CC
7860 # save warnings/boilerplate of simple test code
7861 ac_outfile=conftest.$ac_objext
7862 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7863 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7864 _lt_compiler_boilerplate=`cat conftest.err`
7865 $RM conftest*
7867 ac_outfile=conftest.$ac_objext
7868 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7869 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7870 _lt_linker_boilerplate=`cat conftest.err`
7871 $RM -r conftest*
7874 ## CAVEAT EMPTOR:
7875 ## There is no encapsulation within the following macros, do not change
7876 ## the running order or otherwise move them around unless you know exactly
7877 ## what you are doing...
7878 if test -n "$compiler"; then
7880 lt_prog_compiler_no_builtin_flag=
7882 if test "$GCC" = yes; then
7883 case $cc_basename in
7884 nvcc*)
7885 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7887 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7888 esac
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7891 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7892 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 lt_cv_prog_compiler_rtti_exceptions=no
7896 ac_outfile=conftest.$ac_objext
7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898 lt_compiler_flag="-fno-rtti -fno-exceptions"
7899 # Insert the option either (1) after the last *FLAGS variable, or
7900 # (2) before a word containing "conftest.", or (3) at the end.
7901 # Note that $ac_compile itself does not contain backslashes and begins
7902 # with a dollar sign (not a hyphen), so the echo should work correctly.
7903 # The option is referenced via a variable to avoid confusing sed.
7904 lt_compile=`echo "$ac_compile" | $SED \
7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907 -e 's:$: $lt_compiler_flag:'`
7908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7909 (eval "$lt_compile" 2>conftest.err)
7910 ac_status=$?
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 if (exit $ac_status) && test -s "$ac_outfile"; then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings other than the usual output.
7916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7919 lt_cv_prog_compiler_rtti_exceptions=yes
7922 $RM conftest*
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7926 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7928 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7929 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7930 else
7941 lt_prog_compiler_wl=
7942 lt_prog_compiler_pic=
7943 lt_prog_compiler_static=
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7948 if test "$GCC" = yes; then
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_static='-static'
7952 case $host_os in
7953 aix*)
7954 # All AIX code is PIC.
7955 if test "$host_cpu" = ia64; then
7956 # AIX 5 now supports IA64 processor
7957 lt_prog_compiler_static='-Bstatic'
7961 amigaos*)
7962 case $host_cpu in
7963 powerpc)
7964 # see comment about AmigaOS4 .so support
7965 lt_prog_compiler_pic='-fPIC'
7967 m68k)
7968 # FIXME: we need at least 68020 code to build shared libraries, but
7969 # adding the `-m68020' flag to GCC prevents building anything better,
7970 # like `-m68040'.
7971 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7973 esac
7976 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7977 # PIC is the default for these OSes.
7980 mingw* | cygwin* | pw32* | os2* | cegcc*)
7981 # This hack is so that the source file can tell whether it is being
7982 # built for inclusion in a dll (and should export symbols for example).
7983 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7984 # (--disable-auto-import) libraries
7985 lt_prog_compiler_pic='-DDLL_EXPORT'
7988 darwin* | rhapsody*)
7989 # PIC is the default on this platform
7990 # Common symbols not allowed in MH_DYLIB files
7991 lt_prog_compiler_pic='-fno-common'
7994 haiku*)
7995 # PIC is the default for Haiku.
7996 # The "-static" flag exists, but is broken.
7997 lt_prog_compiler_static=
8000 hpux*)
8001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8003 # sets the default TLS model and affects inlining.
8004 case $host_cpu in
8005 hppa*64*)
8006 # +Z the default
8009 lt_prog_compiler_pic='-fPIC'
8011 esac
8014 interix[3-9]*)
8015 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8016 # Instead, we relocate shared libraries at runtime.
8019 msdosdjgpp*)
8020 # Just because we use GCC doesn't mean we suddenly get shared libraries
8021 # on systems that don't support them.
8022 lt_prog_compiler_can_build_shared=no
8023 enable_shared=no
8026 *nto* | *qnx*)
8027 # QNX uses GNU C++, but need to define -shared option too, otherwise
8028 # it will coredump.
8029 lt_prog_compiler_pic='-fPIC -shared'
8032 sysv4*MP*)
8033 if test -d /usr/nec; then
8034 lt_prog_compiler_pic=-Kconform_pic
8039 lt_prog_compiler_pic='-fPIC'
8041 esac
8043 case $cc_basename in
8044 nvcc*) # Cuda Compiler Driver 2.2
8045 lt_prog_compiler_wl='-Xlinker '
8046 lt_prog_compiler_pic='-Xcompiler -fPIC'
8048 esac
8049 else
8050 # PORTME Check for flag to pass linker flags through the system compiler.
8051 case $host_os in
8052 aix*)
8053 lt_prog_compiler_wl='-Wl,'
8054 if test "$host_cpu" = ia64; then
8055 # AIX 5 now supports IA64 processor
8056 lt_prog_compiler_static='-Bstatic'
8057 else
8058 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8062 mingw* | cygwin* | pw32* | os2* | cegcc*)
8063 # This hack is so that the source file can tell whether it is being
8064 # built for inclusion in a dll (and should export symbols for example).
8065 lt_prog_compiler_pic='-DDLL_EXPORT'
8068 hpux9* | hpux10* | hpux11*)
8069 lt_prog_compiler_wl='-Wl,'
8070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8071 # not for PA HP-UX.
8072 case $host_cpu in
8073 hppa*64*|ia64*)
8074 # +Z the default
8077 lt_prog_compiler_pic='+Z'
8079 esac
8080 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8081 lt_prog_compiler_static='${wl}-a ${wl}archive'
8084 irix5* | irix6* | nonstopux*)
8085 lt_prog_compiler_wl='-Wl,'
8086 # PIC (with -KPIC) is the default.
8087 lt_prog_compiler_static='-non_shared'
8090 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8091 case $cc_basename in
8092 # old Intel for x86_64 which still supported -KPIC.
8093 ecc*)
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-static'
8098 # icc used to be incompatible with GCC.
8099 # ICC 10 doesn't accept -KPIC any more.
8100 icc* | ifort*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fPIC'
8103 lt_prog_compiler_static='-static'
8105 # Lahey Fortran 8.1.
8106 lf95*)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='--shared'
8109 lt_prog_compiler_static='--static'
8111 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8112 # Portland Group compilers (*not* the Pentium gcc compiler,
8113 # which looks to be a dead project)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-fpic'
8116 lt_prog_compiler_static='-Bstatic'
8118 ccc*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # All Alpha code is PIC.
8121 lt_prog_compiler_static='-non_shared'
8123 xl* | bgxl* | bgf* | mpixl*)
8124 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-qpic'
8127 lt_prog_compiler_static='-qstaticlink'
8130 case `$CC -V 2>&1 | sed 5q` in
8131 *Sun\ F* | *Sun*Fortran*)
8132 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8135 lt_prog_compiler_wl=''
8137 *Sun\ C*)
8138 # Sun C 5.9
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 lt_prog_compiler_wl='-Wl,'
8143 esac
8145 esac
8148 newsos6)
8149 lt_prog_compiler_pic='-KPIC'
8150 lt_prog_compiler_static='-Bstatic'
8153 *nto* | *qnx*)
8154 # QNX uses GNU C++, but need to define -shared option too, otherwise
8155 # it will coredump.
8156 lt_prog_compiler_pic='-fPIC -shared'
8159 osf3* | osf4* | osf5*)
8160 lt_prog_compiler_wl='-Wl,'
8161 # All OSF/1 code is PIC.
8162 lt_prog_compiler_static='-non_shared'
8165 rdos*)
8166 lt_prog_compiler_static='-non_shared'
8169 solaris*)
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8172 case $cc_basename in
8173 f77* | f90* | f95*)
8174 lt_prog_compiler_wl='-Qoption ld ';;
8176 lt_prog_compiler_wl='-Wl,';;
8177 esac
8180 sunos4*)
8181 lt_prog_compiler_wl='-Qoption ld '
8182 lt_prog_compiler_pic='-PIC'
8183 lt_prog_compiler_static='-Bstatic'
8186 sysv4 | sysv4.2uw2* | sysv4.3*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8192 sysv4*MP*)
8193 if test -d /usr/nec ;then
8194 lt_prog_compiler_pic='-Kconform_pic'
8195 lt_prog_compiler_static='-Bstatic'
8199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8200 lt_prog_compiler_wl='-Wl,'
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8205 unicos*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_can_build_shared=no
8210 uts4*)
8211 lt_prog_compiler_pic='-pic'
8212 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_can_build_shared=no
8218 esac
8221 case $host_os in
8222 # For platforms which do not support PIC, -DPIC is meaningless:
8223 *djgpp*)
8224 lt_prog_compiler_pic=
8227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8229 esac
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8231 $as_echo "$lt_prog_compiler_pic" >&6; }
8239 # Check to make sure the PIC flag actually works.
8241 if test -n "$lt_prog_compiler_pic"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8243 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8244 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 lt_cv_prog_compiler_pic_works=no
8248 ac_outfile=conftest.$ac_objext
8249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8250 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8251 # Insert the option either (1) after the last *FLAGS variable, or
8252 # (2) before a word containing "conftest.", or (3) at the end.
8253 # Note that $ac_compile itself does not contain backslashes and begins
8254 # with a dollar sign (not a hyphen), so the echo should work correctly.
8255 # The option is referenced via a variable to avoid confusing sed.
8256 lt_compile=`echo "$ac_compile" | $SED \
8257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8259 -e 's:$: $lt_compiler_flag:'`
8260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8261 (eval "$lt_compile" 2>conftest.err)
8262 ac_status=$?
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 if (exit $ac_status) && test -s "$ac_outfile"; then
8266 # The compiler can only warn and ignore the option if not recognized
8267 # So say no if there are warnings other than the usual output.
8268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8271 lt_cv_prog_compiler_pic_works=yes
8274 $RM conftest*
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8278 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8280 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8281 case $lt_prog_compiler_pic in
8282 "" | " "*) ;;
8283 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8284 esac
8285 else
8286 lt_prog_compiler_pic=
8287 lt_prog_compiler_can_build_shared=no
8298 # Check to make sure the static flag actually works.
8300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8303 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 lt_cv_prog_compiler_static_works=no
8307 save_LDFLAGS="$LDFLAGS"
8308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8311 # The linker can only warn and ignore the option if not recognized
8312 # So say no if there are warnings
8313 if test -s conftest.err; then
8314 # Append any errors to the config.log.
8315 cat conftest.err 1>&5
8316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8318 if diff conftest.exp conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_static_works=yes
8321 else
8322 lt_cv_prog_compiler_static_works=yes
8325 $RM -r conftest*
8326 LDFLAGS="$save_LDFLAGS"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8330 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8332 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8334 else
8335 lt_prog_compiler_static=
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8346 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 lt_cv_prog_compiler_c_o=no
8350 $RM -r conftest 2>/dev/null
8351 mkdir conftest
8352 cd conftest
8353 mkdir out
8354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8356 lt_compiler_flag="-o out/conftest2.$ac_objext"
8357 # Insert the option either (1) after the last *FLAGS variable, or
8358 # (2) before a word containing "conftest.", or (3) at the end.
8359 # Note that $ac_compile itself does not contain backslashes and begins
8360 # with a dollar sign (not a hyphen), so the echo should work correctly.
8361 lt_compile=`echo "$ac_compile" | $SED \
8362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8364 -e 's:$: $lt_compiler_flag:'`
8365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8366 (eval "$lt_compile" 2>out/conftest.err)
8367 ac_status=$?
8368 cat out/conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8371 then
8372 # The compiler can only warn and ignore the option if not recognized
8373 # So say no if there are warnings
8374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8377 lt_cv_prog_compiler_c_o=yes
8380 chmod u+w . 2>&5
8381 $RM conftest*
8382 # SGI C++ compiler will create directory out/ii_files/ for
8383 # template instantiation
8384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8385 $RM out/* && rmdir out
8386 cd ..
8387 $RM -r conftest
8388 $RM conftest*
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 lt_cv_prog_compiler_c_o=no
8405 $RM -r conftest 2>/dev/null
8406 mkdir conftest
8407 cd conftest
8408 mkdir out
8409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8411 lt_compiler_flag="-o out/conftest2.$ac_objext"
8412 # Insert the option either (1) after the last *FLAGS variable, or
8413 # (2) before a word containing "conftest.", or (3) at the end.
8414 # Note that $ac_compile itself does not contain backslashes and begins
8415 # with a dollar sign (not a hyphen), so the echo should work correctly.
8416 lt_compile=`echo "$ac_compile" | $SED \
8417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419 -e 's:$: $lt_compiler_flag:'`
8420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8421 (eval "$lt_compile" 2>out/conftest.err)
8422 ac_status=$?
8423 cat out/conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8426 then
8427 # The compiler can only warn and ignore the option if not recognized
8428 # So say no if there are warnings
8429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8432 lt_cv_prog_compiler_c_o=yes
8435 chmod u+w . 2>&5
8436 $RM conftest*
8437 # SGI C++ compiler will create directory out/ii_files/ for
8438 # template instantiation
8439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8440 $RM out/* && rmdir out
8441 cd ..
8442 $RM -r conftest
8443 $RM conftest*
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8447 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452 hard_links="nottested"
8453 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8454 # do not overwrite the value of need_locks provided by the user
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8456 $as_echo_n "checking if we can lock with hard links... " >&6; }
8457 hard_links=yes
8458 $RM conftest*
8459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8460 touch conftest.a
8461 ln conftest.a conftest.b 2>&5 || hard_links=no
8462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8464 $as_echo "$hard_links" >&6; }
8465 if test "$hard_links" = no; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8467 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8468 need_locks=warn
8470 else
8471 need_locks=no
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8480 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8482 runpath_var=
8483 allow_undefined_flag=
8484 always_export_symbols=no
8485 archive_cmds=
8486 archive_expsym_cmds=
8487 compiler_needs_object=no
8488 enable_shared_with_static_runtimes=no
8489 export_dynamic_flag_spec=
8490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8491 hardcode_automatic=no
8492 hardcode_direct=no
8493 hardcode_direct_absolute=no
8494 hardcode_libdir_flag_spec=
8495 hardcode_libdir_flag_spec_ld=
8496 hardcode_libdir_separator=
8497 hardcode_minus_L=no
8498 hardcode_shlibpath_var=unsupported
8499 inherit_rpath=no
8500 link_all_deplibs=unknown
8501 module_cmds=
8502 module_expsym_cmds=
8503 old_archive_from_new_cmds=
8504 old_archive_from_expsyms_cmds=
8505 thread_safe_flag_spec=
8506 whole_archive_flag_spec=
8507 # include_expsyms should be a list of space-separated symbols to be *always*
8508 # included in the symbol list
8509 include_expsyms=
8510 # exclude_expsyms can be an extended regexp of symbols to exclude
8511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8513 # as well as any symbol that contains `d'.
8514 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8516 # platforms (ab)use it in PIC code, but their linkers get confused if
8517 # the symbol is explicitly referenced. Since portable code cannot
8518 # rely on this symbol name, it's probably fine to never include it in
8519 # preloaded symbol tables.
8520 # Exclude shared library initialization/finalization symbols.
8521 extract_expsyms_cmds=
8523 case $host_os in
8524 cygwin* | mingw* | pw32* | cegcc*)
8525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8526 # When not using gcc, we currently assume that we are using
8527 # Microsoft Visual C++.
8528 if test "$GCC" != yes; then
8529 with_gnu_ld=no
8532 interix*)
8533 # we just hope/assume this is gcc and not c89 (= MSVC++)
8534 with_gnu_ld=yes
8536 openbsd*)
8537 with_gnu_ld=no
8539 esac
8541 ld_shlibs=yes
8543 # On some targets, GNU ld is compatible enough with the native linker
8544 # that we're better off using the native interface for both.
8545 lt_use_gnu_ld_interface=no
8546 if test "$with_gnu_ld" = yes; then
8547 case $host_os in
8548 aix*)
8549 # The AIX port of GNU ld has always aspired to compatibility
8550 # with the native linker. However, as the warning in the GNU ld
8551 # block says, versions before 2.19.5* couldn't really create working
8552 # shared libraries, regardless of the interface used.
8553 case `$LD -v 2>&1` in
8554 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8555 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8556 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8558 lt_use_gnu_ld_interface=yes
8560 esac
8563 lt_use_gnu_ld_interface=yes
8565 esac
8568 if test "$lt_use_gnu_ld_interface" = yes; then
8569 # If archive_cmds runs LD, not CC, wlarc should be empty
8570 wlarc='${wl}'
8572 # Set some defaults for GNU ld with shared library support. These
8573 # are reset later if shared libraries are not supported. Putting them
8574 # here allows them to be overridden if necessary.
8575 runpath_var=LD_RUN_PATH
8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577 export_dynamic_flag_spec='${wl}--export-dynamic'
8578 # ancient GNU ld didn't support --whole-archive et. al.
8579 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8581 else
8582 whole_archive_flag_spec=
8584 supports_anon_versioning=no
8585 case `$LD -v 2>&1` in
8586 *GNU\ gold*) supports_anon_versioning=yes ;;
8587 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8588 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8589 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8590 *\ 2.11.*) ;; # other 2.11 versions
8591 *) supports_anon_versioning=yes ;;
8592 esac
8594 # See if GNU ld supports shared libraries.
8595 case $host_os in
8596 aix[3-9]*)
8597 # On AIX/PPC, the GNU linker is very broken
8598 if test "$host_cpu" != ia64; then
8599 ld_shlibs=no
8600 cat <<_LT_EOF 1>&2
8602 *** Warning: the GNU linker, at least up to release 2.19, is reported
8603 *** to be unable to reliably create shared libraries on AIX.
8604 *** Therefore, libtool is disabling shared libraries support. If you
8605 *** really care for shared libraries, you may want to install binutils
8606 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8607 *** You will then need to restart the configuration process.
8609 _LT_EOF
8613 amigaos*)
8614 case $host_cpu in
8615 powerpc)
8616 # see comment about AmigaOS4 .so support
8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 archive_expsym_cmds=''
8620 m68k)
8621 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)'
8622 hardcode_libdir_flag_spec='-L$libdir'
8623 hardcode_minus_L=yes
8625 esac
8628 beos*)
8629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8630 allow_undefined_flag=unsupported
8631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8632 # support --undefined. This deserves some investigation. FIXME
8633 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 else
8635 ld_shlibs=no
8639 cygwin* | mingw* | pw32* | cegcc*)
8640 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8641 # as there is no search path for DLLs.
8642 hardcode_libdir_flag_spec='-L$libdir'
8643 export_dynamic_flag_spec='${wl}--export-all-symbols'
8644 allow_undefined_flag=unsupported
8645 always_export_symbols=no
8646 enable_shared_with_static_runtimes=yes
8647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8649 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8651 # If the export-symbols file already is a .def file (1st line
8652 # is EXPORTS), use it as is; otherwise, prepend...
8653 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8654 cp $export_symbols $output_objdir/$soname.def;
8655 else
8656 echo EXPORTS > $output_objdir/$soname.def;
8657 cat $export_symbols >> $output_objdir/$soname.def;
8659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8660 else
8661 ld_shlibs=no
8665 haiku*)
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 link_all_deplibs=yes
8670 interix[3-9]*)
8671 hardcode_direct=no
8672 hardcode_shlibpath_var=no
8673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674 export_dynamic_flag_spec='${wl}-E'
8675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8676 # Instead, shared libraries are loaded at an image base (0x10000000 by
8677 # default) and relocated if they conflict, which is a slow very memory
8678 # consuming and fragmenting process. To avoid this, we pick a random,
8679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8682 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'
8685 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8686 tmp_diet=no
8687 if test "$host_os" = linux-dietlibc; then
8688 case $cc_basename in
8689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8690 esac
8692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8693 && test "$tmp_diet" = no
8694 then
8695 tmp_addflag=
8696 tmp_sharedflag='-shared'
8697 case $cc_basename,$host_cpu in
8698 pgcc*) # Portland Group C compiler
8699 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'
8700 tmp_addflag=' $pic_flag'
8702 pgf77* | pgf90* | pgf95* | pgfortran*)
8703 # Portland Group f77 and f90 compilers
8704 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'
8705 tmp_addflag=' $pic_flag -Mnomain' ;;
8706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8707 tmp_addflag=' -i_dynamic' ;;
8708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8709 tmp_addflag=' -i_dynamic -nofor_main' ;;
8710 ifc* | ifort*) # Intel Fortran compiler
8711 tmp_addflag=' -nofor_main' ;;
8712 lf95*) # Lahey Fortran 8.1
8713 whole_archive_flag_spec=
8714 tmp_sharedflag='--shared' ;;
8715 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8716 tmp_sharedflag='-qmkshrobj'
8717 tmp_addflag= ;;
8718 nvcc*) # Cuda Compiler Driver 2.2
8719 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'
8720 compiler_needs_object=yes
8722 esac
8723 case `$CC -V 2>&1 | sed 5q` in
8724 *Sun\ C*) # Sun C 5.9
8725 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'
8726 compiler_needs_object=yes
8727 tmp_sharedflag='-G' ;;
8728 *Sun\ F*) # Sun Fortran 8.3
8729 tmp_sharedflag='-G' ;;
8730 esac
8731 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 if test "x$supports_anon_versioning" = xyes; then
8734 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8736 echo "local: *; };" >> $output_objdir/$libname.ver~
8737 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8740 case $cc_basename in
8741 xlf* | bgf* | bgxlf* | mpixlf*)
8742 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8743 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8744 hardcode_libdir_flag_spec=
8745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8746 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8747 if test "x$supports_anon_versioning" = xyes; then
8748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8750 echo "local: *; };" >> $output_objdir/$libname.ver~
8751 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8754 esac
8755 else
8756 ld_shlibs=no
8760 netbsd*)
8761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8762 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8763 wlarc=
8764 else
8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770 solaris*)
8771 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8772 ld_shlibs=no
8773 cat <<_LT_EOF 1>&2
8775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8776 *** create shared libraries on Solaris systems. Therefore, libtool
8777 *** is disabling shared libraries support. We urge you to upgrade GNU
8778 *** binutils to release 2.9.1 or newer. Another option is to modify
8779 *** your PATH or compiler configuration so that the native linker is
8780 *** used, and then restart.
8782 _LT_EOF
8783 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786 else
8787 ld_shlibs=no
8791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8792 case `$LD -v 2>&1` in
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8794 ld_shlibs=no
8795 cat <<_LT_EOF 1>&2
8797 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8798 *** reliably create shared libraries on SCO systems. Therefore, libtool
8799 *** is disabling shared libraries support. We urge you to upgrade GNU
8800 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8801 *** your PATH or compiler configuration so that the native linker is
8802 *** used, and then restart.
8804 _LT_EOF
8807 # For security reasons, it is highly recommended that you always
8808 # use absolute paths for naming shared libraries, and exclude the
8809 # DT_RUNPATH tag from executables and libraries. But doing so
8810 # requires that you compile everything twice, which is a pain.
8811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8815 else
8816 ld_shlibs=no
8819 esac
8822 sunos4*)
8823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8824 wlarc=
8825 hardcode_direct=yes
8826 hardcode_shlibpath_var=no
8830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833 else
8834 ld_shlibs=no
8837 esac
8839 if test "$ld_shlibs" = no; then
8840 runpath_var=
8841 hardcode_libdir_flag_spec=
8842 export_dynamic_flag_spec=
8843 whole_archive_flag_spec=
8845 else
8846 # PORTME fill in a description of your system's linker (not GNU ld)
8847 case $host_os in
8848 aix3*)
8849 allow_undefined_flag=unsupported
8850 always_export_symbols=yes
8851 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'
8852 # Note: this linker hardcodes the directories in LIBPATH if there
8853 # are no directories specified by -L.
8854 hardcode_minus_L=yes
8855 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8856 # Neither direct hardcoding nor static linking is supported with a
8857 # broken collect2.
8858 hardcode_direct=unsupported
8862 aix[4-9]*)
8863 if test "$host_cpu" = ia64; then
8864 # On IA64, the linker does run time linking by default, so we don't
8865 # have to do anything special.
8866 aix_use_runtimelinking=no
8867 exp_sym_flag='-Bexport'
8868 no_entry_flag=""
8869 else
8870 # If we're using GNU nm, then we don't want the "-C" option.
8871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8872 # Also, AIX nm treats weak defined symbols like other global
8873 # defined symbols, whereas GNU nm marks them as "W".
8874 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8875 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'
8876 else
8877 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'
8879 aix_use_runtimelinking=no
8881 # Test if we are trying to use run time linking or normal
8882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8883 # need to do runtime linking.
8884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8885 for ld_flag in $LDFLAGS; do
8886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8887 aix_use_runtimelinking=yes
8888 break
8890 done
8892 esac
8894 exp_sym_flag='-bexport'
8895 no_entry_flag='-bnoentry'
8898 # When large executables or shared objects are built, AIX ld can
8899 # have problems creating the table of contents. If linking a library
8900 # or program results in "error TOC overflow" add -mminimal-toc to
8901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8904 archive_cmds=''
8905 hardcode_direct=yes
8906 hardcode_direct_absolute=yes
8907 hardcode_libdir_separator=':'
8908 link_all_deplibs=yes
8909 file_list_spec='${wl}-f,'
8911 if test "$GCC" = yes; then
8912 case $host_os in aix4.[012]|aix4.[012].*)
8913 # We only want to do this on AIX 4.2 and lower, the check
8914 # below for broken collect2 doesn't work under 4.3+
8915 collect2name=`${CC} -print-prog-name=collect2`
8916 if test -f "$collect2name" &&
8917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8918 then
8919 # We have reworked collect2
8921 else
8922 # We have old collect2
8923 hardcode_direct=unsupported
8924 # It fails to find uninstalled libraries when the uninstalled
8925 # path is not listed in the libpath. Setting hardcode_minus_L
8926 # to unsupported forces relinking
8927 hardcode_minus_L=yes
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_libdir_separator=
8932 esac
8933 shared_flag='-shared'
8934 if test "$aix_use_runtimelinking" = yes; then
8935 shared_flag="$shared_flag "'${wl}-G'
8937 else
8938 # not using gcc
8939 if test "$host_cpu" = ia64; then
8940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8941 # chokes on -Wl,-G. The following line is correct:
8942 shared_flag='-G'
8943 else
8944 if test "$aix_use_runtimelinking" = yes; then
8945 shared_flag='${wl}-G'
8946 else
8947 shared_flag='${wl}-bM:SRE'
8952 export_dynamic_flag_spec='${wl}-bexpall'
8953 # It seems that -bexpall does not export symbols beginning with
8954 # underscore (_), so it is better to generate a list of symbols to export.
8955 always_export_symbols=yes
8956 if test "$aix_use_runtimelinking" = yes; then
8957 # Warning - without using the other runtime loading flags (-brtl),
8958 # -berok will link without error, but may produce a broken library.
8959 allow_undefined_flag='-berok'
8960 # Determine the default libpath from the value encoded in an
8961 # empty executable.
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8966 main ()
8970 return 0;
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8975 lt_aix_libpath_sed='
8976 /Import File Strings/,/^$/ {
8977 /^0/ {
8978 s/^0 *\(.*\)$/\1/
8982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8983 # Check for a 64-bit object if we didn't find anything.
8984 if test -z "$aix_libpath"; then
8985 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8993 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"
8994 else
8995 if test "$host_cpu" = ia64; then
8996 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8997 allow_undefined_flag="-z nodefs"
8998 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"
8999 else
9000 # Determine the default libpath from the value encoded in an
9001 # empty executable.
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9006 main ()
9010 return 0;
9012 _ACEOF
9013 if ac_fn_c_try_link "$LINENO"; then :
9015 lt_aix_libpath_sed='
9016 /Import File Strings/,/^$/ {
9017 /^0/ {
9018 s/^0 *\(.*\)$/\1/
9022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023 # Check for a 64-bit object if we didn't find anything.
9024 if test -z "$aix_libpath"; then
9025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9033 # Warning - without using the other run time loading flags,
9034 # -berok will link without error, but may produce a broken library.
9035 no_undefined_flag=' ${wl}-bernotok'
9036 allow_undefined_flag=' ${wl}-berok'
9037 if test "$with_gnu_ld" = yes; then
9038 # We only use this code for GNU lds that support --whole-archive.
9039 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9040 else
9041 # Exported symbols can be pulled into shared objects from archives
9042 whole_archive_flag_spec='$convenience'
9044 archive_cmds_need_lc=yes
9045 # This is similar to how AIX traditionally builds its shared libraries.
9046 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'
9051 amigaos*)
9052 case $host_cpu in
9053 powerpc)
9054 # see comment about AmigaOS4 .so support
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds=''
9058 m68k)
9059 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)'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_minus_L=yes
9063 esac
9066 bsdi[45]*)
9067 export_dynamic_flag_spec=-rdynamic
9070 cygwin* | mingw* | pw32* | cegcc*)
9071 # When not using gcc, we currently assume that we are using
9072 # Microsoft Visual C++.
9073 # hardcode_libdir_flag_spec is actually meaningless, as there is
9074 # no search path for DLLs.
9075 hardcode_libdir_flag_spec=' '
9076 allow_undefined_flag=unsupported
9077 # Tell ltmain to make .lib files, not .a files.
9078 libext=lib
9079 # Tell ltmain to make .dll files, not .so files.
9080 shrext_cmds=".dll"
9081 # FIXME: Setting linknames here is a bad hack.
9082 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9083 # The linker will automatically build a .lib file if we build a DLL.
9084 old_archive_from_new_cmds='true'
9085 # FIXME: Should let the user specify the lib program.
9086 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9087 fix_srcfile_path='`cygpath -w "$srcfile"`'
9088 enable_shared_with_static_runtimes=yes
9091 darwin* | rhapsody*)
9094 archive_cmds_need_lc=no
9095 hardcode_direct=no
9096 hardcode_automatic=yes
9097 hardcode_shlibpath_var=unsupported
9098 if test "$lt_cv_ld_force_load" = "yes"; then
9099 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\"`'
9100 else
9101 whole_archive_flag_spec=''
9103 link_all_deplibs=yes
9104 allow_undefined_flag="$_lt_dar_allow_undefined"
9105 case $cc_basename in
9106 ifort*) _lt_dar_can_shared=yes ;;
9107 *) _lt_dar_can_shared=$GCC ;;
9108 esac
9109 if test "$_lt_dar_can_shared" = "yes"; then
9110 output_verbose_link_cmd=func_echo_all
9111 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9112 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9113 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}"
9114 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}"
9116 else
9117 ld_shlibs=no
9122 dgux*)
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_shlibpath_var=no
9128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9129 # support. Future versions do this automatically, but an explicit c++rt0.o
9130 # does not break anything, and helps significantly (at the cost of a little
9131 # extra space).
9132 freebsd2.2*)
9133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9134 hardcode_libdir_flag_spec='-R$libdir'
9135 hardcode_direct=yes
9136 hardcode_shlibpath_var=no
9139 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9140 freebsd2*)
9141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9142 hardcode_direct=yes
9143 hardcode_minus_L=yes
9144 hardcode_shlibpath_var=no
9147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9148 freebsd* | dragonfly*)
9149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9150 hardcode_libdir_flag_spec='-R$libdir'
9151 hardcode_direct=yes
9152 hardcode_shlibpath_var=no
9155 hpux9*)
9156 if test "$GCC" = yes; then
9157 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'
9158 else
9159 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'
9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162 hardcode_libdir_separator=:
9163 hardcode_direct=yes
9165 # hardcode_minus_L: Not really in the search PATH,
9166 # but as the default location of the library.
9167 hardcode_minus_L=yes
9168 export_dynamic_flag_spec='${wl}-E'
9171 hpux10*)
9172 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9173 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174 else
9175 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9177 if test "$with_gnu_ld" = no; then
9178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179 hardcode_libdir_flag_spec_ld='+b $libdir'
9180 hardcode_libdir_separator=:
9181 hardcode_direct=yes
9182 hardcode_direct_absolute=yes
9183 export_dynamic_flag_spec='${wl}-E'
9184 # hardcode_minus_L: Not really in the search PATH,
9185 # but as the default location of the library.
9186 hardcode_minus_L=yes
9190 hpux11*)
9191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9192 case $host_cpu in
9193 hppa*64*)
9194 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 ia64*)
9197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9202 esac
9203 else
9204 case $host_cpu in
9205 hppa*64*)
9206 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208 ia64*)
9209 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9213 # Older versions of the 11.00 compiler do not understand -b yet
9214 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9216 $as_echo_n "checking if $CC understands -b... " >&6; }
9217 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_prog_compiler__b=no
9221 save_LDFLAGS="$LDFLAGS"
9222 LDFLAGS="$LDFLAGS -b"
9223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9225 # The linker can only warn and ignore the option if not recognized
9226 # So say no if there are warnings
9227 if test -s conftest.err; then
9228 # Append any errors to the config.log.
9229 cat conftest.err 1>&5
9230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler__b=yes
9235 else
9236 lt_cv_prog_compiler__b=yes
9239 $RM -r conftest*
9240 LDFLAGS="$save_LDFLAGS"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9244 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9246 if test x"$lt_cv_prog_compiler__b" = xyes; then
9247 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9248 else
9249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9253 esac
9255 if test "$with_gnu_ld" = no; then
9256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9257 hardcode_libdir_separator=:
9259 case $host_cpu in
9260 hppa*64*|ia64*)
9261 hardcode_direct=no
9262 hardcode_shlibpath_var=no
9265 hardcode_direct=yes
9266 hardcode_direct_absolute=yes
9267 export_dynamic_flag_spec='${wl}-E'
9269 # hardcode_minus_L: Not really in the search PATH,
9270 # but as the default location of the library.
9271 hardcode_minus_L=yes
9273 esac
9277 irix5* | irix6* | nonstopux*)
9278 if test "$GCC" = yes; then
9279 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'
9280 # Try to use the -exported_symbol ld option, if it does not
9281 # work, assume that -exports_file does not work either and
9282 # implicitly export all symbols.
9283 save_LDFLAGS="$LDFLAGS"
9284 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 int foo(void) {}
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 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'
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LDFLAGS="$save_LDFLAGS"
9296 else
9297 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'
9298 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'
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator=:
9303 inherit_rpath=yes
9304 link_all_deplibs=yes
9307 netbsd*)
9308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9310 else
9311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_direct=yes
9315 hardcode_shlibpath_var=no
9318 newsos6)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=yes
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 hardcode_libdir_separator=:
9323 hardcode_shlibpath_var=no
9326 *nto* | *qnx*)
9329 openbsd*)
9330 if test -f /usr/libexec/ld.so; then
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 hardcode_direct_absolute=yes
9334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9338 export_dynamic_flag_spec='${wl}-E'
9339 else
9340 case $host_os in
9341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_libdir_flag_spec='-R$libdir'
9346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9349 esac
9351 else
9352 ld_shlibs=no
9356 os2*)
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_minus_L=yes
9359 allow_undefined_flag=unsupported
9360 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'
9361 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9364 osf3*)
9365 if test "$GCC" = yes; then
9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9367 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'
9368 else
9369 allow_undefined_flag=' -expect_unresolved \*'
9370 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'
9372 archive_cmds_need_lc='no'
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 hardcode_libdir_separator=:
9377 osf4* | osf5*) # as osf3* with the addition of -msym flag
9378 if test "$GCC" = yes; then
9379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9380 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'
9381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382 else
9383 allow_undefined_flag=' -expect_unresolved \*'
9384 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'
9385 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~
9386 $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'
9388 # Both c and cxx compiler support -rpath directly
9389 hardcode_libdir_flag_spec='-rpath $libdir'
9391 archive_cmds_need_lc='no'
9392 hardcode_libdir_separator=:
9395 solaris*)
9396 no_undefined_flag=' -z defs'
9397 if test "$GCC" = yes; then
9398 wlarc='${wl}'
9399 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9401 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9402 else
9403 case `$CC -V 2>&1` in
9404 *"Compilers 5.0"*)
9405 wlarc=''
9406 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9411 wlarc='${wl}'
9412 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9414 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9416 esac
9418 hardcode_libdir_flag_spec='-R$libdir'
9419 hardcode_shlibpath_var=no
9420 case $host_os in
9421 solaris2.[0-5] | solaris2.[0-5].*) ;;
9423 # The compiler driver will combine and reorder linker options,
9424 # but understands `-z linker_flag'. GCC discards it without `$wl',
9425 # but is careful enough not to reorder.
9426 # Supported since Solaris 2.6 (maybe 2.5.1?)
9427 if test "$GCC" = yes; then
9428 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9429 else
9430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9433 esac
9434 link_all_deplibs=yes
9437 sunos4*)
9438 if test "x$host_vendor" = xsequent; then
9439 # Use $CC to link under sequent, because it throws in some extra .o
9440 # files that make .init and .fini sections work.
9441 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9442 else
9443 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_direct=yes
9447 hardcode_minus_L=yes
9448 hardcode_shlibpath_var=no
9451 sysv4)
9452 case $host_vendor in
9453 sni)
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_direct=yes # is this really true???
9457 siemens)
9458 ## LD is ld it makes a PLAMLIB
9459 ## CC just makes a GrossModule.
9460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9461 reload_cmds='$CC -r -o $output$reload_objs'
9462 hardcode_direct=no
9464 motorola)
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9468 esac
9469 runpath_var='LD_RUN_PATH'
9470 hardcode_shlibpath_var=no
9473 sysv4.3*)
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_shlibpath_var=no
9476 export_dynamic_flag_spec='-Bexport'
9479 sysv4*MP*)
9480 if test -d /usr/nec; then
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var=no
9483 runpath_var=LD_RUN_PATH
9484 hardcode_runpath_var=yes
9485 ld_shlibs=yes
9489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9490 no_undefined_flag='${wl}-z,text'
9491 archive_cmds_need_lc=no
9492 hardcode_shlibpath_var=no
9493 runpath_var='LD_RUN_PATH'
9495 if test "$GCC" = yes; then
9496 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 else
9499 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 sysv5* | sco3.2v5* | sco5v6*)
9505 # Note: We can NOT use -z defs as we might desire, because we do not
9506 # link with -lc, and that would cause any symbols used from libc to
9507 # always be unresolved, which means just about no library would
9508 # ever link correctly. If we're not using GNU ld we use -z text
9509 # though, which does catch some bad symbols but isn't as heavy-handed
9510 # as -z defs.
9511 no_undefined_flag='${wl}-z,text'
9512 allow_undefined_flag='${wl}-z,nodefs'
9513 archive_cmds_need_lc=no
9514 hardcode_shlibpath_var=no
9515 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9516 hardcode_libdir_separator=':'
9517 link_all_deplibs=yes
9518 export_dynamic_flag_spec='${wl}-Bexport'
9519 runpath_var='LD_RUN_PATH'
9521 if test "$GCC" = yes; then
9522 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 else
9525 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 uts4*)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 hardcode_shlibpath_var=no
9537 ld_shlibs=no
9539 esac
9541 if test x$host_vendor = xsni; then
9542 case $host in
9543 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9544 export_dynamic_flag_spec='${wl}-Blargedynsym'
9546 esac
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9551 $as_echo "$ld_shlibs" >&6; }
9552 test "$ld_shlibs" = no && can_build_shared=no
9554 with_gnu_ld=$with_gnu_ld
9571 # Do we need to explicitly link libc?
9573 case "x$archive_cmds_need_lc" in
9574 x|xyes)
9575 # Assume -lc should be added
9576 archive_cmds_need_lc=yes
9578 if test "$enable_shared" = yes && test "$GCC" = yes; then
9579 case $archive_cmds in
9580 *'~'*)
9581 # FIXME: we may have to deal with multi-command sequences.
9583 '$CC '*)
9584 # Test whether the compiler implicitly links with -lc since on some
9585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9586 # to ld, don't add -lc before -lgcc.
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9589 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 $RM conftest*
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596 (eval $ac_compile) 2>&5
9597 ac_status=$?
9598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599 test $ac_status = 0; } 2>conftest.err; then
9600 soname=conftest
9601 lib=conftest
9602 libobjs=conftest.$ac_objext
9603 deplibs=
9604 wl=$lt_prog_compiler_wl
9605 pic_flag=$lt_prog_compiler_pic
9606 compiler_flags=-v
9607 linker_flags=-v
9608 verstring=
9609 output_objdir=.
9610 libname=conftest
9611 lt_save_allow_undefined_flag=$allow_undefined_flag
9612 allow_undefined_flag=
9613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9615 ac_status=$?
9616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9617 test $ac_status = 0; }
9618 then
9619 lt_cv_archive_cmds_need_lc=no
9620 else
9621 lt_cv_archive_cmds_need_lc=yes
9623 allow_undefined_flag=$lt_save_allow_undefined_flag
9624 else
9625 cat conftest.err 1>&5
9627 $RM conftest*
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9631 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9632 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9634 esac
9637 esac
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9796 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9798 if test "$GCC" = yes; then
9799 case $host_os in
9800 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9801 *) lt_awk_arg="/^libraries:/" ;;
9802 esac
9803 case $host_os in
9804 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9805 *) lt_sed_strip_eq="s,=/,/,g" ;;
9806 esac
9807 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9808 case $lt_search_path_spec in
9809 *\;*)
9810 # if the path contains ";" then we assume it to be the separator
9811 # otherwise default to the standard path separator (i.e. ":") - it is
9812 # assumed that no part of a normal pathname contains ";" but that should
9813 # okay in the real world where ";" in dirpaths is itself problematic.
9814 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9819 esac
9820 # Ok, now we have the path, separated by spaces, we can step through it
9821 # and add multilib dir if necessary.
9822 lt_tmp_lt_search_path_spec=
9823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9824 for lt_sys_path in $lt_search_path_spec; do
9825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9827 else
9828 test -d "$lt_sys_path" && \
9829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9831 done
9832 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9833 BEGIN {RS=" "; FS="/|\n";} {
9834 lt_foo="";
9835 lt_count=0;
9836 for (lt_i = NF; lt_i > 0; lt_i--) {
9837 if ($lt_i != "" && $lt_i != ".") {
9838 if ($lt_i == "..") {
9839 lt_count++;
9840 } else {
9841 if (lt_count == 0) {
9842 lt_foo="/" $lt_i lt_foo;
9843 } else {
9844 lt_count--;
9849 if (lt_foo != "") { lt_freq[lt_foo]++; }
9850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9852 # AWK program above erroneously prepends '/' to C:/dos/paths
9853 # for these hosts.
9854 case $host_os in
9855 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9856 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9857 esac
9858 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9859 else
9860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9862 library_names_spec=
9863 libname_spec='lib$name'
9864 soname_spec=
9865 shrext_cmds=".so"
9866 postinstall_cmds=
9867 postuninstall_cmds=
9868 finish_cmds=
9869 finish_eval=
9870 shlibpath_var=
9871 shlibpath_overrides_runpath=unknown
9872 version_type=none
9873 dynamic_linker="$host_os ld.so"
9874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9875 need_lib_prefix=unknown
9876 hardcode_into_libs=no
9878 # when you set need_version to no, make sure it does not cause -set_version
9879 # flags to be left without arguments
9880 need_version=unknown
9882 case $host_os in
9883 aix3*)
9884 version_type=linux
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9886 shlibpath_var=LIBPATH
9888 # AIX 3 has no versioning support, so we append a major version to the name.
9889 soname_spec='${libname}${release}${shared_ext}$major'
9892 aix[4-9]*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 hardcode_into_libs=yes
9897 if test "$host_cpu" = ia64; then
9898 # AIX 5 supports IA64
9899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 else
9902 # With GCC up to 2.95.x, collect2 would create an import file
9903 # for dependence libraries. The import file would start with
9904 # the line `#! .'. This would cause the generated library to
9905 # depend on `.', always an invalid library. This was fixed in
9906 # development snapshots of GCC prior to 3.0.
9907 case $host_os in
9908 aix4 | aix4.[01] | aix4.[01].*)
9909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9910 echo ' yes '
9911 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9913 else
9914 can_build_shared=no
9917 esac
9918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9919 # soname into executable. Probably we can add versioning support to
9920 # collect2, so additional links can be useful in future.
9921 if test "$aix_use_runtimelinking" = yes; then
9922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9923 # instead of lib<name>.a to let people know that these are not
9924 # typical AIX shared libraries.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 else
9927 # We preserve .a as extension for shared libraries through AIX4.2
9928 # and later when we are not doing run time linking.
9929 library_names_spec='${libname}${release}.a $libname.a'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LIBPATH
9936 amigaos*)
9937 case $host_cpu in
9938 powerpc)
9939 # Since July 2007 AmigaOS4 officially supports .so libraries.
9940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 m68k)
9944 library_names_spec='$libname.ixlibrary $libname.a'
9945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9946 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'
9948 esac
9951 beos*)
9952 library_names_spec='${libname}${shared_ext}'
9953 dynamic_linker="$host_os ld.so"
9954 shlibpath_var=LIBRARY_PATH
9957 bsdi[45]*)
9958 version_type=linux
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9966 # the default ld.so.conf also contains /usr/contrib/lib and
9967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9968 # libtool to hard-code these into programs
9971 cygwin* | mingw* | pw32* | cegcc*)
9972 version_type=windows
9973 shrext_cmds=".dll"
9974 need_version=no
9975 need_lib_prefix=no
9977 case $GCC,$host_os in
9978 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9979 library_names_spec='$libname.dll.a'
9980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9981 postinstall_cmds='base_file=`basename \${file}`~
9982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9983 dldir=$destdir/`dirname \$dlpath`~
9984 test -d \$dldir || mkdir -p \$dldir~
9985 $install_prog $dir/$dlname \$dldir/$dlname~
9986 chmod a+x \$dldir/$dlname~
9987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9991 dlpath=$dir/\$dldll~
9992 $RM \$dlpath'
9993 shlibpath_overrides_runpath=yes
9995 case $host_os in
9996 cygwin*)
9997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10002 mingw* | cegcc*)
10003 # MinGW DLLs use traditional 'lib' prefix
10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006 pw32*)
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10010 esac
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 esac
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10019 shlibpath_var=PATH
10022 darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
10031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10037 dgux*)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10046 freebsd* | dragonfly*)
10047 # DragonFly does not have aout. When/if they implement a new
10048 # versioning mechanism, adjust this.
10049 if test -x /usr/bin/objformat; then
10050 objformat=`/usr/bin/objformat`
10051 else
10052 case $host_os in
10053 freebsd[123]*) objformat=aout ;;
10054 *) objformat=elf ;;
10055 esac
10057 version_type=freebsd-$objformat
10058 case $version_type in
10059 freebsd-elf*)
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10061 need_version=no
10062 need_lib_prefix=no
10064 freebsd-*)
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10066 need_version=yes
10068 esac
10069 shlibpath_var=LD_LIBRARY_PATH
10070 case $host_os in
10071 freebsd2*)
10072 shlibpath_overrides_runpath=yes
10074 freebsd3.[01]* | freebsdelf3.[01]*)
10075 shlibpath_overrides_runpath=yes
10076 hardcode_into_libs=yes
10078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10080 shlibpath_overrides_runpath=no
10081 hardcode_into_libs=yes
10083 *) # from 4.6 on, and DragonFly
10084 shlibpath_overrides_runpath=yes
10085 hardcode_into_libs=yes
10087 esac
10090 gnu*)
10091 version_type=linux
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 hardcode_into_libs=yes
10100 haiku*)
10101 version_type=linux
10102 need_lib_prefix=no
10103 need_version=no
10104 dynamic_linker="$host_os runtime_loader"
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LIBRARY_PATH
10108 shlibpath_overrides_runpath=yes
10109 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10110 hardcode_into_libs=yes
10113 hpux9* | hpux10* | hpux11*)
10114 # Give a soname corresponding to the major version so that dld.sl refuses to
10115 # link against other versions.
10116 version_type=sunos
10117 need_lib_prefix=no
10118 need_version=no
10119 case $host_cpu in
10120 ia64*)
10121 shrext_cmds='.so'
10122 hardcode_into_libs=yes
10123 dynamic_linker="$host_os dld.so"
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 if test "X$HPUX_IA64_MODE" = X32; then
10129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10130 else
10131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135 hppa*64*)
10136 shrext_cmds='.sl'
10137 hardcode_into_libs=yes
10138 dynamic_linker="$host_os dld.sl"
10139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10147 shrext_cmds='.sl'
10148 dynamic_linker="$host_os dld.sl"
10149 shlibpath_var=SHLIB_PATH
10150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10154 esac
10155 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10156 postinstall_cmds='chmod 555 $lib'
10157 # or fails outright, so override atomically:
10158 install_override_mode=555
10161 interix[3-9]*)
10162 version_type=linux
10163 need_lib_prefix=no
10164 need_version=no
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=no
10170 hardcode_into_libs=yes
10173 irix5* | irix6* | nonstopux*)
10174 case $host_os in
10175 nonstopux*) version_type=nonstopux ;;
10177 if test "$lt_cv_prog_gnu_ld" = yes; then
10178 version_type=linux
10179 else
10180 version_type=irix
10181 fi ;;
10182 esac
10183 need_lib_prefix=no
10184 need_version=no
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10187 case $host_os in
10188 irix5* | nonstopux*)
10189 libsuff= shlibsuff=
10192 case $LD in # libtool.m4 will add one of these switches to LD
10193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10194 libsuff= shlibsuff= libmagic=32-bit;;
10195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10196 libsuff=32 shlibsuff=N32 libmagic=N32;;
10197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10199 *) libsuff= shlibsuff= libmagic=never-match;;
10200 esac
10202 esac
10203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10204 shlibpath_overrides_runpath=no
10205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10207 hardcode_into_libs=yes
10210 # No shared lib support for Linux oldld, aout, or coff.
10211 linux*oldld* | linux*aout* | linux*coff*)
10212 dynamic_linker=no
10215 # This must be Linux ELF.
10216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10217 version_type=linux
10218 need_lib_prefix=no
10219 need_version=no
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=no
10226 # Some binutils ld are patched to set DT_RUNPATH
10227 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 lt_cv_shlibpath_overrides_runpath=no
10231 save_LDFLAGS=$LDFLAGS
10232 save_libdir=$libdir
10233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10239 main ()
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10248 lt_cv_shlibpath_overrides_runpath=yes
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LDFLAGS=$save_LDFLAGS
10254 libdir=$save_libdir
10258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10260 # This implies no fast_install, which is unacceptable.
10261 # Some rework will be needed to allow for fast_install
10262 # before this can be enabled.
10263 hardcode_into_libs=yes
10265 # Append ld.so.conf contents to the search path
10266 if test -f /etc/ld.so.conf; then
10267 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' ' '`
10268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10271 # We used to test for /lib/ld.so.1 and disable shared libraries on
10272 # powerpc, because MkLinux only supported shared libraries with the
10273 # GNU dynamic linker. Since this was broken with cross compilers,
10274 # most powerpc-linux boxes support dynamic linking these days and
10275 # people can always --disable-shared, the test was removed, and we
10276 # assume the GNU/Linux dynamic linker is in use.
10277 dynamic_linker='GNU/Linux ld.so'
10280 netbsd*)
10281 version_type=sunos
10282 need_lib_prefix=no
10283 need_version=no
10284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10287 dynamic_linker='NetBSD (a.out) ld.so'
10288 else
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 dynamic_linker='NetBSD ld.elf_so'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10298 newsos6)
10299 version_type=linux
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10305 *nto* | *qnx*)
10306 version_type=qnx
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=no
10313 hardcode_into_libs=yes
10314 dynamic_linker='ldqnx.so'
10317 openbsd*)
10318 version_type=sunos
10319 sys_lib_dlsearch_path_spec="/usr/lib"
10320 need_lib_prefix=no
10321 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10322 case $host_os in
10323 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10324 *) need_version=no ;;
10325 esac
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10330 case $host_os in
10331 openbsd2.[89] | openbsd2.[89].*)
10332 shlibpath_overrides_runpath=no
10335 shlibpath_overrides_runpath=yes
10337 esac
10338 else
10339 shlibpath_overrides_runpath=yes
10343 os2*)
10344 libname_spec='$name'
10345 shrext_cmds=".dll"
10346 need_lib_prefix=no
10347 library_names_spec='$libname${shared_ext} $libname.a'
10348 dynamic_linker='OS/2 ld.exe'
10349 shlibpath_var=LIBPATH
10352 osf3* | osf4* | osf5*)
10353 version_type=osf
10354 need_lib_prefix=no
10355 need_version=no
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10363 rdos*)
10364 dynamic_linker=no
10367 solaris*)
10368 version_type=linux
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 hardcode_into_libs=yes
10376 # ldd complains unless libraries are executable
10377 postinstall_cmds='chmod +x $lib'
10380 sunos4*)
10381 version_type=sunos
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 if test "$with_gnu_ld" = yes; then
10387 need_lib_prefix=no
10389 need_version=yes
10392 sysv4 | sysv4.3*)
10393 version_type=linux
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 case $host_vendor in
10398 sni)
10399 shlibpath_overrides_runpath=no
10400 need_lib_prefix=no
10401 runpath_var=LD_RUN_PATH
10403 siemens)
10404 need_lib_prefix=no
10406 motorola)
10407 need_lib_prefix=no
10408 need_version=no
10409 shlibpath_overrides_runpath=no
10410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 esac
10415 sysv4*MP*)
10416 if test -d /usr/nec ;then
10417 version_type=linux
10418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10419 soname_spec='$libname${shared_ext}.$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10425 version_type=freebsd-elf
10426 need_lib_prefix=no
10427 need_version=no
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=yes
10432 hardcode_into_libs=yes
10433 if test "$with_gnu_ld" = yes; then
10434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10435 else
10436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10437 case $host_os in
10438 sco3.2v5*)
10439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10441 esac
10443 sys_lib_dlsearch_path_spec='/usr/lib'
10446 tpf*)
10447 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10448 version_type=linux
10449 need_lib_prefix=no
10450 need_version=no
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=no
10454 hardcode_into_libs=yes
10457 uts4*)
10458 version_type=linux
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LD_LIBRARY_PATH
10465 dynamic_linker=no
10467 esac
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10469 $as_echo "$dynamic_linker" >&6; }
10470 test "$dynamic_linker" = no && can_build_shared=no
10472 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10473 if test "$GCC" = yes; then
10474 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10477 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10478 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10480 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10481 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10576 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10577 hardcode_action=
10578 if test -n "$hardcode_libdir_flag_spec" ||
10579 test -n "$runpath_var" ||
10580 test "X$hardcode_automatic" = "Xyes" ; then
10582 # We can hardcode non-existent directories.
10583 if test "$hardcode_direct" != no &&
10584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10585 # have to relink, otherwise we might link with an installed library
10586 # when we should be linking with a yet-to-be-installed one
10587 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10588 test "$hardcode_minus_L" != no; then
10589 # Linking always hardcodes the temporary library directory.
10590 hardcode_action=relink
10591 else
10592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10593 hardcode_action=immediate
10595 else
10596 # We cannot hardcode anything, or else we can only hardcode existing
10597 # directories.
10598 hardcode_action=unsupported
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10601 $as_echo "$hardcode_action" >&6; }
10603 if test "$hardcode_action" = relink ||
10604 test "$inherit_rpath" = yes; then
10605 # Fast installation is not supported
10606 enable_fast_install=no
10607 elif test "$shlibpath_overrides_runpath" = yes ||
10608 test "$enable_shared" = no; then
10609 # Fast installation is not necessary
10610 enable_fast_install=needless
10618 if test "x$enable_dlopen" != xyes; then
10619 enable_dlopen=unknown
10620 enable_dlopen_self=unknown
10621 enable_dlopen_self_static=unknown
10622 else
10623 lt_cv_dlopen=no
10624 lt_cv_dlopen_libs=
10626 case $host_os in
10627 beos*)
10628 lt_cv_dlopen="load_add_on"
10629 lt_cv_dlopen_libs=
10630 lt_cv_dlopen_self=yes
10633 mingw* | pw32* | cegcc*)
10634 lt_cv_dlopen="LoadLibrary"
10635 lt_cv_dlopen_libs=
10638 cygwin*)
10639 lt_cv_dlopen="dlopen"
10640 lt_cv_dlopen_libs=
10643 darwin*)
10644 # if libdl is installed we need to link against it
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-ldl $LIBS"
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dlopen ();
10663 main ()
10665 return dlopen ();
10667 return 0;
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671 ac_cv_lib_dl_dlopen=yes
10672 else
10673 ac_cv_lib_dl_dlopen=no
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10681 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10683 else
10685 lt_cv_dlopen="dyld"
10686 lt_cv_dlopen_libs=
10687 lt_cv_dlopen_self=yes
10694 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10695 if test "x$ac_cv_func_shl_load" = x""yes; then :
10696 lt_cv_dlopen="shl_load"
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10699 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10700 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-ldld $LIBS"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char shl_load ();
10716 main ()
10718 return shl_load ();
10720 return 0;
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 ac_cv_lib_dld_shl_load=yes
10725 else
10726 ac_cv_lib_dld_shl_load=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10733 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10734 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10735 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10736 else
10737 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10738 if test "x$ac_cv_func_dlopen" = x""yes; then :
10739 lt_cv_dlopen="dlopen"
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10742 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10743 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-ldl $LIBS"
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char dlopen ();
10759 main ()
10761 return dlopen ();
10763 return 0;
10765 _ACEOF
10766 if ac_fn_c_try_link "$LINENO"; then :
10767 ac_cv_lib_dl_dlopen=yes
10768 else
10769 ac_cv_lib_dl_dlopen=no
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10776 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10777 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10781 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-lsvld $LIBS"
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10790 /* Override any GCC internal prototype to avoid an error.
10791 Use char because int might match the return type of a GCC
10792 builtin and then its argument prototype would still apply. */
10793 #ifdef __cplusplus
10794 extern "C"
10795 #endif
10796 char dlopen ();
10798 main ()
10800 return dlopen ();
10802 return 0;
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 ac_cv_lib_svld_dlopen=yes
10807 else
10808 ac_cv_lib_svld_dlopen=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10815 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10816 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10820 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10821 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-ldld $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dld_link ();
10837 main ()
10839 return dld_link ();
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_dld_dld_link=yes
10846 else
10847 ac_cv_lib_dld_dld_link=no
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10854 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10855 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10875 esac
10877 if test "x$lt_cv_dlopen" != xno; then
10878 enable_dlopen=yes
10879 else
10880 enable_dlopen=no
10883 case $lt_cv_dlopen in
10884 dlopen)
10885 save_CPPFLAGS="$CPPFLAGS"
10886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10888 save_LDFLAGS="$LDFLAGS"
10889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10891 save_LIBS="$LIBS"
10892 LIBS="$lt_cv_dlopen_libs $LIBS"
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10895 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10896 if test "${lt_cv_dlopen_self+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test "$cross_compiling" = yes; then :
10900 lt_cv_dlopen_self=cross
10901 else
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<_LT_EOF
10905 #line 10905 "configure"
10906 #include "confdefs.h"
10908 #if HAVE_DLFCN_H
10909 #include <dlfcn.h>
10910 #endif
10912 #include <stdio.h>
10914 #ifdef RTLD_GLOBAL
10915 # define LT_DLGLOBAL RTLD_GLOBAL
10916 #else
10917 # ifdef DL_GLOBAL
10918 # define LT_DLGLOBAL DL_GLOBAL
10919 # else
10920 # define LT_DLGLOBAL 0
10921 # endif
10922 #endif
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10927 # ifdef RTLD_LAZY
10928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10929 # else
10930 # ifdef DL_LAZY
10931 # define LT_DLLAZY_OR_NOW DL_LAZY
10932 # else
10933 # ifdef RTLD_NOW
10934 # define LT_DLLAZY_OR_NOW RTLD_NOW
10935 # else
10936 # ifdef DL_NOW
10937 # define LT_DLLAZY_OR_NOW DL_NOW
10938 # else
10939 # define LT_DLLAZY_OR_NOW 0
10940 # endif
10941 # endif
10942 # endif
10943 # endif
10944 #endif
10946 /* When -fvisbility=hidden is used, assume the code has been annotated
10947 correspondingly for the symbols needed. */
10948 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10949 void fnord () __attribute__((visibility("default")));
10950 #endif
10952 void fnord () { int i=42; }
10953 int main ()
10955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10956 int status = $lt_dlunknown;
10958 if (self)
10960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10961 else
10963 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10964 else puts (dlerror ());
10966 /* dlclose (self); */
10968 else
10969 puts (dlerror ());
10971 return status;
10973 _LT_EOF
10974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10978 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10979 (./conftest; exit; ) >&5 2>/dev/null
10980 lt_status=$?
10981 case x$lt_status in
10982 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10983 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10984 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10985 esac
10986 else :
10987 # compilation failed
10988 lt_cv_dlopen_self=no
10991 rm -fr conftest*
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10996 $as_echo "$lt_cv_dlopen_self" >&6; }
10998 if test "x$lt_cv_dlopen_self" = xyes; then
10999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11001 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11002 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 if test "$cross_compiling" = yes; then :
11006 lt_cv_dlopen_self_static=cross
11007 else
11008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11009 lt_status=$lt_dlunknown
11010 cat > conftest.$ac_ext <<_LT_EOF
11011 #line 11011 "configure"
11012 #include "confdefs.h"
11014 #if HAVE_DLFCN_H
11015 #include <dlfcn.h>
11016 #endif
11018 #include <stdio.h>
11020 #ifdef RTLD_GLOBAL
11021 # define LT_DLGLOBAL RTLD_GLOBAL
11022 #else
11023 # ifdef DL_GLOBAL
11024 # define LT_DLGLOBAL DL_GLOBAL
11025 # else
11026 # define LT_DLGLOBAL 0
11027 # endif
11028 #endif
11030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11031 find out it does not work in some platform. */
11032 #ifndef LT_DLLAZY_OR_NOW
11033 # ifdef RTLD_LAZY
11034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11035 # else
11036 # ifdef DL_LAZY
11037 # define LT_DLLAZY_OR_NOW DL_LAZY
11038 # else
11039 # ifdef RTLD_NOW
11040 # define LT_DLLAZY_OR_NOW RTLD_NOW
11041 # else
11042 # ifdef DL_NOW
11043 # define LT_DLLAZY_OR_NOW DL_NOW
11044 # else
11045 # define LT_DLLAZY_OR_NOW 0
11046 # endif
11047 # endif
11048 # endif
11049 # endif
11050 #endif
11052 /* When -fvisbility=hidden is used, assume the code has been annotated
11053 correspondingly for the symbols needed. */
11054 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11055 void fnord () __attribute__((visibility("default")));
11056 #endif
11058 void fnord () { int i=42; }
11059 int main ()
11061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11062 int status = $lt_dlunknown;
11064 if (self)
11066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11067 else
11069 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11070 else puts (dlerror ());
11072 /* dlclose (self); */
11074 else
11075 puts (dlerror ());
11077 return status;
11079 _LT_EOF
11080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11081 (eval $ac_link) 2>&5
11082 ac_status=$?
11083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11084 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11085 (./conftest; exit; ) >&5 2>/dev/null
11086 lt_status=$?
11087 case x$lt_status in
11088 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11089 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11090 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11091 esac
11092 else :
11093 # compilation failed
11094 lt_cv_dlopen_self_static=no
11097 rm -fr conftest*
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11102 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11105 CPPFLAGS="$save_CPPFLAGS"
11106 LDFLAGS="$save_LDFLAGS"
11107 LIBS="$save_LIBS"
11109 esac
11111 case $lt_cv_dlopen_self in
11112 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11113 *) enable_dlopen_self=unknown ;;
11114 esac
11116 case $lt_cv_dlopen_self_static in
11117 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11118 *) enable_dlopen_self_static=unknown ;;
11119 esac
11138 striplib=
11139 old_striplib=
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11141 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11142 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11147 else
11148 # FIXME - insert some real tests, host_os isn't really good enough
11149 case $host_os in
11150 darwin*)
11151 if test -n "$STRIP" ; then
11152 striplib="$STRIP -x"
11153 old_striplib="$STRIP -S"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 $as_echo "yes" >&6; }
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11165 esac
11179 # Report which library types will actually be built
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11181 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11183 $as_echo "$can_build_shared" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11186 $as_echo_n "checking whether to build shared libraries... " >&6; }
11187 test "$can_build_shared" = "no" && enable_shared=no
11189 # On AIX, shared libraries and static libraries use the same namespace, and
11190 # are all built from PIC.
11191 case $host_os in
11192 aix3*)
11193 test "$enable_shared" = yes && enable_static=no
11194 if test -n "$RANLIB"; then
11195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11196 postinstall_cmds='$RANLIB $lib'
11200 aix[4-9]*)
11201 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11202 test "$enable_shared" = yes && enable_static=no
11205 esac
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11207 $as_echo "$enable_shared" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11210 $as_echo_n "checking whether to build static libraries... " >&6; }
11211 # Make sure either enable_shared or enable_static is yes.
11212 test "$enable_shared" = yes || enable_static=yes
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11214 $as_echo "$enable_static" >&6; }
11220 ac_ext=c
11221 ac_cpp='$CPP $CPPFLAGS'
11222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11226 CC="$lt_save_CC"
11240 # Source file extension for Go test sources.
11241 ac_ext=go
11243 # Object file extension for compiled Go test sources.
11244 objext=o
11245 objext_GO=$objext
11247 # Code to be used in simple compile tests
11248 lt_simple_compile_test_code="package main; func main() { }"
11250 # Code to be used in simple link tests
11251 lt_simple_link_test_code='package main; func main() { }'
11253 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11260 # If no C compiler was specified, use CC.
11261 LTCC=${LTCC-"$CC"}
11263 # If no C compiler flags were specified, use CFLAGS.
11264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11266 # Allow CC to be a program name with arguments.
11267 compiler=$CC
11270 # save warnings/boilerplate of simple test code
11271 ac_outfile=conftest.$ac_objext
11272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11274 _lt_compiler_boilerplate=`cat conftest.err`
11275 $RM conftest*
11277 ac_outfile=conftest.$ac_objext
11278 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11280 _lt_linker_boilerplate=`cat conftest.err`
11281 $RM -r conftest*
11284 # Allow CC to be a program name with arguments.
11285 lt_save_CC="$CC"
11286 lt_save_GCC="$GCC"
11287 GCC=yes
11288 CC=${GOC-"gccgo"}
11289 compiler=$CC
11290 compiler_GO=$CC
11291 LD_GO="$LD"
11292 for cc_temp in $compiler""; do
11293 case $cc_temp in
11294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11296 \-*) ;;
11297 *) break;;
11298 esac
11299 done
11300 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11303 # Go did not exist at the time GCC didn't implicitly link libc in.
11304 archive_cmds_need_lc_GO=no
11306 old_archive_cmds_GO=$old_archive_cmds
11308 ## CAVEAT EMPTOR:
11309 ## There is no encapsulation within the following macros, do not change
11310 ## the running order or otherwise move them around unless you know exactly
11311 ## what you are doing...
11312 if test -n "$compiler"; then
11314 lt_prog_compiler_no_builtin_flag_GO=
11316 if test "$GCC" = yes; then
11317 case $cc_basename in
11318 nvcc*)
11319 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11321 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11322 esac
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 lt_cv_prog_compiler_rtti_exceptions=no
11330 ac_outfile=conftest.$ac_objext
11331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11332 lt_compiler_flag="-fno-rtti -fno-exceptions"
11333 # Insert the option either (1) after the last *FLAGS variable, or
11334 # (2) before a word containing "conftest.", or (3) at the end.
11335 # Note that $ac_compile itself does not contain backslashes and begins
11336 # with a dollar sign (not a hyphen), so the echo should work correctly.
11337 # The option is referenced via a variable to avoid confusing sed.
11338 lt_compile=`echo "$ac_compile" | $SED \
11339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11341 -e 's:$: $lt_compiler_flag:'`
11342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11343 (eval "$lt_compile" 2>conftest.err)
11344 ac_status=$?
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 if (exit $ac_status) && test -s "$ac_outfile"; then
11348 # The compiler can only warn and ignore the option if not recognized
11349 # So say no if there are warnings other than the usual output.
11350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11353 lt_cv_prog_compiler_rtti_exceptions=yes
11356 $RM conftest*
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11363 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11364 else
11372 lt_prog_compiler_wl_GO=
11373 lt_prog_compiler_pic_GO=
11374 lt_prog_compiler_static_GO=
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11377 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11379 if test "$GCC" = yes; then
11380 lt_prog_compiler_wl_GO='-Wl,'
11381 lt_prog_compiler_static_GO='-static'
11383 case $host_os in
11384 aix*)
11385 # All AIX code is PIC.
11386 if test "$host_cpu" = ia64; then
11387 # AIX 5 now supports IA64 processor
11388 lt_prog_compiler_static_GO='-Bstatic'
11392 amigaos*)
11393 case $host_cpu in
11394 powerpc)
11395 # see comment about AmigaOS4 .so support
11396 lt_prog_compiler_pic_GO='-fPIC'
11398 m68k)
11399 # FIXME: we need at least 68020 code to build shared libraries, but
11400 # adding the `-m68020' flag to GCC prevents building anything better,
11401 # like `-m68040'.
11402 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11404 esac
11407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11408 # PIC is the default for these OSes.
11411 mingw* | cygwin* | pw32* | os2* | cegcc*)
11412 # This hack is so that the source file can tell whether it is being
11413 # built for inclusion in a dll (and should export symbols for example).
11414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11415 # (--disable-auto-import) libraries
11416 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11419 darwin* | rhapsody*)
11420 # PIC is the default on this platform
11421 # Common symbols not allowed in MH_DYLIB files
11422 lt_prog_compiler_pic_GO='-fno-common'
11425 haiku*)
11426 # PIC is the default for Haiku.
11427 # The "-static" flag exists, but is broken.
11428 lt_prog_compiler_static_GO=
11431 hpux*)
11432 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11433 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11434 # sets the default TLS model and affects inlining.
11435 case $host_cpu in
11436 hppa*64*)
11437 # +Z the default
11440 lt_prog_compiler_pic_GO='-fPIC'
11442 esac
11445 interix[3-9]*)
11446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11447 # Instead, we relocate shared libraries at runtime.
11450 msdosdjgpp*)
11451 # Just because we use GCC doesn't mean we suddenly get shared libraries
11452 # on systems that don't support them.
11453 lt_prog_compiler_can_build_shared_GO=no
11454 enable_shared=no
11457 *nto* | *qnx*)
11458 # QNX uses GNU C++, but need to define -shared option too, otherwise
11459 # it will coredump.
11460 lt_prog_compiler_pic_GO='-fPIC -shared'
11463 sysv4*MP*)
11464 if test -d /usr/nec; then
11465 lt_prog_compiler_pic_GO=-Kconform_pic
11470 lt_prog_compiler_pic_GO='-fPIC'
11472 esac
11474 case $cc_basename in
11475 nvcc*) # Cuda Compiler Driver 2.2
11476 lt_prog_compiler_wl_GO='-Xlinker '
11477 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11479 esac
11480 else
11481 # PORTME Check for flag to pass linker flags through the system compiler.
11482 case $host_os in
11483 aix*)
11484 lt_prog_compiler_wl_GO='-Wl,'
11485 if test "$host_cpu" = ia64; then
11486 # AIX 5 now supports IA64 processor
11487 lt_prog_compiler_static_GO='-Bstatic'
11488 else
11489 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11493 mingw* | cygwin* | pw32* | os2* | cegcc*)
11494 # This hack is so that the source file can tell whether it is being
11495 # built for inclusion in a dll (and should export symbols for example).
11496 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11499 hpux9* | hpux10* | hpux11*)
11500 lt_prog_compiler_wl_GO='-Wl,'
11501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11502 # not for PA HP-UX.
11503 case $host_cpu in
11504 hppa*64*|ia64*)
11505 # +Z the default
11508 lt_prog_compiler_pic_GO='+Z'
11510 esac
11511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11512 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11515 irix5* | irix6* | nonstopux*)
11516 lt_prog_compiler_wl_GO='-Wl,'
11517 # PIC (with -KPIC) is the default.
11518 lt_prog_compiler_static_GO='-non_shared'
11521 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11522 case $cc_basename in
11523 # old Intel for x86_64 which still supported -KPIC.
11524 ecc*)
11525 lt_prog_compiler_wl_GO='-Wl,'
11526 lt_prog_compiler_pic_GO='-KPIC'
11527 lt_prog_compiler_static_GO='-static'
11529 # icc used to be incompatible with GCC.
11530 # ICC 10 doesn't accept -KPIC any more.
11531 icc* | ifort*)
11532 lt_prog_compiler_wl_GO='-Wl,'
11533 lt_prog_compiler_pic_GO='-fPIC'
11534 lt_prog_compiler_static_GO='-static'
11536 # Lahey Fortran 8.1.
11537 lf95*)
11538 lt_prog_compiler_wl_GO='-Wl,'
11539 lt_prog_compiler_pic_GO='--shared'
11540 lt_prog_compiler_static_GO='--static'
11542 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11543 # Portland Group compilers (*not* the Pentium gcc compiler,
11544 # which looks to be a dead project)
11545 lt_prog_compiler_wl_GO='-Wl,'
11546 lt_prog_compiler_pic_GO='-fpic'
11547 lt_prog_compiler_static_GO='-Bstatic'
11549 ccc*)
11550 lt_prog_compiler_wl_GO='-Wl,'
11551 # All Alpha code is PIC.
11552 lt_prog_compiler_static_GO='-non_shared'
11554 xl* | bgxl* | bgf* | mpixl*)
11555 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11556 lt_prog_compiler_wl_GO='-Wl,'
11557 lt_prog_compiler_pic_GO='-qpic'
11558 lt_prog_compiler_static_GO='-qstaticlink'
11561 case `$CC -V 2>&1 | sed 5q` in
11562 *Sun\ F* | *Sun*Fortran*)
11563 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11564 lt_prog_compiler_pic_GO='-KPIC'
11565 lt_prog_compiler_static_GO='-Bstatic'
11566 lt_prog_compiler_wl_GO=''
11568 *Sun\ C*)
11569 # Sun C 5.9
11570 lt_prog_compiler_pic_GO='-KPIC'
11571 lt_prog_compiler_static_GO='-Bstatic'
11572 lt_prog_compiler_wl_GO='-Wl,'
11574 esac
11576 esac
11579 newsos6)
11580 lt_prog_compiler_pic_GO='-KPIC'
11581 lt_prog_compiler_static_GO='-Bstatic'
11584 *nto* | *qnx*)
11585 # QNX uses GNU C++, but need to define -shared option too, otherwise
11586 # it will coredump.
11587 lt_prog_compiler_pic_GO='-fPIC -shared'
11590 osf3* | osf4* | osf5*)
11591 lt_prog_compiler_wl_GO='-Wl,'
11592 # All OSF/1 code is PIC.
11593 lt_prog_compiler_static_GO='-non_shared'
11596 rdos*)
11597 lt_prog_compiler_static_GO='-non_shared'
11600 solaris*)
11601 lt_prog_compiler_pic_GO='-KPIC'
11602 lt_prog_compiler_static_GO='-Bstatic'
11603 case $cc_basename in
11604 f77* | f90* | f95*)
11605 lt_prog_compiler_wl_GO='-Qoption ld ';;
11607 lt_prog_compiler_wl_GO='-Wl,';;
11608 esac
11611 sunos4*)
11612 lt_prog_compiler_wl_GO='-Qoption ld '
11613 lt_prog_compiler_pic_GO='-PIC'
11614 lt_prog_compiler_static_GO='-Bstatic'
11617 sysv4 | sysv4.2uw2* | sysv4.3*)
11618 lt_prog_compiler_wl_GO='-Wl,'
11619 lt_prog_compiler_pic_GO='-KPIC'
11620 lt_prog_compiler_static_GO='-Bstatic'
11623 sysv4*MP*)
11624 if test -d /usr/nec ;then
11625 lt_prog_compiler_pic_GO='-Kconform_pic'
11626 lt_prog_compiler_static_GO='-Bstatic'
11630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11631 lt_prog_compiler_wl_GO='-Wl,'
11632 lt_prog_compiler_pic_GO='-KPIC'
11633 lt_prog_compiler_static_GO='-Bstatic'
11636 unicos*)
11637 lt_prog_compiler_wl_GO='-Wl,'
11638 lt_prog_compiler_can_build_shared_GO=no
11641 uts4*)
11642 lt_prog_compiler_pic_GO='-pic'
11643 lt_prog_compiler_static_GO='-Bstatic'
11647 lt_prog_compiler_can_build_shared_GO=no
11649 esac
11652 case $host_os in
11653 # For platforms which do not support PIC, -DPIC is meaningless:
11654 *djgpp*)
11655 lt_prog_compiler_pic_GO=
11658 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11660 esac
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11662 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11667 # Check to make sure the PIC flag actually works.
11669 if test -n "$lt_prog_compiler_pic_GO"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11671 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11672 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 lt_cv_prog_compiler_pic_works_GO=no
11676 ac_outfile=conftest.$ac_objext
11677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11678 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11679 # Insert the option either (1) after the last *FLAGS variable, or
11680 # (2) before a word containing "conftest.", or (3) at the end.
11681 # Note that $ac_compile itself does not contain backslashes and begins
11682 # with a dollar sign (not a hyphen), so the echo should work correctly.
11683 # The option is referenced via a variable to avoid confusing sed.
11684 lt_compile=`echo "$ac_compile" | $SED \
11685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11687 -e 's:$: $lt_compiler_flag:'`
11688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11689 (eval "$lt_compile" 2>conftest.err)
11690 ac_status=$?
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 if (exit $ac_status) && test -s "$ac_outfile"; then
11694 # The compiler can only warn and ignore the option if not recognized
11695 # So say no if there are warnings other than the usual output.
11696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11699 lt_cv_prog_compiler_pic_works_GO=yes
11702 $RM conftest*
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11706 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11708 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11709 case $lt_prog_compiler_pic_GO in
11710 "" | " "*) ;;
11711 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11712 esac
11713 else
11714 lt_prog_compiler_pic_GO=
11715 lt_prog_compiler_can_build_shared_GO=no
11723 # Check to make sure the static flag actually works.
11725 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11727 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11728 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 lt_cv_prog_compiler_static_works_GO=no
11732 save_LDFLAGS="$LDFLAGS"
11733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11734 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11736 # The linker can only warn and ignore the option if not recognized
11737 # So say no if there are warnings
11738 if test -s conftest.err; then
11739 # Append any errors to the config.log.
11740 cat conftest.err 1>&5
11741 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11743 if diff conftest.exp conftest.er2 >/dev/null; then
11744 lt_cv_prog_compiler_static_works_GO=yes
11746 else
11747 lt_cv_prog_compiler_static_works_GO=yes
11750 $RM -r conftest*
11751 LDFLAGS="$save_LDFLAGS"
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11755 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11757 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11759 else
11760 lt_prog_compiler_static_GO=
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11768 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 lt_cv_prog_compiler_c_o_GO=no
11772 $RM -r conftest 2>/dev/null
11773 mkdir conftest
11774 cd conftest
11775 mkdir out
11776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11778 lt_compiler_flag="-o out/conftest2.$ac_objext"
11779 # Insert the option either (1) after the last *FLAGS variable, or
11780 # (2) before a word containing "conftest.", or (3) at the end.
11781 # Note that $ac_compile itself does not contain backslashes and begins
11782 # with a dollar sign (not a hyphen), so the echo should work correctly.
11783 lt_compile=`echo "$ac_compile" | $SED \
11784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786 -e 's:$: $lt_compiler_flag:'`
11787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11788 (eval "$lt_compile" 2>out/conftest.err)
11789 ac_status=$?
11790 cat out/conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11793 then
11794 # The compiler can only warn and ignore the option if not recognized
11795 # So say no if there are warnings
11796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11799 lt_cv_prog_compiler_c_o_GO=yes
11802 chmod u+w . 2>&5
11803 $RM conftest*
11804 # SGI C++ compiler will create directory out/ii_files/ for
11805 # template instantiation
11806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11807 $RM out/* && rmdir out
11808 cd ..
11809 $RM -r conftest
11810 $RM conftest*
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11814 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11820 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 lt_cv_prog_compiler_c_o_GO=no
11824 $RM -r conftest 2>/dev/null
11825 mkdir conftest
11826 cd conftest
11827 mkdir out
11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830 lt_compiler_flag="-o out/conftest2.$ac_objext"
11831 # Insert the option either (1) after the last *FLAGS variable, or
11832 # (2) before a word containing "conftest.", or (3) at the end.
11833 # Note that $ac_compile itself does not contain backslashes and begins
11834 # with a dollar sign (not a hyphen), so the echo should work correctly.
11835 lt_compile=`echo "$ac_compile" | $SED \
11836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11838 -e 's:$: $lt_compiler_flag:'`
11839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11840 (eval "$lt_compile" 2>out/conftest.err)
11841 ac_status=$?
11842 cat out/conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11845 then
11846 # The compiler can only warn and ignore the option if not recognized
11847 # So say no if there are warnings
11848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11851 lt_cv_prog_compiler_c_o_GO=yes
11854 chmod u+w . 2>&5
11855 $RM conftest*
11856 # SGI C++ compiler will create directory out/ii_files/ for
11857 # template instantiation
11858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11859 $RM out/* && rmdir out
11860 cd ..
11861 $RM -r conftest
11862 $RM conftest*
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11866 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11871 hard_links="nottested"
11872 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11873 # do not overwrite the value of need_locks provided by the user
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11875 $as_echo_n "checking if we can lock with hard links... " >&6; }
11876 hard_links=yes
11877 $RM conftest*
11878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11879 touch conftest.a
11880 ln conftest.a conftest.b 2>&5 || hard_links=no
11881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11883 $as_echo "$hard_links" >&6; }
11884 if test "$hard_links" = no; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11886 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11887 need_locks=warn
11889 else
11890 need_locks=no
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11896 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11898 runpath_var=
11899 allow_undefined_flag_GO=
11900 always_export_symbols_GO=no
11901 archive_cmds_GO=
11902 archive_expsym_cmds_GO=
11903 compiler_needs_object_GO=no
11904 enable_shared_with_static_runtimes_GO=no
11905 export_dynamic_flag_spec_GO=
11906 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11907 hardcode_automatic_GO=no
11908 hardcode_direct_GO=no
11909 hardcode_direct_absolute_GO=no
11910 hardcode_libdir_flag_spec_GO=
11911 hardcode_libdir_flag_spec_ld_GO=
11912 hardcode_libdir_separator_GO=
11913 hardcode_minus_L_GO=no
11914 hardcode_shlibpath_var_GO=unsupported
11915 inherit_rpath_GO=no
11916 link_all_deplibs_GO=unknown
11917 module_cmds_GO=
11918 module_expsym_cmds_GO=
11919 old_archive_from_new_cmds_GO=
11920 old_archive_from_expsyms_cmds_GO=
11921 thread_safe_flag_spec_GO=
11922 whole_archive_flag_spec_GO=
11923 # include_expsyms should be a list of space-separated symbols to be *always*
11924 # included in the symbol list
11925 include_expsyms_GO=
11926 # exclude_expsyms can be an extended regexp of symbols to exclude
11927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11929 # as well as any symbol that contains `d'.
11930 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11932 # platforms (ab)use it in PIC code, but their linkers get confused if
11933 # the symbol is explicitly referenced. Since portable code cannot
11934 # rely on this symbol name, it's probably fine to never include it in
11935 # preloaded symbol tables.
11936 # Exclude shared library initialization/finalization symbols.
11937 extract_expsyms_cmds=
11939 case $host_os in
11940 cygwin* | mingw* | pw32* | cegcc*)
11941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11942 # When not using gcc, we currently assume that we are using
11943 # Microsoft Visual C++.
11944 if test "$GCC" != yes; then
11945 with_gnu_ld=no
11948 interix*)
11949 # we just hope/assume this is gcc and not c89 (= MSVC++)
11950 with_gnu_ld=yes
11952 openbsd*)
11953 with_gnu_ld=no
11955 esac
11957 ld_shlibs_GO=yes
11959 # On some targets, GNU ld is compatible enough with the native linker
11960 # that we're better off using the native interface for both.
11961 lt_use_gnu_ld_interface=no
11962 if test "$with_gnu_ld" = yes; then
11963 case $host_os in
11964 aix*)
11965 # The AIX port of GNU ld has always aspired to compatibility
11966 # with the native linker. However, as the warning in the GNU ld
11967 # block says, versions before 2.19.5* couldn't really create working
11968 # shared libraries, regardless of the interface used.
11969 case `$LD -v 2>&1` in
11970 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11971 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11972 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11974 lt_use_gnu_ld_interface=yes
11976 esac
11979 lt_use_gnu_ld_interface=yes
11981 esac
11984 if test "$lt_use_gnu_ld_interface" = yes; then
11985 # If archive_cmds runs LD, not CC, wlarc should be empty
11986 wlarc='${wl}'
11988 # Set some defaults for GNU ld with shared library support. These
11989 # are reset later if shared libraries are not supported. Putting them
11990 # here allows them to be overridden if necessary.
11991 runpath_var=LD_RUN_PATH
11992 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11993 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11994 # ancient GNU ld didn't support --whole-archive et. al.
11995 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11996 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11997 else
11998 whole_archive_flag_spec_GO=
12000 supports_anon_versioning=no
12001 case `$LD -v 2>&1` in
12002 *GNU\ gold*) supports_anon_versioning=yes ;;
12003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12006 *\ 2.11.*) ;; # other 2.11 versions
12007 *) supports_anon_versioning=yes ;;
12008 esac
12010 # See if GNU ld supports shared libraries.
12011 case $host_os in
12012 aix[3-9]*)
12013 # On AIX/PPC, the GNU linker is very broken
12014 if test "$host_cpu" != ia64; then
12015 ld_shlibs_GO=no
12016 cat <<_LT_EOF 1>&2
12018 *** Warning: the GNU linker, at least up to release 2.19, is reported
12019 *** to be unable to reliably create shared libraries on AIX.
12020 *** Therefore, libtool is disabling shared libraries support. If you
12021 *** really care for shared libraries, you may want to install binutils
12022 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12023 *** You will then need to restart the configuration process.
12025 _LT_EOF
12029 amigaos*)
12030 case $host_cpu in
12031 powerpc)
12032 # see comment about AmigaOS4 .so support
12033 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12034 archive_expsym_cmds_GO=''
12036 m68k)
12037 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)'
12038 hardcode_libdir_flag_spec_GO='-L$libdir'
12039 hardcode_minus_L_GO=yes
12041 esac
12044 beos*)
12045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12046 allow_undefined_flag_GO=unsupported
12047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12048 # support --undefined. This deserves some investigation. FIXME
12049 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050 else
12051 ld_shlibs_GO=no
12055 cygwin* | mingw* | pw32* | cegcc*)
12056 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12057 # as there is no search path for DLLs.
12058 hardcode_libdir_flag_spec_GO='-L$libdir'
12059 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12060 allow_undefined_flag_GO=unsupported
12061 always_export_symbols_GO=no
12062 enable_shared_with_static_runtimes_GO=yes
12063 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12066 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12067 # If the export-symbols file already is a .def file (1st line
12068 # is EXPORTS), use it as is; otherwise, prepend...
12069 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12070 cp $export_symbols $output_objdir/$soname.def;
12071 else
12072 echo EXPORTS > $output_objdir/$soname.def;
12073 cat $export_symbols >> $output_objdir/$soname.def;
12075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12076 else
12077 ld_shlibs_GO=no
12081 haiku*)
12082 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12083 link_all_deplibs_GO=yes
12086 interix[3-9]*)
12087 hardcode_direct_GO=no
12088 hardcode_shlibpath_var_GO=no
12089 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12090 export_dynamic_flag_spec_GO='${wl}-E'
12091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12092 # Instead, shared libraries are loaded at an image base (0x10000000 by
12093 # default) and relocated if they conflict, which is a slow very memory
12094 # consuming and fragmenting process. To avoid this, we pick a random,
12095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12097 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'
12098 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'
12101 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12102 tmp_diet=no
12103 if test "$host_os" = linux-dietlibc; then
12104 case $cc_basename in
12105 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12106 esac
12108 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12109 && test "$tmp_diet" = no
12110 then
12111 tmp_addflag=
12112 tmp_sharedflag='-shared'
12113 case $cc_basename,$host_cpu in
12114 pgcc*) # Portland Group C compiler
12115 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'
12116 tmp_addflag=' $pic_flag'
12118 pgf77* | pgf90* | pgf95* | pgfortran*)
12119 # Portland Group f77 and f90 compilers
12120 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'
12121 tmp_addflag=' $pic_flag -Mnomain' ;;
12122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12123 tmp_addflag=' -i_dynamic' ;;
12124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12125 tmp_addflag=' -i_dynamic -nofor_main' ;;
12126 ifc* | ifort*) # Intel Fortran compiler
12127 tmp_addflag=' -nofor_main' ;;
12128 lf95*) # Lahey Fortran 8.1
12129 whole_archive_flag_spec_GO=
12130 tmp_sharedflag='--shared' ;;
12131 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12132 tmp_sharedflag='-qmkshrobj'
12133 tmp_addflag= ;;
12134 nvcc*) # Cuda Compiler Driver 2.2
12135 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'
12136 compiler_needs_object_GO=yes
12138 esac
12139 case `$CC -V 2>&1 | sed 5q` in
12140 *Sun\ C*) # Sun C 5.9
12141 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'
12142 compiler_needs_object_GO=yes
12143 tmp_sharedflag='-G' ;;
12144 *Sun\ F*) # Sun Fortran 8.3
12145 tmp_sharedflag='-G' ;;
12146 esac
12147 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149 if test "x$supports_anon_versioning" = xyes; then
12150 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12152 echo "local: *; };" >> $output_objdir/$libname.ver~
12153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12156 case $cc_basename in
12157 xlf* | bgf* | bgxlf* | mpixlf*)
12158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12159 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12160 hardcode_libdir_flag_spec_GO=
12161 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12162 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12163 if test "x$supports_anon_versioning" = xyes; then
12164 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12166 echo "local: *; };" >> $output_objdir/$libname.ver~
12167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12170 esac
12171 else
12172 ld_shlibs_GO=no
12176 netbsd*)
12177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12178 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12179 wlarc=
12180 else
12181 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12182 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12186 solaris*)
12187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12188 ld_shlibs_GO=no
12189 cat <<_LT_EOF 1>&2
12191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12192 *** create shared libraries on Solaris systems. Therefore, libtool
12193 *** is disabling shared libraries support. We urge you to upgrade GNU
12194 *** binutils to release 2.9.1 or newer. Another option is to modify
12195 *** your PATH or compiler configuration so that the native linker is
12196 *** used, and then restart.
12198 _LT_EOF
12199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12200 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12202 else
12203 ld_shlibs_GO=no
12207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12208 case `$LD -v 2>&1` in
12209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12210 ld_shlibs_GO=no
12211 cat <<_LT_EOF 1>&2
12213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12214 *** reliably create shared libraries on SCO systems. Therefore, libtool
12215 *** is disabling shared libraries support. We urge you to upgrade GNU
12216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12217 *** your PATH or compiler configuration so that the native linker is
12218 *** used, and then restart.
12220 _LT_EOF
12223 # For security reasons, it is highly recommended that you always
12224 # use absolute paths for naming shared libraries, and exclude the
12225 # DT_RUNPATH tag from executables and libraries. But doing so
12226 # requires that you compile everything twice, which is a pain.
12227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12228 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12229 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12230 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12231 else
12232 ld_shlibs_GO=no
12235 esac
12238 sunos4*)
12239 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12240 wlarc=
12241 hardcode_direct_GO=yes
12242 hardcode_shlibpath_var_GO=no
12246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12247 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12249 else
12250 ld_shlibs_GO=no
12253 esac
12255 if test "$ld_shlibs_GO" = no; then
12256 runpath_var=
12257 hardcode_libdir_flag_spec_GO=
12258 export_dynamic_flag_spec_GO=
12259 whole_archive_flag_spec_GO=
12261 else
12262 # PORTME fill in a description of your system's linker (not GNU ld)
12263 case $host_os in
12264 aix3*)
12265 allow_undefined_flag_GO=unsupported
12266 always_export_symbols_GO=yes
12267 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'
12268 # Note: this linker hardcodes the directories in LIBPATH if there
12269 # are no directories specified by -L.
12270 hardcode_minus_L_GO=yes
12271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12272 # Neither direct hardcoding nor static linking is supported with a
12273 # broken collect2.
12274 hardcode_direct_GO=unsupported
12278 aix[4-9]*)
12279 if test "$host_cpu" = ia64; then
12280 # On IA64, the linker does run time linking by default, so we don't
12281 # have to do anything special.
12282 aix_use_runtimelinking=no
12283 exp_sym_flag='-Bexport'
12284 no_entry_flag=""
12285 else
12286 # If we're using GNU nm, then we don't want the "-C" option.
12287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12288 # Also, AIX nm treats weak defined symbols like other global
12289 # defined symbols, whereas GNU nm marks them as "W".
12290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12291 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'
12292 else
12293 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'
12295 aix_use_runtimelinking=no
12297 # Test if we are trying to use run time linking or normal
12298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12299 # need to do runtime linking.
12300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12301 for ld_flag in $LDFLAGS; do
12302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12303 aix_use_runtimelinking=yes
12304 break
12306 done
12308 esac
12310 exp_sym_flag='-bexport'
12311 no_entry_flag='-bnoentry'
12314 # When large executables or shared objects are built, AIX ld can
12315 # have problems creating the table of contents. If linking a library
12316 # or program results in "error TOC overflow" add -mminimal-toc to
12317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12320 archive_cmds_GO=''
12321 hardcode_direct_GO=yes
12322 hardcode_direct_absolute_GO=yes
12323 hardcode_libdir_separator_GO=':'
12324 link_all_deplibs_GO=yes
12325 file_list_spec_GO='${wl}-f,'
12327 if test "$GCC" = yes; then
12328 case $host_os in aix4.[012]|aix4.[012].*)
12329 # We only want to do this on AIX 4.2 and lower, the check
12330 # below for broken collect2 doesn't work under 4.3+
12331 collect2name=`${CC} -print-prog-name=collect2`
12332 if test -f "$collect2name" &&
12333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12334 then
12335 # We have reworked collect2
12337 else
12338 # We have old collect2
12339 hardcode_direct_GO=unsupported
12340 # It fails to find uninstalled libraries when the uninstalled
12341 # path is not listed in the libpath. Setting hardcode_minus_L
12342 # to unsupported forces relinking
12343 hardcode_minus_L_GO=yes
12344 hardcode_libdir_flag_spec_GO='-L$libdir'
12345 hardcode_libdir_separator_GO=
12348 esac
12349 shared_flag='-shared'
12350 if test "$aix_use_runtimelinking" = yes; then
12351 shared_flag="$shared_flag "'${wl}-G'
12353 else
12354 # not using gcc
12355 if test "$host_cpu" = ia64; then
12356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12357 # chokes on -Wl,-G. The following line is correct:
12358 shared_flag='-G'
12359 else
12360 if test "$aix_use_runtimelinking" = yes; then
12361 shared_flag='${wl}-G'
12362 else
12363 shared_flag='${wl}-bM:SRE'
12368 export_dynamic_flag_spec_GO='${wl}-bexpall'
12369 # It seems that -bexpall does not export symbols beginning with
12370 # underscore (_), so it is better to generate a list of symbols to export.
12371 always_export_symbols_GO=yes
12372 if test "$aix_use_runtimelinking" = yes; then
12373 # Warning - without using the other runtime loading flags (-brtl),
12374 # -berok will link without error, but may produce a broken library.
12375 allow_undefined_flag_GO='-berok'
12376 # Determine the default libpath from the value encoded in an
12377 # empty executable.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12382 main ()
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12391 lt_aix_libpath_sed='
12392 /Import File Strings/,/^$/ {
12393 /^0/ {
12394 s/^0 *\(.*\)$/\1/
12398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12399 # Check for a 64-bit object if we didn't find anything.
12400 if test -z "$aix_libpath"; then
12401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12408 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12409 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"
12410 else
12411 if test "$host_cpu" = ia64; then
12412 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12413 allow_undefined_flag_GO="-z nodefs"
12414 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"
12415 else
12416 # Determine the default libpath from the value encoded in an
12417 # empty executable.
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12422 main ()
12426 return 0;
12428 _ACEOF
12429 if ac_fn_c_try_link "$LINENO"; then :
12431 lt_aix_libpath_sed='
12432 /Import File Strings/,/^$/ {
12433 /^0/ {
12434 s/^0 *\(.*\)$/\1/
12438 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12439 # Check for a 64-bit object if we didn't find anything.
12440 if test -z "$aix_libpath"; then
12441 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12448 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12449 # Warning - without using the other run time loading flags,
12450 # -berok will link without error, but may produce a broken library.
12451 no_undefined_flag_GO=' ${wl}-bernotok'
12452 allow_undefined_flag_GO=' ${wl}-berok'
12453 if test "$with_gnu_ld" = yes; then
12454 # We only use this code for GNU lds that support --whole-archive.
12455 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12456 else
12457 # Exported symbols can be pulled into shared objects from archives
12458 whole_archive_flag_spec_GO='$convenience'
12460 archive_cmds_need_lc_GO=yes
12461 # This is similar to how AIX traditionally builds its shared libraries.
12462 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'
12467 amigaos*)
12468 case $host_cpu in
12469 powerpc)
12470 # see comment about AmigaOS4 .so support
12471 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12472 archive_expsym_cmds_GO=''
12474 m68k)
12475 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)'
12476 hardcode_libdir_flag_spec_GO='-L$libdir'
12477 hardcode_minus_L_GO=yes
12479 esac
12482 bsdi[45]*)
12483 export_dynamic_flag_spec_GO=-rdynamic
12486 cygwin* | mingw* | pw32* | cegcc*)
12487 # When not using gcc, we currently assume that we are using
12488 # Microsoft Visual C++.
12489 # hardcode_libdir_flag_spec is actually meaningless, as there is
12490 # no search path for DLLs.
12491 hardcode_libdir_flag_spec_GO=' '
12492 allow_undefined_flag_GO=unsupported
12493 # Tell ltmain to make .lib files, not .a files.
12494 libext=lib
12495 # Tell ltmain to make .dll files, not .so files.
12496 shrext_cmds=".dll"
12497 # FIXME: Setting linknames here is a bad hack.
12498 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12499 # The linker will automatically build a .lib file if we build a DLL.
12500 old_archive_from_new_cmds_GO='true'
12501 # FIXME: Should let the user specify the lib program.
12502 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12503 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12504 enable_shared_with_static_runtimes_GO=yes
12507 darwin* | rhapsody*)
12510 archive_cmds_need_lc_GO=no
12511 hardcode_direct_GO=no
12512 hardcode_automatic_GO=yes
12513 hardcode_shlibpath_var_GO=unsupported
12514 if test "$lt_cv_ld_force_load" = "yes"; then
12515 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\"`'
12516 else
12517 whole_archive_flag_spec_GO=''
12519 link_all_deplibs_GO=yes
12520 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12521 case $cc_basename in
12522 ifort*) _lt_dar_can_shared=yes ;;
12523 *) _lt_dar_can_shared=$GCC ;;
12524 esac
12525 if test "$_lt_dar_can_shared" = "yes"; then
12526 output_verbose_link_cmd=func_echo_all
12527 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}"
12528 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12529 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}"
12530 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}"
12532 else
12533 ld_shlibs_GO=no
12538 dgux*)
12539 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12540 hardcode_libdir_flag_spec_GO='-L$libdir'
12541 hardcode_shlibpath_var_GO=no
12544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12545 # support. Future versions do this automatically, but an explicit c++rt0.o
12546 # does not break anything, and helps significantly (at the cost of a little
12547 # extra space).
12548 freebsd2.2*)
12549 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12550 hardcode_libdir_flag_spec_GO='-R$libdir'
12551 hardcode_direct_GO=yes
12552 hardcode_shlibpath_var_GO=no
12555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12556 freebsd2*)
12557 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12558 hardcode_direct_GO=yes
12559 hardcode_minus_L_GO=yes
12560 hardcode_shlibpath_var_GO=no
12563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12564 freebsd* | dragonfly*)
12565 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12566 hardcode_libdir_flag_spec_GO='-R$libdir'
12567 hardcode_direct_GO=yes
12568 hardcode_shlibpath_var_GO=no
12571 hpux9*)
12572 if test "$GCC" = yes; then
12573 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'
12574 else
12575 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'
12577 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12578 hardcode_libdir_separator_GO=:
12579 hardcode_direct_GO=yes
12581 # hardcode_minus_L: Not really in the search PATH,
12582 # but as the default location of the library.
12583 hardcode_minus_L_GO=yes
12584 export_dynamic_flag_spec_GO='${wl}-E'
12587 hpux10*)
12588 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12589 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12590 else
12591 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12593 if test "$with_gnu_ld" = no; then
12594 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12595 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12596 hardcode_libdir_separator_GO=:
12597 hardcode_direct_GO=yes
12598 hardcode_direct_absolute_GO=yes
12599 export_dynamic_flag_spec_GO='${wl}-E'
12600 # hardcode_minus_L: Not really in the search PATH,
12601 # but as the default location of the library.
12602 hardcode_minus_L_GO=yes
12606 hpux11*)
12607 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12608 case $host_cpu in
12609 hppa*64*)
12610 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12612 ia64*)
12613 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12616 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12618 esac
12619 else
12620 case $host_cpu in
12621 hppa*64*)
12622 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12624 ia64*)
12625 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12628 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12630 esac
12632 if test "$with_gnu_ld" = no; then
12633 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12634 hardcode_libdir_separator_GO=:
12636 case $host_cpu in
12637 hppa*64*|ia64*)
12638 hardcode_direct_GO=no
12639 hardcode_shlibpath_var_GO=no
12642 hardcode_direct_GO=yes
12643 hardcode_direct_absolute_GO=yes
12644 export_dynamic_flag_spec_GO='${wl}-E'
12646 # hardcode_minus_L: Not really in the search PATH,
12647 # but as the default location of the library.
12648 hardcode_minus_L_GO=yes
12650 esac
12654 irix5* | irix6* | nonstopux*)
12655 if test "$GCC" = yes; then
12656 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'
12657 # Try to use the -exported_symbol ld option, if it does not
12658 # work, assume that -exports_file does not work either and
12659 # implicitly export all symbols.
12660 save_LDFLAGS="$LDFLAGS"
12661 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 int foo(void) {}
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 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'
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LDFLAGS="$save_LDFLAGS"
12673 else
12674 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'
12675 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'
12677 archive_cmds_need_lc_GO='no'
12678 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12679 hardcode_libdir_separator_GO=:
12680 inherit_rpath_GO=yes
12681 link_all_deplibs_GO=yes
12684 netbsd*)
12685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12686 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12687 else
12688 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12690 hardcode_libdir_flag_spec_GO='-R$libdir'
12691 hardcode_direct_GO=yes
12692 hardcode_shlibpath_var_GO=no
12695 newsos6)
12696 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12697 hardcode_direct_GO=yes
12698 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12699 hardcode_libdir_separator_GO=:
12700 hardcode_shlibpath_var_GO=no
12703 *nto* | *qnx*)
12706 openbsd*)
12707 if test -f /usr/libexec/ld.so; then
12708 hardcode_direct_GO=yes
12709 hardcode_shlibpath_var_GO=no
12710 hardcode_direct_absolute_GO=yes
12711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12712 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12713 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12714 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12715 export_dynamic_flag_spec_GO='${wl}-E'
12716 else
12717 case $host_os in
12718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12719 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12720 hardcode_libdir_flag_spec_GO='-R$libdir'
12723 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12724 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12726 esac
12728 else
12729 ld_shlibs_GO=no
12733 os2*)
12734 hardcode_libdir_flag_spec_GO='-L$libdir'
12735 hardcode_minus_L_GO=yes
12736 allow_undefined_flag_GO=unsupported
12737 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'
12738 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12741 osf3*)
12742 if test "$GCC" = yes; then
12743 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12744 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'
12745 else
12746 allow_undefined_flag_GO=' -expect_unresolved \*'
12747 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'
12749 archive_cmds_need_lc_GO='no'
12750 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12751 hardcode_libdir_separator_GO=:
12754 osf4* | osf5*) # as osf3* with the addition of -msym flag
12755 if test "$GCC" = yes; then
12756 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12757 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'
12758 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12759 else
12760 allow_undefined_flag_GO=' -expect_unresolved \*'
12761 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'
12762 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~
12763 $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'
12765 # Both c and cxx compiler support -rpath directly
12766 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12768 archive_cmds_need_lc_GO='no'
12769 hardcode_libdir_separator_GO=:
12772 solaris*)
12773 no_undefined_flag_GO=' -z defs'
12774 if test "$GCC" = yes; then
12775 wlarc='${wl}'
12776 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12777 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12778 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12779 else
12780 case `$CC -V 2>&1` in
12781 *"Compilers 5.0"*)
12782 wlarc=''
12783 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12784 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12788 wlarc='${wl}'
12789 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12790 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12791 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12793 esac
12795 hardcode_libdir_flag_spec_GO='-R$libdir'
12796 hardcode_shlibpath_var_GO=no
12797 case $host_os in
12798 solaris2.[0-5] | solaris2.[0-5].*) ;;
12800 # The compiler driver will combine and reorder linker options,
12801 # but understands `-z linker_flag'. GCC discards it without `$wl',
12802 # but is careful enough not to reorder.
12803 # Supported since Solaris 2.6 (maybe 2.5.1?)
12804 if test "$GCC" = yes; then
12805 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12806 else
12807 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12810 esac
12811 link_all_deplibs_GO=yes
12814 sunos4*)
12815 if test "x$host_vendor" = xsequent; then
12816 # Use $CC to link under sequent, because it throws in some extra .o
12817 # files that make .init and .fini sections work.
12818 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12819 else
12820 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12822 hardcode_libdir_flag_spec_GO='-L$libdir'
12823 hardcode_direct_GO=yes
12824 hardcode_minus_L_GO=yes
12825 hardcode_shlibpath_var_GO=no
12828 sysv4)
12829 case $host_vendor in
12830 sni)
12831 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_direct_GO=yes # is this really true???
12834 siemens)
12835 ## LD is ld it makes a PLAMLIB
12836 ## CC just makes a GrossModule.
12837 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12838 reload_cmds_GO='$CC -r -o $output$reload_objs'
12839 hardcode_direct_GO=no
12841 motorola)
12842 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12843 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12845 esac
12846 runpath_var='LD_RUN_PATH'
12847 hardcode_shlibpath_var_GO=no
12850 sysv4.3*)
12851 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 hardcode_shlibpath_var_GO=no
12853 export_dynamic_flag_spec_GO='-Bexport'
12856 sysv4*MP*)
12857 if test -d /usr/nec; then
12858 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12859 hardcode_shlibpath_var_GO=no
12860 runpath_var=LD_RUN_PATH
12861 hardcode_runpath_var=yes
12862 ld_shlibs_GO=yes
12866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12867 no_undefined_flag_GO='${wl}-z,text'
12868 archive_cmds_need_lc_GO=no
12869 hardcode_shlibpath_var_GO=no
12870 runpath_var='LD_RUN_PATH'
12872 if test "$GCC" = yes; then
12873 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 else
12876 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881 sysv5* | sco3.2v5* | sco5v6*)
12882 # Note: We can NOT use -z defs as we might desire, because we do not
12883 # link with -lc, and that would cause any symbols used from libc to
12884 # always be unresolved, which means just about no library would
12885 # ever link correctly. If we're not using GNU ld we use -z text
12886 # though, which does catch some bad symbols but isn't as heavy-handed
12887 # as -z defs.
12888 no_undefined_flag_GO='${wl}-z,text'
12889 allow_undefined_flag_GO='${wl}-z,nodefs'
12890 archive_cmds_need_lc_GO=no
12891 hardcode_shlibpath_var_GO=no
12892 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12893 hardcode_libdir_separator_GO=':'
12894 link_all_deplibs_GO=yes
12895 export_dynamic_flag_spec_GO='${wl}-Bexport'
12896 runpath_var='LD_RUN_PATH'
12898 if test "$GCC" = yes; then
12899 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12900 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12901 else
12902 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12903 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12907 uts4*)
12908 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_libdir_flag_spec_GO='-L$libdir'
12910 hardcode_shlibpath_var_GO=no
12914 ld_shlibs_GO=no
12916 esac
12918 if test x$host_vendor = xsni; then
12919 case $host in
12920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12921 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12923 esac
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12928 $as_echo "$ld_shlibs_GO" >&6; }
12929 test "$ld_shlibs_GO" = no && can_build_shared=no
12931 with_gnu_ld_GO=$with_gnu_ld
12939 # Do we need to explicitly link libc?
12941 case "x$archive_cmds_need_lc_GO" in
12942 x|xyes)
12943 # Assume -lc should be added
12944 archive_cmds_need_lc_GO=yes
12946 if test "$enable_shared" = yes && test "$GCC" = yes; then
12947 case $archive_cmds_GO in
12948 *'~'*)
12949 # FIXME: we may have to deal with multi-command sequences.
12951 '$CC '*)
12952 # Test whether the compiler implicitly links with -lc since on some
12953 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12954 # to ld, don't add -lc before -lgcc.
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12956 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12957 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 $RM conftest*
12961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12964 (eval $ac_compile) 2>&5
12965 ac_status=$?
12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; } 2>conftest.err; then
12968 soname=conftest
12969 lib=conftest
12970 libobjs=conftest.$ac_objext
12971 deplibs=
12972 wl=$lt_prog_compiler_wl_GO
12973 pic_flag=$lt_prog_compiler_pic_GO
12974 compiler_flags=-v
12975 linker_flags=-v
12976 verstring=
12977 output_objdir=.
12978 libname=conftest
12979 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12980 allow_undefined_flag_GO=
12981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12982 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12983 ac_status=$?
12984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12985 test $ac_status = 0; }
12986 then
12987 lt_cv_archive_cmds_need_lc_GO=no
12988 else
12989 lt_cv_archive_cmds_need_lc_GO=yes
12991 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12992 else
12993 cat conftest.err 1>&5
12995 $RM conftest*
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12999 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13000 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13002 esac
13005 esac
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13072 hardcode_action_GO=
13073 if test -n "$hardcode_libdir_flag_spec_GO" ||
13074 test -n "$runpath_var_GO" ||
13075 test "X$hardcode_automatic_GO" = "Xyes" ; then
13077 # We can hardcode non-existent directories.
13078 if test "$hardcode_direct_GO" != no &&
13079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13080 # have to relink, otherwise we might link with an installed library
13081 # when we should be linking with a yet-to-be-installed one
13082 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13083 test "$hardcode_minus_L_GO" != no; then
13084 # Linking always hardcodes the temporary library directory.
13085 hardcode_action_GO=relink
13086 else
13087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13088 hardcode_action_GO=immediate
13090 else
13091 # We cannot hardcode anything, or else we can only hardcode existing
13092 # directories.
13093 hardcode_action_GO=unsupported
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13096 $as_echo "$hardcode_action_GO" >&6; }
13098 if test "$hardcode_action_GO" = relink ||
13099 test "$inherit_rpath_GO" = yes; then
13100 # Fast installation is not supported
13101 enable_fast_install=no
13102 elif test "$shlibpath_overrides_runpath" = yes ||
13103 test "$enable_shared" = no; then
13104 # Fast installation is not necessary
13105 enable_fast_install=needless
13116 ac_ext=c
13117 ac_cpp='$CPP $CPPFLAGS'
13118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13123 GCC=$lt_save_GCC
13124 CC="$lt_save_CC"
13129 ac_config_commands="$ac_config_commands libtool"
13134 # Only expand once:
13140 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13143 WERROR="-Werror"
13146 glibgo_toolexecdir=no
13147 glibgo_toolexeclibdir=no
13148 glibgo_prefixdir=$prefix
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13151 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13152 # Check whether --enable-version-specific-runtime-libs was given.
13153 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13154 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13155 yes) version_specific_libs=yes ;;
13156 no) version_specific_libs=no ;;
13157 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13158 esac
13159 else
13160 version_specific_libs=no
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13164 $as_echo "$version_specific_libs" >&6; }
13166 # Version-specific runtime libs processing.
13167 if test $version_specific_libs = yes; then
13168 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13169 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13172 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13173 # Install a library built with a cross compiler in tooldir, not libdir.
13174 if test x"$glibgo_toolexecdir" = x"no"; then
13175 if test -n "$with_cross_host" &&
13176 test x"$with_cross_host" != x"no"; then
13177 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13178 glibgo_toolexeclibdir='${toolexecdir}/lib'
13179 else
13180 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13181 glibgo_toolexeclibdir='${libdir}'
13183 multi_os_directory=`$CC -print-multi-os-directory`
13184 case $multi_os_directory in
13185 .) ;; # Avoid trailing /.
13186 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13187 esac
13194 # See if the user wants to configure without libffi. Some
13195 # architectures don't support it. FIXME: We should set a default
13196 # based on the host.
13198 # Check whether --with-libffi was given.
13199 if test "${with_libffi+set}" = set; then :
13200 withval=$with_libffi; :
13201 else
13202 with_libffi=${with_libffi_default-yes}
13206 LIBFFI=
13207 LIBFFIINCS=
13208 if test "$with_libffi" != no; then
13210 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13212 LIBFFI=../libffi/libffi_convenience.la
13213 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13218 is_darwin=no
13219 is_freebsd=no
13220 is_linux=no
13221 is_rtems=no
13222 is_solaris=no
13223 GOOS=unknown
13224 case ${host} in
13225 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13226 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13227 *-*-linux*) is_linux=yes; GOOS=linux ;;
13228 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13229 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13230 esac
13231 if test $is_darwin = yes; then
13232 LIBGO_IS_DARWIN_TRUE=
13233 LIBGO_IS_DARWIN_FALSE='#'
13234 else
13235 LIBGO_IS_DARWIN_TRUE='#'
13236 LIBGO_IS_DARWIN_FALSE=
13239 if test $is_freebsd = yes; then
13240 LIBGO_IS_FREEBSD_TRUE=
13241 LIBGO_IS_FREEBSD_FALSE='#'
13242 else
13243 LIBGO_IS_FREEBSD_TRUE='#'
13244 LIBGO_IS_FREEBSD_FALSE=
13247 if test $is_linux = yes; then
13248 LIBGO_IS_LINUX_TRUE=
13249 LIBGO_IS_LINUX_FALSE='#'
13250 else
13251 LIBGO_IS_LINUX_TRUE='#'
13252 LIBGO_IS_LINUX_FALSE=
13255 if test $is_rtems = yes; then
13256 LIBGO_IS_RTEMS_TRUE=
13257 LIBGO_IS_RTEMS_FALSE='#'
13258 else
13259 LIBGO_IS_RTEMS_TRUE='#'
13260 LIBGO_IS_RTEMS_FALSE=
13263 if test $is_solaris = yes; then
13264 LIBGO_IS_SOLARIS_TRUE=
13265 LIBGO_IS_SOLARIS_FALSE='#'
13266 else
13267 LIBGO_IS_SOLARIS_TRUE='#'
13268 LIBGO_IS_SOLARIS_FALSE=
13273 is_386=no
13274 is_arm=no
13275 is_m68k=no
13276 is_mips=no
13277 is_mips64=no
13278 is_ppc=no
13279 is_ppc64=no
13280 is_sparc=no
13281 is_sparc64=no
13282 is_x86_64=no
13283 GOARCH=unknown
13284 case ${host} in
13285 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13286 is_arm=yes
13287 GOARCH=arm
13289 i[34567]86-*-* | x86_64-*-*)
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13293 #ifdef __x86_64__
13294 #error 64-bit
13295 #endif
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298 is_386=yes
13299 else
13300 is_x86_64=yes
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 if test "$is_386" = "yes"; then
13304 GOARCH=386
13305 else
13306 GOARCH=amd64
13309 m68k*-*-*)
13310 is_m68k=yes
13311 GOARCH=m68k
13313 mips*-*-*)
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13317 #ifdef __mips64
13318 #error 64-bit
13319 #endif
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 is_mips=yes
13323 else
13324 is_mips64=yes
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 if test "$is_mips" = "yes"; then
13328 GOARCH=mips
13329 else
13330 GOARCH=mips64
13333 rs6000*-*-* | powerpc*-*-*)
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 #ifdef _ARCH_PPC64
13338 #error 64-bit
13339 #endif
13340 _ACEOF
13341 if ac_fn_c_try_compile "$LINENO"; then :
13342 is_ppc=yes
13343 else
13344 is_ppc64=yes
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 if test "$is_ppc" = "yes"; then
13348 GOARCH=ppc
13349 else
13350 GOARCH=ppc64
13353 sparc*-*-*)
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13357 #if defined(__sparcv9) || defined(__arch64__)
13358 #error 64-bit
13359 #endif
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 is_sparc=yes
13363 else
13364 is_sparc64=yes
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 if test "$is_sparc" = "yes"; then
13368 GOARCH=sparc
13369 else
13370 GOARCH=sparc64
13373 esac
13374 if test $is_386 = yes; then
13375 LIBGO_IS_386_TRUE=
13376 LIBGO_IS_386_FALSE='#'
13377 else
13378 LIBGO_IS_386_TRUE='#'
13379 LIBGO_IS_386_FALSE=
13382 if test $is_arm = yes; then
13383 LIBGO_IS_ARM_TRUE=
13384 LIBGO_IS_ARM_FALSE='#'
13385 else
13386 LIBGO_IS_ARM_TRUE='#'
13387 LIBGO_IS_ARM_FALSE=
13390 if test $is_m68k = yes; then
13391 LIBGO_IS_M68K_TRUE=
13392 LIBGO_IS_M68K_FALSE='#'
13393 else
13394 LIBGO_IS_M68K_TRUE='#'
13395 LIBGO_IS_M68K_FALSE=
13398 if test $is_mips = yes; then
13399 LIBGO_IS_MIPS_TRUE=
13400 LIBGO_IS_MIPS_FALSE='#'
13401 else
13402 LIBGO_IS_MIPS_TRUE='#'
13403 LIBGO_IS_MIPS_FALSE=
13406 if test $is_mips64 = yes; then
13407 LIBGO_IS_MIPS64_TRUE=
13408 LIBGO_IS_MIPS64_FALSE='#'
13409 else
13410 LIBGO_IS_MIPS64_TRUE='#'
13411 LIBGO_IS_MIPS64_FALSE=
13414 if test $is_ppc = yes; then
13415 LIBGO_IS_PPC_TRUE=
13416 LIBGO_IS_PPC_FALSE='#'
13417 else
13418 LIBGO_IS_PPC_TRUE='#'
13419 LIBGO_IS_PPC_FALSE=
13422 if test $is_ppc64 = yes; then
13423 LIBGO_IS_PPC64_TRUE=
13424 LIBGO_IS_PPC64_FALSE='#'
13425 else
13426 LIBGO_IS_PPC64_TRUE='#'
13427 LIBGO_IS_PPC64_FALSE=
13430 if test $is_sparc = yes; then
13431 LIBGO_IS_SPARC_TRUE=
13432 LIBGO_IS_SPARC_FALSE='#'
13433 else
13434 LIBGO_IS_SPARC_TRUE='#'
13435 LIBGO_IS_SPARC_FALSE=
13438 if test $is_sparc64 = yes; then
13439 LIBGO_IS_SPARC64_TRUE=
13440 LIBGO_IS_SPARC64_FALSE='#'
13441 else
13442 LIBGO_IS_SPARC64_TRUE='#'
13443 LIBGO_IS_SPARC64_FALSE=
13446 if test $is_x86_64 = yes; then
13447 LIBGO_IS_X86_64_TRUE=
13448 LIBGO_IS_X86_64_FALSE='#'
13449 else
13450 LIBGO_IS_X86_64_TRUE='#'
13451 LIBGO_IS_X86_64_FALSE=
13456 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13457 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13458 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13462 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13463 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13464 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13469 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13470 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 CFLAGS_hold=$CFLAGS
13474 CFLAGS="$CFLAGS -fsplit-stack"
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 int i;
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480 libgo_cv_c_split_stack_supported=yes
13481 else
13482 libgo_cv_c_split_stack_supported=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 CFLAGS=$CFLAGS_hold
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13488 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13489 if test "$libgo_cv_c_split_stack_supported" = yes; then
13490 SPLIT_STACK=-fsplit-stack
13492 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13494 else
13495 SPLIT_STACK=
13498 if test "$libgo_cv_c_split_stack_supported" = yes; then
13499 USING_SPLIT_STACK_TRUE=
13500 USING_SPLIT_STACK_FALSE='#'
13501 else
13502 USING_SPLIT_STACK_TRUE='#'
13503 USING_SPLIT_STACK_FALSE=
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13508 $as_echo_n "checking whether linker supports split stack... " >&6; }
13509 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 libgo_cv_c_linker_supports_split_stack=no
13513 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13514 libgo_cv_c_linker_supports_split_stack=yes
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13518 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13519 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13521 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13525 MATH_LIBS=
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13527 $as_echo_n "checking for sqrt in -lm... " >&6; }
13528 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lm $LIBS"
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13536 /* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
13539 #ifdef __cplusplus
13540 extern "C"
13541 #endif
13542 char sqrt ();
13544 main ()
13546 return sqrt ();
13548 return 0;
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"; then :
13552 ac_cv_lib_m_sqrt=yes
13553 else
13554 ac_cv_lib_m_sqrt=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13561 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13562 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13563 MATH_LIBS=-lm
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13569 $as_echo_n "checking for socket libraries... " >&6; }
13570 if test "${libgo_cv_lib_sockets+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 libgo_cv_lib_sockets=
13574 libgo_check_both=no
13575 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13576 if test "x$ac_cv_func_connect" = x""yes; then :
13577 libgo_check_socket=no
13578 else
13579 libgo_check_socket=yes
13582 if test "$libgo_check_socket" = "yes"; then
13583 unset ac_cv_func_connect
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13585 $as_echo_n "checking for main in -lsocket... " >&6; }
13586 if test "${ac_cv_lib_socket_main+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lsocket $LIBS"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13596 main ()
13598 return main ();
13600 return 0;
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"; then :
13604 ac_cv_lib_socket_main=yes
13605 else
13606 ac_cv_lib_socket_main=no
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13613 $as_echo "$ac_cv_lib_socket_main" >&6; }
13614 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13615 libgo_cv_lib_sockets="-lsocket"
13616 else
13617 libgo_check_both=yes
13621 if test "$libgo_check_both" = "yes"; then
13622 libgo_old_libs=$LIBS
13623 LIBS="$LIBS -lsocket -lnsl"
13624 unset ac_cv_func_accept
13625 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13626 if test "x$ac_cv_func_accept" = x""yes; then :
13627 libgo_check_nsl=no
13628 libgo_cv_lib_sockets="-lsocket -lnsl"
13631 unset ac_cv_func_accept
13632 LIBS=$libgo_old_libs
13634 unset ac_cv_func_gethostbyname
13635 libgo_old_libs="$LIBS"
13636 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13637 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13641 $as_echo_n "checking for main in -lnsl... " >&6; }
13642 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 ac_check_lib_save_LIBS=$LIBS
13646 LIBS="-lnsl $LIBS"
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13652 main ()
13654 return main ();
13656 return 0;
13658 _ACEOF
13659 if ac_fn_c_try_link "$LINENO"; then :
13660 ac_cv_lib_nsl_main=yes
13661 else
13662 ac_cv_lib_nsl_main=no
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13669 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13670 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13671 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13676 unset ac_cv_func_gethostbyname
13677 LIBS=$libgo_old_libs
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13681 $as_echo "$libgo_cv_lib_sockets" >&6; }
13682 NET_LIBS="$libgo_cv_lib_sockets"
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13686 $as_echo_n "checking whether -pthread is supported... " >&6; }
13687 if test "${libgo_cv_lib_pthread+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 CFLAGS_hold=$CFLAGS
13691 CFLAGS="$CFLAGS -pthread"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 int i;
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697 libgo_cv_lib_pthread=yes
13698 else
13699 libgo_cv_lib_pthread=no
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 CFLAGS=$CFLAGS_hold
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13705 $as_echo "$libgo_cv_lib_pthread" >&6; }
13706 PTHREAD_CFLAGS=
13707 if test "$libgo_cv_lib_pthread" = yes; then
13708 PTHREAD_CFLAGS=-pthread
13712 PTHREAD_LIBS=
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13714 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13715 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_check_lib_save_LIBS=$LIBS
13719 LIBS="-lpthread $LIBS"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char pthread_create ();
13731 main ()
13733 return pthread_create ();
13735 return 0;
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_lib_pthread_pthread_create=yes
13740 else
13741 ac_cv_lib_pthread_pthread_create=no
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13748 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13749 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13750 PTHREAD_LIBS=-lpthread
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13756 $as_echo_n "checking for library containing sched_yield... " >&6; }
13757 if test "${ac_cv_search_sched_yield+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 ac_func_search_save_LIBS=$LIBS
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 /* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply. */
13767 #ifdef __cplusplus
13768 extern "C"
13769 #endif
13770 char sched_yield ();
13772 main ()
13774 return sched_yield ();
13776 return 0;
13778 _ACEOF
13779 for ac_lib in '' rt; do
13780 if test -z "$ac_lib"; then
13781 ac_res="none required"
13782 else
13783 ac_res=-l$ac_lib
13784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 ac_cv_search_sched_yield=$ac_res
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext
13791 if test "${ac_cv_search_sched_yield+set}" = set; then :
13792 break
13794 done
13795 if test "${ac_cv_search_sched_yield+set}" = set; then :
13797 else
13798 ac_cv_search_sched_yield=no
13800 rm conftest.$ac_ext
13801 LIBS=$ac_func_search_save_LIBS
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13804 $as_echo "$ac_cv_search_sched_yield" >&6; }
13805 ac_res=$ac_cv_search_sched_yield
13806 if test "$ac_res" != no; then :
13807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13813 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13814 if test "${ac_cv_c_bigendian+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_cv_c_bigendian=unknown
13818 # See if we're dealing with a universal compiler.
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #ifndef __APPLE_CC__
13822 not a universal capable compiler
13823 #endif
13824 typedef int dummy;
13826 _ACEOF
13827 if ac_fn_c_try_compile "$LINENO"; then :
13829 # Check for potential -arch flags. It is not universal unless
13830 # there are at least two -arch flags with different values.
13831 ac_arch=
13832 ac_prev=
13833 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13834 if test -n "$ac_prev"; then
13835 case $ac_word in
13836 i?86 | x86_64 | ppc | ppc64)
13837 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13838 ac_arch=$ac_word
13839 else
13840 ac_cv_c_bigendian=universal
13841 break
13844 esac
13845 ac_prev=
13846 elif test "x$ac_word" = "x-arch"; then
13847 ac_prev=arch
13849 done
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 if test $ac_cv_c_bigendian = unknown; then
13853 # See if sys/param.h defines the BYTE_ORDER macro.
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 #include <sys/types.h>
13857 #include <sys/param.h>
13860 main ()
13862 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13863 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13864 && LITTLE_ENDIAN)
13865 bogus endian macros
13866 #endif
13869 return 0;
13871 _ACEOF
13872 if ac_fn_c_try_compile "$LINENO"; then :
13873 # It does; now see whether it defined to BIG_ENDIAN or not.
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 #include <sys/types.h>
13877 #include <sys/param.h>
13880 main ()
13882 #if BYTE_ORDER != BIG_ENDIAN
13883 not big endian
13884 #endif
13887 return 0;
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891 ac_cv_c_bigendian=yes
13892 else
13893 ac_cv_c_bigendian=no
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 if test $ac_cv_c_bigendian = unknown; then
13900 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #include <limits.h>
13906 main ()
13908 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13909 bogus endian macros
13910 #endif
13913 return 0;
13915 _ACEOF
13916 if ac_fn_c_try_compile "$LINENO"; then :
13917 # It does; now see whether it defined to _BIG_ENDIAN or not.
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 #include <limits.h>
13923 main ()
13925 #ifndef _BIG_ENDIAN
13926 not big endian
13927 #endif
13930 return 0;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 ac_cv_c_bigendian=yes
13935 else
13936 ac_cv_c_bigendian=no
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 if test $ac_cv_c_bigendian = unknown; then
13943 # Compile a test program.
13944 if test "$cross_compiling" = yes; then :
13945 # Try to guess by grepping values from an object file.
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 short int ascii_mm[] =
13949 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13950 short int ascii_ii[] =
13951 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13952 int use_ascii (int i) {
13953 return ascii_mm[i] + ascii_ii[i];
13955 short int ebcdic_ii[] =
13956 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13957 short int ebcdic_mm[] =
13958 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13959 int use_ebcdic (int i) {
13960 return ebcdic_mm[i] + ebcdic_ii[i];
13962 extern int foo;
13965 main ()
13967 return use_ascii (foo) == use_ebcdic (foo);
13969 return 0;
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13974 ac_cv_c_bigendian=yes
13976 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13977 if test "$ac_cv_c_bigendian" = unknown; then
13978 ac_cv_c_bigendian=no
13979 else
13980 # finding both strings is unlikely to happen, but who knows?
13981 ac_cv_c_bigendian=unknown
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 else
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 $ac_includes_default
13991 main ()
13994 /* Are we little or big endian? From Harbison&Steele. */
13995 union
13997 long int l;
13998 char c[sizeof (long int)];
13999 } u;
14000 u.l = 1;
14001 return u.c[sizeof (long int) - 1] == 1;
14004 return 0;
14006 _ACEOF
14007 if ac_fn_c_try_run "$LINENO"; then :
14008 ac_cv_c_bigendian=no
14009 else
14010 ac_cv_c_bigendian=yes
14012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14013 conftest.$ac_objext conftest.beam conftest.$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14019 $as_echo "$ac_cv_c_bigendian" >&6; }
14020 case $ac_cv_c_bigendian in #(
14021 yes)
14022 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14023 ;; #(
14025 ;; #(
14026 universal)
14028 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14030 ;; #(
14032 as_fn_error "unknown endianness
14033 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14034 esac
14039 # Check whether --with-system-libunwind was given.
14040 if test "${with_system_libunwind+set}" = set; then :
14041 withval=$with_system_libunwind;
14044 # If system-libunwind was not specifically set, pick a default setting.
14045 if test x$with_system_libunwind = x; then
14046 case ${target} in
14047 ia64-*-hpux*) with_system_libunwind=yes ;;
14048 *) with_system_libunwind=no ;;
14049 esac
14051 # Based on system-libunwind and target, do we have ipinfo?
14052 if test x$with_system_libunwind = xyes; then
14053 case ${target} in
14054 ia64-*-*) have_unwind_getipinfo=no ;;
14055 *) have_unwind_getipinfo=yes ;;
14056 esac
14057 else
14058 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14060 case ${target} in
14061 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14062 *) have_unwind_getipinfo=yes ;;
14063 esac
14067 if test x$have_unwind_getipinfo = xyes; then
14069 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14074 # Check whether --enable-sjlj-exceptions was given.
14075 if test "${enable_sjlj_exceptions+set}" = set; then :
14076 enableval=$enable_sjlj_exceptions; case "$enableval" in
14077 yes|no|auto) ;;
14078 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14079 esac
14080 else
14081 enable_sjlj_exceptions=auto
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14086 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14087 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14089 else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14093 void bar ();
14094 void clean (int *);
14095 void foo ()
14097 int i __attribute__ ((cleanup (clean)));
14098 bar();
14101 _ACEOF
14102 CFLAGS_hold=$CFLAGS
14103 CFLAGS="--save-temps -fexceptions"
14104 libgo_cv_lib_sjlj_exceptions=unknown
14105 if ac_fn_c_try_compile; then :
14106 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14107 libgo_cv_lib_sjlj_exceptions=yes
14108 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14109 libgo_cv_lib_sjlj_exceptions=no
14112 CFLAGS=$CFLAGS_hold
14113 rm -f conftest*
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14117 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14119 if test "$enable_sjlj_exceptions" = "auto"; then
14120 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14123 case $enable_sjlj_exceptions in
14124 yes)
14126 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14132 as_fn_error "unable to detect exception model" "$LINENO" 5
14134 esac
14136 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14137 do :
14138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14140 eval as_val=\$$as_ac_Header
14141 if test "x$as_val" = x""yes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14144 _ACEOF
14148 done
14150 if test "$ac_cv_header_sys_mman_h" = yes; then
14151 HAVE_SYS_MMAN_H_TRUE=
14152 HAVE_SYS_MMAN_H_FALSE='#'
14153 else
14154 HAVE_SYS_MMAN_H_TRUE='#'
14155 HAVE_SYS_MMAN_H_FALSE=
14159 for ac_func in srandom random strerror_r strsignal wait4
14160 do :
14161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14163 eval as_val=\$$as_ac_var
14164 if test "x$as_val" = x""yes; then :
14165 cat >>confdefs.h <<_ACEOF
14166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14167 _ACEOF
14170 done
14172 if test "$ac_cv_func_strerror_r" = yes; then
14173 HAVE_STRERROR_R_TRUE=
14174 HAVE_STRERROR_R_FALSE='#'
14175 else
14176 HAVE_STRERROR_R_TRUE='#'
14177 HAVE_STRERROR_R_FALSE=
14180 if test "$ac_cv_func_wait4" = yes; then
14181 HAVE_WAIT4_TRUE=
14182 HAVE_WAIT4_FALSE='#'
14183 else
14184 HAVE_WAIT4_TRUE='#'
14185 HAVE_WAIT4_FALSE=
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14190 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14191 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14197 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14198 uint32 i;
14199 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14204 else
14205 libgo_cv_func___sync_bool_compare_and_swap_4=no
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14211 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14212 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14214 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14219 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14220 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14226 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14227 uint32 i;
14228 int main() { return __sync_fetch_and_add (&i, 1); }
14230 _ACEOF
14231 if ac_fn_c_try_link "$LINENO"; then :
14232 libgo_cv_func___sync_fetch_and_add_4=yes
14233 else
14234 libgo_cv_func___sync_fetch_and_add_4=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14240 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14241 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14243 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14248 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14249 if test "${libgo_cv_c_stringops+set}" = set; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 CFLAGS_hold=$CFLAGS
14253 CFLAGS="$CFLAGS -minline-all-stringops"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 int i;
14257 _ACEOF
14258 if ac_fn_c_try_compile "$LINENO"; then :
14259 libgo_cv_c_stringops=yes
14260 else
14261 libgo_cv_c_stringops=no
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 CFLAGS=$CFLAGS_hold
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14267 $as_echo "$libgo_cv_c_stringops" >&6; }
14268 STRINGOPS_FLAG=
14269 if test "$libgo_cv_c_stringops" = yes; then
14270 STRINGOPS_FLAG=-minline-all-stringops
14274 CFLAGS_hold=$CFLAGS
14275 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14276 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14277 if test "x$ac_cv_type_off64_t" = x""yes; then :
14279 cat >>confdefs.h <<_ACEOF
14280 #define HAVE_OFF64_T 1
14281 _ACEOF
14286 CFLAGS=$CFLAGS_hold
14288 cat >confcache <<\_ACEOF
14289 # This file is a shell script that caches the results of configure
14290 # tests run on this system so they can be shared between configure
14291 # scripts and configure runs, see configure's option --config-cache.
14292 # It is not useful on other systems. If it contains results you don't
14293 # want to keep, you may remove or edit it.
14295 # config.status only pays attention to the cache file if you give it
14296 # the --recheck option to rerun configure.
14298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14300 # following values.
14302 _ACEOF
14304 # The following way of writing the cache mishandles newlines in values,
14305 # but we know of no workaround that is simple, portable, and efficient.
14306 # So, we kill variables containing newlines.
14307 # Ultrix sh set writes to stderr and can't be redirected directly,
14308 # and sets the high bit in the cache file unless we assign to the vars.
14310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14311 eval ac_val=\$$ac_var
14312 case $ac_val in #(
14313 *${as_nl}*)
14314 case $ac_var in #(
14315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14317 esac
14318 case $ac_var in #(
14319 _ | IFS | as_nl) ;; #(
14320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14321 *) { eval $ac_var=; unset $ac_var;} ;;
14322 esac ;;
14323 esac
14324 done
14326 (set) 2>&1 |
14327 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14328 *${as_nl}ac_space=\ *)
14329 # `set' does not quote correctly, so add quotes: double-quote
14330 # substitution turns \\\\ into \\, and sed turns \\ into \.
14331 sed -n \
14332 "s/'/'\\\\''/g;
14333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14334 ;; #(
14336 # `set' quotes correctly as required by POSIX, so do not add quotes.
14337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14339 esac |
14340 sort
14342 sed '
14343 /^ac_cv_env_/b end
14344 t clear
14345 :clear
14346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14347 t end
14348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14349 :end' >>confcache
14350 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14351 if test -w "$cache_file"; then
14352 test "x$cache_file" != "x/dev/null" &&
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14354 $as_echo "$as_me: updating cache $cache_file" >&6;}
14355 cat confcache >$cache_file
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14358 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14361 rm -f confcache
14363 if test ${multilib} = yes; then
14364 multilib_arg="--enable-multilib"
14365 else
14366 multilib_arg=
14369 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14372 ac_config_commands="$ac_config_commands default"
14375 cat >confcache <<\_ACEOF
14376 # This file is a shell script that caches the results of configure
14377 # tests run on this system so they can be shared between configure
14378 # scripts and configure runs, see configure's option --config-cache.
14379 # It is not useful on other systems. If it contains results you don't
14380 # want to keep, you may remove or edit it.
14382 # config.status only pays attention to the cache file if you give it
14383 # the --recheck option to rerun configure.
14385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14387 # following values.
14389 _ACEOF
14391 # The following way of writing the cache mishandles newlines in values,
14392 # but we know of no workaround that is simple, portable, and efficient.
14393 # So, we kill variables containing newlines.
14394 # Ultrix sh set writes to stderr and can't be redirected directly,
14395 # and sets the high bit in the cache file unless we assign to the vars.
14397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14398 eval ac_val=\$$ac_var
14399 case $ac_val in #(
14400 *${as_nl}*)
14401 case $ac_var in #(
14402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14404 esac
14405 case $ac_var in #(
14406 _ | IFS | as_nl) ;; #(
14407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14408 *) { eval $ac_var=; unset $ac_var;} ;;
14409 esac ;;
14410 esac
14411 done
14413 (set) 2>&1 |
14414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14415 *${as_nl}ac_space=\ *)
14416 # `set' does not quote correctly, so add quotes: double-quote
14417 # substitution turns \\\\ into \\, and sed turns \\ into \.
14418 sed -n \
14419 "s/'/'\\\\''/g;
14420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14421 ;; #(
14423 # `set' quotes correctly as required by POSIX, so do not add quotes.
14424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14426 esac |
14427 sort
14429 sed '
14430 /^ac_cv_env_/b end
14431 t clear
14432 :clear
14433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14434 t end
14435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14436 :end' >>confcache
14437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14438 if test -w "$cache_file"; then
14439 test "x$cache_file" != "x/dev/null" &&
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14441 $as_echo "$as_me: updating cache $cache_file" >&6;}
14442 cat confcache >$cache_file
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14448 rm -f confcache
14450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14451 # Let make expand exec_prefix.
14452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14454 DEFS=-DHAVE_CONFIG_H
14456 ac_libobjs=
14457 ac_ltlibobjs=
14458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14459 # 1. Remove the extension, and $U if already installed.
14460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14463 # will be set to the directory where LIBOBJS objects are built.
14464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14466 done
14467 LIBOBJS=$ac_libobjs
14469 LTLIBOBJS=$ac_ltlibobjs
14472 if test -n "$EXEEXT"; then
14473 am__EXEEXT_TRUE=
14474 am__EXEEXT_FALSE='#'
14475 else
14476 am__EXEEXT_TRUE='#'
14477 am__EXEEXT_FALSE=
14480 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14481 as_fn_error "conditional \"AMDEP\" was never defined.
14482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14484 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14485 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14488 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14489 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14492 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14493 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14496 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14497 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14500 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14501 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14504 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14505 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14508 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14509 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14512 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14513 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14516 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14517 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14520 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14521 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14524 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14525 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14529 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14533 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14537 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14540 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14541 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14544 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14545 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14548 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14549 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14552 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14553 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14557 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14558 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14561 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14562 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14565 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14566 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14570 : ${CONFIG_STATUS=./config.status}
14571 ac_write_fail=0
14572 ac_clean_files_save=$ac_clean_files
14573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14575 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14576 as_write_fail=0
14577 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14578 #! $SHELL
14579 # Generated by $as_me.
14580 # Run this file to recreate the current configuration.
14581 # Compiler output produced by configure, useful for debugging
14582 # configure, is in config.log if it exists.
14584 debug=false
14585 ac_cs_recheck=false
14586 ac_cs_silent=false
14588 SHELL=\${CONFIG_SHELL-$SHELL}
14589 export SHELL
14590 _ASEOF
14591 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14592 ## -------------------- ##
14593 ## M4sh Initialization. ##
14594 ## -------------------- ##
14596 # Be more Bourne compatible
14597 DUALCASE=1; export DUALCASE # for MKS sh
14598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14599 emulate sh
14600 NULLCMD=:
14601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14602 # is contrary to our usage. Disable this feature.
14603 alias -g '${1+"$@"}'='"$@"'
14604 setopt NO_GLOB_SUBST
14605 else
14606 case `(set -o) 2>/dev/null` in #(
14607 *posix*) :
14608 set -o posix ;; #(
14609 *) :
14611 esac
14615 as_nl='
14617 export as_nl
14618 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14619 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14622 # Prefer a ksh shell builtin over an external printf program on Solaris,
14623 # but without wasting forks for bash or zsh.
14624 if test -z "$BASH_VERSION$ZSH_VERSION" \
14625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14626 as_echo='print -r --'
14627 as_echo_n='print -rn --'
14628 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14629 as_echo='printf %s\n'
14630 as_echo_n='printf %s'
14631 else
14632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14633 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14634 as_echo_n='/usr/ucb/echo -n'
14635 else
14636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14637 as_echo_n_body='eval
14638 arg=$1;
14639 case $arg in #(
14640 *"$as_nl"*)
14641 expr "X$arg" : "X\\(.*\\)$as_nl";
14642 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14643 esac;
14644 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14646 export as_echo_n_body
14647 as_echo_n='sh -c $as_echo_n_body as_echo'
14649 export as_echo_body
14650 as_echo='sh -c $as_echo_body as_echo'
14653 # The user is always right.
14654 if test "${PATH_SEPARATOR+set}" != set; then
14655 PATH_SEPARATOR=:
14656 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14657 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14658 PATH_SEPARATOR=';'
14663 # IFS
14664 # We need space, tab and new line, in precisely that order. Quoting is
14665 # there to prevent editors from complaining about space-tab.
14666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14667 # splitting by setting IFS to empty value.)
14668 IFS=" "" $as_nl"
14670 # Find who we are. Look in the path if we contain no directory separator.
14671 case $0 in #((
14672 *[\\/]* ) as_myself=$0 ;;
14673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14674 for as_dir in $PATH
14676 IFS=$as_save_IFS
14677 test -z "$as_dir" && as_dir=.
14678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14679 done
14680 IFS=$as_save_IFS
14683 esac
14684 # We did not find ourselves, most probably we were run as `sh COMMAND'
14685 # in which case we are not to be found in the path.
14686 if test "x$as_myself" = x; then
14687 as_myself=$0
14689 if test ! -f "$as_myself"; then
14690 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14691 exit 1
14694 # Unset variables that we do not need and which cause bugs (e.g. in
14695 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14696 # suppresses any "Segmentation fault" message there. '((' could
14697 # trigger a bug in pdksh 5.2.14.
14698 for as_var in BASH_ENV ENV MAIL MAILPATH
14699 do eval test x\${$as_var+set} = xset \
14700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14701 done
14702 PS1='$ '
14703 PS2='> '
14704 PS4='+ '
14706 # NLS nuisances.
14707 LC_ALL=C
14708 export LC_ALL
14709 LANGUAGE=C
14710 export LANGUAGE
14712 # CDPATH.
14713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14716 # as_fn_error ERROR [LINENO LOG_FD]
14717 # ---------------------------------
14718 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14719 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14720 # script with status $?, using 1 if that was 0.
14721 as_fn_error ()
14723 as_status=$?; test $as_status -eq 0 && as_status=1
14724 if test "$3"; then
14725 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14726 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14728 $as_echo "$as_me: error: $1" >&2
14729 as_fn_exit $as_status
14730 } # as_fn_error
14733 # as_fn_set_status STATUS
14734 # -----------------------
14735 # Set $? to STATUS, without forking.
14736 as_fn_set_status ()
14738 return $1
14739 } # as_fn_set_status
14741 # as_fn_exit STATUS
14742 # -----------------
14743 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14744 as_fn_exit ()
14746 set +e
14747 as_fn_set_status $1
14748 exit $1
14749 } # as_fn_exit
14751 # as_fn_unset VAR
14752 # ---------------
14753 # Portably unset VAR.
14754 as_fn_unset ()
14756 { eval $1=; unset $1;}
14758 as_unset=as_fn_unset
14759 # as_fn_append VAR VALUE
14760 # ----------------------
14761 # Append the text in VALUE to the end of the definition contained in VAR. Take
14762 # advantage of any shell optimizations that allow amortized linear growth over
14763 # repeated appends, instead of the typical quadratic growth present in naive
14764 # implementations.
14765 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14766 eval 'as_fn_append ()
14768 eval $1+=\$2
14770 else
14771 as_fn_append ()
14773 eval $1=\$$1\$2
14775 fi # as_fn_append
14777 # as_fn_arith ARG...
14778 # ------------------
14779 # Perform arithmetic evaluation on the ARGs, and store the result in the
14780 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14781 # must be portable across $(()) and expr.
14782 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14783 eval 'as_fn_arith ()
14785 as_val=$(( $* ))
14787 else
14788 as_fn_arith ()
14790 as_val=`expr "$@" || test $? -eq 1`
14792 fi # as_fn_arith
14795 if expr a : '\(a\)' >/dev/null 2>&1 &&
14796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14797 as_expr=expr
14798 else
14799 as_expr=false
14802 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14803 as_basename=basename
14804 else
14805 as_basename=false
14808 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14809 as_dirname=dirname
14810 else
14811 as_dirname=false
14814 as_me=`$as_basename -- "$0" ||
14815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14816 X"$0" : 'X\(//\)$' \| \
14817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14818 $as_echo X/"$0" |
14819 sed '/^.*\/\([^/][^/]*\)\/*$/{
14820 s//\1/
14823 /^X\/\(\/\/\)$/{
14824 s//\1/
14827 /^X\/\(\/\).*/{
14828 s//\1/
14831 s/.*/./; q'`
14833 # Avoid depending upon Character Ranges.
14834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14837 as_cr_digits='0123456789'
14838 as_cr_alnum=$as_cr_Letters$as_cr_digits
14840 ECHO_C= ECHO_N= ECHO_T=
14841 case `echo -n x` in #(((((
14842 -n*)
14843 case `echo 'xy\c'` in
14844 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14845 xy) ECHO_C='\c';;
14846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14847 ECHO_T=' ';;
14848 esac;;
14850 ECHO_N='-n';;
14851 esac
14853 rm -f conf$$ conf$$.exe conf$$.file
14854 if test -d conf$$.dir; then
14855 rm -f conf$$.dir/conf$$.file
14856 else
14857 rm -f conf$$.dir
14858 mkdir conf$$.dir 2>/dev/null
14860 if (echo >conf$$.file) 2>/dev/null; then
14861 if ln -s conf$$.file conf$$ 2>/dev/null; then
14862 as_ln_s='ln -s'
14863 # ... but there are two gotchas:
14864 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14865 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14866 # In both cases, we have to default to `cp -p'.
14867 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14868 as_ln_s='cp -p'
14869 elif ln conf$$.file conf$$ 2>/dev/null; then
14870 as_ln_s=ln
14871 else
14872 as_ln_s='cp -p'
14874 else
14875 as_ln_s='cp -p'
14877 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14878 rmdir conf$$.dir 2>/dev/null
14881 # as_fn_mkdir_p
14882 # -------------
14883 # Create "$as_dir" as a directory, including parents if necessary.
14884 as_fn_mkdir_p ()
14887 case $as_dir in #(
14888 -*) as_dir=./$as_dir;;
14889 esac
14890 test -d "$as_dir" || eval $as_mkdir_p || {
14891 as_dirs=
14892 while :; do
14893 case $as_dir in #(
14894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14895 *) as_qdir=$as_dir;;
14896 esac
14897 as_dirs="'$as_qdir' $as_dirs"
14898 as_dir=`$as_dirname -- "$as_dir" ||
14899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14900 X"$as_dir" : 'X\(//\)[^/]' \| \
14901 X"$as_dir" : 'X\(//\)$' \| \
14902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14903 $as_echo X"$as_dir" |
14904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14905 s//\1/
14908 /^X\(\/\/\)[^/].*/{
14909 s//\1/
14912 /^X\(\/\/\)$/{
14913 s//\1/
14916 /^X\(\/\).*/{
14917 s//\1/
14920 s/.*/./; q'`
14921 test -d "$as_dir" && break
14922 done
14923 test -z "$as_dirs" || eval "mkdir $as_dirs"
14924 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14927 } # as_fn_mkdir_p
14928 if mkdir -p . 2>/dev/null; then
14929 as_mkdir_p='mkdir -p "$as_dir"'
14930 else
14931 test -d ./-p && rmdir ./-p
14932 as_mkdir_p=false
14935 if test -x / >/dev/null 2>&1; then
14936 as_test_x='test -x'
14937 else
14938 if ls -dL / >/dev/null 2>&1; then
14939 as_ls_L_option=L
14940 else
14941 as_ls_L_option=
14943 as_test_x='
14944 eval sh -c '\''
14945 if test -d "$1"; then
14946 test -d "$1/.";
14947 else
14948 case $1 in #(
14949 -*)set "./$1";;
14950 esac;
14951 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14952 ???[sx]*):;;*)false;;esac;fi
14953 '\'' sh
14956 as_executable_p=$as_test_x
14958 # Sed expression to map a string onto a valid CPP name.
14959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14961 # Sed expression to map a string onto a valid variable name.
14962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14965 exec 6>&1
14966 ## ----------------------------------- ##
14967 ## Main body of $CONFIG_STATUS script. ##
14968 ## ----------------------------------- ##
14969 _ASEOF
14970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14973 # Save the log message, to keep $0 and so on meaningful, and to
14974 # report actual input values of CONFIG_FILES etc. instead of their
14975 # values after options handling.
14976 ac_log="
14977 This file was extended by package-unused $as_me version-unused, which was
14978 generated by GNU Autoconf 2.64. Invocation command line was
14980 CONFIG_FILES = $CONFIG_FILES
14981 CONFIG_HEADERS = $CONFIG_HEADERS
14982 CONFIG_LINKS = $CONFIG_LINKS
14983 CONFIG_COMMANDS = $CONFIG_COMMANDS
14984 $ $0 $@
14986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14989 _ACEOF
14991 case $ac_config_files in *"
14992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14993 esac
14995 case $ac_config_headers in *"
14996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14997 esac
15000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15001 # Files that config.status was made for.
15002 config_files="$ac_config_files"
15003 config_headers="$ac_config_headers"
15004 config_commands="$ac_config_commands"
15006 _ACEOF
15008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15009 ac_cs_usage="\
15010 \`$as_me' instantiates files and other configuration actions
15011 from templates according to the current configuration. Unless the files
15012 and actions are specified as TAGs, all are instantiated by default.
15014 Usage: $0 [OPTION]... [TAG]...
15016 -h, --help print this help, then exit
15017 -V, --version print version number and configuration settings, then exit
15018 -q, --quiet, --silent
15019 do not print progress messages
15020 -d, --debug don't remove temporary files
15021 --recheck update $as_me by reconfiguring in the same conditions
15022 --file=FILE[:TEMPLATE]
15023 instantiate the configuration file FILE
15024 --header=FILE[:TEMPLATE]
15025 instantiate the configuration header FILE
15027 Configuration files:
15028 $config_files
15030 Configuration headers:
15031 $config_headers
15033 Configuration commands:
15034 $config_commands
15036 Report bugs to the package provider."
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15040 ac_cs_version="\\
15041 package-unused config.status version-unused
15042 configured by $0, generated by GNU Autoconf 2.64,
15043 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15045 Copyright (C) 2009 Free Software Foundation, Inc.
15046 This config.status script is free software; the Free Software Foundation
15047 gives unlimited permission to copy, distribute and modify it."
15049 ac_pwd='$ac_pwd'
15050 srcdir='$srcdir'
15051 INSTALL='$INSTALL'
15052 MKDIR_P='$MKDIR_P'
15053 AWK='$AWK'
15054 test -n "\$AWK" || AWK=awk
15055 _ACEOF
15057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15058 # The default lists apply if the user does not specify any file.
15059 ac_need_defaults=:
15060 while test $# != 0
15062 case $1 in
15063 --*=*)
15064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15065 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15066 ac_shift=:
15069 ac_option=$1
15070 ac_optarg=$2
15071 ac_shift=shift
15073 esac
15075 case $ac_option in
15076 # Handling of the options.
15077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15078 ac_cs_recheck=: ;;
15079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15080 $as_echo "$ac_cs_version"; exit ;;
15081 --debug | --debu | --deb | --de | --d | -d )
15082 debug=: ;;
15083 --file | --fil | --fi | --f )
15084 $ac_shift
15085 case $ac_optarg in
15086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15087 esac
15088 as_fn_append CONFIG_FILES " '$ac_optarg'"
15089 ac_need_defaults=false;;
15090 --header | --heade | --head | --hea )
15091 $ac_shift
15092 case $ac_optarg in
15093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15094 esac
15095 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15096 ac_need_defaults=false;;
15097 --he | --h)
15098 # Conflict between --help and --header
15099 as_fn_error "ambiguous option: \`$1'
15100 Try \`$0 --help' for more information.";;
15101 --help | --hel | -h )
15102 $as_echo "$ac_cs_usage"; exit ;;
15103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15105 ac_cs_silent=: ;;
15107 # This is an error.
15108 -*) as_fn_error "unrecognized option: \`$1'
15109 Try \`$0 --help' for more information." ;;
15111 *) as_fn_append ac_config_targets " $1"
15112 ac_need_defaults=false ;;
15114 esac
15115 shift
15116 done
15118 ac_configure_extra_args=
15120 if $ac_cs_silent; then
15121 exec 6>/dev/null
15122 ac_configure_extra_args="$ac_configure_extra_args --silent"
15125 _ACEOF
15126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15127 if \$ac_cs_recheck; then
15128 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15129 shift
15130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15131 CONFIG_SHELL='$SHELL'
15132 export CONFIG_SHELL
15133 exec "\$@"
15136 _ACEOF
15137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138 exec 5>>config.log
15140 echo
15141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15142 ## Running $as_me. ##
15143 _ASBOX
15144 $as_echo "$ac_log"
15145 } >&5
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 # INIT-COMMANDS
15153 srcdir="$srcdir"
15154 host="$host"
15155 target="$target"
15156 with_multisubdir="$with_multisubdir"
15157 with_multisrctop="$with_multisrctop"
15158 with_target_subdir="$with_target_subdir"
15159 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15160 multi_basedir="$multi_basedir"
15161 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15162 CC="$CC"
15163 CXX="$CXX"
15164 GFORTRAN="$GFORTRAN"
15165 GCJ="$GCJ"
15166 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15169 # The HP-UX ksh and POSIX shell print the target directory to stdout
15170 # if CDPATH is set.
15171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15173 sed_quote_subst='$sed_quote_subst'
15174 double_quote_subst='$double_quote_subst'
15175 delay_variable_subst='$delay_variable_subst'
15176 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15177 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15178 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15179 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15180 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15181 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15182 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15183 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15184 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15185 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15186 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15187 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15188 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15189 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15190 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15191 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15192 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15193 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15194 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15195 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15196 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15197 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15198 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15199 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15200 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15201 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15202 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15203 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15204 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15205 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15206 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15207 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15208 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15209 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15210 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15223 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15224 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"`'
15225 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15226 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15227 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15228 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15229 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15230 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15231 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15232 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15233 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15234 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15235 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15236 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15237 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15238 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15239 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15240 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15241 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15242 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15243 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15244 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15245 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15246 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15247 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15248 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15249 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15250 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15251 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15252 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15253 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15254 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15255 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15256 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15257 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15258 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15259 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15260 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15261 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15262 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15263 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15264 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15265 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15266 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15267 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15268 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15269 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15270 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15271 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15272 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15273 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15274 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15275 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15276 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15277 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15278 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15279 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15280 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15281 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15282 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15283 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15284 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15285 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15286 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15287 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15288 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15289 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15296 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15297 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15298 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15299 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15300 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15301 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15302 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15303 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15304 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15306 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15307 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15308 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15309 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15310 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15311 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15312 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15313 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15314 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15315 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15316 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15317 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15318 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15319 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15320 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15321 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15322 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15323 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15324 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15325 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15326 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15327 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15328 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15329 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15330 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15331 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15332 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15333 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15334 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15335 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15336 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15337 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15338 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15340 LTCC='$LTCC'
15341 LTCFLAGS='$LTCFLAGS'
15342 compiler='$compiler_DEFAULT'
15344 # A function that is used when there is no print builtin or printf.
15345 func_fallback_echo ()
15347 eval 'cat <<_LTECHO_EOF
15349 _LTECHO_EOF'
15352 # Quote evaled strings.
15353 for var in SED \
15354 GREP \
15355 EGREP \
15356 FGREP \
15357 SHELL \
15358 ECHO \
15359 LD \
15360 NM \
15361 LN_S \
15362 lt_SP2NL \
15363 lt_NL2SP \
15364 reload_flag \
15365 OBJDUMP \
15366 deplibs_check_method \
15367 file_magic_cmd \
15368 AR \
15369 AR_FLAGS \
15370 STRIP \
15371 RANLIB \
15372 CC \
15373 CFLAGS \
15374 compiler \
15375 lt_cv_sys_global_symbol_pipe \
15376 lt_cv_sys_global_symbol_to_cdecl \
15377 lt_cv_sys_global_symbol_to_c_name_address \
15378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15379 lt_prog_compiler_no_builtin_flag \
15380 lt_prog_compiler_wl \
15381 lt_prog_compiler_pic \
15382 lt_prog_compiler_static \
15383 lt_cv_prog_compiler_c_o \
15384 need_locks \
15385 DSYMUTIL \
15386 NMEDIT \
15387 LIPO \
15388 OTOOL \
15389 OTOOL64 \
15390 shrext_cmds \
15391 export_dynamic_flag_spec \
15392 whole_archive_flag_spec \
15393 compiler_needs_object \
15394 with_gnu_ld \
15395 allow_undefined_flag \
15396 no_undefined_flag \
15397 hardcode_libdir_flag_spec \
15398 hardcode_libdir_flag_spec_ld \
15399 hardcode_libdir_separator \
15400 fix_srcfile_path \
15401 exclude_expsyms \
15402 include_expsyms \
15403 file_list_spec \
15404 variables_saved_for_relink \
15405 libname_spec \
15406 library_names_spec \
15407 soname_spec \
15408 install_override_mode \
15409 finish_eval \
15410 old_striplib \
15411 striplib \
15412 LD_GO \
15413 reload_flag_GO \
15414 compiler_GO \
15415 lt_prog_compiler_no_builtin_flag_GO \
15416 lt_prog_compiler_wl_GO \
15417 lt_prog_compiler_pic_GO \
15418 lt_prog_compiler_static_GO \
15419 lt_cv_prog_compiler_c_o_GO \
15420 export_dynamic_flag_spec_GO \
15421 whole_archive_flag_spec_GO \
15422 compiler_needs_object_GO \
15423 with_gnu_ld_GO \
15424 allow_undefined_flag_GO \
15425 no_undefined_flag_GO \
15426 hardcode_libdir_flag_spec_GO \
15427 hardcode_libdir_flag_spec_ld_GO \
15428 hardcode_libdir_separator_GO \
15429 fix_srcfile_path_GO \
15430 exclude_expsyms_GO \
15431 include_expsyms_GO \
15432 file_list_spec_GO; do
15433 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15434 *[\\\\\\\`\\"\\\$]*)
15435 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15438 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15440 esac
15441 done
15443 # Double-quote double-evaled strings.
15444 for var in reload_cmds \
15445 old_postinstall_cmds \
15446 old_postuninstall_cmds \
15447 old_archive_cmds \
15448 extract_expsyms_cmds \
15449 old_archive_from_new_cmds \
15450 old_archive_from_expsyms_cmds \
15451 archive_cmds \
15452 archive_expsym_cmds \
15453 module_cmds \
15454 module_expsym_cmds \
15455 export_symbols_cmds \
15456 prelink_cmds \
15457 postinstall_cmds \
15458 postuninstall_cmds \
15459 finish_cmds \
15460 sys_lib_search_path_spec \
15461 sys_lib_dlsearch_path_spec \
15462 reload_cmds_GO \
15463 old_archive_cmds_GO \
15464 old_archive_from_new_cmds_GO \
15465 old_archive_from_expsyms_cmds_GO \
15466 archive_cmds_GO \
15467 archive_expsym_cmds_GO \
15468 module_cmds_GO \
15469 module_expsym_cmds_GO \
15470 export_symbols_cmds_GO \
15471 prelink_cmds_GO; do
15472 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15473 *[\\\\\\\`\\"\\\$]*)
15474 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15477 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15479 esac
15480 done
15482 ac_aux_dir='$ac_aux_dir'
15483 xsi_shell='$xsi_shell'
15484 lt_shell_append='$lt_shell_append'
15486 # See if we are running on zsh, and set the options which allow our
15487 # commands through without removal of \ escapes INIT.
15488 if test -n "\${ZSH_VERSION+set}" ; then
15489 setopt NO_GLOB_SUBST
15493 PACKAGE='$PACKAGE'
15494 VERSION='$VERSION'
15495 TIMESTAMP='$TIMESTAMP'
15496 RM='$RM'
15497 ofile='$ofile'
15504 # Variables needed in config.status (file generation) which aren't already
15505 # passed by autoconf.
15506 SUBDIRS="$SUBDIRS"
15509 _ACEOF
15511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15513 # Handling of arguments.
15514 for ac_config_target in $ac_config_targets
15516 case $ac_config_target in
15517 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15518 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15519 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15520 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15521 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15522 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15523 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15525 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15526 esac
15527 done
15530 # If the user did not use the arguments to specify the items to instantiate,
15531 # then the envvar interface is used. Set only those that are not.
15532 # We use the long form for the default assignment because of an extremely
15533 # bizarre bug on SunOS 4.1.3.
15534 if $ac_need_defaults; then
15535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15540 # Have a temporary directory for convenience. Make it in the build tree
15541 # simply because there is no reason against having it here, and in addition,
15542 # creating and moving files from /tmp can sometimes cause problems.
15543 # Hook for its removal unless debugging.
15544 # Note that there is a small window in which the directory will not be cleaned:
15545 # after its creation but before its name has been assigned to `$tmp'.
15546 $debug ||
15548 tmp=
15549 trap 'exit_status=$?
15550 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15552 trap 'as_fn_exit 1' 1 2 13 15
15554 # Create a (secure) tmp directory for tmp files.
15557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15558 test -n "$tmp" && test -d "$tmp"
15559 } ||
15561 tmp=./conf$$-$RANDOM
15562 (umask 077 && mkdir "$tmp")
15563 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15565 # Set up the scripts for CONFIG_FILES section.
15566 # No need to generate them if there are no CONFIG_FILES.
15567 # This happens for instance with `./config.status config.h'.
15568 if test -n "$CONFIG_FILES"; then
15571 ac_cr=`echo X | tr X '\015'`
15572 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15573 # But we know of no other shell where ac_cr would be empty at this
15574 # point, so we can use a bashism as a fallback.
15575 if test "x$ac_cr" = x; then
15576 eval ac_cr=\$\'\\r\'
15578 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15579 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15580 ac_cs_awk_cr='\r'
15581 else
15582 ac_cs_awk_cr=$ac_cr
15585 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15586 _ACEOF
15590 echo "cat >conf$$subs.awk <<_ACEOF" &&
15591 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15592 echo "_ACEOF"
15593 } >conf$$subs.sh ||
15594 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15596 ac_delim='%!_!# '
15597 for ac_last_try in false false false false false :; do
15598 . ./conf$$subs.sh ||
15599 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15601 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15602 if test $ac_delim_n = $ac_delim_num; then
15603 break
15604 elif $ac_last_try; then
15605 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15606 else
15607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15609 done
15610 rm -f conf$$subs.sh
15612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15613 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15614 _ACEOF
15615 sed -n '
15617 s/^/S["/; s/!.*/"]=/
15620 s/^[^!]*!//
15621 :repl
15622 t repl
15623 s/'"$ac_delim"'$//
15624 t delim
15627 s/\(.\{148\}\).*/\1/
15628 t more1
15629 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15632 b repl
15633 :more1
15634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15637 s/.\{148\}//
15638 t nl
15639 :delim
15641 s/\(.\{148\}\).*/\1/
15642 t more2
15643 s/["\\]/\\&/g; s/^/"/; s/$/"/
15646 :more2
15647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15650 s/.\{148\}//
15651 t delim
15652 ' <conf$$subs.awk | sed '
15653 /^[^""]/{
15655 s/\n//
15657 ' >>$CONFIG_STATUS || ac_write_fail=1
15658 rm -f conf$$subs.awk
15659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15660 _ACAWK
15661 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15662 for (key in S) S_is_set[key] = 1
15663 FS = "\a"
15667 line = $ 0
15668 nfields = split(line, field, "@")
15669 substed = 0
15670 len = length(field[1])
15671 for (i = 2; i < nfields; i++) {
15672 key = field[i]
15673 keylen = length(key)
15674 if (S_is_set[key]) {
15675 value = S[key]
15676 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15677 len += length(value) + length(field[++i])
15678 substed = 1
15679 } else
15680 len += 1 + keylen
15683 print line
15686 _ACAWK
15687 _ACEOF
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15690 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15691 else
15693 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15694 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15695 _ACEOF
15697 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15698 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15699 # trailing colons and then remove the whole line if VPATH becomes empty
15700 # (actually we leave an empty line to preserve line numbers).
15701 if test "x$srcdir" = x.; then
15702 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15703 s/:*\$(srcdir):*/:/
15704 s/:*\${srcdir}:*/:/
15705 s/:*@srcdir@:*/:/
15706 s/^\([^=]*=[ ]*\):*/\1/
15707 s/:*$//
15708 s/^[^=]*=[ ]*$//
15712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15713 fi # test -n "$CONFIG_FILES"
15715 # Set up the scripts for CONFIG_HEADERS section.
15716 # No need to generate them if there are no CONFIG_HEADERS.
15717 # This happens for instance with `./config.status Makefile'.
15718 if test -n "$CONFIG_HEADERS"; then
15719 cat >"$tmp/defines.awk" <<\_ACAWK ||
15720 BEGIN {
15721 _ACEOF
15723 # Transform confdefs.h into an awk script `defines.awk', embedded as
15724 # here-document in config.status, that substitutes the proper values into
15725 # config.h.in to produce config.h.
15727 # Create a delimiter string that does not exist in confdefs.h, to ease
15728 # handling of long lines.
15729 ac_delim='%!_!# '
15730 for ac_last_try in false false :; do
15731 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15732 if test -z "$ac_t"; then
15733 break
15734 elif $ac_last_try; then
15735 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15736 else
15737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15739 done
15741 # For the awk script, D is an array of macro values keyed by name,
15742 # likewise P contains macro parameters if any. Preserve backslash
15743 # newline sequences.
15745 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15746 sed -n '
15747 s/.\{148\}/&'"$ac_delim"'/g
15748 t rset
15749 :rset
15750 s/^[ ]*#[ ]*define[ ][ ]*/ /
15751 t def
15753 :def
15754 s/\\$//
15755 t bsnl
15756 s/["\\]/\\&/g
15757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15758 D["\1"]=" \3"/p
15759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15761 :bsnl
15762 s/["\\]/\\&/g
15763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15764 D["\1"]=" \3\\\\\\n"\\/p
15765 t cont
15766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15767 t cont
15769 :cont
15771 s/.\{148\}/&'"$ac_delim"'/g
15772 t clear
15773 :clear
15774 s/\\$//
15775 t bsnlc
15776 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15778 :bsnlc
15779 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15780 b cont
15781 ' <confdefs.h | sed '
15782 s/'"$ac_delim"'/"\\\
15783 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 for (key in D) D_is_set[key] = 1
15787 FS = "\a"
15789 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15790 line = \$ 0
15791 split(line, arg, " ")
15792 if (arg[1] == "#") {
15793 defundef = arg[2]
15794 mac1 = arg[3]
15795 } else {
15796 defundef = substr(arg[1], 2)
15797 mac1 = arg[2]
15799 split(mac1, mac2, "(") #)
15800 macro = mac2[1]
15801 prefix = substr(line, 1, index(line, defundef) - 1)
15802 if (D_is_set[macro]) {
15803 # Preserve the white space surrounding the "#".
15804 print prefix "define", macro P[macro] D[macro]
15805 next
15806 } else {
15807 # Replace #undef with comments. This is necessary, for example,
15808 # in the case of _POSIX_SOURCE, which is predefined and required
15809 # on some systems where configure will not decide to define it.
15810 if (defundef == "undef") {
15811 print "/*", prefix defundef, macro, "*/"
15812 next
15816 { print }
15817 _ACAWK
15818 _ACEOF
15819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15820 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15821 fi # test -n "$CONFIG_HEADERS"
15824 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15825 shift
15826 for ac_tag
15828 case $ac_tag in
15829 :[FHLC]) ac_mode=$ac_tag; continue;;
15830 esac
15831 case $ac_mode$ac_tag in
15832 :[FHL]*:*);;
15833 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15834 :[FH]-) ac_tag=-:-;;
15835 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15836 esac
15837 ac_save_IFS=$IFS
15838 IFS=:
15839 set x $ac_tag
15840 IFS=$ac_save_IFS
15841 shift
15842 ac_file=$1
15843 shift
15845 case $ac_mode in
15846 :L) ac_source=$1;;
15847 :[FH])
15848 ac_file_inputs=
15849 for ac_f
15851 case $ac_f in
15852 -) ac_f="$tmp/stdin";;
15853 *) # Look for the file first in the build tree, then in the source tree
15854 # (if the path is not absolute). The absolute path cannot be DOS-style,
15855 # because $ac_f cannot contain `:'.
15856 test -f "$ac_f" ||
15857 case $ac_f in
15858 [\\/$]*) false;;
15859 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15860 esac ||
15861 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15862 esac
15863 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15864 as_fn_append ac_file_inputs " '$ac_f'"
15865 done
15867 # Let's still pretend it is `configure' which instantiates (i.e., don't
15868 # use $as_me), people would be surprised to read:
15869 # /* config.h. Generated by config.status. */
15870 configure_input='Generated from '`
15871 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15872 `' by configure.'
15873 if test x"$ac_file" != x-; then
15874 configure_input="$ac_file. $configure_input"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15876 $as_echo "$as_me: creating $ac_file" >&6;}
15878 # Neutralize special characters interpreted by sed in replacement strings.
15879 case $configure_input in #(
15880 *\&* | *\|* | *\\* )
15881 ac_sed_conf_input=`$as_echo "$configure_input" |
15882 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15883 *) ac_sed_conf_input=$configure_input;;
15884 esac
15886 case $ac_tag in
15887 *:-:* | *:-) cat >"$tmp/stdin" \
15888 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15889 esac
15891 esac
15893 ac_dir=`$as_dirname -- "$ac_file" ||
15894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15895 X"$ac_file" : 'X\(//\)[^/]' \| \
15896 X"$ac_file" : 'X\(//\)$' \| \
15897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15898 $as_echo X"$ac_file" |
15899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15900 s//\1/
15903 /^X\(\/\/\)[^/].*/{
15904 s//\1/
15907 /^X\(\/\/\)$/{
15908 s//\1/
15911 /^X\(\/\).*/{
15912 s//\1/
15915 s/.*/./; q'`
15916 as_dir="$ac_dir"; as_fn_mkdir_p
15917 ac_builddir=.
15919 case "$ac_dir" in
15920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15922 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15923 # A ".." for each directory in $ac_dir_suffix.
15924 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15925 case $ac_top_builddir_sub in
15926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15928 esac ;;
15929 esac
15930 ac_abs_top_builddir=$ac_pwd
15931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15932 # for backward compatibility:
15933 ac_top_builddir=$ac_top_build_prefix
15935 case $srcdir in
15936 .) # We are building in place.
15937 ac_srcdir=.
15938 ac_top_srcdir=$ac_top_builddir_sub
15939 ac_abs_top_srcdir=$ac_pwd ;;
15940 [\\/]* | ?:[\\/]* ) # Absolute name.
15941 ac_srcdir=$srcdir$ac_dir_suffix;
15942 ac_top_srcdir=$srcdir
15943 ac_abs_top_srcdir=$srcdir ;;
15944 *) # Relative name.
15945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15946 ac_top_srcdir=$ac_top_build_prefix$srcdir
15947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15948 esac
15949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15952 case $ac_mode in
15955 # CONFIG_FILE
15958 case $INSTALL in
15959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15960 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15961 esac
15962 ac_MKDIR_P=$MKDIR_P
15963 case $MKDIR_P in
15964 [\\/$]* | ?:[\\/]* ) ;;
15965 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15966 esac
15967 _ACEOF
15969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970 # If the template does not know about datarootdir, expand it.
15971 # FIXME: This hack should be removed a few years after 2.60.
15972 ac_datarootdir_hack=; ac_datarootdir_seen=
15973 ac_sed_dataroot='
15974 /datarootdir/ {
15978 /@datadir@/p
15979 /@docdir@/p
15980 /@infodir@/p
15981 /@localedir@/p
15982 /@mandir@/p'
15983 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15984 *datarootdir*) ac_datarootdir_seen=yes;;
15985 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15987 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15988 _ACEOF
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 ac_datarootdir_hack='
15991 s&@datadir@&$datadir&g
15992 s&@docdir@&$docdir&g
15993 s&@infodir@&$infodir&g
15994 s&@localedir@&$localedir&g
15995 s&@mandir@&$mandir&g
15996 s&\\\${datarootdir}&$datarootdir&g' ;;
15997 esac
15998 _ACEOF
16000 # Neutralize VPATH when `$srcdir' = `.'.
16001 # Shell code in configure.ac might set extrasub.
16002 # FIXME: do we really want to maintain this feature?
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 ac_sed_extra="$ac_vpsub
16005 $extrasub
16006 _ACEOF
16007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16010 s|@configure_input@|$ac_sed_conf_input|;t t
16011 s&@top_builddir@&$ac_top_builddir_sub&;t t
16012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16013 s&@srcdir@&$ac_srcdir&;t t
16014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16015 s&@top_srcdir@&$ac_top_srcdir&;t t
16016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16017 s&@builddir@&$ac_builddir&;t t
16018 s&@abs_builddir@&$ac_abs_builddir&;t t
16019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16020 s&@INSTALL@&$ac_INSTALL&;t t
16021 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16022 $ac_datarootdir_hack
16024 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16025 || as_fn_error "could not create $ac_file" "$LINENO" 5
16027 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16028 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16031 which seems to be undefined. Please make sure it is defined." >&5
16032 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16033 which seems to be undefined. Please make sure it is defined." >&2;}
16035 rm -f "$tmp/stdin"
16036 case $ac_file in
16037 -) cat "$tmp/out" && rm -f "$tmp/out";;
16038 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16039 esac \
16040 || as_fn_error "could not create $ac_file" "$LINENO" 5
16044 # CONFIG_HEADER
16046 if test x"$ac_file" != x-; then
16048 $as_echo "/* $configure_input */" \
16049 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16050 } >"$tmp/config.h" \
16051 || as_fn_error "could not create $ac_file" "$LINENO" 5
16052 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16054 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16055 else
16056 rm -f "$ac_file"
16057 mv "$tmp/config.h" "$ac_file" \
16058 || as_fn_error "could not create $ac_file" "$LINENO" 5
16060 else
16061 $as_echo "/* $configure_input */" \
16062 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16063 || as_fn_error "could not create -" "$LINENO" 5
16065 # Compute "$ac_file"'s index in $config_headers.
16066 _am_arg="$ac_file"
16067 _am_stamp_count=1
16068 for _am_header in $config_headers :; do
16069 case $_am_header in
16070 $_am_arg | $_am_arg:* )
16071 break ;;
16073 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16074 esac
16075 done
16076 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16077 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16078 X"$_am_arg" : 'X\(//\)[^/]' \| \
16079 X"$_am_arg" : 'X\(//\)$' \| \
16080 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16081 $as_echo X"$_am_arg" |
16082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16083 s//\1/
16086 /^X\(\/\/\)[^/].*/{
16087 s//\1/
16090 /^X\(\/\/\)$/{
16091 s//\1/
16094 /^X\(\/\).*/{
16095 s//\1/
16098 s/.*/./; q'`/stamp-h$_am_stamp_count
16101 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16102 $as_echo "$as_me: executing $ac_file commands" >&6;}
16104 esac
16107 case $ac_file$ac_mode in
16108 "default-1":C)
16109 # Only add multilib support code if we just rebuilt the top-level
16110 # Makefile.
16111 case " $CONFIG_FILES " in
16112 *" Makefile "*)
16113 ac_file=Makefile . ${multi_basedir}/config-ml.in
16115 esac ;;
16116 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16117 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16118 # are listed without --file. Let's play safe and only enable the eval
16119 # if we detect the quoting.
16120 case $CONFIG_FILES in
16121 *\'*) eval set x "$CONFIG_FILES" ;;
16122 *) set x $CONFIG_FILES ;;
16123 esac
16124 shift
16125 for mf
16127 # Strip MF so we end up with the name of the file.
16128 mf=`echo "$mf" | sed -e 's/:.*$//'`
16129 # Check whether this is an Automake generated Makefile or not.
16130 # We used to match only the files named `Makefile.in', but
16131 # some people rename them; so instead we look at the file content.
16132 # Grep'ing the first line is not enough: some people post-process
16133 # each Makefile.in and add a new line on top of each file to say so.
16134 # Grep'ing the whole file is not good either: AIX grep has a line
16135 # limit of 2048, but all sed's we know have understand at least 4000.
16136 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16137 dirpart=`$as_dirname -- "$mf" ||
16138 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139 X"$mf" : 'X\(//\)[^/]' \| \
16140 X"$mf" : 'X\(//\)$' \| \
16141 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16142 $as_echo X"$mf" |
16143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16144 s//\1/
16147 /^X\(\/\/\)[^/].*/{
16148 s//\1/
16151 /^X\(\/\/\)$/{
16152 s//\1/
16155 /^X\(\/\).*/{
16156 s//\1/
16159 s/.*/./; q'`
16160 else
16161 continue
16163 # Extract the definition of DEPDIR, am__include, and am__quote
16164 # from the Makefile without running `make'.
16165 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16166 test -z "$DEPDIR" && continue
16167 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16168 test -z "am__include" && continue
16169 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16170 # When using ansi2knr, U may be empty or an underscore; expand it
16171 U=`sed -n 's/^U = //p' < "$mf"`
16172 # Find all dependency output files, they are included files with
16173 # $(DEPDIR) in their names. We invoke sed twice because it is the
16174 # simplest approach to changing $(DEPDIR) to its actual value in the
16175 # expansion.
16176 for file in `sed -n "
16177 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16178 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16179 # Make sure the directory exists.
16180 test -f "$dirpart/$file" && continue
16181 fdir=`$as_dirname -- "$file" ||
16182 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16183 X"$file" : 'X\(//\)[^/]' \| \
16184 X"$file" : 'X\(//\)$' \| \
16185 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16186 $as_echo X"$file" |
16187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16188 s//\1/
16191 /^X\(\/\/\)[^/].*/{
16192 s//\1/
16195 /^X\(\/\/\)$/{
16196 s//\1/
16199 /^X\(\/\).*/{
16200 s//\1/
16203 s/.*/./; q'`
16204 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16205 # echo "creating $dirpart/$file"
16206 echo '# dummy' > "$dirpart/$file"
16207 done
16208 done
16211 "libtool":C)
16213 # See if we are running on zsh, and set the options which allow our
16214 # commands through without removal of \ escapes.
16215 if test -n "${ZSH_VERSION+set}" ; then
16216 setopt NO_GLOB_SUBST
16219 cfgfile="${ofile}T"
16220 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16221 $RM "$cfgfile"
16223 cat <<_LT_EOF >> "$cfgfile"
16224 #! $SHELL
16226 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16227 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16229 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16231 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16232 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16233 # Written by Gordon Matzigkeit, 1996
16235 # This file is part of GNU Libtool.
16237 # GNU Libtool is free software; you can redistribute it and/or
16238 # modify it under the terms of the GNU General Public License as
16239 # published by the Free Software Foundation; either version 2 of
16240 # the License, or (at your option) any later version.
16242 # As a special exception to the GNU General Public License,
16243 # if you distribute this file as part of a program or library that
16244 # is built using GNU Libtool, you may include this file under the
16245 # same distribution terms that you use for the rest of that program.
16247 # GNU Libtool is distributed in the hope that it will be useful,
16248 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16250 # GNU General Public License for more details.
16252 # You should have received a copy of the GNU General Public License
16253 # along with GNU Libtool; see the file COPYING. If not, a copy
16254 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16255 # obtained by writing to the Free Software Foundation, Inc.,
16256 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16259 # The names of the tagged configurations supported by this script.
16260 available_tags="GO "
16262 # ### BEGIN LIBTOOL CONFIG
16264 # A sed program that does not truncate output.
16265 SED=$lt_SED
16267 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16268 Xsed="\$SED -e 1s/^X//"
16270 # A grep program that handles long lines.
16271 GREP=$lt_GREP
16273 # An ERE matcher.
16274 EGREP=$lt_EGREP
16276 # A literal string matcher.
16277 FGREP=$lt_FGREP
16279 # Shell to use when invoking shell scripts.
16280 SHELL=$lt_SHELL
16282 # An echo program that protects backslashes.
16283 ECHO=$lt_ECHO
16285 # Which release of libtool.m4 was used?
16286 macro_version=$macro_version
16287 macro_revision=$macro_revision
16289 # Whether or not to build shared libraries.
16290 build_libtool_libs=$enable_shared
16292 # Whether or not to build static libraries.
16293 build_old_libs=$enable_static
16295 # What type of objects to build.
16296 pic_mode=$pic_mode
16298 # Whether or not to optimize for fast installation.
16299 fast_install=$enable_fast_install
16301 # The host system.
16302 host_alias=$host_alias
16303 host=$host
16304 host_os=$host_os
16306 # The build system.
16307 build_alias=$build_alias
16308 build=$build
16309 build_os=$build_os
16311 # A BSD- or MS-compatible name lister.
16312 NM=$lt_NM
16314 # Whether we need soft or hard links.
16315 LN_S=$lt_LN_S
16317 # What is the maximum length of a command?
16318 max_cmd_len=$max_cmd_len
16320 # Object file suffix (normally "o").
16321 objext=$ac_objext
16323 # Executable file suffix (normally "").
16324 exeext=$exeext
16326 # whether the shell understands "unset".
16327 lt_unset=$lt_unset
16329 # turn spaces into newlines.
16330 SP2NL=$lt_lt_SP2NL
16332 # turn newlines into spaces.
16333 NL2SP=$lt_lt_NL2SP
16335 # An object symbol dumper.
16336 OBJDUMP=$lt_OBJDUMP
16338 # Method to check whether dependent libraries are shared objects.
16339 deplibs_check_method=$lt_deplibs_check_method
16341 # Command to use when deplibs_check_method == "file_magic".
16342 file_magic_cmd=$lt_file_magic_cmd
16344 # The archiver.
16345 AR=$lt_AR
16346 AR_FLAGS=$lt_AR_FLAGS
16348 # A symbol stripping program.
16349 STRIP=$lt_STRIP
16351 # Commands used to install an old-style archive.
16352 RANLIB=$lt_RANLIB
16353 old_postinstall_cmds=$lt_old_postinstall_cmds
16354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16356 # Whether to use a lock for old archive extraction.
16357 lock_old_archive_extraction=$lock_old_archive_extraction
16359 # A C compiler.
16360 LTCC=$lt_CC
16362 # LTCC compiler flags.
16363 LTCFLAGS=$lt_CFLAGS
16365 # Take the output of nm and produce a listing of raw symbols and C names.
16366 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16368 # Transform the output of nm in a proper C declaration.
16369 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16371 # Transform the output of nm in a C name address pair.
16372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16374 # Transform the output of nm in a C name address pair when lib prefix is needed.
16375 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16377 # The name of the directory that contains temporary libtool files.
16378 objdir=$objdir
16380 # Used to examine libraries when file_magic_cmd begins with "file".
16381 MAGIC_CMD=$MAGIC_CMD
16383 # Must we lock files when doing compilation?
16384 need_locks=$lt_need_locks
16386 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16387 DSYMUTIL=$lt_DSYMUTIL
16389 # Tool to change global to local symbols on Mac OS X.
16390 NMEDIT=$lt_NMEDIT
16392 # Tool to manipulate fat objects and archives on Mac OS X.
16393 LIPO=$lt_LIPO
16395 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16396 OTOOL=$lt_OTOOL
16398 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16399 OTOOL64=$lt_OTOOL64
16401 # Old archive suffix (normally "a").
16402 libext=$libext
16404 # Shared library suffix (normally ".so").
16405 shrext_cmds=$lt_shrext_cmds
16407 # The commands to extract the exported symbol list from a shared archive.
16408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16410 # Variables whose values should be saved in libtool wrapper scripts and
16411 # restored at link time.
16412 variables_saved_for_relink=$lt_variables_saved_for_relink
16414 # Do we need the "lib" prefix for modules?
16415 need_lib_prefix=$need_lib_prefix
16417 # Do we need a version for libraries?
16418 need_version=$need_version
16420 # Library versioning type.
16421 version_type=$version_type
16423 # Shared library runtime path variable.
16424 runpath_var=$runpath_var
16426 # Shared library path variable.
16427 shlibpath_var=$shlibpath_var
16429 # Is shlibpath searched before the hard-coded library search path?
16430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16432 # Format of library name prefix.
16433 libname_spec=$lt_libname_spec
16435 # List of archive names. First name is the real one, the rest are links.
16436 # The last name is the one that the linker finds with -lNAME
16437 library_names_spec=$lt_library_names_spec
16439 # The coded name of the library, if different from the real name.
16440 soname_spec=$lt_soname_spec
16442 # Permission mode override for installation of shared libraries.
16443 install_override_mode=$lt_install_override_mode
16445 # Command to use after installation of a shared archive.
16446 postinstall_cmds=$lt_postinstall_cmds
16448 # Command to use after uninstallation of a shared archive.
16449 postuninstall_cmds=$lt_postuninstall_cmds
16451 # Commands used to finish a libtool library installation in a directory.
16452 finish_cmds=$lt_finish_cmds
16454 # As "finish_cmds", except a single script fragment to be evaled but
16455 # not shown.
16456 finish_eval=$lt_finish_eval
16458 # Whether we should hardcode library paths into libraries.
16459 hardcode_into_libs=$hardcode_into_libs
16461 # Compile-time system search path for libraries.
16462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16464 # Run-time system search path for libraries.
16465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16467 # Whether dlopen is supported.
16468 dlopen_support=$enable_dlopen
16470 # Whether dlopen of programs is supported.
16471 dlopen_self=$enable_dlopen_self
16473 # Whether dlopen of statically linked programs is supported.
16474 dlopen_self_static=$enable_dlopen_self_static
16476 # Commands to strip libraries.
16477 old_striplib=$lt_old_striplib
16478 striplib=$lt_striplib
16481 # The linker used to build libraries.
16482 LD=$lt_LD
16484 # How to create reloadable object files.
16485 reload_flag=$lt_reload_flag
16486 reload_cmds=$lt_reload_cmds
16488 # Commands used to build an old-style archive.
16489 old_archive_cmds=$lt_old_archive_cmds
16491 # A language specific compiler.
16492 CC=$lt_compiler
16494 # Is the compiler the GNU compiler?
16495 with_gcc=$GCC
16497 # Compiler flag to turn off builtin functions.
16498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16500 # How to pass a linker flag through the compiler.
16501 wl=$lt_lt_prog_compiler_wl
16503 # Additional compiler flags for building library objects.
16504 pic_flag=$lt_lt_prog_compiler_pic
16506 # Compiler flag to prevent dynamic linking.
16507 link_static_flag=$lt_lt_prog_compiler_static
16509 # Does compiler simultaneously support -c and -o options?
16510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16512 # Whether or not to add -lc for building shared libraries.
16513 build_libtool_need_lc=$archive_cmds_need_lc
16515 # Whether or not to disallow shared libs when runtime libs are static.
16516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16518 # Compiler flag to allow reflexive dlopens.
16519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16521 # Compiler flag to generate shared objects directly from archives.
16522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16524 # Whether the compiler copes with passing no objects directly.
16525 compiler_needs_object=$lt_compiler_needs_object
16527 # Create an old-style archive from a shared archive.
16528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16530 # Create a temporary old-style archive to link instead of a shared archive.
16531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16533 # Commands used to build a shared archive.
16534 archive_cmds=$lt_archive_cmds
16535 archive_expsym_cmds=$lt_archive_expsym_cmds
16537 # Commands used to build a loadable module if different from building
16538 # a shared archive.
16539 module_cmds=$lt_module_cmds
16540 module_expsym_cmds=$lt_module_expsym_cmds
16542 # Whether we are building with GNU ld or not.
16543 with_gnu_ld=$lt_with_gnu_ld
16545 # Flag that allows shared libraries with undefined symbols to be built.
16546 allow_undefined_flag=$lt_allow_undefined_flag
16548 # Flag that enforces no undefined symbols.
16549 no_undefined_flag=$lt_no_undefined_flag
16551 # Flag to hardcode \$libdir into a binary during linking.
16552 # This must work even if \$libdir does not exist
16553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16555 # If ld is used when linking, flag to hardcode \$libdir into a binary
16556 # during linking. This must work even if \$libdir does not exist.
16557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16559 # Whether we need a single "-rpath" flag with a separated argument.
16560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16563 # DIR into the resulting binary.
16564 hardcode_direct=$hardcode_direct
16566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16567 # DIR into the resulting binary and the resulting library dependency is
16568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16569 # library is relocated.
16570 hardcode_direct_absolute=$hardcode_direct_absolute
16572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16573 # into the resulting binary.
16574 hardcode_minus_L=$hardcode_minus_L
16576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16577 # into the resulting binary.
16578 hardcode_shlibpath_var=$hardcode_shlibpath_var
16580 # Set to "yes" if building a shared library automatically hardcodes DIR
16581 # into the library and all subsequent libraries and executables linked
16582 # against it.
16583 hardcode_automatic=$hardcode_automatic
16585 # Set to yes if linker adds runtime paths of dependent libraries
16586 # to runtime path list.
16587 inherit_rpath=$inherit_rpath
16589 # Whether libtool must link a program against all its dependency libraries.
16590 link_all_deplibs=$link_all_deplibs
16592 # Fix the shell variable \$srcfile for the compiler.
16593 fix_srcfile_path=$lt_fix_srcfile_path
16595 # Set to "yes" if exported symbols are required.
16596 always_export_symbols=$always_export_symbols
16598 # The commands to list exported symbols.
16599 export_symbols_cmds=$lt_export_symbols_cmds
16601 # Symbols that should not be listed in the preloaded symbols.
16602 exclude_expsyms=$lt_exclude_expsyms
16604 # Symbols that must always be exported.
16605 include_expsyms=$lt_include_expsyms
16607 # Commands necessary for linking programs (against libraries) with templates.
16608 prelink_cmds=$lt_prelink_cmds
16610 # Specify filename containing input files.
16611 file_list_spec=$lt_file_list_spec
16613 # How to hardcode a shared library path into an executable.
16614 hardcode_action=$hardcode_action
16616 # ### END LIBTOOL CONFIG
16618 _LT_EOF
16620 case $host_os in
16621 aix3*)
16622 cat <<\_LT_EOF >> "$cfgfile"
16623 # AIX sometimes has problems with the GCC collect2 program. For some
16624 # reason, if we set the COLLECT_NAMES environment variable, the problems
16625 # vanish in a puff of smoke.
16626 if test "X${COLLECT_NAMES+set}" != Xset; then
16627 COLLECT_NAMES=
16628 export COLLECT_NAMES
16630 _LT_EOF
16632 esac
16635 ltmain="$ac_aux_dir/ltmain.sh"
16638 # We use sed instead of cat because bash on DJGPP gets confused if
16639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16640 # text mode, it properly converts lines to CR/LF. This bash problem
16641 # is reportedly fixed, but why not run on old versions too?
16642 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16643 || (rm -f "$cfgfile"; exit 1)
16645 case $xsi_shell in
16646 yes)
16647 cat << \_LT_EOF >> "$cfgfile"
16649 # func_dirname file append nondir_replacement
16650 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16651 # otherwise set result to NONDIR_REPLACEMENT.
16652 func_dirname ()
16654 case ${1} in
16655 */*) func_dirname_result="${1%/*}${2}" ;;
16656 * ) func_dirname_result="${3}" ;;
16657 esac
16660 # func_basename file
16661 func_basename ()
16663 func_basename_result="${1##*/}"
16666 # func_dirname_and_basename file append nondir_replacement
16667 # perform func_basename and func_dirname in a single function
16668 # call:
16669 # dirname: Compute the dirname of FILE. If nonempty,
16670 # add APPEND to the result, otherwise set result
16671 # to NONDIR_REPLACEMENT.
16672 # value returned in "$func_dirname_result"
16673 # basename: Compute filename of FILE.
16674 # value retuned in "$func_basename_result"
16675 # Implementation must be kept synchronized with func_dirname
16676 # and func_basename. For efficiency, we do not delegate to
16677 # those functions but instead duplicate the functionality here.
16678 func_dirname_and_basename ()
16680 case ${1} in
16681 */*) func_dirname_result="${1%/*}${2}" ;;
16682 * ) func_dirname_result="${3}" ;;
16683 esac
16684 func_basename_result="${1##*/}"
16687 # func_stripname prefix suffix name
16688 # strip PREFIX and SUFFIX off of NAME.
16689 # PREFIX and SUFFIX must not contain globbing or regex special
16690 # characters, hashes, percent signs, but SUFFIX may contain a leading
16691 # dot (in which case that matches only a dot).
16692 func_stripname ()
16694 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16695 # positional parameters, so assign one to ordinary parameter first.
16696 func_stripname_result=${3}
16697 func_stripname_result=${func_stripname_result#"${1}"}
16698 func_stripname_result=${func_stripname_result%"${2}"}
16701 # func_opt_split
16702 func_opt_split ()
16704 func_opt_split_opt=${1%%=*}
16705 func_opt_split_arg=${1#*=}
16708 # func_lo2o object
16709 func_lo2o ()
16711 case ${1} in
16712 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16713 *) func_lo2o_result=${1} ;;
16714 esac
16717 # func_xform libobj-or-source
16718 func_xform ()
16720 func_xform_result=${1%.*}.lo
16723 # func_arith arithmetic-term...
16724 func_arith ()
16726 func_arith_result=$(( $* ))
16729 # func_len string
16730 # STRING may not start with a hyphen.
16731 func_len ()
16733 func_len_result=${#1}
16736 _LT_EOF
16738 *) # Bourne compatible functions.
16739 cat << \_LT_EOF >> "$cfgfile"
16741 # func_dirname file append nondir_replacement
16742 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16743 # otherwise set result to NONDIR_REPLACEMENT.
16744 func_dirname ()
16746 # Extract subdirectory from the argument.
16747 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16748 if test "X$func_dirname_result" = "X${1}"; then
16749 func_dirname_result="${3}"
16750 else
16751 func_dirname_result="$func_dirname_result${2}"
16755 # func_basename file
16756 func_basename ()
16758 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16762 # func_stripname prefix suffix name
16763 # strip PREFIX and SUFFIX off of NAME.
16764 # PREFIX and SUFFIX must not contain globbing or regex special
16765 # characters, hashes, percent signs, but SUFFIX may contain a leading
16766 # dot (in which case that matches only a dot).
16767 # func_strip_suffix prefix name
16768 func_stripname ()
16770 case ${2} in
16771 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16772 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16773 esac
16776 # sed scripts:
16777 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16778 my_sed_long_arg='1s/^-[^=]*=//'
16780 # func_opt_split
16781 func_opt_split ()
16783 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16784 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16787 # func_lo2o object
16788 func_lo2o ()
16790 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16793 # func_xform libobj-or-source
16794 func_xform ()
16796 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16799 # func_arith arithmetic-term...
16800 func_arith ()
16802 func_arith_result=`expr "$@"`
16805 # func_len string
16806 # STRING may not start with a hyphen.
16807 func_len ()
16809 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16812 _LT_EOF
16813 esac
16815 case $lt_shell_append in
16816 yes)
16817 cat << \_LT_EOF >> "$cfgfile"
16819 # func_append var value
16820 # Append VALUE to the end of shell variable VAR.
16821 func_append ()
16823 eval "$1+=\$2"
16825 _LT_EOF
16828 cat << \_LT_EOF >> "$cfgfile"
16830 # func_append var value
16831 # Append VALUE to the end of shell variable VAR.
16832 func_append ()
16834 eval "$1=\$$1\$2"
16837 _LT_EOF
16839 esac
16842 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16843 || (rm -f "$cfgfile"; exit 1)
16845 mv -f "$cfgfile" "$ofile" ||
16846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16847 chmod +x "$ofile"
16850 cat <<_LT_EOF >> "$ofile"
16852 # ### BEGIN LIBTOOL TAG CONFIG: GO
16854 # The linker used to build libraries.
16855 LD=$lt_LD_GO
16857 # How to create reloadable object files.
16858 reload_flag=$lt_reload_flag_GO
16859 reload_cmds=$lt_reload_cmds_GO
16861 # Commands used to build an old-style archive.
16862 old_archive_cmds=$lt_old_archive_cmds_GO
16864 # A language specific compiler.
16865 CC=$lt_compiler_GO
16867 # Is the compiler the GNU compiler?
16868 with_gcc=$GCC_GO
16870 # Compiler flag to turn off builtin functions.
16871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16873 # How to pass a linker flag through the compiler.
16874 wl=$lt_lt_prog_compiler_wl_GO
16876 # Additional compiler flags for building library objects.
16877 pic_flag=$lt_lt_prog_compiler_pic_GO
16879 # Compiler flag to prevent dynamic linking.
16880 link_static_flag=$lt_lt_prog_compiler_static_GO
16882 # Does compiler simultaneously support -c and -o options?
16883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16885 # Whether or not to add -lc for building shared libraries.
16886 build_libtool_need_lc=$archive_cmds_need_lc_GO
16888 # Whether or not to disallow shared libs when runtime libs are static.
16889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16891 # Compiler flag to allow reflexive dlopens.
16892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16894 # Compiler flag to generate shared objects directly from archives.
16895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16897 # Whether the compiler copes with passing no objects directly.
16898 compiler_needs_object=$lt_compiler_needs_object_GO
16900 # Create an old-style archive from a shared archive.
16901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16903 # Create a temporary old-style archive to link instead of a shared archive.
16904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16906 # Commands used to build a shared archive.
16907 archive_cmds=$lt_archive_cmds_GO
16908 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16910 # Commands used to build a loadable module if different from building
16911 # a shared archive.
16912 module_cmds=$lt_module_cmds_GO
16913 module_expsym_cmds=$lt_module_expsym_cmds_GO
16915 # Whether we are building with GNU ld or not.
16916 with_gnu_ld=$lt_with_gnu_ld_GO
16918 # Flag that allows shared libraries with undefined symbols to be built.
16919 allow_undefined_flag=$lt_allow_undefined_flag_GO
16921 # Flag that enforces no undefined symbols.
16922 no_undefined_flag=$lt_no_undefined_flag_GO
16924 # Flag to hardcode \$libdir into a binary during linking.
16925 # This must work even if \$libdir does not exist
16926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16928 # If ld is used when linking, flag to hardcode \$libdir into a binary
16929 # during linking. This must work even if \$libdir does not exist.
16930 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16932 # Whether we need a single "-rpath" flag with a separated argument.
16933 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16936 # DIR into the resulting binary.
16937 hardcode_direct=$hardcode_direct_GO
16939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16940 # DIR into the resulting binary and the resulting library dependency is
16941 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16942 # library is relocated.
16943 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16945 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16946 # into the resulting binary.
16947 hardcode_minus_L=$hardcode_minus_L_GO
16949 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16950 # into the resulting binary.
16951 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16953 # Set to "yes" if building a shared library automatically hardcodes DIR
16954 # into the library and all subsequent libraries and executables linked
16955 # against it.
16956 hardcode_automatic=$hardcode_automatic_GO
16958 # Set to yes if linker adds runtime paths of dependent libraries
16959 # to runtime path list.
16960 inherit_rpath=$inherit_rpath_GO
16962 # Whether libtool must link a program against all its dependency libraries.
16963 link_all_deplibs=$link_all_deplibs_GO
16965 # Fix the shell variable \$srcfile for the compiler.
16966 fix_srcfile_path=$lt_fix_srcfile_path_GO
16968 # Set to "yes" if exported symbols are required.
16969 always_export_symbols=$always_export_symbols_GO
16971 # The commands to list exported symbols.
16972 export_symbols_cmds=$lt_export_symbols_cmds_GO
16974 # Symbols that should not be listed in the preloaded symbols.
16975 exclude_expsyms=$lt_exclude_expsyms_GO
16977 # Symbols that must always be exported.
16978 include_expsyms=$lt_include_expsyms_GO
16980 # Commands necessary for linking programs (against libraries) with templates.
16981 prelink_cmds=$lt_prelink_cmds_GO
16983 # Specify filename containing input files.
16984 file_list_spec=$lt_file_list_spec_GO
16986 # How to hardcode a shared library path into an executable.
16987 hardcode_action=$hardcode_action_GO
16989 # ### END LIBTOOL TAG CONFIG: GO
16990 _LT_EOF
16993 "default":C) if test -n "$CONFIG_FILES"; then
16994 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16995 # that multilib installs will end up installed in the correct place.
16996 # The testsuite needs it for multilib-aware ABI baseline files.
16997 # To work around this not being passed down from config-ml.in ->
16998 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16999 # append it here. Only modify Makefiles that have just been created.
17001 # Also, get rid of this simulated-VPATH thing that automake does.
17002 cat > vpsed << \_EOF
17003 s!`test -f '$<' || echo '$(srcdir)/'`!!
17004 _EOF
17005 for i in $SUBDIRS; do
17006 case $CONFIG_FILES in
17007 *${i}/Makefile*)
17008 #echo "Adding MULTISUBDIR to $i/Makefile"
17009 sed -f vpsed $i/Makefile > tmp
17010 grep '^MULTISUBDIR =' Makefile >> tmp
17011 mv tmp $i/Makefile
17013 esac
17014 done
17015 rm vpsed
17019 esac
17020 done # for ac_tag
17023 as_fn_exit 0
17024 _ACEOF
17025 ac_clean_files=$ac_clean_files_save
17027 test $ac_write_fail = 0 ||
17028 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17031 # configure is writing to config.log, and then calls config.status.
17032 # config.status does its own redirection, appending to config.log.
17033 # Unfortunately, on DOS this fails, as config.log is still kept open
17034 # by configure, so config.status won't be able to write to it; its
17035 # output is simply discarded. So we exec the FD to /dev/null,
17036 # effectively closing config.log, so it can be properly (re)opened and
17037 # appended to by config.status. When coming back to configure, we
17038 # need to make the FD available again.
17039 if test "$no_create" != yes; then
17040 ac_cs_success=:
17041 ac_config_status_args=
17042 test "$silent" = yes &&
17043 ac_config_status_args="$ac_config_status_args --quiet"
17044 exec 5>/dev/null
17045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17046 exec 5>>config.log
17047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17048 # would make configure fail if this is the last instruction.
17049 $ac_cs_success || as_fn_exit $?
17051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17053 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}