[RS6000] biarch test fail
[official-gcc.git] / libgo / configure
blob81331dd10ebb30a8222668fe826c7ba98aa73776
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libgo'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 HAVE_STATIC_LINK_FALSE
637 HAVE_STATIC_LINK_TRUE
638 HAVE_STAT_TIMESPEC_FALSE
639 HAVE_STAT_TIMESPEC_TRUE
640 STRUCT_EPOLL_EVENT_FD_OFFSET
641 SIZEOF_STRUCT_EPOLL_EVENT
642 MATH_FLAG
643 STRINGOPS_FLAG
644 HAVE_WAIT4_FALSE
645 HAVE_WAIT4_TRUE
646 HAVE_STRERROR_R_FALSE
647 HAVE_STRERROR_R_TRUE
648 HAVE_SYS_MMAN_H_FALSE
649 HAVE_SYS_MMAN_H_TRUE
650 PTHREAD_LIBS
651 PTHREAD_CFLAGS
652 NET_LIBS
653 MATH_LIBS
654 GOC_IS_LLGO_FALSE
655 GOC_IS_LLGO_TRUE
656 GO_SPLIT_STACK
657 USING_SPLIT_STACK_FALSE
658 USING_SPLIT_STACK_TRUE
659 SPLIT_STACK
660 HWCAP_CFLAGS
661 OSCFLAGS
662 GO_SYSCALL_OS_ARCH_FILE
663 GO_SYSCALL_OS_FILE
664 GO_LIBCALL_OS_ARCH_FILE
665 GO_LIBCALL_OS_FILE
666 FUNCTION_DESCRIPTORS
667 LIBGO_IS_X86_FALSE
668 LIBGO_IS_X86_TRUE
669 ALLGOARCHFAMILY
670 ALLGOARCH
671 GOARCH
672 USE_DEJAGNU
673 ALLGOOS
674 GOOS
675 LIBGO_IS_BSD_FALSE
676 LIBGO_IS_BSD_TRUE
677 LIBGO_IS_HURD_FALSE
678 LIBGO_IS_HURD_TRUE
679 LIBGO_IS_AIX_FALSE
680 LIBGO_IS_AIX_TRUE
681 LIBGO_IS_SOLARIS_FALSE
682 LIBGO_IS_SOLARIS_TRUE
683 LIBGO_IS_RTEMS_FALSE
684 LIBGO_IS_RTEMS_TRUE
685 LIBGO_IS_DRAGONFLY_FALSE
686 LIBGO_IS_DRAGONFLY_TRUE
687 LIBGO_IS_OPENBSD_FALSE
688 LIBGO_IS_OPENBSD_TRUE
689 LIBGO_IS_NETBSD_FALSE
690 LIBGO_IS_NETBSD_TRUE
691 LIBGO_IS_LINUX_FALSE
692 LIBGO_IS_LINUX_TRUE
693 LIBGO_IS_IRIX_FALSE
694 LIBGO_IS_IRIX_TRUE
695 LIBGO_IS_FREEBSD_FALSE
696 LIBGO_IS_FREEBSD_TRUE
697 LIBGO_IS_DARWIN_FALSE
698 LIBGO_IS_DARWIN_TRUE
699 go_include
700 LIBATOMIC
701 USE_LIBFFI_FALSE
702 USE_LIBFFI_TRUE
703 LIBFFIINCS
704 LIBFFI
705 nover_glibgo_toolexeclibdir
706 glibgo_toolexeclibdir
707 glibgo_toolexecdir
708 WERROR
709 WARN_FLAGS
710 CC_FOR_BUILD
711 enable_static
712 enable_shared
714 OTOOL64
715 OTOOL
716 LIPO
717 NMEDIT
718 DSYMUTIL
720 OBJDUMP
721 LN_S
723 ac_ct_DUMPBIN
724 DUMPBIN
725 LIBTOOL
726 OBJCOPY
727 RANLIB
729 FGREP
730 EGREP
731 GREP
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 AIX_EXTRA_ARCH
737 am__fastdepCCAS_FALSE
738 am__fastdepCCAS_TRUE
739 CCASDEPMODE
740 CCASFLAGS
741 CCAS
742 GOFLAGS
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__quote
752 am__include
753 DEPDIR
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_os
789 target_vendor
790 target_cpu
791 target
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 multi_basedir
801 libtool_VERSION
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_multilib
844 enable_silent_rules
845 enable_dependency_tracking
846 enable_maintainer_mode
847 with_gnu_ld
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 enable_libtool_lock
853 enable_werror
854 enable_version_specific_runtime_libs
855 with_toolexeclibdir
856 with_libffi
857 with_libatomic
858 with_system_libunwind
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
864 CPPFLAGS'
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
915 ac_prev=
916 ac_dashdash=
917 for ac_option
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
936 ac_dashdash=yes ;;
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
955 --config-cache | -C)
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 esac
1273 done
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1357 /^X\(\/\/\)$/{
1358 s//\1/
1361 /^X\(\/\).*/{
1362 s//\1/
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1370 else
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1460 cat <<\_ACEOF
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1471 _ACEOF
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of package-unused version-unused:";;
1477 esac
1478 cat <<\_ACEOF
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-multilib build many library versions (default)
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-werror turns on -Werror [default=yes]
1500 --enable-version-specific-runtime-libs
1501 Specify that runtime libraries should be installed
1502 in a compiler-specific directory
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-toolexeclibdir=DIR
1511 install libraries built with a cross compiler within
1513 --without-libffi don't use libffi
1514 --without-libatomic don't use libatomic
1515 --with-system-libunwind use installed libunwind
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 GOC Go compiler command
1526 GOFLAGS Go compiler flags
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 CPP C preprocessor
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to the package provider.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 package-unused configure version-unused
1598 generated by GNU Autoconf 2.69
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_link
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714 else
1715 eval "$3=no"
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_compile
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_cpp
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1767 ac_fn_c_try_run ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=$ac_status
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_run
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1833 #undef $2
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1850 main ()
1852 return $2 ();
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_func
1872 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1876 # accordingly.
1877 ac_fn_c_check_header_mongrel ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if eval \${$3+:} false; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 else
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900 else
1901 ac_header_compiler=no
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916 else
1917 ac_header_preproc=no
1919 rm -f conftest.err conftest.i conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 eval "$3=\$ac_header_compiler"
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_header_mongrel
1959 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960 # -------------------------------------------
1961 # Tests whether TYPE exists after having included INCLUDES, setting cache
1962 # variable VAR accordingly.
1963 ac_fn_c_check_type ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=no"
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 if (sizeof ($2))
1979 return 0;
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 if (sizeof (($2)))
1992 return 0;
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1999 else
2000 eval "$3=yes"
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_type
2013 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014 # --------------------------------------------
2015 # Tries to find the compile-time value of EXPR in a program that includes
2016 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 # computed
2018 ac_fn_c_compute_int ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) >= 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=0 ac_mid=0
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main ()
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=$ac_mid; break
2056 else
2057 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2058 if test $ac_lo -le $ac_mid; then
2059 ac_lo= ac_hi=
2060 break
2062 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 static int test_array [1 - 2 * !(($2) < 0)];
2074 test_array [0] = 0;
2075 return test_array [0];
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 test_array [0] = 0;
2092 return test_array [0];
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100 else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 ac_lo= ac_hi=
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 # Binary search between lo and hi bounds.
2117 while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0;
2127 return test_array [0];
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid
2135 else
2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 case $ac_lo in #((
2141 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2142 '') ac_retval=1 ;;
2143 esac
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2148 static long int longval () { return $2; }
2149 static unsigned long int ulongval () { return $2; }
2150 #include <stdio.h>
2151 #include <stdlib.h>
2153 main ()
2156 FILE *f = fopen ("conftest.val", "w");
2157 if (! f)
2158 return 1;
2159 if (($2) < 0)
2161 long int i = longval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%ld", i);
2166 else
2168 unsigned long int i = ulongval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%lu", i);
2173 /* Do not output a trailing newline, as this causes \r\n confusion
2174 on some platforms. */
2175 return ferror (f) || fclose (f) != 0;
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_run "$LINENO"; then :
2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2183 else
2184 ac_retval=1
2186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 conftest.$ac_objext conftest.beam conftest.$ac_ext
2188 rm -f conftest.val
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2194 } # ac_fn_c_compute_int
2195 cat >config.log <<_ACEOF
2196 This file contains any messages produced by compilers while
2197 running configure, to aid debugging if configure makes a mistake.
2199 It was created by package-unused $as_me version-unused, which was
2200 generated by GNU Autoconf 2.69. Invocation command line was
2202 $ $0 $@
2204 _ACEOF
2205 exec 5>>config.log
2207 cat <<_ASUNAME
2208 ## --------- ##
2209 ## Platform. ##
2210 ## --------- ##
2212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2224 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2229 _ASUNAME
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 $as_echo "PATH: $as_dir"
2237 done
2238 IFS=$as_save_IFS
2240 } >&5
2242 cat >&5 <<_ACEOF
2245 ## ----------- ##
2246 ## Core tests. ##
2247 ## ----------- ##
2249 _ACEOF
2252 # Keep a trace of the command line.
2253 # Strip out --no-create and --no-recursion so they do not pile up.
2254 # Strip out --silent because we don't want to record it for future runs.
2255 # Also quote any args containing shell meta-characters.
2256 # Make two passes to allow for proper duplicate-argument suppression.
2257 ac_configure_args=
2258 ac_configure_args0=
2259 ac_configure_args1=
2260 ac_must_keep_next=false
2261 for ac_pass in 1 2
2263 for ac_arg
2265 case $ac_arg in
2266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2268 | -silent | --silent | --silen | --sile | --sil)
2269 continue ;;
2270 *\'*)
2271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 esac
2273 case $ac_pass in
2274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2276 as_fn_append ac_configure_args1 " '$ac_arg'"
2277 if test $ac_must_keep_next = true; then
2278 ac_must_keep_next=false # Got value, back to normal.
2279 else
2280 case $ac_arg in
2281 *=* | --config-cache | -C | -disable-* | --disable-* \
2282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2284 | -with-* | --with-* | -without-* | --without-* | --x)
2285 case "$ac_configure_args0 " in
2286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287 esac
2289 -* ) ac_must_keep_next=true ;;
2290 esac
2292 as_fn_append ac_configure_args " '$ac_arg'"
2294 esac
2295 done
2296 done
2297 { ac_configure_args0=; unset ac_configure_args0;}
2298 { ac_configure_args1=; unset ac_configure_args1;}
2300 # When interrupted or exit'd, cleanup temporary files, and complete
2301 # config.log. We remove comments because anyway the quotes in there
2302 # would cause problems or look ugly.
2303 # WARNING: Use '\'' to represent an apostrophe within the trap.
2304 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2305 trap 'exit_status=$?
2306 # Save into config.log some information that might help in debugging.
2308 echo
2310 $as_echo "## ---------------- ##
2311 ## Cache variables. ##
2312 ## ---------------- ##"
2313 echo
2314 # The following way of writing the cache mishandles newlines in values,
2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in #(
2319 *${as_nl}*)
2320 case $ac_var in #(
2321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 esac
2324 case $ac_var in #(
2325 _ | IFS | as_nl) ;; #(
2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327 *) { eval $ac_var=; unset $ac_var;} ;;
2328 esac ;;
2329 esac
2330 done
2331 (set) 2>&1 |
2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333 *${as_nl}ac_space=\ *)
2334 sed -n \
2335 "s/'\''/'\''\\\\'\'''\''/g;
2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 ;; #(
2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341 esac |
2342 sort
2344 echo
2346 $as_echo "## ----------------- ##
2347 ## Output variables. ##
2348 ## ----------------- ##"
2349 echo
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2360 if test -n "$ac_subst_files"; then
2361 $as_echo "## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##"
2364 echo
2365 for ac_var in $ac_subst_files
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2376 if test -s confdefs.h; then
2377 $as_echo "## ----------- ##
2378 ## confdefs.h. ##
2379 ## ----------- ##"
2380 echo
2381 cat confdefs.h
2382 echo
2384 test "$ac_signal" != 0 &&
2385 $as_echo "$as_me: caught signal $ac_signal"
2386 $as_echo "$as_me: exit $exit_status"
2387 } >&5
2388 rm -f core *.core core.conftest.* &&
2389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390 exit $exit_status
2392 for ac_signal in 1 2 13 15; do
2393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394 done
2395 ac_signal=0
2397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2398 rm -f -r conftest* confdefs.h
2400 $as_echo "/* confdefs.h */" > confdefs.h
2402 # Predefined preprocessor variables.
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_NAME "$PACKAGE_NAME"
2406 _ACEOF
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2414 _ACEOF
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_STRING "$PACKAGE_STRING"
2418 _ACEOF
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422 _ACEOF
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_URL "$PACKAGE_URL"
2426 _ACEOF
2429 # Let the site file select an alternate cache file if it wants to.
2430 # Prefer an explicitly selected file to automatically selected ones.
2431 ac_site_file1=NONE
2432 ac_site_file2=NONE
2433 if test -n "$CONFIG_SITE"; then
2434 # We do not want a PATH search for config.site.
2435 case $CONFIG_SITE in #((
2436 -*) ac_site_file1=./$CONFIG_SITE;;
2437 */*) ac_site_file1=$CONFIG_SITE;;
2438 *) ac_site_file1=./$CONFIG_SITE;;
2439 esac
2440 elif test "x$prefix" != xNONE; then
2441 ac_site_file1=$prefix/share/config.site
2442 ac_site_file2=$prefix/etc/config.site
2443 else
2444 ac_site_file1=$ac_default_prefix/share/config.site
2445 ac_site_file2=$ac_default_prefix/etc/config.site
2447 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2449 test "x$ac_site_file" = xNONE && continue
2450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2452 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2453 sed 's/^/| /' "$ac_site_file" >&5
2454 . "$ac_site_file" \
2455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457 as_fn_error $? "failed to load site script $ac_site_file
2458 See \`config.log' for more details" "$LINENO" 5; }
2460 done
2462 if test -r "$cache_file"; then
2463 # Some versions of bash will fail to source /dev/null (special files
2464 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467 $as_echo "$as_me: loading cache $cache_file" >&6;}
2468 case $cache_file in
2469 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470 *) . "./$cache_file";;
2471 esac
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475 $as_echo "$as_me: creating cache $cache_file" >&6;}
2476 >$cache_file
2479 # Check that the precious variables saved in the cache have kept the same
2480 # value.
2481 ac_cache_corrupted=false
2482 for ac_var in $ac_precious_vars; do
2483 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484 eval ac_new_set=\$ac_env_${ac_var}_set
2485 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486 eval ac_new_val=\$ac_env_${ac_var}_value
2487 case $ac_old_set,$ac_new_set in
2488 set,)
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491 ac_cache_corrupted=: ;;
2492 ,set)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,);;
2498 if test "x$ac_old_val" != "x$ac_new_val"; then
2499 # differences in whitespace do not lead to failure.
2500 ac_old_val_w=`echo x $ac_old_val`
2501 ac_new_val_w=`echo x $ac_new_val`
2502 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505 ac_cache_corrupted=:
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509 eval $ac_var=\$ac_old_val
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2512 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2514 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2515 fi;;
2516 esac
2517 # Pass precious variables to config.status.
2518 if test "$ac_new_set" = set; then
2519 case $ac_new_val in
2520 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 *) ac_arg=$ac_var=$ac_new_val ;;
2522 esac
2523 case " $ac_configure_args " in
2524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2525 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526 esac
2528 done
2529 if $ac_cache_corrupted; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2534 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2536 ## -------------------- ##
2537 ## Main body of script. ##
2538 ## -------------------- ##
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 ac_config_headers="$ac_config_headers config.h"
2554 libtool_VERSION=17:0:0
2557 # Default to --enable-multilib
2558 # Check whether --enable-multilib was given.
2559 if test "${enable_multilib+set}" = set; then :
2560 enableval=$enable_multilib; case "$enableval" in
2561 yes) multilib=yes ;;
2562 no) multilib=no ;;
2563 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2564 esac
2565 else
2566 multilib=yes
2570 # We may get other options which we leave undocumented:
2571 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2572 # See config-ml.in if you want the gory details.
2574 if test "$srcdir" = "."; then
2575 if test "$with_target_subdir" != "."; then
2576 multi_basedir="$srcdir/$with_multisrctop../.."
2577 else
2578 multi_basedir="$srcdir/$with_multisrctop.."
2580 else
2581 multi_basedir="$srcdir/.."
2585 # Even if the default multilib is not a cross compilation,
2586 # it may be that some of the other multilibs are.
2587 if test $cross_compiling = no && test $multilib = yes \
2588 && test "x${with_multisubdir}" != x ; then
2589 cross_compiling=maybe
2592 ac_config_commands="$ac_config_commands default-1"
2595 ac_aux_dir=
2596 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2610 done
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if ${ac_cv_build+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if ${ac_cv_host+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2669 else
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2677 case $ac_cv_host in
2678 *-*-*) ;;
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2680 esac
2681 host=$ac_cv_host
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_host
2684 shift
2685 host_cpu=$1
2686 host_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 host_os=$*
2691 IFS=$ac_save_IFS
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if ${ac_cv_target+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test "x$target_alias" = x; then
2701 ac_cv_target=$ac_cv_host
2702 else
2703 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2711 *-*-*) ;;
2712 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2713 esac
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2716 set x $ac_cv_target
2717 shift
2718 target_cpu=$1
2719 target_vendor=$2
2720 shift; shift
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2723 target_os=$*
2724 IFS=$ac_save_IFS
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731 test "$program_prefix$program_suffix$program_transform_name" = \
2732 NONENONEs,x,x, &&
2733 program_prefix=${target_alias}-
2735 target_alias=${target_alias-$host_alias}
2737 am__api_version='1.15'
2739 # Find a good install program. We prefer a C program (faster),
2740 # so one script is as good as another. But avoid the broken or
2741 # incompatible versions:
2742 # SysV /etc/install, /usr/sbin/install
2743 # SunOS /usr/etc/install
2744 # IRIX /sbin/install
2745 # AIX /bin/install
2746 # AmigaOS /C/install, which installs bootblocks on floppy discs
2747 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2748 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2749 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2750 # OS/2's system install, which has a completely different semantic
2751 # ./install, which can be erroneously created by make from ./install.sh.
2752 # Reject install programs that cannot install multiple files.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2754 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2755 if test -z "$INSTALL"; then
2756 if ${ac_cv_path_install+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 # Account for people who put trailing slashes in PATH elements.
2765 case $as_dir/ in #((
2766 ./ | .// | /[cC]/* | \
2767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 /usr/ucb/* ) ;;
2771 # OSF1 and SCO ODT 3.0 have their own names for install.
2772 # Don't use installbsd from OSF since it installs stuff as root
2773 # by default.
2774 for ac_prog in ginstall scoinst install; do
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2777 if test $ac_prog = install &&
2778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # AIX install. It has an incompatible calling convention.
2781 elif test $ac_prog = install &&
2782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783 # program-specific install script used by HP pwplus--don't use.
2785 else
2786 rm -rf conftest.one conftest.two conftest.dir
2787 echo one > conftest.one
2788 echo two > conftest.two
2789 mkdir conftest.dir
2790 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2791 test -s conftest.one && test -s conftest.two &&
2792 test -s conftest.dir/conftest.one &&
2793 test -s conftest.dir/conftest.two
2794 then
2795 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2796 break 3
2800 done
2801 done
2803 esac
2805 done
2806 IFS=$as_save_IFS
2808 rm -rf conftest.one conftest.two conftest.dir
2811 if test "${ac_cv_path_install+set}" = set; then
2812 INSTALL=$ac_cv_path_install
2813 else
2814 # As a last resort, use the slow shell script. Don't cache a
2815 # value for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the value is a relative name.
2818 INSTALL=$ac_install_sh
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2822 $as_echo "$INSTALL" >&6; }
2824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825 # It thinks the first close brace ends the variable substitution.
2826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2833 $as_echo_n "checking whether build environment is sane... " >&6; }
2834 # Reject unsafe characters in $srcdir or the absolute working directory
2835 # name. Accept space and tab only in the latter.
2836 am_lf='
2838 case `pwd` in
2839 *[\\\"\#\$\&\'\`$am_lf]*)
2840 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2841 esac
2842 case $srcdir in
2843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2844 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2845 esac
2847 # Do 'set' in a subshell so we don't clobber the current shell's
2848 # arguments. Must try -L first in case configure is actually a
2849 # symlink; some systems play weird games with the mod time of symlinks
2850 # (eg FreeBSD returns the mod time of the symlink's containing
2851 # directory).
2852 if (
2853 am_has_slept=no
2854 for am_try in 1 2; do
2855 echo "timestamp, slept: $am_has_slept" > conftest.file
2856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857 if test "$*" = "X"; then
2858 # -L didn't work.
2859 set X `ls -t "$srcdir/configure" conftest.file`
2861 if test "$*" != "X $srcdir/configure conftest.file" \
2862 && test "$*" != "X conftest.file $srcdir/configure"; then
2864 # If neither matched, then we have a broken ls. This can happen
2865 # if, for instance, CONFIG_SHELL is bash and it inherits a
2866 # broken ls alias from the environment. This has actually
2867 # happened. Such a system could not be considered "sane".
2868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2869 alias in your environment" "$LINENO" 5
2871 if test "$2" = conftest.file || test $am_try -eq 2; then
2872 break
2874 # Just in case.
2875 sleep 1
2876 am_has_slept=yes
2877 done
2878 test "$2" = conftest.file
2880 then
2881 # Ok.
2883 else
2884 as_fn_error $? "newly created file is older than distributed files!
2885 Check your system clock" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889 # If we didn't sleep, we still need to ensure time stamps of config.status and
2890 # generated files are strictly newer.
2891 am_sleep_pid=
2892 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2893 ( sleep 1 ) &
2894 am_sleep_pid=$!
2897 rm -f conftest.file
2899 test "$program_prefix" != NONE &&
2900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901 # Use a double $ so make ignores it.
2902 test "$program_suffix" != NONE &&
2903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904 # Double any \ or $.
2905 # By default was `s,x,x', remove it if useless.
2906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2909 # Expand $ac_aux_dir to an absolute path.
2910 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2912 if test x"${MISSING+set}" != xset; then
2913 case $am_aux_dir in
2914 *\ * | *\ *)
2915 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2917 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2918 esac
2920 # Use eval to expand $SHELL
2921 if eval "$MISSING --is-lightweight"; then
2922 am_missing_run="$MISSING "
2923 else
2924 am_missing_run=
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2926 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2929 if test x"${install_sh+set}" != xset; then
2930 case $am_aux_dir in
2931 *\ * | *\ *)
2932 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934 install_sh="\${SHELL} $am_aux_dir/install-sh"
2935 esac
2938 # Installed binaries are usually stripped using 'strip' when the user
2939 # run "make install-strip". However 'strip' might not be the right
2940 # tool to use in cross-compilation environments, therefore Automake
2941 # will honor the 'STRIP' environment variable to overrule this program.
2942 if test "$cross_compiling" != no; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}strip; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_STRIP+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$STRIP"; then
2952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 STRIP=$ac_cv_prog_STRIP
2972 if test -n "$STRIP"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974 $as_echo "$STRIP" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$ac_cv_prog_STRIP"; then
2983 ac_ct_STRIP=$STRIP
2984 # Extract the first word of "strip", so it can be a program name with args.
2985 set dummy strip; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$ac_ct_STRIP"; then
2992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_STRIP="strip"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3005 done
3006 done
3007 IFS=$as_save_IFS
3011 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3012 if test -n "$ac_ct_STRIP"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014 $as_echo "$ac_ct_STRIP" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3020 if test "x$ac_ct_STRIP" = x; then
3021 STRIP=":"
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029 STRIP=$ac_ct_STRIP
3031 else
3032 STRIP="$ac_cv_prog_STRIP"
3036 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040 if test -z "$MKDIR_P"; then
3041 if ${ac_cv_path_mkdir+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_prog in mkdir gmkdir; do
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3052 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053 'mkdir (GNU coreutils) '* | \
3054 'mkdir (coreutils) '* | \
3055 'mkdir (fileutils) '4.1*)
3056 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3057 break 3;;
3058 esac
3059 done
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 test -d ./--version && rmdir ./--version
3067 if test "${ac_cv_path_mkdir+set}" = set; then
3068 MKDIR_P="$ac_cv_path_mkdir -p"
3069 else
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for MKDIR_P within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
3074 MKDIR_P="$ac_install_sh -d"
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078 $as_echo "$MKDIR_P" >&6; }
3080 for ac_prog in gawk mawk nawk awk
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_AWK+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$AWK"; then
3090 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AWK="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 AWK=$ac_cv_prog_AWK
3110 if test -n "$AWK"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3112 $as_echo "$AWK" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$AWK" && break
3120 done
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3123 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3124 set x ${MAKE-make}
3125 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3126 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 cat >conftest.make <<\_ACEOF
3130 SHELL = /bin/sh
3131 all:
3132 @echo '@@@%%%=$(MAKE)=@@@%%%'
3133 _ACEOF
3134 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3135 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3136 *@@@%%%=?*=@@@%%%*)
3137 eval ac_cv_prog_make_${ac_make}_set=yes;;
3139 eval ac_cv_prog_make_${ac_make}_set=no;;
3140 esac
3141 rm -f conftest.make
3143 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146 SET_MAKE=
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 SET_MAKE="MAKE=${MAKE-make}"
3153 rm -rf .tst 2>/dev/null
3154 mkdir .tst 2>/dev/null
3155 if test -d .tst; then
3156 am__leading_dot=.
3157 else
3158 am__leading_dot=_
3160 rmdir .tst 2>/dev/null
3162 # Check whether --enable-silent-rules was given.
3163 if test "${enable_silent_rules+set}" = set; then :
3164 enableval=$enable_silent_rules;
3167 case $enable_silent_rules in # (((
3168 yes) AM_DEFAULT_VERBOSITY=0;;
3169 no) AM_DEFAULT_VERBOSITY=1;;
3170 *) AM_DEFAULT_VERBOSITY=1;;
3171 esac
3172 am_make=${MAKE-make}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3174 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3175 if ${am_cv_make_support_nested_variables+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if $as_echo 'TRUE=$(BAR$(V))
3179 BAR0=false
3180 BAR1=true
3182 am__doit:
3183 @$(TRUE)
3184 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3185 am_cv_make_support_nested_variables=yes
3186 else
3187 am_cv_make_support_nested_variables=no
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3191 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3192 if test $am_cv_make_support_nested_variables = yes; then
3193 AM_V='$(V)'
3194 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3195 else
3196 AM_V=$AM_DEFAULT_VERBOSITY
3197 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3199 AM_BACKSLASH='\'
3201 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3202 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3203 # is not polluted with repeated "-I."
3204 am__isrc=' -I$(srcdir)'
3205 # test to see if srcdir already configured
3206 if test -f $srcdir/config.status; then
3207 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3211 # test whether we have cygpath
3212 if test -z "$CYGPATH_W"; then
3213 if (cygpath --version) >/dev/null 2>/dev/null; then
3214 CYGPATH_W='cygpath -w'
3215 else
3216 CYGPATH_W=echo
3221 # Define the identity of the package.
3222 PACKAGE='libgo'
3223 VERSION='version-unused'
3226 # Some tools Automake needs.
3228 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3231 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3234 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3237 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3240 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3242 # For better backward compatibility. To be removed once Automake 1.9.x
3243 # dies out for good. For more background, see:
3244 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3245 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3246 mkdir_p='$(MKDIR_P)'
3248 # We need awk for the "check" target (and possibly the TAP driver). The
3249 # system "awk" is bad on some platforms.
3250 # Always define AMTAR for backward compatibility. Yes, it's still used
3251 # in the wild :-( We should find a proper way to deprecate it ...
3252 AMTAR='$${TAR-tar}'
3255 # We'll loop over all known methods to create a tar archive until one works.
3256 _am_tools='gnutar pax cpio none'
3258 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3265 # POSIX will say in a future version that running "rm -f" with no argument
3266 # is OK; and we want to be able to make that assumption in our Makefile
3267 # recipes. So use an aggressive probe to check that the usage we want is
3268 # actually supported "in the wild" to an acceptable degree.
3269 # See automake bug#10828.
3270 # To make any issue more visible, cause the running configure to be aborted
3271 # by default if the 'rm' program in use doesn't match our expectations; the
3272 # user can still override this though.
3273 if rm -f && rm -fr && rm -rf; then : OK; else
3274 cat >&2 <<'END'
3275 Oops!
3277 Your 'rm' program seems unable to run without file operands specified
3278 on the command line, even when the '-f' option is present. This is contrary
3279 to the behaviour of most rm programs out there, and not conforming with
3280 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3282 Please tell bug-automake@gnu.org about your system, including the value
3283 of your $PATH and any error possibly output before this message. This
3284 can help us improve future automake versions.
3287 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3288 echo 'Configuration will proceed anyway, since you have set the' >&2
3289 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3290 echo >&2
3291 else
3292 cat >&2 <<'END'
3293 Aborting the configuration process, to ensure you take notice of the issue.
3295 You can download and install GNU coreutils to get an 'rm' implementation
3296 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3298 If you want to complete the configuration process using your problematic
3299 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3300 to "yes", and re-run configure.
3303 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317 if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3339 done
3340 done
3341 IFS=$as_save_IFS
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3356 if test -z "$ac_cv_prog_CC"; then
3357 ac_ct_CC=$CC
3358 # Extract the first word of "gcc", so it can be a program name with args.
3359 set dummy gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_ac_ct_CC="gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3379 done
3380 done
3381 IFS=$as_save_IFS
3385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 $as_echo "$ac_ct_CC" >&6; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 CC=$ac_ct_CC
3405 else
3406 CC="$ac_cv_prog_CC"
3409 if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3412 set dummy ${ac_tool_prefix}cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CC="${ac_tool_prefix}cc"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3450 if test -z "$CC"; then
3451 # Extract the first word of "cc", so it can be a program name with args.
3452 set dummy cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 ac_prog_rejected=no
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3470 ac_prog_rejected=yes
3471 continue
3473 ac_cv_prog_CC="cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3481 if test $ac_prog_rejected = yes; then
3482 # We found a bogon in the path, so make sure we never use it.
3483 set dummy $ac_cv_prog_CC
3484 shift
3485 if test $# != 0; then
3486 # We chose a different compiler from the bogus one.
3487 # However, it has the same basename, so the bogon will be chosen
3488 # first if we set CC to just the basename; use the full file name.
3489 shift
3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3506 if test -z "$CC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CC+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$CC" && break
3548 done
3550 if test -z "$CC"; then
3551 ac_ct_CC=$CC
3552 for ac_prog in cl.exe
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CC="$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3591 test -n "$ac_ct_CC" && break
3592 done
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3610 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "no acceptable C compiler found in \$PATH
3613 See \`config.log' for more details" "$LINENO" 5; }
3615 # Provide some information about the compiler.
3616 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3617 set X $ac_compile
3618 ac_compiler=$2
3619 for ac_option in --version -v -V -qversion; do
3620 { { ac_try="$ac_compiler $ac_option >&5"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3628 ac_status=$?
3629 if test -s conftest.err; then
3630 sed '10a\
3631 ... rest of stderr output deleted ...
3632 10q' conftest.err >conftest.er1
3633 cat conftest.er1 >&5
3635 rm -f conftest.er1 conftest.err
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3638 done
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3644 main ()
3648 return 0;
3650 _ACEOF
3651 ac_clean_files_save=$ac_clean_files
3652 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3653 # Try to create an executable without -o first, disregard a.out.
3654 # It will help us diagnose broken compilers, and finding out an intuition
3655 # of exeext.
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3657 $as_echo_n "checking whether the C compiler works... " >&6; }
3658 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3660 # The possible output files:
3661 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3663 ac_rmfiles=
3664 for ac_file in $ac_files
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3669 esac
3670 done
3671 rm -f $ac_rmfiles
3673 if { { ac_try="$ac_link_default"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link_default") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3687 # so that the user can short-circuit this test for compilers unknown to
3688 # Autoconf.
3689 for ac_file in $ac_files ''
3691 test -f "$ac_file" || continue
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3695 [ab].out )
3696 # We found the default executable, but exeext='' is most
3697 # certainly right.
3698 break;;
3699 *.* )
3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3701 then :; else
3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 # We set ac_cv_exeext here because the later test for it is not
3705 # safe: cross compilers may not add the suffix if given an `-o'
3706 # argument, so we may need to know it at that point already.
3707 # Even if this section looks crufty: it has the advantage of
3708 # actually working.
3709 break;;
3711 break;;
3712 esac
3713 done
3714 test "$ac_cv_exeext" = no && ac_cv_exeext=
3716 else
3717 ac_file=''
3719 if test -z "$ac_file"; then :
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error 77 "C compiler cannot create executables
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731 $as_echo "yes" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3734 $as_echo_n "checking for C compiler default output file name... " >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3736 $as_echo "$ac_file" >&6; }
3737 ac_exeext=$ac_cv_exeext
3739 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3740 ac_clean_files=$ac_clean_files_save
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3742 $as_echo_n "checking for suffix of executables... " >&6; }
3743 if { { ac_try="$ac_link"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3755 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3756 # work properly (i.e., refer to `conftest.exe'), while it won't with
3757 # `rm'.
3758 for ac_file in conftest.exe conftest conftest.*; do
3759 test -f "$ac_file" || continue
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 break;;
3764 * ) break;;
3765 esac
3766 done
3767 else
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3771 See \`config.log' for more details" "$LINENO" 5; }
3773 rm -f conftest conftest$ac_cv_exeext
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3775 $as_echo "$ac_cv_exeext" >&6; }
3777 rm -f conftest.$ac_ext
3778 EXEEXT=$ac_cv_exeext
3779 ac_exeext=$EXEEXT
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 #include <stdio.h>
3784 main ()
3786 FILE *f = fopen ("conftest.out", "w");
3787 return ferror (f) || fclose (f) != 0;
3790 return 0;
3792 _ACEOF
3793 ac_clean_files="$ac_clean_files conftest.out"
3794 # Check that the compiler produces executables we can run. If not, either
3795 # the compiler is broken, or we cross compile.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3797 $as_echo_n "checking whether we are cross compiling... " >&6; }
3798 if test "$cross_compiling" != yes; then
3799 { { ac_try="$ac_link"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_link") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }
3810 if { ac_try='./conftest$ac_cv_exeext'
3811 { { case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_try") 2>&5
3818 ac_status=$?
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; }; then
3821 cross_compiling=no
3822 else
3823 if test "$cross_compiling" = maybe; then
3824 cross_compiling=yes
3825 else
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "cannot run C compiled programs.
3829 If you meant to cross compile, use \`--host'.
3830 See \`config.log' for more details" "$LINENO" 5; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835 $as_echo "$cross_compiling" >&6; }
3837 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3838 ac_clean_files=$ac_clean_files_save
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3840 $as_echo_n "checking for suffix of object files... " >&6; }
3841 if ${ac_cv_objext+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 rm -f conftest.o conftest.obj
3856 if { { ac_try="$ac_compile"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_compile") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 for ac_file in conftest.o conftest.obj conftest.*; do
3868 test -f "$ac_file" || continue;
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3872 break;;
3873 esac
3874 done
3875 else
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "cannot compute suffix of object files: cannot compile
3882 See \`config.log' for more details" "$LINENO" 5; }
3884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3887 $as_echo "$ac_cv_objext" >&6; }
3888 OBJEXT=$ac_cv_objext
3889 ac_objext=$OBJEXT
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3891 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3892 if ${ac_cv_c_compiler_gnu+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main ()
3901 #ifndef __GNUC__
3902 choke me
3903 #endif
3906 return 0;
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_compiler_gnu=yes
3911 else
3912 ac_compiler_gnu=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3919 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3920 if test $ac_compiler_gnu = yes; then
3921 GCC=yes
3922 else
3923 GCC=
3925 ac_test_CFLAGS=${CFLAGS+set}
3926 ac_save_CFLAGS=$CFLAGS
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3928 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3929 if ${ac_cv_prog_cc_g+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 ac_save_c_werror_flag=$ac_c_werror_flag
3933 ac_c_werror_flag=yes
3934 ac_cv_prog_cc_g=no
3935 CFLAGS="-g"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3940 main ()
3944 return 0;
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_prog_cc_g=yes
3949 else
3950 CFLAGS=""
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3964 else
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3966 CFLAGS="-g"
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3971 main ()
3975 return 0;
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_cv_prog_cc_g=yes
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_c_werror_flag=$ac_save_c_werror_flag
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3989 $as_echo "$ac_cv_prog_cc_g" >&6; }
3990 if test "$ac_test_CFLAGS" = set; then
3991 CFLAGS=$ac_save_CFLAGS
3992 elif test $ac_cv_prog_cc_g = yes; then
3993 if test "$GCC" = yes; then
3994 CFLAGS="-g -O2"
3995 else
3996 CFLAGS="-g"
3998 else
3999 if test "$GCC" = yes; then
4000 CFLAGS="-O2"
4001 else
4002 CFLAGS=
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4006 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4007 if ${ac_cv_prog_cc_c89+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_cv_prog_cc_c89=no
4011 ac_save_CC=$CC
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #include <stdarg.h>
4015 #include <stdio.h>
4016 struct stat;
4017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4018 struct buf { int x; };
4019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4020 static char *e (p, i)
4021 char **p;
4022 int i;
4024 return p[i];
4026 static char *f (char * (*g) (char **, int), char **p, ...)
4028 char *s;
4029 va_list v;
4030 va_start (v,p);
4031 s = g (p, va_arg (v,int));
4032 va_end (v);
4033 return s;
4036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4037 function prototypes and stuff, but not '\xHH' hex character constants.
4038 These don't provoke an error unfortunately, instead are silently treated
4039 as 'x'. The following induces an error, until -std is added to get
4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4041 array size at least. It's necessary to write '\x00'==0 to get something
4042 that's true only with -std. */
4043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4046 inside strings and character constants. */
4047 #define FOO(x) 'x'
4048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4050 int test (int i, double x);
4051 struct s1 {int (*f) (int a);};
4052 struct s2 {int (*f) (double a);};
4053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4054 int argc;
4055 char **argv;
4057 main ()
4059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4061 return 0;
4063 _ACEOF
4064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_c89=$ac_arg
4071 rm -f core conftest.err conftest.$ac_objext
4072 test "x$ac_cv_prog_cc_c89" != "xno" && break
4073 done
4074 rm -f conftest.$ac_ext
4075 CC=$ac_save_CC
4078 # AC_CACHE_VAL
4079 case "x$ac_cv_prog_cc_c89" in
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4082 $as_echo "none needed" >&6; } ;;
4083 xno)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085 $as_echo "unsupported" >&6; } ;;
4087 CC="$CC $ac_cv_prog_cc_c89"
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4089 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4090 esac
4091 if test "x$ac_cv_prog_cc_c89" != xno; then :
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4107 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4108 if ${am_cv_prog_cc_c_o+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 # Make sure it works both with $CC and with simple cc.
4123 # Following AC_PROG_CC_C_O, we do the test twice because some
4124 # compilers refuse to overwrite an existing .o file with -o,
4125 # though they will create one.
4126 am_cv_prog_cc_c_o=yes
4127 for am_i in 1 2; do
4128 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4129 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } \
4133 && test -f conftest2.$ac_objext; then
4134 : OK
4135 else
4136 am_cv_prog_cc_c_o=no
4137 break
4139 done
4140 rm -f core conftest*
4141 unset am_i
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4144 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4145 if test "$am_cv_prog_cc_c_o" != yes; then
4146 # Losing compiler, so override with the script.
4147 # FIXME: It is wrong to rewrite CC.
4148 # But if we don't then we get into trouble of one sort or another.
4149 # A longer-term fix would be to have automake use am__CC in this case,
4150 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4151 CC="$am_aux_dir/compile $CC"
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 DEPDIR="${am__leading_dot}deps"
4161 ac_config_commands="$ac_config_commands depfiles"
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4166 am__doit:
4167 @echo this is the am__doit target
4168 .PHONY: am__doit
4170 # If we don't find an include directive, just comment out the code.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4173 am__include="#"
4174 am__quote=
4175 _am_result=none
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # Ignore all kinds of additional output from 'make'.
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4181 am__include=include
4182 am__quote=
4183 _am_result=GNU
4185 esac
4186 # Now try BSD make style include.
4187 if test "$am__include" = "#"; then
4188 echo '.include "confinc"' > confmf
4189 case `$am_make -s -f confmf 2> /dev/null` in #(
4190 *the\ am__doit\ target*)
4191 am__include=.include
4192 am__quote="\""
4193 _am_result=BSD
4195 esac
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200 $as_echo "$_am_result" >&6; }
4201 rm -f confinc confmf
4203 # Check whether --enable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then :
4205 enableval=$enable_dependency_tracking;
4208 if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4210 AMDEPBACKSLASH='\'
4211 am__nodep='_no'
4213 if test "x$enable_dependency_tracking" != xno; then
4214 AMDEP_TRUE=
4215 AMDEP_FALSE='#'
4216 else
4217 AMDEP_TRUE='#'
4218 AMDEP_FALSE=
4223 depcc="$CC" am_compiler_list=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4226 $as_echo_n "checking dependency style of $depcc... " >&6; }
4227 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4231 # We make a subdir and do the tests there. Otherwise we can end up
4232 # making bogus files that we don't know about and never remove. For
4233 # instance it was reported that on HP-UX the gcc test will end up
4234 # making a dummy file named 'D' -- because '-MD' means "put the output
4235 # in D".
4236 rm -rf conftest.dir
4237 mkdir conftest.dir
4238 # Copy depcomp to subdir because otherwise we won't find it if we're
4239 # using a relative directory.
4240 cp "$am_depcomp" conftest.dir
4241 cd conftest.dir
4242 # We will build objects and dependencies in a subdirectory because
4243 # it helps to detect inapplicable dependency modes. For instance
4244 # both Tru64's cc and ICC support -MD to output dependencies as a
4245 # side effect of compilation, but ICC will put the dependencies in
4246 # the current directory while Tru64 will put them in the object
4247 # directory.
4248 mkdir sub
4250 am_cv_CC_dependencies_compiler_type=none
4251 if test "$am_compiler_list" = ""; then
4252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4254 am__universal=false
4255 case " $depcc " in #(
4256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4257 esac
4259 for depmode in $am_compiler_list; do
4260 # Setup a source with many dependencies, because some compilers
4261 # like to wrap large dependency lists on column 80 (with \), and
4262 # we should not choose a depcomp mode which is confused by this.
4264 # We need to recreate these files for each test, as the compiler may
4265 # overwrite some of them when testing with obscure command lines.
4266 # This happens at least with the AIX C compiler.
4267 : > sub/conftest.c
4268 for i in 1 2 3 4 5 6; do
4269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4271 # Solaris 10 /bin/sh.
4272 echo '/* dummy */' > sub/conftst$i.h
4273 done
4274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4277 # mode. It turns out that the SunPro C++ compiler does not properly
4278 # handle '-M -o', and we need to detect this. Also, some Intel
4279 # versions had trouble with output in subdirs.
4280 am__obj=sub/conftest.${OBJEXT-o}
4281 am__minus_obj="-o $am__obj"
4282 case $depmode in
4283 gcc)
4284 # This depmode causes a compiler race in universal mode.
4285 test "$am__universal" = false || continue
4287 nosideeffect)
4288 # After this tag, mechanisms are not by side-effect, so they'll
4289 # only be used when explicitly requested.
4290 if test "x$enable_dependency_tracking" = xyes; then
4291 continue
4292 else
4293 break
4296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4297 # This compiler won't grok '-c -o', but also, the minuso test has
4298 # not run yet. These depmodes are late enough in the game, and
4299 # so weak that their functioning should not be impacted.
4300 am__obj=conftest.${OBJEXT-o}
4301 am__minus_obj=
4303 none) break ;;
4304 esac
4305 if depmode=$depmode \
4306 source=sub/conftest.c object=$am__obj \
4307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4309 >/dev/null 2>conftest.err &&
4310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4314 # icc doesn't choke on unknown options, it will just issue warnings
4315 # or remarks (even with -Werror). So we grep stderr for any message
4316 # that says an option was ignored or not supported.
4317 # When given -MP, icc 7.0 and 7.1 complain thusly:
4318 # icc: Command line warning: ignoring option '-M'; no argument required
4319 # The diagnosis changed in icc 8.0:
4320 # icc: Command line remark: option '-MP' not supported
4321 if (grep 'ignoring option' conftest.err ||
4322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4323 am_cv_CC_dependencies_compiler_type=$depmode
4324 break
4327 done
4329 cd ..
4330 rm -rf conftest.dir
4331 else
4332 am_cv_CC_dependencies_compiler_type=none
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4337 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4341 test "x$enable_dependency_tracking" != xno \
4342 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343 am__fastdepCC_TRUE=
4344 am__fastdepCC_FALSE='#'
4345 else
4346 am__fastdepCC_TRUE='#'
4347 am__fastdepCC_FALSE=
4351 ac_ext=go
4352 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4353 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=yes
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_prog_GOC+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -n "$GOC"; then
4364 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 GOC=$ac_cv_prog_GOC
4384 if test -n "$GOC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4386 $as_echo "$GOC" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4394 if test -z "$ac_cv_prog_GOC"; then
4395 ac_ct_GOC=$GOC
4396 # Extract the first word of "gccgo", so it can be a program name with args.
4397 set dummy gccgo; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$ac_ct_GOC"; then
4404 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_ac_ct_GOC="gccgo"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4424 if test -n "$ac_ct_GOC"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4426 $as_echo "$ac_ct_GOC" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4432 if test "x$ac_ct_GOC" = x; then
4433 GOC=""
4434 else
4435 case $cross_compiling:$ac_tool_warned in
4436 yes:)
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439 ac_tool_warned=yes ;;
4440 esac
4441 GOC=$ac_ct_GOC
4443 else
4444 GOC="$ac_cv_prog_GOC"
4447 if test -z "$GOC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4450 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_prog_GOC+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$GOC"; then
4457 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4476 GOC=$ac_cv_prog_GOC
4477 if test -n "$GOC"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4479 $as_echo "$GOC" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4488 if test -z "$GOC"; then
4489 # Extract the first word of "gccgo", so it can be a program name with args.
4490 set dummy gccgo; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_GOC+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if test -n "$GOC"; then
4497 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4498 else
4499 ac_prog_rejected=no
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4508 ac_prog_rejected=yes
4509 continue
4511 ac_cv_prog_GOC="gccgo"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4519 if test $ac_prog_rejected = yes; then
4520 # We found a bogon in the path, so make sure we never use it.
4521 set dummy $ac_cv_prog_GOC
4522 shift
4523 if test $# != 0; then
4524 # We chose a different compiler from the bogus one.
4525 # However, it has the same basename, so the bogon will be chosen
4526 # first if we set GOC to just the basename; use the full file name.
4527 shift
4528 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4533 GOC=$ac_cv_prog_GOC
4534 if test -n "$GOC"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4536 $as_echo "$GOC" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4546 # Provide some information about the compiler.
4547 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4548 set X $ac_compile
4549 ac_compiler=$2
4550 { { ac_try="$ac_compiler --version >&5"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_compiler --version >&5") 2>conftest.err
4558 ac_status=$?
4559 if test -s conftest.err; then
4560 sed '10a\
4561 ... rest of stderr output deleted ...
4562 10q' conftest.err >conftest.er1
4563 cat conftest.er1 >&5
4565 rm -f conftest.er1 conftest.err
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }
4568 GOFLAGS="-g -O2"
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 # By default we simply use the C compiler to build assembly code.
4577 test "${CCAS+set}" = set || CCAS=$CC
4578 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4582 depcc="$CCAS" am_compiler_list=
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585 $as_echo_n "checking dependency style of $depcc... " >&6; }
4586 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named 'D' -- because '-MD' means "put the output
4594 # in D".
4595 rm -rf conftest.dir
4596 mkdir conftest.dir
4597 # Copy depcomp to subdir because otherwise we won't find it if we're
4598 # using a relative directory.
4599 cp "$am_depcomp" conftest.dir
4600 cd conftest.dir
4601 # We will build objects and dependencies in a subdirectory because
4602 # it helps to detect inapplicable dependency modes. For instance
4603 # both Tru64's cc and ICC support -MD to output dependencies as a
4604 # side effect of compilation, but ICC will put the dependencies in
4605 # the current directory while Tru64 will put them in the object
4606 # directory.
4607 mkdir sub
4609 am_cv_CCAS_dependencies_compiler_type=none
4610 if test "$am_compiler_list" = ""; then
4611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4613 am__universal=false
4616 for depmode in $am_compiler_list; do
4617 # Setup a source with many dependencies, because some compilers
4618 # like to wrap large dependency lists on column 80 (with \), and
4619 # we should not choose a depcomp mode which is confused by this.
4621 # We need to recreate these files for each test, as the compiler may
4622 # overwrite some of them when testing with obscure command lines.
4623 # This happens at least with the AIX C compiler.
4624 : > sub/conftest.c
4625 for i in 1 2 3 4 5 6; do
4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628 # Solaris 10 /bin/sh.
4629 echo '/* dummy */' > sub/conftst$i.h
4630 done
4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634 # mode. It turns out that the SunPro C++ compiler does not properly
4635 # handle '-M -o', and we need to detect this. Also, some Intel
4636 # versions had trouble with output in subdirs.
4637 am__obj=sub/conftest.${OBJEXT-o}
4638 am__minus_obj="-o $am__obj"
4639 case $depmode in
4640 gcc)
4641 # This depmode causes a compiler race in universal mode.
4642 test "$am__universal" = false || continue
4644 nosideeffect)
4645 # After this tag, mechanisms are not by side-effect, so they'll
4646 # only be used when explicitly requested.
4647 if test "x$enable_dependency_tracking" = xyes; then
4648 continue
4649 else
4650 break
4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654 # This compiler won't grok '-c -o', but also, the minuso test has
4655 # not run yet. These depmodes are late enough in the game, and
4656 # so weak that their functioning should not be impacted.
4657 am__obj=conftest.${OBJEXT-o}
4658 am__minus_obj=
4660 none) break ;;
4661 esac
4662 if depmode=$depmode \
4663 source=sub/conftest.c object=$am__obj \
4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666 >/dev/null 2>conftest.err &&
4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671 # icc doesn't choke on unknown options, it will just issue warnings
4672 # or remarks (even with -Werror). So we grep stderr for any message
4673 # that says an option was ignored or not supported.
4674 # When given -MP, icc 7.0 and 7.1 complain thusly:
4675 # icc: Command line warning: ignoring option '-M'; no argument required
4676 # The diagnosis changed in icc 8.0:
4677 # icc: Command line remark: option '-MP' not supported
4678 if (grep 'ignoring option' conftest.err ||
4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680 am_cv_CCAS_dependencies_compiler_type=$depmode
4681 break
4684 done
4686 cd ..
4687 rm -rf conftest.dir
4688 else
4689 am_cv_CCAS_dependencies_compiler_type=none
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4694 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4695 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4698 test "x$enable_dependency_tracking" != xno \
4699 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4700 am__fastdepCCAS_TRUE=
4701 am__fastdepCCAS_FALSE='#'
4702 else
4703 am__fastdepCCAS_TRUE='#'
4704 am__fastdepCCAS_FALSE=
4712 case ${host} in
4713 *-*-aix*)
4714 # Check default architecture for FAT library creation
4715 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4716 AIX_EXTRA_ARCH='64'
4717 else
4718 AIX_EXTRA_ARCH='32'
4722 esac
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4726 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4727 # Check whether --enable-maintainer-mode was given.
4728 if test "${enable_maintainer_mode+set}" = set; then :
4729 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4730 else
4731 USE_MAINTAINER_MODE=no
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4735 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4736 if test $USE_MAINTAINER_MODE = yes; then
4737 MAINTAINER_MODE_TRUE=
4738 MAINTAINER_MODE_FALSE='#'
4739 else
4740 MAINTAINER_MODE_TRUE='#'
4741 MAINTAINER_MODE_FALSE=
4744 MAINT=$MAINTAINER_MODE_TRUE
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4749 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4750 if ${ac_cv_path_SED+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4754 for ac_i in 1 2 3 4 5 6 7; do
4755 ac_script="$ac_script$as_nl$ac_script"
4756 done
4757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4758 { ac_script=; unset ac_script;}
4759 if test -z "$SED"; then
4760 ac_path_SED_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in sed gsed; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4770 as_fn_executable_p "$ac_path_SED" || continue
4771 # Check for GNU ac_path_SED and select it if it is found.
4772 # Check for GNU $ac_path_SED
4773 case `"$ac_path_SED" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo '' >> "conftest.nl"
4785 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_SED_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_SED="$ac_path_SED"
4791 ac_path_SED_max=$ac_count
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4799 $ac_path_SED_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_SED"; then
4805 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4807 else
4808 ac_cv_path_SED=$SED
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4813 $as_echo "$ac_cv_path_SED" >&6; }
4814 SED="$ac_cv_path_SED"
4815 rm -f conftest.sed
4817 test -z "$SED" && SED=sed
4818 Xsed="$SED -e 1s/^X//"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4832 if ${ac_cv_path_GREP+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -z "$GREP"; then
4836 ac_path_GREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in grep ggrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4846 as_fn_executable_p "$ac_path_GREP" || continue
4847 # Check for GNU ac_path_GREP and select it if it is found.
4848 # Check for GNU $ac_path_GREP
4849 case `"$ac_path_GREP" --version 2>&1` in
4850 *GNU*)
4851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4853 ac_count=0
4854 $as_echo_n 0123456789 >"conftest.in"
4855 while :
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'GREP' >> "conftest.nl"
4861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_GREP="$ac_path_GREP"
4867 ac_path_GREP_max=$ac_count
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4871 done
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 esac
4875 $ac_path_GREP_found && break 3
4876 done
4877 done
4878 done
4879 IFS=$as_save_IFS
4880 if test -z "$ac_cv_path_GREP"; then
4881 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4883 else
4884 ac_cv_path_GREP=$GREP
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889 $as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894 $as_echo_n "checking for egrep... " >&6; }
4895 if ${ac_cv_path_EGREP+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899 then ac_cv_path_EGREP="$GREP -E"
4900 else
4901 if test -z "$EGREP"; then
4902 ac_path_EGREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_prog in egrep; do
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4912 as_fn_executable_p "$ac_path_EGREP" || continue
4913 # Check for GNU ac_path_EGREP and select it if it is found.
4914 # Check for GNU $ac_path_EGREP
4915 case `"$ac_path_EGREP" --version 2>&1` in
4916 *GNU*)
4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4919 ac_count=0
4920 $as_echo_n 0123456789 >"conftest.in"
4921 while :
4923 cat "conftest.in" "conftest.in" >"conftest.tmp"
4924 mv "conftest.tmp" "conftest.in"
4925 cp "conftest.in" "conftest.nl"
4926 $as_echo 'EGREP' >> "conftest.nl"
4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929 as_fn_arith $ac_count + 1 && ac_count=$as_val
4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931 # Best one so far, save it but keep looking for a better one
4932 ac_cv_path_EGREP="$ac_path_EGREP"
4933 ac_path_EGREP_max=$ac_count
4935 # 10*(2^10) chars as input seems more than enough
4936 test $ac_count -gt 10 && break
4937 done
4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 esac
4941 $ac_path_EGREP_found && break 3
4942 done
4943 done
4944 done
4945 IFS=$as_save_IFS
4946 if test -z "$ac_cv_path_EGREP"; then
4947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4949 else
4950 ac_cv_path_EGREP=$EGREP
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956 $as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4961 $as_echo_n "checking for fgrep... " >&6; }
4962 if ${ac_cv_path_FGREP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4966 then ac_cv_path_FGREP="$GREP -F"
4967 else
4968 if test -z "$FGREP"; then
4969 ac_path_FGREP_found=false
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_prog in fgrep; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4979 as_fn_executable_p "$ac_path_FGREP" || continue
4980 # Check for GNU ac_path_FGREP and select it if it is found.
4981 # Check for GNU $ac_path_FGREP
4982 case `"$ac_path_FGREP" --version 2>&1` in
4983 *GNU*)
4984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4986 ac_count=0
4987 $as_echo_n 0123456789 >"conftest.in"
4988 while :
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
4993 $as_echo 'FGREP' >> "conftest.nl"
4994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
4997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4998 # Best one so far, save it but keep looking for a better one
4999 ac_cv_path_FGREP="$ac_path_FGREP"
5000 ac_path_FGREP_max=$ac_count
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5004 done
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 esac
5008 $ac_path_FGREP_found && break 3
5009 done
5010 done
5011 done
5012 IFS=$as_save_IFS
5013 if test -z "$ac_cv_path_FGREP"; then
5014 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5016 else
5017 ac_cv_path_FGREP=$FGREP
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5023 $as_echo "$ac_cv_path_FGREP" >&6; }
5024 FGREP="$ac_cv_path_FGREP"
5027 test -z "$GREP" && GREP=grep
5045 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5050 $as_echo_n "checking how to print strings... " >&6; }
5051 # Test print first, because it will be a builtin if present.
5052 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5053 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5054 ECHO='print -r --'
5055 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5056 ECHO='printf %s\n'
5057 else
5058 # Use this function as a fallback that always works.
5059 func_fallback_echo ()
5061 eval 'cat <<_LTECHO_EOF
5063 _LTECHO_EOF'
5065 ECHO='func_fallback_echo'
5068 # func_echo_all arg...
5069 # Invoke $ECHO with all args, space-separated.
5070 func_echo_all ()
5072 $ECHO ""
5075 case "$ECHO" in
5076 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5077 $as_echo "printf" >&6; } ;;
5078 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5079 $as_echo "print -r" >&6; } ;;
5080 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5081 $as_echo "cat" >&6; } ;;
5082 esac
5099 # Check whether --with-gnu-ld was given.
5100 if test "${with_gnu_ld+set}" = set; then :
5101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5102 else
5103 with_gnu_ld=no
5106 ac_prog=ld
5107 if test "$GCC" = yes; then
5108 # Check if gcc -print-prog-name=ld gives a path.
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5110 $as_echo_n "checking for ld used by $CC... " >&6; }
5111 case $host in
5112 *-*-mingw*)
5113 # gcc leaves a trailing carriage return which upsets mingw
5114 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5116 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5117 esac
5118 case $ac_prog in
5119 # Accept absolute paths.
5120 [\\/]* | ?:[\\/]*)
5121 re_direlt='/[^/][^/]*/\.\./'
5122 # Canonicalize the pathname of ld
5123 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5124 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5125 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5126 done
5127 test -z "$LD" && LD="$ac_prog"
5130 # If it fails, then pretend we aren't using GCC.
5131 ac_prog=ld
5134 # If it is relative, then search for the first ld in PATH.
5135 with_gnu_ld=unknown
5137 esac
5138 elif test "$with_gnu_ld" = yes; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5140 $as_echo_n "checking for GNU ld... " >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5143 $as_echo_n "checking for non-GNU ld... " >&6; }
5145 if ${lt_cv_path_LD+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -z "$LD"; then
5149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5150 for ac_dir in $PATH; do
5151 IFS="$lt_save_ifs"
5152 test -z "$ac_dir" && ac_dir=.
5153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5154 lt_cv_path_LD="$ac_dir/$ac_prog"
5155 # Check to see if the program is GNU ld. I'd rather use --version,
5156 # but apparently some variants of GNU ld only accept -v.
5157 # Break only if it was the GNU/non-GNU ld that we prefer.
5158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5159 *GNU* | *'with BFD'*)
5160 test "$with_gnu_ld" != no && break
5163 test "$with_gnu_ld" != yes && break
5165 esac
5167 done
5168 IFS="$lt_save_ifs"
5169 else
5170 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5174 LD="$lt_cv_path_LD"
5175 if test -n "$LD"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5177 $as_echo "$LD" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5182 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5184 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5185 if ${lt_cv_prog_gnu_ld+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5189 case `$LD -v 2>&1 </dev/null` in
5190 *GNU* | *'with BFD'*)
5191 lt_cv_prog_gnu_ld=yes
5194 lt_cv_prog_gnu_ld=no
5196 esac
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5199 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5200 with_gnu_ld=$lt_cv_prog_gnu_ld
5210 if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_RANLIB+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$RANLIB"; then
5219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 RANLIB=$ac_cv_prog_RANLIB
5239 if test -n "$RANLIB"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5241 $as_echo "$RANLIB" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5249 if test -z "$ac_cv_prog_RANLIB"; then
5250 ac_ct_RANLIB=$RANLIB
5251 # Extract the first word of "ranlib", so it can be a program name with args.
5252 set dummy ranlib; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$ac_ct_RANLIB"; then
5259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_RANLIB="ranlib"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5279 if test -n "$ac_ct_RANLIB"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5281 $as_echo "$ac_ct_RANLIB" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5287 if test "x$ac_ct_RANLIB" = x; then
5288 RANLIB=":"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294 ac_tool_warned=yes ;;
5295 esac
5296 RANLIB=$ac_ct_RANLIB
5298 else
5299 RANLIB="$ac_cv_prog_RANLIB"
5302 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_OBJCOPY+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$OBJCOPY"; then
5311 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5324 done
5325 done
5326 IFS=$as_save_IFS
5330 OBJCOPY=$ac_cv_prog_OBJCOPY
5331 if test -n "$OBJCOPY"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5333 $as_echo "$OBJCOPY" >&6; }
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5341 if test -z "$ac_cv_prog_OBJCOPY"; then
5342 ac_ct_OBJCOPY=$OBJCOPY
5343 # Extract the first word of "objcopy", so it can be a program name with args.
5344 set dummy objcopy; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$ac_ct_OBJCOPY"; then
5351 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5371 if test -n "$ac_ct_OBJCOPY"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5373 $as_echo "$ac_ct_OBJCOPY" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5379 if test "x$ac_ct_OBJCOPY" = x; then
5380 OBJCOPY="missing-objcopy"
5381 else
5382 case $cross_compiling:$ac_tool_warned in
5383 yes:)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386 ac_tool_warned=yes ;;
5387 esac
5388 OBJCOPY=$ac_ct_OBJCOPY
5390 else
5391 OBJCOPY="$ac_cv_prog_OBJCOPY"
5395 enable_dlopen=yes
5399 case `pwd` in
5400 *\ * | *\ *)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403 esac
5407 macro_version='2.2.7a'
5408 macro_revision='1.3134'
5422 ltmain="$ac_aux_dir/ltmain.sh"
5424 # Backslashify metacharacters that are still active within
5425 # double-quoted strings.
5426 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5428 # Same as above, but do not quote variable references.
5429 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5431 # Sed substitution to delay expansion of an escaped shell variable in a
5432 # double_quote_subst'ed string.
5433 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5435 # Sed substitution to delay expansion of an escaped single quote.
5436 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5438 # Sed substitution to avoid accidental globbing in evaled expressions
5439 no_glob_subst='s/\*/\\\*/g'
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5442 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5443 if ${lt_cv_path_NM+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if test -n "$NM"; then
5447 # Let the user override the test.
5448 lt_cv_path_NM="$NM"
5449 else
5450 lt_nm_to_check="${ac_tool_prefix}nm"
5451 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5452 lt_nm_to_check="$lt_nm_to_check nm"
5454 for lt_tmp_nm in $lt_nm_to_check; do
5455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5456 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5457 IFS="$lt_save_ifs"
5458 test -z "$ac_dir" && ac_dir=.
5459 tmp_nm="$ac_dir/$lt_tmp_nm"
5460 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5461 # Check to see if the nm accepts a BSD-compat flag.
5462 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5463 # nm: unknown option "B" ignored
5464 # Tru64's nm complains that /dev/null is an invalid object file
5465 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5466 */dev/null* | *'Invalid file or object type'*)
5467 lt_cv_path_NM="$tmp_nm -B"
5468 break
5471 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5472 */dev/null*)
5473 lt_cv_path_NM="$tmp_nm -p"
5474 break
5477 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5478 continue # so that we can try to find one that supports BSD flags
5480 esac
5482 esac
5484 done
5485 IFS="$lt_save_ifs"
5486 done
5487 : ${lt_cv_path_NM=no}
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5491 $as_echo "$lt_cv_path_NM" >&6; }
5492 if test "$lt_cv_path_NM" != "no"; then
5493 NM="$lt_cv_path_NM"
5494 else
5495 # Didn't find any BSD compatible name lister, look for dumpbin.
5496 if test -n "$DUMPBIN"; then :
5497 # Let the user override the test.
5498 else
5499 if test -n "$ac_tool_prefix"; then
5500 for ac_prog in dumpbin "link -dump"
5502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_DUMPBIN+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$DUMPBIN"; then
5510 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 DUMPBIN=$ac_cv_prog_DUMPBIN
5530 if test -n "$DUMPBIN"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5532 $as_echo "$DUMPBIN" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5539 test -n "$DUMPBIN" && break
5540 done
5542 if test -z "$DUMPBIN"; then
5543 ac_ct_DUMPBIN=$DUMPBIN
5544 for ac_prog in dumpbin "link -dump"
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$ac_ct_DUMPBIN"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5574 if test -n "$ac_ct_DUMPBIN"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5576 $as_echo "$ac_ct_DUMPBIN" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 test -n "$ac_ct_DUMPBIN" && break
5584 done
5586 if test "x$ac_ct_DUMPBIN" = x; then
5587 DUMPBIN=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590 yes:)
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593 ac_tool_warned=yes ;;
5594 esac
5595 DUMPBIN=$ac_ct_DUMPBIN
5599 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5600 *COFF*)
5601 DUMPBIN="$DUMPBIN -symbols"
5604 DUMPBIN=:
5606 esac
5609 if test "$DUMPBIN" != ":"; then
5610 NM="$DUMPBIN"
5613 test -z "$NM" && NM=nm
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5621 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5622 if ${lt_cv_nm_interface+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 lt_cv_nm_interface="BSD nm"
5626 echo "int some_variable = 0;" > conftest.$ac_ext
5627 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5628 (eval "$ac_compile" 2>conftest.err)
5629 cat conftest.err >&5
5630 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5631 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5632 cat conftest.err >&5
5633 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5634 cat conftest.out >&5
5635 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5636 lt_cv_nm_interface="MS dumpbin"
5638 rm -f conftest*
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5641 $as_echo "$lt_cv_nm_interface" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5644 $as_echo_n "checking whether ln -s works... " >&6; }
5645 LN_S=$as_ln_s
5646 if test "$LN_S" = "ln -s"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5651 $as_echo "no, using $LN_S" >&6; }
5654 # find the maximum length of command line arguments
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5656 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5657 if ${lt_cv_sys_max_cmd_len+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5661 teststring="ABCD"
5663 case $build_os in
5664 msdosdjgpp*)
5665 # On DJGPP, this test can blow up pretty badly due to problems in libc
5666 # (any single argument exceeding 2000 bytes causes a buffer overrun
5667 # during glob expansion). Even if it were fixed, the result of this
5668 # check would be larger than it should be.
5669 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5672 gnu*)
5673 # Under GNU Hurd, this test is not required because there is
5674 # no limit to the length of command line arguments.
5675 # Libtool will interpret -1 as no limit whatsoever
5676 lt_cv_sys_max_cmd_len=-1;
5679 cygwin* | mingw* | cegcc*)
5680 # On Win9x/ME, this test blows up -- it succeeds, but takes
5681 # about 5 minutes as the teststring grows exponentially.
5682 # Worse, since 9x/ME are not pre-emptively multitasking,
5683 # you end up with a "frozen" computer, even though with patience
5684 # the test eventually succeeds (with a max line length of 256k).
5685 # Instead, let's just punt: use the minimum linelength reported by
5686 # all of the supported platforms: 8192 (on NT/2K/XP).
5687 lt_cv_sys_max_cmd_len=8192;
5690 mint*)
5691 # On MiNT this can take a long time and run out of memory.
5692 lt_cv_sys_max_cmd_len=8192;
5695 amigaos*)
5696 # On AmigaOS with pdksh, this test takes hours, literally.
5697 # So we just punt and use a minimum line length of 8192.
5698 lt_cv_sys_max_cmd_len=8192;
5701 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5702 # This has been around since 386BSD, at least. Likely further.
5703 if test -x /sbin/sysctl; then
5704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5705 elif test -x /usr/sbin/sysctl; then
5706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5707 else
5708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5710 # And add a safety zone
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5715 interix*)
5716 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5717 lt_cv_sys_max_cmd_len=196608
5720 osf*)
5721 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5722 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5723 # nice to cause kernel panics so lets avoid the loop below.
5724 # First set a reasonable default.
5725 lt_cv_sys_max_cmd_len=16384
5727 if test -x /sbin/sysconfig; then
5728 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5729 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5730 esac
5733 sco3.2v5*)
5734 lt_cv_sys_max_cmd_len=102400
5736 sysv5* | sco5v6* | sysv4.2uw2*)
5737 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5738 if test -n "$kargmax"; then
5739 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5740 else
5741 lt_cv_sys_max_cmd_len=32768
5745 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5746 if test -n "$lt_cv_sys_max_cmd_len"; then
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5749 else
5750 # Make teststring a little bigger before we do anything with it.
5751 # a 1K string should be a reasonable start.
5752 for i in 1 2 3 4 5 6 7 8 ; do
5753 teststring=$teststring$teststring
5754 done
5755 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5756 # If test is not a shell built-in, we'll probably end up computing a
5757 # maximum length that is only half of the actual maximum length, but
5758 # we can't tell.
5759 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5760 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5761 test $i != 17 # 1/2 MB should be enough
5763 i=`expr $i + 1`
5764 teststring=$teststring$teststring
5765 done
5766 # Only check the string length outside the loop.
5767 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5768 teststring=
5769 # Add a significant safety factor because C++ compilers can tack on
5770 # massive amounts of additional arguments before passing them to the
5771 # linker. It appears as though 1/2 is a usable value.
5772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5775 esac
5779 if test -n $lt_cv_sys_max_cmd_len ; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5781 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5784 $as_echo "none" >&6; }
5786 max_cmd_len=$lt_cv_sys_max_cmd_len
5793 : ${CP="cp -f"}
5794 : ${MV="mv -f"}
5795 : ${RM="rm -f"}
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5798 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5799 # Try some XSI features
5800 xsi_shell=no
5801 ( _lt_dummy="a/b/c"
5802 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5803 = c,a/b,, \
5804 && eval 'test $(( 1 + 1 )) -eq 2 \
5805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5806 && xsi_shell=yes
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5808 $as_echo "$xsi_shell" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5812 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5813 lt_shell_append=no
5814 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5815 >/dev/null 2>&1 \
5816 && lt_shell_append=yes
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5818 $as_echo "$lt_shell_append" >&6; }
5821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5822 lt_unset=unset
5823 else
5824 lt_unset=false
5831 # test EBCDIC or ASCII
5832 case `echo X|tr X '\101'` in
5833 A) # ASCII based system
5834 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5835 lt_SP2NL='tr \040 \012'
5836 lt_NL2SP='tr \015\012 \040\040'
5838 *) # EBCDIC based system
5839 lt_SP2NL='tr \100 \n'
5840 lt_NL2SP='tr \r\n \100\100'
5842 esac
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5853 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5854 if ${lt_cv_ld_reload_flag+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 lt_cv_ld_reload_flag='-r'
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5860 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5861 reload_flag=$lt_cv_ld_reload_flag
5862 case $reload_flag in
5863 "" | " "*) ;;
5864 *) reload_flag=" $reload_flag" ;;
5865 esac
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 case $host_os in
5868 darwin*)
5869 if test "$GCC" = yes; then
5870 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5871 else
5872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5875 esac
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_OBJDUMP+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$OBJDUMP"; then
5894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5913 OBJDUMP=$ac_cv_prog_OBJDUMP
5914 if test -n "$OBJDUMP"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5916 $as_echo "$OBJDUMP" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5924 if test -z "$ac_cv_prog_OBJDUMP"; then
5925 ac_ct_OBJDUMP=$OBJDUMP
5926 # Extract the first word of "objdump", so it can be a program name with args.
5927 set dummy objdump; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$ac_ct_OBJDUMP"; then
5934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5947 done
5948 done
5949 IFS=$as_save_IFS
5953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5956 $as_echo "$ac_ct_OBJDUMP" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5962 if test "x$ac_ct_OBJDUMP" = x; then
5963 OBJDUMP="false"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971 OBJDUMP=$ac_ct_OBJDUMP
5973 else
5974 OBJDUMP="$ac_cv_prog_OBJDUMP"
5977 test -z "$OBJDUMP" && OBJDUMP=objdump
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5988 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5989 if ${lt_cv_deplibs_check_method+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 lt_cv_file_magic_cmd='$MAGIC_CMD'
5993 lt_cv_file_magic_test_file=
5994 lt_cv_deplibs_check_method='unknown'
5995 # Need to set the preceding variable on all platforms that support
5996 # interlibrary dependencies.
5997 # 'none' -- dependencies not supported.
5998 # `unknown' -- same as none, but documents that we really don't know.
5999 # 'pass_all' -- all dependencies passed with no checks.
6000 # 'test_compile' -- check by making test program.
6001 # 'file_magic [[regex]]' -- check by looking for files in library path
6002 # which responds to the $file_magic_cmd with a given extended regex.
6003 # If you have `file' or equivalent on your system and you're not sure
6004 # whether `pass_all' will *always* work, you probably want this one.
6006 case $host_os in
6007 aix[4-9]*)
6008 lt_cv_deplibs_check_method=pass_all
6011 beos*)
6012 lt_cv_deplibs_check_method=pass_all
6015 bsdi[45]*)
6016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6017 lt_cv_file_magic_cmd='/usr/bin/file -L'
6018 lt_cv_file_magic_test_file=/shlib/libc.so
6021 cygwin*)
6022 # func_win32_libid is a shell function defined in ltmain.sh
6023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6024 lt_cv_file_magic_cmd='func_win32_libid'
6027 mingw* | pw32*)
6028 # Base MSYS/MinGW do not provide the 'file' command needed by
6029 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6030 # unless we find 'file', for example because we are cross-compiling.
6031 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6032 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6034 lt_cv_file_magic_cmd='func_win32_libid'
6035 else
6036 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6037 lt_cv_file_magic_cmd='$OBJDUMP -f'
6041 cegcc*)
6042 # use the weaker test based on 'objdump'. See mingw*.
6043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6047 darwin* | rhapsody*)
6048 lt_cv_deplibs_check_method=pass_all
6051 freebsd* | dragonfly*)
6052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6053 case $host_cpu in
6054 i*86 )
6055 # Not sure whether the presence of OpenBSD here was a mistake.
6056 # Let's accept both of them until this is cleared up.
6057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6058 lt_cv_file_magic_cmd=/usr/bin/file
6059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6061 esac
6062 else
6063 lt_cv_deplibs_check_method=pass_all
6067 gnu*)
6068 lt_cv_deplibs_check_method=pass_all
6071 haiku*)
6072 lt_cv_deplibs_check_method=pass_all
6075 hpux10.20* | hpux11*)
6076 lt_cv_file_magic_cmd=/usr/bin/file
6077 case $host_cpu in
6078 ia64*)
6079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6082 hppa*64*)
6083 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]'
6084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6090 esac
6093 interix[3-9]*)
6094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6098 irix5* | irix6* | nonstopux*)
6099 case $LD in
6100 *-32|*"-32 ") libmagic=32-bit;;
6101 *-n32|*"-n32 ") libmagic=N32;;
6102 *-64|*"-64 ") libmagic=64-bit;;
6103 *) libmagic=never-match;;
6104 esac
6105 lt_cv_deplibs_check_method=pass_all
6108 # This must be Linux ELF.
6109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6110 lt_cv_deplibs_check_method=pass_all
6113 netbsd*)
6114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6116 else
6117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6121 newos6*)
6122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6123 lt_cv_file_magic_cmd=/usr/bin/file
6124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6127 *nto* | *qnx*)
6128 lt_cv_deplibs_check_method=pass_all
6131 openbsd*)
6132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6134 else
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139 osf3* | osf4* | osf5*)
6140 lt_cv_deplibs_check_method=pass_all
6143 rdos*)
6144 lt_cv_deplibs_check_method=pass_all
6147 solaris*)
6148 lt_cv_deplibs_check_method=pass_all
6151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6152 lt_cv_deplibs_check_method=pass_all
6155 sysv4 | sysv4.3*)
6156 case $host_vendor in
6157 motorola)
6158 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]'
6159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6161 ncr)
6162 lt_cv_deplibs_check_method=pass_all
6164 sequent)
6165 lt_cv_file_magic_cmd='/bin/file'
6166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6168 sni)
6169 lt_cv_file_magic_cmd='/bin/file'
6170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6171 lt_cv_file_magic_test_file=/lib/libc.so
6173 siemens)
6174 lt_cv_deplibs_check_method=pass_all
6177 lt_cv_deplibs_check_method=pass_all
6179 esac
6182 tpf*)
6183 lt_cv_deplibs_check_method=pass_all
6185 esac
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6189 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6190 file_magic_cmd=$lt_cv_file_magic_cmd
6191 deplibs_check_method=$lt_cv_deplibs_check_method
6192 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ar; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_AR+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$AR"; then
6214 ac_cv_prog_AR="$AR" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_AR="${ac_tool_prefix}ar"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6227 done
6228 done
6229 IFS=$as_save_IFS
6233 AR=$ac_cv_prog_AR
6234 if test -n "$AR"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6236 $as_echo "$AR" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6244 if test -z "$ac_cv_prog_AR"; then
6245 ac_ct_AR=$AR
6246 # Extract the first word of "ar", so it can be a program name with args.
6247 set dummy ar; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_AR"; then
6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_ac_ct_AR="ar"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6269 IFS=$as_save_IFS
6273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274 if test -n "$ac_ct_AR"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6276 $as_echo "$ac_ct_AR" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6282 if test "x$ac_ct_AR" = x; then
6283 AR="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 AR=$ac_ct_AR
6293 else
6294 AR="$ac_cv_prog_AR"
6297 test -z "$AR" && AR=ar
6298 test -z "$AR_FLAGS" && AR_FLAGS=cru
6310 if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}strip; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_STRIP+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -n "$STRIP"; then
6319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6334 IFS=$as_save_IFS
6338 STRIP=$ac_cv_prog_STRIP
6339 if test -n "$STRIP"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6341 $as_echo "$STRIP" >&6; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6349 if test -z "$ac_cv_prog_STRIP"; then
6350 ac_ct_STRIP=$STRIP
6351 # Extract the first word of "strip", so it can be a program name with args.
6352 set dummy strip; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$ac_ct_STRIP"; then
6359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_ac_ct_STRIP="strip"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6379 if test -n "$ac_ct_STRIP"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6381 $as_echo "$ac_ct_STRIP" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6387 if test "x$ac_ct_STRIP" = x; then
6388 STRIP=":"
6389 else
6390 case $cross_compiling:$ac_tool_warned in
6391 yes:)
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396 STRIP=$ac_ct_STRIP
6398 else
6399 STRIP="$ac_cv_prog_STRIP"
6402 test -z "$STRIP" && STRIP=:
6409 if test -n "$ac_tool_prefix"; then
6410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_RANLIB+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 if test -n "$RANLIB"; then
6418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6431 done
6432 done
6433 IFS=$as_save_IFS
6437 RANLIB=$ac_cv_prog_RANLIB
6438 if test -n "$RANLIB"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6440 $as_echo "$RANLIB" >&6; }
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6448 if test -z "$ac_cv_prog_RANLIB"; then
6449 ac_ct_RANLIB=$RANLIB
6450 # Extract the first word of "ranlib", so it can be a program name with args.
6451 set dummy ranlib; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$ac_ct_RANLIB"; then
6458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_ac_ct_RANLIB="ranlib"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6471 done
6472 done
6473 IFS=$as_save_IFS
6477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6478 if test -n "$ac_ct_RANLIB"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6480 $as_echo "$ac_ct_RANLIB" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6486 if test "x$ac_ct_RANLIB" = x; then
6487 RANLIB=":"
6488 else
6489 case $cross_compiling:$ac_tool_warned in
6490 yes:)
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493 ac_tool_warned=yes ;;
6494 esac
6495 RANLIB=$ac_ct_RANLIB
6497 else
6498 RANLIB="$ac_cv_prog_RANLIB"
6501 test -z "$RANLIB" && RANLIB=:
6508 # Determine commands to create old-style static archives.
6509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6510 old_postinstall_cmds='chmod 644 $oldlib'
6511 old_postuninstall_cmds=
6513 if test -n "$RANLIB"; then
6514 case $host_os in
6515 openbsd*)
6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6521 esac
6522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6525 case $host_os in
6526 darwin*)
6527 lock_old_archive_extraction=yes ;;
6529 lock_old_archive_extraction=no ;;
6530 esac
6570 # If no C compiler was specified, use CC.
6571 LTCC=${LTCC-"$CC"}
6573 # If no C compiler flags were specified, use CFLAGS.
6574 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6576 # Allow CC to be a program name with arguments.
6577 compiler=$CC
6580 # Check for command to grab the raw symbol name followed by C symbol from nm.
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6582 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6583 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6587 # These are sane defaults that work on at least a few old systems.
6588 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6590 # Character class describing NM global symbol codes.
6591 symcode='[BCDEGRST]'
6593 # Regexp to match symbols that can be accessed directly from C.
6594 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6596 # Define system-specific variables.
6597 case $host_os in
6598 aix*)
6599 symcode='[BCDT]'
6601 cygwin* | mingw* | pw32* | cegcc*)
6602 symcode='[ABCDGISTW]'
6604 hpux*)
6605 if test "$host_cpu" = ia64; then
6606 symcode='[ABCDEGRST]'
6609 irix* | nonstopux*)
6610 symcode='[BCDEGRST]'
6612 osf*)
6613 symcode='[BCDEGQRST]'
6615 solaris*)
6616 symcode='[BDRT]'
6618 sco3.2v5*)
6619 symcode='[DT]'
6621 sysv4.2uw2*)
6622 symcode='[DT]'
6624 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6625 symcode='[ABDT]'
6627 sysv4)
6628 symcode='[DFNSTU]'
6630 esac
6632 # If we're using GNU nm, then use its standard symbol codes.
6633 case `$NM -V 2>&1` in
6634 *GNU* | *'with BFD'*)
6635 symcode='[ABCDGIRSTW]' ;;
6636 esac
6638 # Transform an extracted symbol line into a proper C declaration.
6639 # Some systems (esp. on ia64) link data and code symbols differently,
6640 # so use this general approach.
6641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6643 # Transform an extracted symbol line into symbol name and symbol address
6644 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6645 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'"
6647 # Handle CRLF in mingw tool chain
6648 opt_cr=
6649 case $build_os in
6650 mingw*)
6651 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6653 esac
6655 # Try without a prefix underscore, then with it.
6656 for ac_symprfx in "" "_"; do
6658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6659 symxfrm="\\1 $ac_symprfx\\2 \\2"
6661 # Write the raw and C identifiers.
6662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6663 # Fake it for dumpbin and say T for any non-static function
6664 # and D for any global variable.
6665 # Also find C++ and __fastcall symbols from MSVC++,
6666 # which start with @ or ?.
6667 lt_cv_sys_global_symbol_pipe="$AWK '"\
6668 " {last_section=section; section=\$ 3};"\
6669 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6670 " \$ 0!~/External *\|/{next};"\
6671 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6672 " {if(hide[section]) next};"\
6673 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6674 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6675 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6676 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6677 " ' prfx=^$ac_symprfx"
6678 else
6679 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6682 # Check to see that the pipe works correctly.
6683 pipe_works=no
6685 rm -f conftest*
6686 cat > conftest.$ac_ext <<_LT_EOF
6687 #ifdef __cplusplus
6688 extern "C" {
6689 #endif
6690 char nm_test_var;
6691 void nm_test_func(void);
6692 void nm_test_func(void){}
6693 #ifdef __cplusplus
6695 #endif
6696 int main(){nm_test_var='a';nm_test_func();return(0);}
6697 _LT_EOF
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700 (eval $ac_compile) 2>&5
6701 ac_status=$?
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; }; then
6704 # Now try to grab the symbols.
6705 nlist=conftest.nm
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6707 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; } && test -s "$nlist"; then
6711 # Try sorting and uniquifying the output.
6712 if sort "$nlist" | uniq > "$nlist"T; then
6713 mv -f "$nlist"T "$nlist"
6714 else
6715 rm -f "$nlist"T
6718 # Make sure that we snagged all the symbols we need.
6719 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6720 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6721 cat <<_LT_EOF > conftest.$ac_ext
6722 #ifdef __cplusplus
6723 extern "C" {
6724 #endif
6726 _LT_EOF
6727 # Now generate the symbol file.
6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6730 cat <<_LT_EOF >> conftest.$ac_ext
6732 /* The mapping between symbol names and symbols. */
6733 const struct {
6734 const char *name;
6735 void *address;
6737 lt__PROGRAM__LTX_preloaded_symbols[] =
6739 { "@PROGRAM@", (void *) 0 },
6740 _LT_EOF
6741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6742 cat <<\_LT_EOF >> conftest.$ac_ext
6743 {0, (void *) 0}
6746 /* This works around a problem in FreeBSD linker */
6747 #ifdef FREEBSD_WORKAROUND
6748 static const void *lt_preloaded_setup() {
6749 return lt__PROGRAM__LTX_preloaded_symbols;
6751 #endif
6753 #ifdef __cplusplus
6755 #endif
6756 _LT_EOF
6757 # Now try linking the two files.
6758 mv conftest.$ac_objext conftstm.$ac_objext
6759 lt_save_LIBS="$LIBS"
6760 lt_save_CFLAGS="$CFLAGS"
6761 LIBS="conftstm.$ac_objext"
6762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6768 pipe_works=yes
6770 LIBS="$lt_save_LIBS"
6771 CFLAGS="$lt_save_CFLAGS"
6772 else
6773 echo "cannot find nm_test_func in $nlist" >&5
6775 else
6776 echo "cannot find nm_test_var in $nlist" >&5
6778 else
6779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6781 else
6782 echo "$progname: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 rm -rf conftest* conftst*
6787 # Do not use the global_symbol_pipe unless it works.
6788 if test "$pipe_works" = yes; then
6789 break
6790 else
6791 lt_cv_sys_global_symbol_pipe=
6793 done
6797 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6798 lt_cv_sys_global_symbol_to_cdecl=
6800 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6802 $as_echo "failed" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6805 $as_echo "ok" >&6; }
6830 # Check whether --enable-libtool-lock was given.
6831 if test "${enable_libtool_lock+set}" = set; then :
6832 enableval=$enable_libtool_lock;
6835 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6837 # Some flags need to be propagated to the compiler or linker for good
6838 # libtool support.
6839 case $host in
6840 ia64-*-hpux*)
6841 # Find out which ABI we are using.
6842 echo 'int i;' > conftest.$ac_ext
6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }; then
6848 case `/usr/bin/file conftest.$ac_objext` in
6849 *ELF-32*)
6850 HPUX_IA64_MODE="32"
6852 *ELF-64*)
6853 HPUX_IA64_MODE="64"
6855 esac
6857 rm -rf conftest*
6859 *-*-irix6*)
6860 # Find out which ABI we are using.
6861 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6863 (eval $ac_compile) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }; then
6867 if test "$lt_cv_prog_gnu_ld" = yes; then
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -melf32bsmip"
6872 *N32*)
6873 LD="${LD-ld} -melf32bmipn32"
6875 *64-bit*)
6876 LD="${LD-ld} -melf64bmip"
6878 esac
6879 else
6880 case `/usr/bin/file conftest.$ac_objext` in
6881 *32-bit*)
6882 LD="${LD-ld} -32"
6884 *N32*)
6885 LD="${LD-ld} -n32"
6887 *64-bit*)
6888 LD="${LD-ld} -64"
6890 esac
6893 rm -rf conftest*
6896 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6897 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6898 # Find out which ABI we are using.
6899 echo 'int i;' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 case `/usr/bin/file conftest.o` in
6906 *32-bit*)
6907 case $host in
6908 x86_64-*kfreebsd*-gnu)
6909 LD="${LD-ld} -m elf_i386_fbsd"
6911 x86_64-*linux*)
6912 case `/usr/bin/file conftest.o` in
6913 *x86-64*)
6914 LD="${LD-ld} -m elf32_x86_64"
6917 LD="${LD-ld} -m elf_i386"
6919 esac
6921 powerpc64le-*linux*)
6922 LD="${LD-ld} -m elf32lppclinux"
6924 powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6927 s390x-*linux*)
6928 LD="${LD-ld} -m elf_s390"
6930 sparc64-*linux*)
6931 LD="${LD-ld} -m elf32_sparc"
6933 esac
6935 *64-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_x86_64"
6943 powerpcle-*linux*)
6944 LD="${LD-ld} -m elf64lppc"
6946 powerpc-*linux*)
6947 LD="${LD-ld} -m elf64ppc"
6949 s390*-*linux*|s390*-*tpf*)
6950 LD="${LD-ld} -m elf64_s390"
6952 sparc*-*linux*)
6953 LD="${LD-ld} -m elf64_sparc"
6955 esac
6957 esac
6959 rm -rf conftest*
6962 *-*-sco3.2v5*)
6963 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6964 SAVE_CFLAGS="$CFLAGS"
6965 CFLAGS="$CFLAGS -belf"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6967 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6968 if ${lt_cv_cc_needs_belf+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6981 main ()
6985 return 0;
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989 lt_cv_cc_needs_belf=yes
6990 else
6991 lt_cv_cc_needs_belf=no
6993 rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 ac_ext=c
6996 ac_cpp='$CPP $CPPFLAGS'
6997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7003 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7006 CFLAGS="$SAVE_CFLAGS"
7009 sparc*-*solaris*)
7010 # Find out which ABI we are using.
7011 echo 'int i;' > conftest.$ac_ext
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013 (eval $ac_compile) 2>&5
7014 ac_status=$?
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }; then
7017 case `/usr/bin/file conftest.o` in
7018 *64-bit*)
7019 case $lt_cv_prog_gnu_ld in
7020 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7023 LD="${LD-ld} -64"
7026 esac
7028 esac
7030 rm -rf conftest*
7032 esac
7034 need_locks="$enable_libtool_lock"
7037 case $host_os in
7038 rhapsody* | darwin*)
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$DSYMUTIL"; then
7048 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7061 done
7062 done
7063 IFS=$as_save_IFS
7067 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7068 if test -n "$DSYMUTIL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7070 $as_echo "$DSYMUTIL" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7078 if test -z "$ac_cv_prog_DSYMUTIL"; then
7079 ac_ct_DSYMUTIL=$DSYMUTIL
7080 # Extract the first word of "dsymutil", so it can be a program name with args.
7081 set dummy dsymutil; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 if test -n "$ac_ct_DSYMUTIL"; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7103 IFS=$as_save_IFS
7107 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7110 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7111 else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7116 if test "x$ac_ct_DSYMUTIL" = x; then
7117 DSYMUTIL=":"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120 yes:)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7124 esac
7125 DSYMUTIL=$ac_ct_DSYMUTIL
7127 else
7128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_NMEDIT+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 if test -n "$NMEDIT"; then
7140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7153 done
7154 done
7155 IFS=$as_save_IFS
7159 NMEDIT=$ac_cv_prog_NMEDIT
7160 if test -n "$NMEDIT"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7162 $as_echo "$NMEDIT" >&6; }
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7170 if test -z "$ac_cv_prog_NMEDIT"; then
7171 ac_ct_NMEDIT=$NMEDIT
7172 # Extract the first word of "nmedit", so it can be a program name with args.
7173 set dummy nmedit; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$ac_ct_NMEDIT"; then
7180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7193 done
7194 done
7195 IFS=$as_save_IFS
7199 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7200 if test -n "$ac_ct_NMEDIT"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7202 $as_echo "$ac_ct_NMEDIT" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7208 if test "x$ac_ct_NMEDIT" = x; then
7209 NMEDIT=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217 NMEDIT=$ac_ct_NMEDIT
7219 else
7220 NMEDIT="$ac_cv_prog_NMEDIT"
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_LIPO+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$LIPO"; then
7232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7251 LIPO=$ac_cv_prog_LIPO
7252 if test -n "$LIPO"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7254 $as_echo "$LIPO" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$ac_cv_prog_LIPO"; then
7263 ac_ct_LIPO=$LIPO
7264 # Extract the first word of "lipo", so it can be a program name with args.
7265 set dummy lipo; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$ac_ct_LIPO"; then
7272 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_LIPO="lipo"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7291 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7292 if test -n "$ac_ct_LIPO"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7294 $as_echo "$ac_ct_LIPO" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$ac_ct_LIPO" = x; then
7301 LIPO=":"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304 yes:)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7308 esac
7309 LIPO=$ac_ct_LIPO
7311 else
7312 LIPO="$ac_cv_prog_LIPO"
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}otool; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_OTOOL+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -n "$OTOOL"; then
7324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7337 done
7338 done
7339 IFS=$as_save_IFS
7343 OTOOL=$ac_cv_prog_OTOOL
7344 if test -n "$OTOOL"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7346 $as_echo "$OTOOL" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_OTOOL"; then
7355 ac_ct_OTOOL=$OTOOL
7356 # Extract the first word of "otool", so it can be a program name with args.
7357 set dummy otool; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 if test -n "$ac_ct_OTOOL"; then
7364 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_ac_ct_OTOOL="otool"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7377 done
7378 done
7379 IFS=$as_save_IFS
7383 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7384 if test -n "$ac_ct_OTOOL"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7386 $as_echo "$ac_ct_OTOOL" >&6; }
7387 else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_OTOOL" = x; then
7393 OTOOL=":"
7394 else
7395 case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401 OTOOL=$ac_ct_OTOOL
7403 else
7404 OTOOL="$ac_cv_prog_OTOOL"
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_OTOOL64+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$OTOOL64"; then
7416 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7435 OTOOL64=$ac_cv_prog_OTOOL64
7436 if test -n "$OTOOL64"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7438 $as_echo "$OTOOL64" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_OTOOL64"; then
7447 ac_ct_OTOOL64=$OTOOL64
7448 # Extract the first word of "otool64", so it can be a program name with args.
7449 set dummy otool64; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$ac_ct_OTOOL64"; then
7456 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_OTOOL64="otool64"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7476 if test -n "$ac_ct_OTOOL64"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7478 $as_echo "$ac_ct_OTOOL64" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_OTOOL64" = x; then
7485 OTOOL64=":"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493 OTOOL64=$ac_ct_OTOOL64
7495 else
7496 OTOOL64="$ac_cv_prog_OTOOL64"
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7526 $as_echo_n "checking for -single_module linker flag... " >&6; }
7527 if ${lt_cv_apple_cc_single_mod+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 lt_cv_apple_cc_single_mod=no
7531 if test -z "${LT_MULTI_MODULE}"; then
7532 # By default we will add the -single_module flag. You can override
7533 # by either setting the environment variable LT_MULTI_MODULE
7534 # non-empty at configure time, or by adding -multi_module to the
7535 # link flags.
7536 rm -rf libconftest.dylib*
7537 echo "int foo(void){return 1;}" > conftest.c
7538 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7539 -dynamiclib -Wl,-single_module conftest.c" >&5
7540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7541 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7542 _lt_result=$?
7543 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7544 lt_cv_apple_cc_single_mod=yes
7545 else
7546 cat conftest.err >&5
7548 rm -rf libconftest.dylib*
7549 rm -f conftest.*
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7553 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7555 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7556 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 lt_cv_ld_exported_symbols_list=no
7560 save_LDFLAGS=$LDFLAGS
7561 echo "_main" > conftest.sym
7562 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7567 main ()
7571 return 0;
7573 _ACEOF
7574 if ac_fn_c_try_link "$LINENO"; then :
7575 lt_cv_ld_exported_symbols_list=yes
7576 else
7577 lt_cv_ld_exported_symbols_list=no
7579 rm -f core conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7581 LDFLAGS="$save_LDFLAGS"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7585 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7587 $as_echo_n "checking for -force_load linker flag... " >&6; }
7588 if ${lt_cv_ld_force_load+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 lt_cv_ld_force_load=no
7592 cat > conftest.c << _LT_EOF
7593 int forced_loaded() { return 2;}
7594 _LT_EOF
7595 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7596 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7597 echo "$AR cru libconftest.a conftest.o" >&5
7598 $AR cru libconftest.a conftest.o 2>&5
7599 cat > conftest.c << _LT_EOF
7600 int main() { return 0;}
7601 _LT_EOF
7602 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7603 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7604 _lt_result=$?
7605 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7606 lt_cv_ld_force_load=yes
7607 else
7608 cat conftest.err >&5
7610 rm -f conftest.err libconftest.a conftest conftest.c
7611 rm -rf conftest.dSYM
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7615 $as_echo "$lt_cv_ld_force_load" >&6; }
7616 case $host_os in
7617 rhapsody* | darwin1.[012])
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7619 darwin1.*)
7620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7621 darwin*) # darwin 5.x on
7622 # if running on 10.5 or later, the deployment target defaults
7623 # to the OS version, if on x86, and 10.4, the deployment
7624 # target defaults to 10.4. Don't you love it?
7625 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7626 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7628 10.[012][,.]*)
7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630 10.*)
7631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7632 esac
7634 esac
7635 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7636 _lt_dar_single_mod='$single_module'
7638 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7639 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7640 else
7641 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7643 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7644 _lt_dsymutil='~$DSYMUTIL $lib || :'
7645 else
7646 _lt_dsymutil=
7649 esac
7651 ac_ext=c
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7658 # On Suns, sometimes $CPP names a directory.
7659 if test -n "$CPP" && test -d "$CPP"; then
7660 CPP=
7662 if test -z "$CPP"; then
7663 if ${ac_cv_prog_CPP+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 # Double quotes because CPP needs to be expanded
7667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7669 ac_preproc_ok=false
7670 for ac_c_preproc_warn_flag in '' yes
7672 # Use a header file that comes with gcc, so configuring glibc
7673 # with a fresh cross-compiler works.
7674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675 # <limits.h> exists even on freestanding compilers.
7676 # On the NeXT, cc -E runs the code through the compiler's parser,
7677 # not just through cpp. "Syntax error" is here to catch this case.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685 Syntax error
7686 _ACEOF
7687 if ac_fn_c_try_cpp "$LINENO"; then :
7689 else
7690 # Broken: fails on valid input.
7691 continue
7693 rm -f conftest.err conftest.i conftest.$ac_ext
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <ac_nonexistent.h>
7700 _ACEOF
7701 if ac_fn_c_try_cpp "$LINENO"; then :
7702 # Broken: success on invalid input.
7703 continue
7704 else
7705 # Passes both tests.
7706 ac_preproc_ok=:
7707 break
7709 rm -f conftest.err conftest.i conftest.$ac_ext
7711 done
7712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7713 rm -f conftest.i conftest.err conftest.$ac_ext
7714 if $ac_preproc_ok; then :
7715 break
7718 done
7719 ac_cv_prog_CPP=$CPP
7722 CPP=$ac_cv_prog_CPP
7723 else
7724 ac_cv_prog_CPP=$CPP
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7727 $as_echo "$CPP" >&6; }
7728 ac_preproc_ok=false
7729 for ac_c_preproc_warn_flag in '' yes
7731 # Use a header file that comes with gcc, so configuring glibc
7732 # with a fresh cross-compiler works.
7733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 # <limits.h> exists even on freestanding compilers.
7735 # On the NeXT, cc -E runs the code through the compiler's parser,
7736 # not just through cpp. "Syntax error" is here to catch this case.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #ifdef __STDC__
7740 # include <limits.h>
7741 #else
7742 # include <assert.h>
7743 #endif
7744 Syntax error
7745 _ACEOF
7746 if ac_fn_c_try_cpp "$LINENO"; then :
7748 else
7749 # Broken: fails on valid input.
7750 continue
7752 rm -f conftest.err conftest.i conftest.$ac_ext
7754 # OK, works on sane cases. Now check whether nonexistent headers
7755 # can be detected and how.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 #include <ac_nonexistent.h>
7759 _ACEOF
7760 if ac_fn_c_try_cpp "$LINENO"; then :
7761 # Broken: success on invalid input.
7762 continue
7763 else
7764 # Passes both tests.
7765 ac_preproc_ok=:
7766 break
7768 rm -f conftest.err conftest.i conftest.$ac_ext
7770 done
7771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7772 rm -f conftest.i conftest.err conftest.$ac_ext
7773 if $ac_preproc_ok; then :
7775 else
7776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7778 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7779 See \`config.log' for more details" "$LINENO" 5; }
7782 ac_ext=c
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7790 $as_echo_n "checking for ANSI C header files... " >&6; }
7791 if ${ac_cv_header_stdc+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <stdlib.h>
7797 #include <stdarg.h>
7798 #include <string.h>
7799 #include <float.h>
7802 main ()
7806 return 0;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_header_stdc=yes
7811 else
7812 ac_cv_header_stdc=no
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 if test $ac_cv_header_stdc = yes; then
7817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 #include <string.h>
7822 _ACEOF
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "memchr" >/dev/null 2>&1; then :
7826 else
7827 ac_cv_header_stdc=no
7829 rm -f conftest*
7833 if test $ac_cv_header_stdc = yes; then
7834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <stdlib.h>
7839 _ACEOF
7840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "free" >/dev/null 2>&1; then :
7843 else
7844 ac_cv_header_stdc=no
7846 rm -f conftest*
7850 if test $ac_cv_header_stdc = yes; then
7851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7852 if test "$cross_compiling" = yes; then :
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #include <ctype.h>
7858 #include <stdlib.h>
7859 #if ((' ' & 0x0FF) == 0x020)
7860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7862 #else
7863 # define ISLOWER(c) \
7864 (('a' <= (c) && (c) <= 'i') \
7865 || ('j' <= (c) && (c) <= 'r') \
7866 || ('s' <= (c) && (c) <= 'z'))
7867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7868 #endif
7870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7872 main ()
7874 int i;
7875 for (i = 0; i < 256; i++)
7876 if (XOR (islower (i), ISLOWER (i))
7877 || toupper (i) != TOUPPER (i))
7878 return 2;
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_run "$LINENO"; then :
7884 else
7885 ac_cv_header_stdc=no
7887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7888 conftest.$ac_objext conftest.beam conftest.$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7894 $as_echo "$ac_cv_header_stdc" >&6; }
7895 if test $ac_cv_header_stdc = yes; then
7897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7903 inttypes.h stdint.h unistd.h
7904 do :
7905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7909 cat >>confdefs.h <<_ACEOF
7910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 _ACEOF
7915 done
7918 for ac_header in dlfcn.h
7919 do :
7920 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7922 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_DLFCN_H 1
7925 _ACEOF
7929 done
7931 if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7933 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_GOC+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test -n "$GOC"; then
7940 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7953 done
7954 done
7955 IFS=$as_save_IFS
7959 GOC=$ac_cv_prog_GOC
7960 if test -n "$GOC"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7962 $as_echo "$GOC" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 if test -z "$ac_cv_prog_GOC"; then
7971 ac_ct_GOC=$GOC
7972 # Extract the first word of "gccgo", so it can be a program name with args.
7973 set dummy gccgo; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$ac_ct_GOC"; then
7980 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_ac_ct_GOC="gccgo"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7999 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
8000 if test -n "$ac_ct_GOC"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8002 $as_echo "$ac_ct_GOC" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8008 if test "x$ac_ct_GOC" = x; then
8009 GOC=""
8010 else
8011 case $cross_compiling:$ac_tool_warned in
8012 yes:)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8016 esac
8017 GOC=$ac_ct_GOC
8019 else
8020 GOC="$ac_cv_prog_GOC"
8028 # Set options
8033 enable_win32_dll=no
8036 # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8039 case $enableval in
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8043 enable_shared=no
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8047 IFS="$lt_save_ifs"
8048 if test "X$pkg" = "X$p"; then
8049 enable_shared=yes
8051 done
8052 IFS="$lt_save_ifs"
8054 esac
8055 else
8056 enable_shared=yes
8067 # Check whether --enable-static was given.
8068 if test "${enable_static+set}" = set; then :
8069 enableval=$enable_static; p=${PACKAGE-default}
8070 case $enableval in
8071 yes) enable_static=yes ;;
8072 no) enable_static=no ;;
8074 enable_static=no
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 for pkg in $enableval; do
8078 IFS="$lt_save_ifs"
8079 if test "X$pkg" = "X$p"; then
8080 enable_static=yes
8082 done
8083 IFS="$lt_save_ifs"
8085 esac
8086 else
8087 enable_static=yes
8099 # Check whether --with-pic was given.
8100 if test "${with_pic+set}" = set; then :
8101 withval=$with_pic; pic_mode="$withval"
8102 else
8103 pic_mode=default
8107 test -z "$pic_mode" && pic_mode=default
8115 # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117 enableval=$enable_fast_install; p=${PACKAGE-default}
8118 case $enableval in
8119 yes) enable_fast_install=yes ;;
8120 no) enable_fast_install=no ;;
8122 enable_fast_install=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for pkg in $enableval; do
8126 IFS="$lt_save_ifs"
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install=yes
8130 done
8131 IFS="$lt_save_ifs"
8133 esac
8134 else
8135 enable_fast_install=yes
8148 # This can be used to rebuild libtool when needed
8149 LIBTOOL_DEPS="$ltmain"
8151 # Always use our own libtool.
8152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8179 test -z "$LN_S" && LN_S="ln -s"
8194 if test -n "${ZSH_VERSION+set}" ; then
8195 setopt NO_GLOB_SUBST
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8199 $as_echo_n "checking for objdir... " >&6; }
8200 if ${lt_cv_objdir+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 rm -f .libs 2>/dev/null
8204 mkdir .libs 2>/dev/null
8205 if test -d .libs; then
8206 lt_cv_objdir=.libs
8207 else
8208 # MS-DOS does not allow filenames that begin with a dot.
8209 lt_cv_objdir=_libs
8211 rmdir .libs 2>/dev/null
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8214 $as_echo "$lt_cv_objdir" >&6; }
8215 objdir=$lt_cv_objdir
8221 cat >>confdefs.h <<_ACEOF
8222 #define LT_OBJDIR "$lt_cv_objdir/"
8223 _ACEOF
8228 case $host_os in
8229 aix3*)
8230 # AIX sometimes has problems with the GCC collect2 program. For some
8231 # reason, if we set the COLLECT_NAMES environment variable, the problems
8232 # vanish in a puff of smoke.
8233 if test "X${COLLECT_NAMES+set}" != Xset; then
8234 COLLECT_NAMES=
8235 export COLLECT_NAMES
8238 esac
8240 # Global variables:
8241 ofile=libtool
8242 can_build_shared=yes
8244 # All known linkers require a `.a' archive for static linking (except MSVC,
8245 # which needs '.lib').
8246 libext=a
8248 with_gnu_ld="$lt_cv_prog_gnu_ld"
8250 old_CC="$CC"
8251 old_CFLAGS="$CFLAGS"
8253 # Set sane defaults for various variables
8254 test -z "$CC" && CC=cc
8255 test -z "$LTCC" && LTCC=$CC
8256 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8257 test -z "$LD" && LD=ld
8258 test -z "$ac_objext" && ac_objext=o
8260 for cc_temp in $compiler""; do
8261 case $cc_temp in
8262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8264 \-*) ;;
8265 *) break;;
8266 esac
8267 done
8268 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8271 # Only perform the check for file, if the check method requires it
8272 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8273 case $deplibs_check_method in
8274 file_magic*)
8275 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8277 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8278 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 case $MAGIC_CMD in
8282 [\\/*] | ?:[\\/]*)
8283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8286 lt_save_MAGIC_CMD="$MAGIC_CMD"
8287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8289 for ac_dir in $ac_dummy; do
8290 IFS="$lt_save_ifs"
8291 test -z "$ac_dir" && ac_dir=.
8292 if test -f $ac_dir/${ac_tool_prefix}file; then
8293 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8294 if test -n "$file_magic_test_file"; then
8295 case $deplibs_check_method in
8296 "file_magic "*)
8297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8300 $EGREP "$file_magic_regex" > /dev/null; then
8302 else
8303 cat <<_LT_EOF 1>&2
8305 *** Warning: the command libtool uses to detect shared libraries,
8306 *** $file_magic_cmd, produces output that libtool cannot recognize.
8307 *** The result is that libtool may fail to recognize shared libraries
8308 *** as such. This will affect the creation of libtool libraries that
8309 *** depend on shared libraries, but programs linked with such libtool
8310 *** libraries will work regardless of this problem. Nevertheless, you
8311 *** may want to report the problem to your system manager and/or to
8312 *** bug-libtool@gnu.org
8314 _LT_EOF
8315 fi ;;
8316 esac
8318 break
8320 done
8321 IFS="$lt_save_ifs"
8322 MAGIC_CMD="$lt_save_MAGIC_CMD"
8324 esac
8327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328 if test -n "$MAGIC_CMD"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8330 $as_echo "$MAGIC_CMD" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8340 if test -z "$lt_cv_path_MAGIC_CMD"; then
8341 if test -n "$ac_tool_prefix"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8343 $as_echo_n "checking for file... " >&6; }
8344 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 case $MAGIC_CMD in
8348 [\\/*] | ?:[\\/]*)
8349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352 lt_save_MAGIC_CMD="$MAGIC_CMD"
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8356 IFS="$lt_save_ifs"
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/file; then
8359 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8362 "file_magic "*)
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8368 else
8369 cat <<_LT_EOF 1>&2
8371 *** Warning: the command libtool uses to detect shared libraries,
8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
8373 *** The result is that libtool may fail to recognize shared libraries
8374 *** as such. This will affect the creation of libtool libraries that
8375 *** depend on shared libraries, but programs linked with such libtool
8376 *** libraries will work regardless of this problem. Nevertheless, you
8377 *** may want to report the problem to your system manager and/or to
8378 *** bug-libtool@gnu.org
8380 _LT_EOF
8381 fi ;;
8382 esac
8384 break
8386 done
8387 IFS="$lt_save_ifs"
8388 MAGIC_CMD="$lt_save_MAGIC_CMD"
8390 esac
8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394 if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396 $as_echo "$MAGIC_CMD" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8403 else
8404 MAGIC_CMD=:
8410 esac
8412 # Use C for the default configuration in the libtool script
8414 lt_save_CC="$CC"
8415 ac_ext=c
8416 ac_cpp='$CPP $CPPFLAGS'
8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422 # Source file extension for C test sources.
8423 ac_ext=c
8425 # Object file extension for compiled C test sources.
8426 objext=o
8427 objext=$objext
8429 # Code to be used in simple compile tests
8430 lt_simple_compile_test_code="int some_variable = 0;"
8432 # Code to be used in simple link tests
8433 lt_simple_link_test_code='int main(){return(0);}'
8441 # If no C compiler was specified, use CC.
8442 LTCC=${LTCC-"$CC"}
8444 # If no C compiler flags were specified, use CFLAGS.
8445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8447 # Allow CC to be a program name with arguments.
8448 compiler=$CC
8450 # Save the default compiler, since it gets overwritten when the other
8451 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8452 compiler_DEFAULT=$CC
8454 # save warnings/boilerplate of simple test code
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8458 _lt_compiler_boilerplate=`cat conftest.err`
8459 $RM conftest*
8461 ac_outfile=conftest.$ac_objext
8462 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464 _lt_linker_boilerplate=`cat conftest.err`
8465 $RM -r conftest*
8468 ## CAVEAT EMPTOR:
8469 ## There is no encapsulation within the following macros, do not change
8470 ## the running order or otherwise move them around unless you know exactly
8471 ## what you are doing...
8472 if test -n "$compiler"; then
8474 lt_prog_compiler_no_builtin_flag=
8476 if test "$GCC" = yes; then
8477 case $cc_basename in
8478 nvcc*)
8479 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8481 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8482 esac
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8485 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8486 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 lt_cv_prog_compiler_rtti_exceptions=no
8490 ac_outfile=conftest.$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="-fno-rtti -fno-exceptions"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err)
8504 ac_status=$?
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_rtti_exceptions=yes
8516 $RM conftest*
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8520 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8522 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524 else
8535 lt_prog_compiler_wl=
8536 lt_prog_compiler_pic=
8537 lt_prog_compiler_static=
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8540 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8542 if test "$GCC" = yes; then
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_static='-static'
8546 case $host_os in
8547 aix*)
8548 # All AIX code is PIC.
8549 if test "$host_cpu" = ia64; then
8550 # AIX 5 now supports IA64 processor
8551 lt_prog_compiler_static='-Bstatic'
8553 lt_prog_compiler_pic='-fPIC'
8556 amigaos*)
8557 case $host_cpu in
8558 powerpc)
8559 # see comment about AmigaOS4 .so support
8560 lt_prog_compiler_pic='-fPIC'
8562 m68k)
8563 # FIXME: we need at least 68020 code to build shared libraries, but
8564 # adding the `-m68020' flag to GCC prevents building anything better,
8565 # like `-m68040'.
8566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568 esac
8571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8572 # PIC is the default for these OSes.
8575 mingw* | cygwin* | pw32* | os2* | cegcc*)
8576 # This hack is so that the source file can tell whether it is being
8577 # built for inclusion in a dll (and should export symbols for example).
8578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8579 # (--disable-auto-import) libraries
8580 lt_prog_compiler_pic='-DDLL_EXPORT'
8583 darwin* | rhapsody*)
8584 # PIC is the default on this platform
8585 # Common symbols not allowed in MH_DYLIB files
8586 lt_prog_compiler_pic='-fno-common'
8589 haiku*)
8590 # PIC is the default for Haiku.
8591 # The "-static" flag exists, but is broken.
8592 lt_prog_compiler_static=
8595 hpux*)
8596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8598 # sets the default TLS model and affects inlining.
8599 case $host_cpu in
8600 hppa*64*)
8601 # +Z the default
8604 lt_prog_compiler_pic='-fPIC'
8606 esac
8609 interix[3-9]*)
8610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8611 # Instead, we relocate shared libraries at runtime.
8614 msdosdjgpp*)
8615 # Just because we use GCC doesn't mean we suddenly get shared libraries
8616 # on systems that don't support them.
8617 lt_prog_compiler_can_build_shared=no
8618 enable_shared=no
8621 *nto* | *qnx*)
8622 # QNX uses GNU C++, but need to define -shared option too, otherwise
8623 # it will coredump.
8624 lt_prog_compiler_pic='-fPIC -shared'
8627 sysv4*MP*)
8628 if test -d /usr/nec; then
8629 lt_prog_compiler_pic=-Kconform_pic
8634 lt_prog_compiler_pic='-fPIC'
8636 esac
8638 case $cc_basename in
8639 nvcc*) # Cuda Compiler Driver 2.2
8640 lt_prog_compiler_wl='-Xlinker '
8641 lt_prog_compiler_pic='-Xcompiler -fPIC'
8643 esac
8644 else
8645 # PORTME Check for flag to pass linker flags through the system compiler.
8646 case $host_os in
8647 aix*)
8648 lt_prog_compiler_wl='-Wl,'
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 now supports IA64 processor
8651 lt_prog_compiler_static='-Bstatic'
8652 else
8653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 lt_prog_compiler_pic='-DDLL_EXPORT'
8663 hpux9* | hpux10* | hpux11*)
8664 lt_prog_compiler_wl='-Wl,'
8665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8666 # not for PA HP-UX.
8667 case $host_cpu in
8668 hppa*64*|ia64*)
8669 # +Z the default
8672 lt_prog_compiler_pic='+Z'
8674 esac
8675 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8676 lt_prog_compiler_static='${wl}-a ${wl}archive'
8679 irix5* | irix6* | nonstopux*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # PIC (with -KPIC) is the default.
8682 lt_prog_compiler_static='-non_shared'
8685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8686 case $cc_basename in
8687 # old Intel for x86_64 which still supported -KPIC.
8688 ecc*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-static'
8693 # icc used to be incompatible with GCC.
8694 # ICC 10 doesn't accept -KPIC any more.
8695 icc* | ifort*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-fPIC'
8698 lt_prog_compiler_static='-static'
8700 # Lahey Fortran 8.1.
8701 lf95*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='--shared'
8704 lt_prog_compiler_static='--static'
8706 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8707 # Portland Group compilers (*not* the Pentium gcc compiler,
8708 # which looks to be a dead project)
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-fpic'
8711 lt_prog_compiler_static='-Bstatic'
8713 ccc*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # All Alpha code is PIC.
8716 lt_prog_compiler_static='-non_shared'
8718 xl* | bgxl* | bgf* | mpixl*)
8719 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-qpic'
8722 lt_prog_compiler_static='-qstaticlink'
8725 case `$CC -V 2>&1 | sed 5q` in
8726 *Sun\ F* | *Sun*Fortran*)
8727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 lt_prog_compiler_wl=''
8732 *Sun\ C*)
8733 # Sun C 5.9
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_wl='-Wl,'
8738 esac
8740 esac
8743 newsos6)
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-Bstatic'
8748 *nto* | *qnx*)
8749 # QNX uses GNU C++, but need to define -shared option too, otherwise
8750 # it will coredump.
8751 lt_prog_compiler_pic='-fPIC -shared'
8754 osf3* | osf4* | osf5*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # All OSF/1 code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8760 rdos*)
8761 lt_prog_compiler_static='-non_shared'
8764 solaris*)
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 case $cc_basename in
8768 f77* | f90* | f95*)
8769 lt_prog_compiler_wl='-Qoption ld ';;
8771 lt_prog_compiler_wl='-Wl,';;
8772 esac
8775 sunos4*)
8776 lt_prog_compiler_wl='-Qoption ld '
8777 lt_prog_compiler_pic='-PIC'
8778 lt_prog_compiler_static='-Bstatic'
8781 sysv4 | sysv4.2uw2* | sysv4.3*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8787 sysv4*MP*)
8788 if test -d /usr/nec ;then
8789 lt_prog_compiler_pic='-Kconform_pic'
8790 lt_prog_compiler_static='-Bstatic'
8794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8800 unicos*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_can_build_shared=no
8805 uts4*)
8806 lt_prog_compiler_pic='-pic'
8807 lt_prog_compiler_static='-Bstatic'
8811 lt_prog_compiler_can_build_shared=no
8813 esac
8816 case $host_os in
8817 # For platforms which do not support PIC, -DPIC is meaningless:
8818 *djgpp*)
8819 lt_prog_compiler_pic=
8822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824 esac
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8826 $as_echo "$lt_prog_compiler_pic" >&6; }
8834 # Check to make sure the PIC flag actually works.
8836 if test -n "$lt_prog_compiler_pic"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8838 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8839 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_pic_works=no
8843 ac_outfile=conftest.$ac_objext
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8846 # Insert the option either (1) after the last *FLAGS variable, or
8847 # (2) before a word containing "conftest.", or (3) at the end.
8848 # Note that $ac_compile itself does not contain backslashes and begins
8849 # with a dollar sign (not a hyphen), so the echo should work correctly.
8850 # The option is referenced via a variable to avoid confusing sed.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856 (eval "$lt_compile" 2>conftest.err)
8857 ac_status=$?
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 if (exit $ac_status) && test -s "$ac_outfile"; then
8861 # The compiler can only warn and ignore the option if not recognized
8862 # So say no if there are warnings other than the usual output.
8863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866 lt_cv_prog_compiler_pic_works=yes
8869 $RM conftest*
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8873 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8875 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8876 case $lt_prog_compiler_pic in
8877 "" | " "*) ;;
8878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8879 esac
8880 else
8881 lt_prog_compiler_pic=
8882 lt_prog_compiler_can_build_shared=no
8893 # Check to make sure the static flag actually works.
8895 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8898 if ${lt_cv_prog_compiler_static_works+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 lt_cv_prog_compiler_static_works=no
8902 save_LDFLAGS="$LDFLAGS"
8903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8906 # The linker can only warn and ignore the option if not recognized
8907 # So say no if there are warnings
8908 if test -s conftest.err; then
8909 # Append any errors to the config.log.
8910 cat conftest.err 1>&5
8911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8913 if diff conftest.exp conftest.er2 >/dev/null; then
8914 lt_cv_prog_compiler_static_works=yes
8916 else
8917 lt_cv_prog_compiler_static_works=yes
8920 $RM -r conftest*
8921 LDFLAGS="$save_LDFLAGS"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8925 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8927 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8929 else
8930 lt_prog_compiler_static=
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8941 if ${lt_cv_prog_compiler_c_o+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_c_o=no
8945 $RM -r conftest 2>/dev/null
8946 mkdir conftest
8947 cd conftest
8948 mkdir out
8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951 lt_compiler_flag="-o out/conftest2.$ac_objext"
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 lt_compile=`echo "$ac_compile" | $SED \
8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959 -e 's:$: $lt_compiler_flag:'`
8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961 (eval "$lt_compile" 2>out/conftest.err)
8962 ac_status=$?
8963 cat out/conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966 then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_c_o=yes
8975 chmod u+w . 2>&5
8976 $RM conftest*
8977 # SGI C++ compiler will create directory out/ii_files/ for
8978 # template instantiation
8979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980 $RM out/* && rmdir out
8981 cd ..
8982 $RM -r conftest
8983 $RM conftest*
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8996 if ${lt_cv_prog_compiler_c_o+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 lt_cv_prog_compiler_c_o=no
9000 $RM -r conftest 2>/dev/null
9001 mkdir conftest
9002 cd conftest
9003 mkdir out
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9006 lt_compiler_flag="-o out/conftest2.$ac_objext"
9007 # Insert the option either (1) after the last *FLAGS variable, or
9008 # (2) before a word containing "conftest.", or (3) at the end.
9009 # Note that $ac_compile itself does not contain backslashes and begins
9010 # with a dollar sign (not a hyphen), so the echo should work correctly.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>out/conftest.err)
9017 ac_status=$?
9018 cat out/conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021 then
9022 # The compiler can only warn and ignore the option if not recognized
9023 # So say no if there are warnings
9024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027 lt_cv_prog_compiler_c_o=yes
9030 chmod u+w . 2>&5
9031 $RM conftest*
9032 # SGI C++ compiler will create directory out/ii_files/ for
9033 # template instantiation
9034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035 $RM out/* && rmdir out
9036 cd ..
9037 $RM -r conftest
9038 $RM conftest*
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9047 hard_links="nottested"
9048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9049 # do not overwrite the value of need_locks provided by the user
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9051 $as_echo_n "checking if we can lock with hard links... " >&6; }
9052 hard_links=yes
9053 $RM conftest*
9054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055 touch conftest.a
9056 ln conftest.a conftest.b 2>&5 || hard_links=no
9057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9059 $as_echo "$hard_links" >&6; }
9060 if test "$hard_links" = no; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9063 need_locks=warn
9065 else
9066 need_locks=no
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9075 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9077 runpath_var=
9078 allow_undefined_flag=
9079 always_export_symbols=no
9080 archive_cmds=
9081 archive_expsym_cmds=
9082 compiler_needs_object=no
9083 enable_shared_with_static_runtimes=no
9084 export_dynamic_flag_spec=
9085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9086 hardcode_automatic=no
9087 hardcode_direct=no
9088 hardcode_direct_absolute=no
9089 hardcode_libdir_flag_spec=
9090 hardcode_libdir_flag_spec_ld=
9091 hardcode_libdir_separator=
9092 hardcode_minus_L=no
9093 hardcode_shlibpath_var=unsupported
9094 inherit_rpath=no
9095 link_all_deplibs=unknown
9096 module_cmds=
9097 module_expsym_cmds=
9098 old_archive_from_new_cmds=
9099 old_archive_from_expsyms_cmds=
9100 thread_safe_flag_spec=
9101 whole_archive_flag_spec=
9102 # include_expsyms should be a list of space-separated symbols to be *always*
9103 # included in the symbol list
9104 include_expsyms=
9105 # exclude_expsyms can be an extended regexp of symbols to exclude
9106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9108 # as well as any symbol that contains `d'.
9109 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9111 # platforms (ab)use it in PIC code, but their linkers get confused if
9112 # the symbol is explicitly referenced. Since portable code cannot
9113 # rely on this symbol name, it's probably fine to never include it in
9114 # preloaded symbol tables.
9115 # Exclude shared library initialization/finalization symbols.
9116 extract_expsyms_cmds=
9118 case $host_os in
9119 cygwin* | mingw* | pw32* | cegcc*)
9120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9121 # When not using gcc, we currently assume that we are using
9122 # Microsoft Visual C++.
9123 if test "$GCC" != yes; then
9124 with_gnu_ld=no
9127 interix*)
9128 # we just hope/assume this is gcc and not c89 (= MSVC++)
9129 with_gnu_ld=yes
9131 openbsd*)
9132 with_gnu_ld=no
9134 esac
9136 ld_shlibs=yes
9138 # On some targets, GNU ld is compatible enough with the native linker
9139 # that we're better off using the native interface for both.
9140 lt_use_gnu_ld_interface=no
9141 if test "$with_gnu_ld" = yes; then
9142 case $host_os in
9143 aix*)
9144 # The AIX port of GNU ld has always aspired to compatibility
9145 # with the native linker. However, as the warning in the GNU ld
9146 # block says, versions before 2.19.5* couldn't really create working
9147 # shared libraries, regardless of the interface used.
9148 case `$LD -v 2>&1` in
9149 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9150 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9151 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9153 lt_use_gnu_ld_interface=yes
9155 esac
9158 lt_use_gnu_ld_interface=yes
9160 esac
9163 if test "$lt_use_gnu_ld_interface" = yes; then
9164 # If archive_cmds runs LD, not CC, wlarc should be empty
9165 wlarc='${wl}'
9167 # Set some defaults for GNU ld with shared library support. These
9168 # are reset later if shared libraries are not supported. Putting them
9169 # here allows them to be overridden if necessary.
9170 runpath_var=LD_RUN_PATH
9171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9172 export_dynamic_flag_spec='${wl}--export-dynamic'
9173 # ancient GNU ld didn't support --whole-archive et. al.
9174 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9176 else
9177 whole_archive_flag_spec=
9179 supports_anon_versioning=no
9180 case `$LD -v 2>&1` in
9181 *GNU\ gold*) supports_anon_versioning=yes ;;
9182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9185 *\ 2.11.*) ;; # other 2.11 versions
9186 *) supports_anon_versioning=yes ;;
9187 esac
9189 # See if GNU ld supports shared libraries.
9190 case $host_os in
9191 aix[3-9]*)
9192 # On AIX/PPC, the GNU linker is very broken
9193 if test "$host_cpu" != ia64; then
9194 ld_shlibs=no
9195 cat <<_LT_EOF 1>&2
9197 *** Warning: the GNU linker, at least up to release 2.19, is reported
9198 *** to be unable to reliably create shared libraries on AIX.
9199 *** Therefore, libtool is disabling shared libraries support. If you
9200 *** really care for shared libraries, you may want to install binutils
9201 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9202 *** You will then need to restart the configuration process.
9204 _LT_EOF
9208 amigaos*)
9209 case $host_cpu in
9210 powerpc)
9211 # see comment about AmigaOS4 .so support
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 archive_expsym_cmds=''
9215 m68k)
9216 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)'
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_minus_L=yes
9220 esac
9223 beos*)
9224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9225 allow_undefined_flag=unsupported
9226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9227 # support --undefined. This deserves some investigation. FIXME
9228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 else
9230 ld_shlibs=no
9234 cygwin* | mingw* | pw32* | cegcc*)
9235 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9236 # as there is no search path for DLLs.
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 export_dynamic_flag_spec='${wl}--export-all-symbols'
9239 allow_undefined_flag=unsupported
9240 always_export_symbols=no
9241 enable_shared_with_static_runtimes=yes
9242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9244 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9246 # If the export-symbols file already is a .def file (1st line
9247 # is EXPORTS), use it as is; otherwise, prepend...
9248 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9249 cp $export_symbols $output_objdir/$soname.def;
9250 else
9251 echo EXPORTS > $output_objdir/$soname.def;
9252 cat $export_symbols >> $output_objdir/$soname.def;
9254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9255 else
9256 ld_shlibs=no
9260 haiku*)
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 link_all_deplibs=yes
9265 interix[3-9]*)
9266 hardcode_direct=no
9267 hardcode_shlibpath_var=no
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269 export_dynamic_flag_spec='${wl}-E'
9270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9271 # Instead, shared libraries are loaded at an image base (0x10000000 by
9272 # default) and relocated if they conflict, which is a slow very memory
9273 # consuming and fragmenting process. To avoid this, we pick a random,
9274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9277 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'
9280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9281 tmp_diet=no
9282 if test "$host_os" = linux-dietlibc; then
9283 case $cc_basename in
9284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9285 esac
9287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9288 && test "$tmp_diet" = no
9289 then
9290 tmp_addflag=
9291 tmp_sharedflag='-shared'
9292 case $cc_basename,$host_cpu in
9293 pgcc*) # Portland Group C compiler
9294 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'
9295 tmp_addflag=' $pic_flag'
9297 pgf77* | pgf90* | pgf95* | pgfortran*)
9298 # Portland Group f77 and f90 compilers
9299 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'
9300 tmp_addflag=' $pic_flag -Mnomain' ;;
9301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9302 tmp_addflag=' -i_dynamic' ;;
9303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9304 tmp_addflag=' -i_dynamic -nofor_main' ;;
9305 ifc* | ifort*) # Intel Fortran compiler
9306 tmp_addflag=' -nofor_main' ;;
9307 lf95*) # Lahey Fortran 8.1
9308 whole_archive_flag_spec=
9309 tmp_sharedflag='--shared' ;;
9310 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9311 tmp_sharedflag='-qmkshrobj'
9312 tmp_addflag= ;;
9313 nvcc*) # Cuda Compiler Driver 2.2
9314 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'
9315 compiler_needs_object=yes
9317 esac
9318 case `$CC -V 2>&1 | sed 5q` in
9319 *Sun\ C*) # Sun C 5.9
9320 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'
9321 compiler_needs_object=yes
9322 tmp_sharedflag='-G' ;;
9323 *Sun\ F*) # Sun Fortran 8.3
9324 tmp_sharedflag='-G' ;;
9325 esac
9326 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328 if test "x$supports_anon_versioning" = xyes; then
9329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9331 echo "local: *; };" >> $output_objdir/$libname.ver~
9332 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9335 case $cc_basename in
9336 xlf* | bgf* | bgxlf* | mpixlf*)
9337 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9338 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9339 hardcode_libdir_flag_spec=
9340 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9341 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9342 if test "x$supports_anon_versioning" = xyes; then
9343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9345 echo "local: *; };" >> $output_objdir/$libname.ver~
9346 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9349 esac
9350 else
9351 ld_shlibs=no
9355 netbsd*)
9356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9357 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9358 wlarc=
9359 else
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 solaris*)
9366 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9367 ld_shlibs=no
9368 cat <<_LT_EOF 1>&2
9370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9371 *** create shared libraries on Solaris systems. Therefore, libtool
9372 *** is disabling shared libraries support. We urge you to upgrade GNU
9373 *** binutils to release 2.9.1 or newer. Another option is to modify
9374 *** your PATH or compiler configuration so that the native linker is
9375 *** used, and then restart.
9377 _LT_EOF
9378 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 else
9382 ld_shlibs=no
9386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9387 case `$LD -v 2>&1` in
9388 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9389 ld_shlibs=no
9390 cat <<_LT_EOF 1>&2
9392 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9393 *** reliably create shared libraries on SCO systems. Therefore, libtool
9394 *** is disabling shared libraries support. We urge you to upgrade GNU
9395 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9396 *** your PATH or compiler configuration so that the native linker is
9397 *** used, and then restart.
9399 _LT_EOF
9402 # For security reasons, it is highly recommended that you always
9403 # use absolute paths for naming shared libraries, and exclude the
9404 # DT_RUNPATH tag from executables and libraries. But doing so
9405 # requires that you compile everything twice, which is a pain.
9406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410 else
9411 ld_shlibs=no
9414 esac
9417 sunos4*)
9418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 wlarc=
9420 hardcode_direct=yes
9421 hardcode_shlibpath_var=no
9425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 else
9429 ld_shlibs=no
9432 esac
9434 if test "$ld_shlibs" = no; then
9435 runpath_var=
9436 hardcode_libdir_flag_spec=
9437 export_dynamic_flag_spec=
9438 whole_archive_flag_spec=
9440 else
9441 # PORTME fill in a description of your system's linker (not GNU ld)
9442 case $host_os in
9443 aix3*)
9444 allow_undefined_flag=unsupported
9445 always_export_symbols=yes
9446 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'
9447 # Note: this linker hardcodes the directories in LIBPATH if there
9448 # are no directories specified by -L.
9449 hardcode_minus_L=yes
9450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9451 # Neither direct hardcoding nor static linking is supported with a
9452 # broken collect2.
9453 hardcode_direct=unsupported
9457 aix[4-9]*)
9458 if test "$host_cpu" = ia64; then
9459 # On IA64, the linker does run time linking by default, so we don't
9460 # have to do anything special.
9461 aix_use_runtimelinking=no
9462 exp_sym_flag='-Bexport'
9463 no_entry_flag=""
9464 else
9465 # If we're using GNU nm, then we don't want the "-C" option.
9466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9467 # Also, AIX nm treats weak defined symbols like other global
9468 # defined symbols, whereas GNU nm marks them as "W".
9469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9470 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'
9471 else
9472 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'
9474 aix_use_runtimelinking=no
9476 # Test if we are trying to use run time linking or normal
9477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9478 # need to do runtime linking.
9479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9480 for ld_flag in $LDFLAGS; do
9481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9482 aix_use_runtimelinking=yes
9483 break
9485 done
9487 esac
9489 exp_sym_flag='-bexport'
9490 no_entry_flag='-bnoentry'
9493 # When large executables or shared objects are built, AIX ld can
9494 # have problems creating the table of contents. If linking a library
9495 # or program results in "error TOC overflow" add -mminimal-toc to
9496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9499 archive_cmds=''
9500 hardcode_direct=yes
9501 hardcode_direct_absolute=yes
9502 hardcode_libdir_separator=':'
9503 link_all_deplibs=yes
9504 file_list_spec='${wl}-f,'
9506 if test "$GCC" = yes; then
9507 case $host_os in aix4.[012]|aix4.[012].*)
9508 # We only want to do this on AIX 4.2 and lower, the check
9509 # below for broken collect2 doesn't work under 4.3+
9510 collect2name=`${CC} -print-prog-name=collect2`
9511 if test -f "$collect2name" &&
9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9513 then
9514 # We have reworked collect2
9516 else
9517 # We have old collect2
9518 hardcode_direct=unsupported
9519 # It fails to find uninstalled libraries when the uninstalled
9520 # path is not listed in the libpath. Setting hardcode_minus_L
9521 # to unsupported forces relinking
9522 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_libdir_separator=
9527 esac
9528 shared_flag='-shared'
9529 if test "$aix_use_runtimelinking" = yes; then
9530 shared_flag="$shared_flag "'${wl}-G'
9532 else
9533 # not using gcc
9534 if test "$host_cpu" = ia64; then
9535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536 # chokes on -Wl,-G. The following line is correct:
9537 shared_flag='-G'
9538 else
9539 if test "$aix_use_runtimelinking" = yes; then
9540 shared_flag='${wl}-G'
9541 else
9542 shared_flag='${wl}-bM:SRE'
9547 export_dynamic_flag_spec='${wl}-bexpall'
9548 # It seems that -bexpall does not export symbols beginning with
9549 # underscore (_), so it is better to generate a list of symbols to export.
9550 always_export_symbols=yes
9551 if test "$aix_use_runtimelinking" = yes; then
9552 # Warning - without using the other runtime loading flags (-brtl),
9553 # -berok will link without error, but may produce a broken library.
9554 allow_undefined_flag='-berok'
9555 # Determine the default libpath from the value encoded in an
9556 # empty executable.
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9561 main ()
9565 return 0;
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9570 lt_aix_libpath_sed='
9571 /Import File Strings/,/^$/ {
9572 /^0/ {
9573 s/^0 *\(.*\)$/\1/
9577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578 # Check for a 64-bit object if we didn't find anything.
9579 if test -z "$aix_libpath"; then
9580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9588 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"
9589 else
9590 if test "$host_cpu" = ia64; then
9591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9592 allow_undefined_flag="-z nodefs"
9593 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"
9594 else
9595 # Determine the default libpath from the value encoded in an
9596 # empty executable.
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9601 main ()
9605 return 0;
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9610 lt_aix_libpath_sed='
9611 /Import File Strings/,/^$/ {
9612 /^0/ {
9613 s/^0 *\(.*\)$/\1/
9617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 # Check for a 64-bit object if we didn't find anything.
9619 if test -z "$aix_libpath"; then
9620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628 # Warning - without using the other run time loading flags,
9629 # -berok will link without error, but may produce a broken library.
9630 no_undefined_flag=' ${wl}-bernotok'
9631 allow_undefined_flag=' ${wl}-berok'
9632 if test "$with_gnu_ld" = yes; then
9633 # We only use this code for GNU lds that support --whole-archive.
9634 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9635 else
9636 # Exported symbols can be pulled into shared objects from archives
9637 whole_archive_flag_spec='$convenience'
9639 archive_cmds_need_lc=yes
9640 # This is similar to how AIX traditionally builds its shared libraries.
9641 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'
9646 amigaos*)
9647 case $host_cpu in
9648 powerpc)
9649 # see comment about AmigaOS4 .so support
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651 archive_expsym_cmds=''
9653 m68k)
9654 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)'
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_minus_L=yes
9658 esac
9661 bsdi[45]*)
9662 export_dynamic_flag_spec=-rdynamic
9665 cygwin* | mingw* | pw32* | cegcc*)
9666 # When not using gcc, we currently assume that we are using
9667 # Microsoft Visual C++.
9668 # hardcode_libdir_flag_spec is actually meaningless, as there is
9669 # no search path for DLLs.
9670 hardcode_libdir_flag_spec=' '
9671 allow_undefined_flag=unsupported
9672 # Tell ltmain to make .lib files, not .a files.
9673 libext=lib
9674 # Tell ltmain to make .dll files, not .so files.
9675 shrext_cmds=".dll"
9676 # FIXME: Setting linknames here is a bad hack.
9677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9678 # The linker will automatically build a .lib file if we build a DLL.
9679 old_archive_from_new_cmds='true'
9680 # FIXME: Should let the user specify the lib program.
9681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9682 fix_srcfile_path='`cygpath -w "$srcfile"`'
9683 enable_shared_with_static_runtimes=yes
9686 darwin* | rhapsody*)
9689 archive_cmds_need_lc=no
9690 hardcode_direct=no
9691 hardcode_automatic=yes
9692 hardcode_shlibpath_var=unsupported
9693 if test "$lt_cv_ld_force_load" = "yes"; then
9694 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\"`'
9695 else
9696 whole_archive_flag_spec=''
9698 link_all_deplibs=yes
9699 allow_undefined_flag="$_lt_dar_allow_undefined"
9700 case $cc_basename in
9701 ifort*) _lt_dar_can_shared=yes ;;
9702 *) _lt_dar_can_shared=$GCC ;;
9703 esac
9704 if test "$_lt_dar_can_shared" = "yes"; then
9705 output_verbose_link_cmd=func_echo_all
9706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9708 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}"
9709 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}"
9711 else
9712 ld_shlibs=no
9717 dgux*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_shlibpath_var=no
9723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9724 # support. Future versions do this automatically, but an explicit c++rt0.o
9725 # does not break anything, and helps significantly (at the cost of a little
9726 # extra space).
9727 freebsd2.2*)
9728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9735 freebsd2.*)
9736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=yes
9738 hardcode_minus_L=yes
9739 hardcode_shlibpath_var=no
9742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9743 freebsd* | dragonfly*)
9744 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_direct=yes
9747 hardcode_shlibpath_var=no
9750 hpux9*)
9751 if test "$GCC" = yes; then
9752 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'
9753 else
9754 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'
9756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
9760 # hardcode_minus_L: Not really in the search PATH,
9761 # but as the default location of the library.
9762 hardcode_minus_L=yes
9763 export_dynamic_flag_spec='${wl}-E'
9766 hpux10*)
9767 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9768 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9772 if test "$with_gnu_ld" = no; then
9773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_flag_spec_ld='+b $libdir'
9775 hardcode_libdir_separator=:
9776 hardcode_direct=yes
9777 hardcode_direct_absolute=yes
9778 export_dynamic_flag_spec='${wl}-E'
9779 # hardcode_minus_L: Not really in the search PATH,
9780 # but as the default location of the library.
9781 hardcode_minus_L=yes
9785 hpux11*)
9786 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9787 case $host_cpu in
9788 hppa*64*)
9789 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 ia64*)
9792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797 esac
9798 else
9799 case $host_cpu in
9800 hppa*64*)
9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 ia64*)
9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808 # Older versions of the 11.00 compiler do not understand -b yet
9809 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9811 $as_echo_n "checking if $CC understands -b... " >&6; }
9812 if ${lt_cv_prog_compiler__b+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 lt_cv_prog_compiler__b=no
9816 save_LDFLAGS="$LDFLAGS"
9817 LDFLAGS="$LDFLAGS -b"
9818 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9820 # The linker can only warn and ignore the option if not recognized
9821 # So say no if there are warnings
9822 if test -s conftest.err; then
9823 # Append any errors to the config.log.
9824 cat conftest.err 1>&5
9825 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9827 if diff conftest.exp conftest.er2 >/dev/null; then
9828 lt_cv_prog_compiler__b=yes
9830 else
9831 lt_cv_prog_compiler__b=yes
9834 $RM -r conftest*
9835 LDFLAGS="$save_LDFLAGS"
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9839 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9841 if test x"$lt_cv_prog_compiler__b" = xyes; then
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 else
9844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848 esac
9850 if test "$with_gnu_ld" = no; then
9851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9852 hardcode_libdir_separator=:
9854 case $host_cpu in
9855 hppa*64*|ia64*)
9856 hardcode_direct=no
9857 hardcode_shlibpath_var=no
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 export_dynamic_flag_spec='${wl}-E'
9864 # hardcode_minus_L: Not really in the search PATH,
9865 # but as the default location of the library.
9866 hardcode_minus_L=yes
9868 esac
9872 irix5* | irix6* | nonstopux*)
9873 if test "$GCC" = yes; then
9874 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'
9875 # Try to use the -exported_symbol ld option, if it does not
9876 # work, assume that -exports_file does not work either and
9877 # implicitly export all symbols.
9878 save_LDFLAGS="$LDFLAGS"
9879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int foo(void) {}
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 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'
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS="$save_LDFLAGS"
9891 else
9892 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'
9893 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'
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 inherit_rpath=yes
9899 link_all_deplibs=yes
9902 netbsd*)
9903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9905 else
9906 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_direct=yes
9910 hardcode_shlibpath_var=no
9913 newsos6)
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_direct=yes
9916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917 hardcode_libdir_separator=:
9918 hardcode_shlibpath_var=no
9921 *nto* | *qnx*)
9924 openbsd*)
9925 if test -f /usr/libexec/ld.so; then
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 hardcode_direct_absolute=yes
9929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933 export_dynamic_flag_spec='${wl}-E'
9934 else
9935 case $host_os in
9936 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-R$libdir'
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9944 esac
9946 else
9947 ld_shlibs=no
9951 os2*)
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_minus_L=yes
9954 allow_undefined_flag=unsupported
9955 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'
9956 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9959 osf3*)
9960 if test "$GCC" = yes; then
9961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9962 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'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 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'
9967 archive_cmds_need_lc='no'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9972 osf4* | osf5*) # as osf3* with the addition of -msym flag
9973 if test "$GCC" = yes; then
9974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9975 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'
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 else
9978 allow_undefined_flag=' -expect_unresolved \*'
9979 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'
9980 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~
9981 $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'
9983 # Both c and cxx compiler support -rpath directly
9984 hardcode_libdir_flag_spec='-rpath $libdir'
9986 archive_cmds_need_lc='no'
9987 hardcode_libdir_separator=:
9990 solaris*)
9991 no_undefined_flag=' -z defs'
9992 if test "$GCC" = yes; then
9993 wlarc='${wl}'
9994 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9996 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9997 else
9998 case `$CC -V 2>&1` in
9999 *"Compilers 5.0"*)
10000 wlarc=''
10001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10006 wlarc='${wl}'
10007 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10009 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10011 esac
10013 hardcode_libdir_flag_spec='-R$libdir'
10014 hardcode_shlibpath_var=no
10015 case $host_os in
10016 solaris2.[0-5] | solaris2.[0-5].*) ;;
10018 # The compiler driver will combine and reorder linker options,
10019 # but understands `-z linker_flag'. GCC discards it without `$wl',
10020 # but is careful enough not to reorder.
10021 # Supported since Solaris 2.6 (maybe 2.5.1?)
10022 if test "$GCC" = yes; then
10023 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10024 else
10025 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10028 esac
10029 link_all_deplibs=yes
10032 sunos4*)
10033 if test "x$host_vendor" = xsequent; then
10034 # Use $CC to link under sequent, because it throws in some extra .o
10035 # files that make .init and .fini sections work.
10036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_libdir_flag_spec='-L$libdir'
10041 hardcode_direct=yes
10042 hardcode_minus_L=yes
10043 hardcode_shlibpath_var=no
10046 sysv4)
10047 case $host_vendor in
10048 sni)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=yes # is this really true???
10052 siemens)
10053 ## LD is ld it makes a PLAMLIB
10054 ## CC just makes a GrossModule.
10055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10056 reload_cmds='$CC -r -o $output$reload_objs'
10057 hardcode_direct=no
10059 motorola)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10063 esac
10064 runpath_var='LD_RUN_PATH'
10065 hardcode_shlibpath_var=no
10068 sysv4.3*)
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_shlibpath_var=no
10071 export_dynamic_flag_spec='-Bexport'
10074 sysv4*MP*)
10075 if test -d /usr/nec; then
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 runpath_var=LD_RUN_PATH
10079 hardcode_runpath_var=yes
10080 ld_shlibs=yes
10084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10085 no_undefined_flag='${wl}-z,text'
10086 archive_cmds_need_lc=no
10087 hardcode_shlibpath_var=no
10088 runpath_var='LD_RUN_PATH'
10090 if test "$GCC" = yes; then
10091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 else
10094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 sysv5* | sco3.2v5* | sco5v6*)
10100 # Note: We can NOT use -z defs as we might desire, because we do not
10101 # link with -lc, and that would cause any symbols used from libc to
10102 # always be unresolved, which means just about no library would
10103 # ever link correctly. If we're not using GNU ld we use -z text
10104 # though, which does catch some bad symbols but isn't as heavy-handed
10105 # as -z defs.
10106 no_undefined_flag='${wl}-z,text'
10107 allow_undefined_flag='${wl}-z,nodefs'
10108 archive_cmds_need_lc=no
10109 hardcode_shlibpath_var=no
10110 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10111 hardcode_libdir_separator=':'
10112 link_all_deplibs=yes
10113 export_dynamic_flag_spec='${wl}-Bexport'
10114 runpath_var='LD_RUN_PATH'
10116 if test "$GCC" = yes; then
10117 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 else
10120 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 uts4*)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_shlibpath_var=no
10132 ld_shlibs=no
10134 esac
10136 if test x$host_vendor = xsni; then
10137 case $host in
10138 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10139 export_dynamic_flag_spec='${wl}-Blargedynsym'
10141 esac
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10146 $as_echo "$ld_shlibs" >&6; }
10147 test "$ld_shlibs" = no && can_build_shared=no
10149 with_gnu_ld=$with_gnu_ld
10166 # Do we need to explicitly link libc?
10168 case "x$archive_cmds_need_lc" in
10169 x|xyes)
10170 # Assume -lc should be added
10171 archive_cmds_need_lc=yes
10173 if test "$enable_shared" = yes && test "$GCC" = yes; then
10174 case $archive_cmds in
10175 *'~'*)
10176 # FIXME: we may have to deal with multi-command sequences.
10178 '$CC '*)
10179 # Test whether the compiler implicitly links with -lc since on some
10180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10181 # to ld, don't add -lc before -lgcc.
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10183 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10184 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 $RM conftest*
10188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10191 (eval $ac_compile) 2>&5
10192 ac_status=$?
10193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194 test $ac_status = 0; } 2>conftest.err; then
10195 soname=conftest
10196 lib=conftest
10197 libobjs=conftest.$ac_objext
10198 deplibs=
10199 wl=$lt_prog_compiler_wl
10200 pic_flag=$lt_prog_compiler_pic
10201 compiler_flags=-v
10202 linker_flags=-v
10203 verstring=
10204 output_objdir=.
10205 libname=conftest
10206 lt_save_allow_undefined_flag=$allow_undefined_flag
10207 allow_undefined_flag=
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10209 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }
10213 then
10214 lt_cv_archive_cmds_need_lc=no
10215 else
10216 lt_cv_archive_cmds_need_lc=yes
10218 allow_undefined_flag=$lt_save_allow_undefined_flag
10219 else
10220 cat conftest.err 1>&5
10222 $RM conftest*
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10226 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10227 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10229 esac
10232 esac
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10391 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10393 if test "$GCC" = yes; then
10394 case $host_os in
10395 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10396 *) lt_awk_arg="/^libraries:/" ;;
10397 esac
10398 case $host_os in
10399 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10400 *) lt_sed_strip_eq="s,=/,/,g" ;;
10401 esac
10402 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10403 case $lt_search_path_spec in
10404 *\;*)
10405 # if the path contains ";" then we assume it to be the separator
10406 # otherwise default to the standard path separator (i.e. ":") - it is
10407 # assumed that no part of a normal pathname contains ";" but that should
10408 # okay in the real world where ";" in dirpaths is itself problematic.
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10414 esac
10415 # Ok, now we have the path, separated by spaces, we can step through it
10416 # and add multilib dir if necessary.
10417 lt_tmp_lt_search_path_spec=
10418 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10419 for lt_sys_path in $lt_search_path_spec; do
10420 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10422 else
10423 test -d "$lt_sys_path" && \
10424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10426 done
10427 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10428 BEGIN {RS=" "; FS="/|\n";} {
10429 lt_foo="";
10430 lt_count=0;
10431 for (lt_i = NF; lt_i > 0; lt_i--) {
10432 if ($lt_i != "" && $lt_i != ".") {
10433 if ($lt_i == "..") {
10434 lt_count++;
10435 } else {
10436 if (lt_count == 0) {
10437 lt_foo="/" $lt_i lt_foo;
10438 } else {
10439 lt_count--;
10444 if (lt_foo != "") { lt_freq[lt_foo]++; }
10445 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10447 # AWK program above erroneously prepends '/' to C:/dos/paths
10448 # for these hosts.
10449 case $host_os in
10450 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10451 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10452 esac
10453 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10454 else
10455 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10457 library_names_spec=
10458 libname_spec='lib$name'
10459 soname_spec=
10460 shrext_cmds=".so"
10461 postinstall_cmds=
10462 postuninstall_cmds=
10463 finish_cmds=
10464 finish_eval=
10465 shlibpath_var=
10466 shlibpath_overrides_runpath=unknown
10467 version_type=none
10468 dynamic_linker="$host_os ld.so"
10469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10470 need_lib_prefix=unknown
10471 hardcode_into_libs=no
10473 # when you set need_version to no, make sure it does not cause -set_version
10474 # flags to be left without arguments
10475 need_version=unknown
10477 case $host_os in
10478 aix3*)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10481 shlibpath_var=LIBPATH
10483 # AIX 3 has no versioning support, so we append a major version to the name.
10484 soname_spec='${libname}${release}${shared_ext}$major'
10487 aix[4-9]*)
10488 version_type=linux
10489 need_lib_prefix=no
10490 need_version=no
10491 hardcode_into_libs=yes
10492 if test "$host_cpu" = ia64; then
10493 # AIX 5 supports IA64
10494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 else
10497 # With GCC up to 2.95.x, collect2 would create an import file
10498 # for dependence libraries. The import file would start with
10499 # the line `#! .'. This would cause the generated library to
10500 # depend on `.', always an invalid library. This was fixed in
10501 # development snapshots of GCC prior to 3.0.
10502 case $host_os in
10503 aix4 | aix4.[01] | aix4.[01].*)
10504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10505 echo ' yes '
10506 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10508 else
10509 can_build_shared=no
10512 esac
10513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10514 # soname into executable. Probably we can add versioning support to
10515 # collect2, so additional links can be useful in future.
10516 if test "$aix_use_runtimelinking" = yes; then
10517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10518 # instead of lib<name>.a to let people know that these are not
10519 # typical AIX shared libraries.
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 else
10522 # We preserve .a as extension for shared libraries through AIX4.2
10523 # and later when we are not doing run time linking.
10524 library_names_spec='${libname}${release}.a $libname.a'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LIBPATH
10531 amigaos*)
10532 case $host_cpu in
10533 powerpc)
10534 # Since July 2007 AmigaOS4 officially supports .so libraries.
10535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 m68k)
10539 library_names_spec='$libname.ixlibrary $libname.a'
10540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10541 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'
10543 esac
10546 beos*)
10547 library_names_spec='${libname}${shared_ext}'
10548 dynamic_linker="$host_os ld.so"
10549 shlibpath_var=LIBRARY_PATH
10552 bsdi[45]*)
10553 version_type=linux
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10561 # the default ld.so.conf also contains /usr/contrib/lib and
10562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10563 # libtool to hard-code these into programs
10566 cygwin* | mingw* | pw32* | cegcc*)
10567 version_type=windows
10568 shrext_cmds=".dll"
10569 need_version=no
10570 need_lib_prefix=no
10572 case $GCC,$host_os in
10573 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10574 library_names_spec='$libname.dll.a'
10575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10576 postinstall_cmds='base_file=`basename \${file}`~
10577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10578 dldir=$destdir/`dirname \$dlpath`~
10579 test -d \$dldir || mkdir -p \$dldir~
10580 $install_prog $dir/$dlname \$dldir/$dlname~
10581 chmod a+x \$dldir/$dlname~
10582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10586 dlpath=$dir/\$dldll~
10587 $RM \$dlpath'
10588 shlibpath_overrides_runpath=yes
10590 case $host_os in
10591 cygwin*)
10592 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10597 mingw* | cegcc*)
10598 # MinGW DLLs use traditional 'lib' prefix
10599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10601 pw32*)
10602 # pw32 DLLs use 'pw' prefix rather than 'lib'
10603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605 esac
10609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10611 esac
10612 dynamic_linker='Win32 ld.exe'
10613 # FIXME: first we should search . and the directory the executable is in
10614 shlibpath_var=PATH
10617 darwin* | rhapsody*)
10618 dynamic_linker="$host_os dyld"
10619 version_type=darwin
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10623 soname_spec='${libname}${release}${major}$shared_ext'
10624 shlibpath_overrides_runpath=yes
10625 shlibpath_var=DYLD_LIBRARY_PATH
10626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10632 dgux*)
10633 version_type=linux
10634 need_lib_prefix=no
10635 need_version=no
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 shlibpath_var=LD_LIBRARY_PATH
10641 freebsd* | dragonfly*)
10642 # DragonFly does not have aout. When/if they implement a new
10643 # versioning mechanism, adjust this.
10644 if test -x /usr/bin/objformat; then
10645 objformat=`/usr/bin/objformat`
10646 else
10647 case $host_os in
10648 freebsd[23].*) objformat=aout ;;
10649 *) objformat=elf ;;
10650 esac
10652 version_type=freebsd-$objformat
10653 case $version_type in
10654 freebsd-elf*)
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 need_version=no
10657 need_lib_prefix=no
10659 freebsd-*)
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10661 need_version=yes
10663 esac
10664 shlibpath_var=LD_LIBRARY_PATH
10665 case $host_os in
10666 freebsd2.*)
10667 shlibpath_overrides_runpath=yes
10669 freebsd3.[01]* | freebsdelf3.[01]*)
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10675 shlibpath_overrides_runpath=no
10676 hardcode_into_libs=yes
10678 *) # from 4.6 on, and DragonFly
10679 shlibpath_overrides_runpath=yes
10680 hardcode_into_libs=yes
10682 esac
10685 gnu*)
10686 version_type=linux
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 hardcode_into_libs=yes
10695 haiku*)
10696 version_type=linux
10697 need_lib_prefix=no
10698 need_version=no
10699 dynamic_linker="$host_os runtime_loader"
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10705 hardcode_into_libs=yes
10708 hpux9* | hpux10* | hpux11*)
10709 # Give a soname corresponding to the major version so that dld.sl refuses to
10710 # link against other versions.
10711 version_type=sunos
10712 need_lib_prefix=no
10713 need_version=no
10714 case $host_cpu in
10715 ia64*)
10716 shrext_cmds='.so'
10717 hardcode_into_libs=yes
10718 dynamic_linker="$host_os dld.so"
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 if test "X$HPUX_IA64_MODE" = X32; then
10724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10725 else
10726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10730 hppa*64*)
10731 shrext_cmds='.sl'
10732 hardcode_into_libs=yes
10733 dynamic_linker="$host_os dld.sl"
10734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10742 shrext_cmds='.sl'
10743 dynamic_linker="$host_os dld.sl"
10744 shlibpath_var=SHLIB_PATH
10745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10749 esac
10750 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10751 postinstall_cmds='chmod 555 $lib'
10752 # or fails outright, so override atomically:
10753 install_override_mode=555
10756 interix[3-9]*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=no
10765 hardcode_into_libs=yes
10768 irix5* | irix6* | nonstopux*)
10769 case $host_os in
10770 nonstopux*) version_type=nonstopux ;;
10772 if test "$lt_cv_prog_gnu_ld" = yes; then
10773 version_type=linux
10774 else
10775 version_type=irix
10776 fi ;;
10777 esac
10778 need_lib_prefix=no
10779 need_version=no
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10782 case $host_os in
10783 irix5* | nonstopux*)
10784 libsuff= shlibsuff=
10787 case $LD in # libtool.m4 will add one of these switches to LD
10788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10789 libsuff= shlibsuff= libmagic=32-bit;;
10790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10791 libsuff=32 shlibsuff=N32 libmagic=N32;;
10792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10794 *) libsuff= shlibsuff= libmagic=never-match;;
10795 esac
10797 esac
10798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10799 shlibpath_overrides_runpath=no
10800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10802 hardcode_into_libs=yes
10805 # No shared lib support for Linux oldld, aout, or coff.
10806 linux*oldld* | linux*aout* | linux*coff*)
10807 dynamic_linker=no
10810 # This must be Linux ELF.
10811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=no
10821 # Some binutils ld are patched to set DT_RUNPATH
10822 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 lt_cv_shlibpath_overrides_runpath=no
10826 save_LDFLAGS=$LDFLAGS
10827 save_libdir=$libdir
10828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10834 main ()
10838 return 0;
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10843 lt_cv_shlibpath_overrides_runpath=yes
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LDFLAGS=$save_LDFLAGS
10849 libdir=$save_libdir
10853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10855 # This implies no fast_install, which is unacceptable.
10856 # Some rework will be needed to allow for fast_install
10857 # before this can be enabled.
10858 hardcode_into_libs=yes
10860 # Append ld.so.conf contents to the search path
10861 if test -f /etc/ld.so.conf; then
10862 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' ' '`
10863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10866 # We used to test for /lib/ld.so.1 and disable shared libraries on
10867 # powerpc, because MkLinux only supported shared libraries with the
10868 # GNU dynamic linker. Since this was broken with cross compilers,
10869 # most powerpc-linux boxes support dynamic linking these days and
10870 # people can always --disable-shared, the test was removed, and we
10871 # assume the GNU/Linux dynamic linker is in use.
10872 dynamic_linker='GNU/Linux ld.so'
10875 netbsd*)
10876 version_type=sunos
10877 need_lib_prefix=no
10878 need_version=no
10879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882 dynamic_linker='NetBSD (a.out) ld.so'
10883 else
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 dynamic_linker='NetBSD ld.elf_so'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10893 newsos6)
10894 version_type=linux
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10900 *nto* | *qnx*)
10901 version_type=qnx
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10909 dynamic_linker='ldqnx.so'
10912 openbsd*)
10913 version_type=sunos
10914 sys_lib_dlsearch_path_spec="/usr/lib"
10915 need_lib_prefix=no
10916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10917 case $host_os in
10918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10919 *) need_version=no ;;
10920 esac
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10925 case $host_os in
10926 openbsd2.[89] | openbsd2.[89].*)
10927 shlibpath_overrides_runpath=no
10930 shlibpath_overrides_runpath=yes
10932 esac
10933 else
10934 shlibpath_overrides_runpath=yes
10938 os2*)
10939 libname_spec='$name'
10940 shrext_cmds=".dll"
10941 need_lib_prefix=no
10942 library_names_spec='$libname${shared_ext} $libname.a'
10943 dynamic_linker='OS/2 ld.exe'
10944 shlibpath_var=LIBPATH
10947 osf3* | osf4* | osf5*)
10948 version_type=osf
10949 need_lib_prefix=no
10950 need_version=no
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10958 rdos*)
10959 dynamic_linker=no
10962 solaris*)
10963 version_type=linux
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 # ldd complains unless libraries are executable
10972 postinstall_cmds='chmod +x $lib'
10975 sunos4*)
10976 version_type=sunos
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=yes
10981 if test "$with_gnu_ld" = yes; then
10982 need_lib_prefix=no
10984 need_version=yes
10987 sysv4 | sysv4.3*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 case $host_vendor in
10993 sni)
10994 shlibpath_overrides_runpath=no
10995 need_lib_prefix=no
10996 runpath_var=LD_RUN_PATH
10998 siemens)
10999 need_lib_prefix=no
11001 motorola)
11002 need_lib_prefix=no
11003 need_version=no
11004 shlibpath_overrides_runpath=no
11005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11007 esac
11010 sysv4*MP*)
11011 if test -d /usr/nec ;then
11012 version_type=linux
11013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11014 soname_spec='$libname${shared_ext}.$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11020 version_type=freebsd-elf
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 hardcode_into_libs=yes
11028 if test "$with_gnu_ld" = yes; then
11029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11030 else
11031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11032 case $host_os in
11033 sco3.2v5*)
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11036 esac
11038 sys_lib_dlsearch_path_spec='/usr/lib'
11041 tpf*)
11042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049 hardcode_into_libs=yes
11052 uts4*)
11053 version_type=linux
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11060 dynamic_linker=no
11062 esac
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11064 $as_echo "$dynamic_linker" >&6; }
11065 test "$dynamic_linker" = no && can_build_shared=no
11067 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11068 if test "$GCC" = yes; then
11069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11072 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11075 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11171 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11172 hardcode_action=
11173 if test -n "$hardcode_libdir_flag_spec" ||
11174 test -n "$runpath_var" ||
11175 test "X$hardcode_automatic" = "Xyes" ; then
11177 # We can hardcode non-existent directories.
11178 if test "$hardcode_direct" != no &&
11179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11180 # have to relink, otherwise we might link with an installed library
11181 # when we should be linking with a yet-to-be-installed one
11182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11183 test "$hardcode_minus_L" != no; then
11184 # Linking always hardcodes the temporary library directory.
11185 hardcode_action=relink
11186 else
11187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11188 hardcode_action=immediate
11190 else
11191 # We cannot hardcode anything, or else we can only hardcode existing
11192 # directories.
11193 hardcode_action=unsupported
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11196 $as_echo "$hardcode_action" >&6; }
11198 if test "$hardcode_action" = relink ||
11199 test "$inherit_rpath" = yes; then
11200 # Fast installation is not supported
11201 enable_fast_install=no
11202 elif test "$shlibpath_overrides_runpath" = yes ||
11203 test "$enable_shared" = no; then
11204 # Fast installation is not necessary
11205 enable_fast_install=needless
11213 if test "x$enable_dlopen" != xyes; then
11214 enable_dlopen=unknown
11215 enable_dlopen_self=unknown
11216 enable_dlopen_self_static=unknown
11217 else
11218 lt_cv_dlopen=no
11219 lt_cv_dlopen_libs=
11221 case $host_os in
11222 beos*)
11223 lt_cv_dlopen="load_add_on"
11224 lt_cv_dlopen_libs=
11225 lt_cv_dlopen_self=yes
11228 mingw* | pw32* | cegcc*)
11229 lt_cv_dlopen="LoadLibrary"
11230 lt_cv_dlopen_libs=
11233 cygwin*)
11234 lt_cv_dlopen="dlopen"
11235 lt_cv_dlopen_libs=
11238 darwin*)
11239 # if libdl is installed we need to link against it
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11241 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11242 if ${ac_cv_lib_dl_dlopen+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 ac_check_lib_save_LIBS=$LIBS
11246 LIBS="-ldl $LIBS"
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 /* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253 #ifdef __cplusplus
11254 extern "C"
11255 #endif
11256 char dlopen ();
11258 main ()
11260 return dlopen ();
11262 return 0;
11264 _ACEOF
11265 if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dl_dlopen=yes
11267 else
11268 ac_cv_lib_dl_dlopen=no
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11276 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278 else
11280 lt_cv_dlopen="dyld"
11281 lt_cv_dlopen_libs=
11282 lt_cv_dlopen_self=yes
11289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11290 if test "x$ac_cv_func_shl_load" = xyes; then :
11291 lt_cv_dlopen="shl_load"
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11294 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11295 if ${ac_cv_lib_dld_shl_load+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-ldld $LIBS"
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char shl_load ();
11311 main ()
11313 return shl_load ();
11315 return 0;
11317 _ACEOF
11318 if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_dld_shl_load=yes
11320 else
11321 ac_cv_lib_dld_shl_load=no
11323 rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11328 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11329 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11331 else
11332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11333 if test "x$ac_cv_func_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen"
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11338 if ${ac_cv_lib_dl_dlopen+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ldl $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dlopen ();
11354 main ()
11356 return dlopen ();
11358 return 0;
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363 else
11364 ac_cv_lib_dl_dlopen=no
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11376 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11377 if ${ac_cv_lib_svld_dlopen+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-lsvld $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char dlopen ();
11393 main ()
11395 return dlopen ();
11397 return 0;
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_svld_dlopen=yes
11402 else
11403 ac_cv_lib_svld_dlopen=no
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11410 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11411 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11415 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11416 if ${ac_cv_lib_dld_dld_link+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldld $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dld_link ();
11432 main ()
11434 return dld_link ();
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dld_dld_link=yes
11441 else
11442 ac_cv_lib_dld_dld_link=no
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11449 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11450 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11470 esac
11472 if test "x$lt_cv_dlopen" != xno; then
11473 enable_dlopen=yes
11474 else
11475 enable_dlopen=no
11478 case $lt_cv_dlopen in
11479 dlopen)
11480 save_CPPFLAGS="$CPPFLAGS"
11481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483 save_LDFLAGS="$LDFLAGS"
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486 save_LIBS="$LIBS"
11487 LIBS="$lt_cv_dlopen_libs $LIBS"
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11490 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11491 if ${lt_cv_dlopen_self+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 if test "$cross_compiling" = yes; then :
11495 lt_cv_dlopen_self=cross
11496 else
11497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498 lt_status=$lt_dlunknown
11499 cat > conftest.$ac_ext <<_LT_EOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11503 #if HAVE_DLFCN_H
11504 #include <dlfcn.h>
11505 #endif
11507 #include <stdio.h>
11509 #ifdef RTLD_GLOBAL
11510 # define LT_DLGLOBAL RTLD_GLOBAL
11511 #else
11512 # ifdef DL_GLOBAL
11513 # define LT_DLGLOBAL DL_GLOBAL
11514 # else
11515 # define LT_DLGLOBAL 0
11516 # endif
11517 #endif
11519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520 find out it does not work in some platform. */
11521 #ifndef LT_DLLAZY_OR_NOW
11522 # ifdef RTLD_LAZY
11523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11524 # else
11525 # ifdef DL_LAZY
11526 # define LT_DLLAZY_OR_NOW DL_LAZY
11527 # else
11528 # ifdef RTLD_NOW
11529 # define LT_DLLAZY_OR_NOW RTLD_NOW
11530 # else
11531 # ifdef DL_NOW
11532 # define LT_DLLAZY_OR_NOW DL_NOW
11533 # else
11534 # define LT_DLLAZY_OR_NOW 0
11535 # endif
11536 # endif
11537 # endif
11538 # endif
11539 #endif
11541 /* When -fvisbility=hidden is used, assume the code has been annotated
11542 correspondingly for the symbols needed. */
11543 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11544 void fnord () __attribute__((visibility("default")));
11545 #endif
11547 void fnord () { int i=42; }
11548 int main ()
11550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11551 int status = $lt_dlunknown;
11553 if (self)
11555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11556 else
11558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559 else puts (dlerror ());
11561 /* dlclose (self); */
11563 else
11564 puts (dlerror ());
11566 return status;
11568 _LT_EOF
11569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11574 (./conftest; exit; ) >&5 2>/dev/null
11575 lt_status=$?
11576 case x$lt_status in
11577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11580 esac
11581 else :
11582 # compilation failed
11583 lt_cv_dlopen_self=no
11586 rm -fr conftest*
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11591 $as_echo "$lt_cv_dlopen_self" >&6; }
11593 if test "x$lt_cv_dlopen_self" = xyes; then
11594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11596 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11597 if ${lt_cv_dlopen_self_static+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test "$cross_compiling" = yes; then :
11601 lt_cv_dlopen_self_static=cross
11602 else
11603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11604 lt_status=$lt_dlunknown
11605 cat > conftest.$ac_ext <<_LT_EOF
11606 #line 11606 "configure"
11607 #include "confdefs.h"
11609 #if HAVE_DLFCN_H
11610 #include <dlfcn.h>
11611 #endif
11613 #include <stdio.h>
11615 #ifdef RTLD_GLOBAL
11616 # define LT_DLGLOBAL RTLD_GLOBAL
11617 #else
11618 # ifdef DL_GLOBAL
11619 # define LT_DLGLOBAL DL_GLOBAL
11620 # else
11621 # define LT_DLGLOBAL 0
11622 # endif
11623 #endif
11625 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11626 find out it does not work in some platform. */
11627 #ifndef LT_DLLAZY_OR_NOW
11628 # ifdef RTLD_LAZY
11629 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11630 # else
11631 # ifdef DL_LAZY
11632 # define LT_DLLAZY_OR_NOW DL_LAZY
11633 # else
11634 # ifdef RTLD_NOW
11635 # define LT_DLLAZY_OR_NOW RTLD_NOW
11636 # else
11637 # ifdef DL_NOW
11638 # define LT_DLLAZY_OR_NOW DL_NOW
11639 # else
11640 # define LT_DLLAZY_OR_NOW 0
11641 # endif
11642 # endif
11643 # endif
11644 # endif
11645 #endif
11647 /* When -fvisbility=hidden is used, assume the code has been annotated
11648 correspondingly for the symbols needed. */
11649 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11650 void fnord () __attribute__((visibility("default")));
11651 #endif
11653 void fnord () { int i=42; }
11654 int main ()
11656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11657 int status = $lt_dlunknown;
11659 if (self)
11661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11662 else
11664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665 else puts (dlerror ());
11667 /* dlclose (self); */
11669 else
11670 puts (dlerror ());
11672 return status;
11674 _LT_EOF
11675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11680 (./conftest; exit; ) >&5 2>/dev/null
11681 lt_status=$?
11682 case x$lt_status in
11683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 esac
11687 else :
11688 # compilation failed
11689 lt_cv_dlopen_self_static=no
11692 rm -fr conftest*
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11697 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11700 CPPFLAGS="$save_CPPFLAGS"
11701 LDFLAGS="$save_LDFLAGS"
11702 LIBS="$save_LIBS"
11704 esac
11706 case $lt_cv_dlopen_self in
11707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11708 *) enable_dlopen_self=unknown ;;
11709 esac
11711 case $lt_cv_dlopen_self_static in
11712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11713 *) enable_dlopen_self_static=unknown ;;
11714 esac
11733 striplib=
11734 old_striplib=
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11736 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11737 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742 else
11743 # FIXME - insert some real tests, host_os isn't really good enough
11744 case $host_os in
11745 darwin*)
11746 if test -n "$STRIP" ; then
11747 striplib="$STRIP -x"
11748 old_striplib="$STRIP -S"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11760 esac
11774 # Report which library types will actually be built
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11776 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11778 $as_echo "$can_build_shared" >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11781 $as_echo_n "checking whether to build shared libraries... " >&6; }
11782 test "$can_build_shared" = "no" && enable_shared=no
11784 # On AIX, shared libraries and static libraries use the same namespace, and
11785 # are all built from PIC.
11786 case $host_os in
11787 aix3*)
11788 test "$enable_shared" = yes && enable_static=no
11789 if test -n "$RANLIB"; then
11790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11791 postinstall_cmds='$RANLIB $lib'
11795 aix[4-9]*)
11796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11797 test "$enable_shared" = yes && enable_static=no
11800 esac
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11802 $as_echo "$enable_shared" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11805 $as_echo_n "checking whether to build static libraries... " >&6; }
11806 # Make sure either enable_shared or enable_static is yes.
11807 test "$enable_shared" = yes || enable_static=yes
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11809 $as_echo "$enable_static" >&6; }
11815 ac_ext=c
11816 ac_cpp='$CPP $CPPFLAGS'
11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821 CC="$lt_save_CC"
11835 # Source file extension for Go test sources.
11836 ac_ext=go
11838 # Object file extension for compiled Go test sources.
11839 objext=o
11840 objext_GO=$objext
11842 # Code to be used in simple compile tests
11843 lt_simple_compile_test_code="package main; func main() { }"
11845 # Code to be used in simple link tests
11846 lt_simple_link_test_code='package main; func main() { }'
11848 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11855 # If no C compiler was specified, use CC.
11856 LTCC=${LTCC-"$CC"}
11858 # If no C compiler flags were specified, use CFLAGS.
11859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11861 # Allow CC to be a program name with arguments.
11862 compiler=$CC
11865 # save warnings/boilerplate of simple test code
11866 ac_outfile=conftest.$ac_objext
11867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11869 _lt_compiler_boilerplate=`cat conftest.err`
11870 $RM conftest*
11872 ac_outfile=conftest.$ac_objext
11873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875 _lt_linker_boilerplate=`cat conftest.err`
11876 $RM -r conftest*
11879 # Allow CC to be a program name with arguments.
11880 lt_save_CC="$CC"
11881 lt_save_GCC="$GCC"
11882 GCC=yes
11883 CC=${GOC-"gccgo"}
11884 compiler=$CC
11885 compiler_GO=$CC
11886 LD_GO="$LD"
11887 for cc_temp in $compiler""; do
11888 case $cc_temp in
11889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11891 \-*) ;;
11892 *) break;;
11893 esac
11894 done
11895 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11898 # Go did not exist at the time GCC didn't implicitly link libc in.
11899 archive_cmds_need_lc_GO=no
11901 old_archive_cmds_GO=$old_archive_cmds
11903 ## CAVEAT EMPTOR:
11904 ## There is no encapsulation within the following macros, do not change
11905 ## the running order or otherwise move them around unless you know exactly
11906 ## what you are doing...
11907 if test -n "$compiler"; then
11909 lt_prog_compiler_no_builtin_flag_GO=
11911 if test "$GCC" = yes; then
11912 case $cc_basename in
11913 nvcc*)
11914 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11916 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11917 esac
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11920 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11921 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 lt_cv_prog_compiler_rtti_exceptions=no
11925 ac_outfile=conftest.$ac_objext
11926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11927 lt_compiler_flag="-fno-rtti -fno-exceptions"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 # The option is referenced via a variable to avoid confusing sed.
11933 lt_compile=`echo "$ac_compile" | $SED \
11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936 -e 's:$: $lt_compiler_flag:'`
11937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11938 (eval "$lt_compile" 2>conftest.err)
11939 ac_status=$?
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 if (exit $ac_status) && test -s "$ac_outfile"; then
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings other than the usual output.
11945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_rtti_exceptions=yes
11951 $RM conftest*
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11955 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11957 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11958 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11959 else
11967 lt_prog_compiler_wl_GO=
11968 lt_prog_compiler_pic_GO=
11969 lt_prog_compiler_static_GO=
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11972 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11974 if test "$GCC" = yes; then
11975 lt_prog_compiler_wl_GO='-Wl,'
11976 lt_prog_compiler_static_GO='-static'
11978 case $host_os in
11979 aix*)
11980 # All AIX code is PIC.
11981 if test "$host_cpu" = ia64; then
11982 # AIX 5 now supports IA64 processor
11983 lt_prog_compiler_static_GO='-Bstatic'
11985 lt_prog_compiler_pic_GO='-fPIC'
11988 amigaos*)
11989 case $host_cpu in
11990 powerpc)
11991 # see comment about AmigaOS4 .so support
11992 lt_prog_compiler_pic_GO='-fPIC'
11994 m68k)
11995 # FIXME: we need at least 68020 code to build shared libraries, but
11996 # adding the `-m68020' flag to GCC prevents building anything better,
11997 # like `-m68040'.
11998 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
12000 esac
12003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12004 # PIC is the default for these OSes.
12007 mingw* | cygwin* | pw32* | os2* | cegcc*)
12008 # This hack is so that the source file can tell whether it is being
12009 # built for inclusion in a dll (and should export symbols for example).
12010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12011 # (--disable-auto-import) libraries
12012 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_GO='-fno-common'
12021 haiku*)
12022 # PIC is the default for Haiku.
12023 # The "-static" flag exists, but is broken.
12024 lt_prog_compiler_static_GO=
12027 hpux*)
12028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12030 # sets the default TLS model and affects inlining.
12031 case $host_cpu in
12032 hppa*64*)
12033 # +Z the default
12036 lt_prog_compiler_pic_GO='-fPIC'
12038 esac
12041 interix[3-9]*)
12042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12043 # Instead, we relocate shared libraries at runtime.
12046 msdosdjgpp*)
12047 # Just because we use GCC doesn't mean we suddenly get shared libraries
12048 # on systems that don't support them.
12049 lt_prog_compiler_can_build_shared_GO=no
12050 enable_shared=no
12053 *nto* | *qnx*)
12054 # QNX uses GNU C++, but need to define -shared option too, otherwise
12055 # it will coredump.
12056 lt_prog_compiler_pic_GO='-fPIC -shared'
12059 sysv4*MP*)
12060 if test -d /usr/nec; then
12061 lt_prog_compiler_pic_GO=-Kconform_pic
12066 lt_prog_compiler_pic_GO='-fPIC'
12068 esac
12070 case $cc_basename in
12071 nvcc*) # Cuda Compiler Driver 2.2
12072 lt_prog_compiler_wl_GO='-Xlinker '
12073 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12075 esac
12076 else
12077 # PORTME Check for flag to pass linker flags through the system compiler.
12078 case $host_os in
12079 aix*)
12080 lt_prog_compiler_wl_GO='-Wl,'
12081 if test "$host_cpu" = ia64; then
12082 # AIX 5 now supports IA64 processor
12083 lt_prog_compiler_static_GO='-Bstatic'
12084 else
12085 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12089 mingw* | cygwin* | pw32* | os2* | cegcc*)
12090 # This hack is so that the source file can tell whether it is being
12091 # built for inclusion in a dll (and should export symbols for example).
12092 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12095 hpux9* | hpux10* | hpux11*)
12096 lt_prog_compiler_wl_GO='-Wl,'
12097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12098 # not for PA HP-UX.
12099 case $host_cpu in
12100 hppa*64*|ia64*)
12101 # +Z the default
12104 lt_prog_compiler_pic_GO='+Z'
12106 esac
12107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12108 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12111 irix5* | irix6* | nonstopux*)
12112 lt_prog_compiler_wl_GO='-Wl,'
12113 # PIC (with -KPIC) is the default.
12114 lt_prog_compiler_static_GO='-non_shared'
12117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12118 case $cc_basename in
12119 # old Intel for x86_64 which still supported -KPIC.
12120 ecc*)
12121 lt_prog_compiler_wl_GO='-Wl,'
12122 lt_prog_compiler_pic_GO='-KPIC'
12123 lt_prog_compiler_static_GO='-static'
12125 # icc used to be incompatible with GCC.
12126 # ICC 10 doesn't accept -KPIC any more.
12127 icc* | ifort*)
12128 lt_prog_compiler_wl_GO='-Wl,'
12129 lt_prog_compiler_pic_GO='-fPIC'
12130 lt_prog_compiler_static_GO='-static'
12132 # Lahey Fortran 8.1.
12133 lf95*)
12134 lt_prog_compiler_wl_GO='-Wl,'
12135 lt_prog_compiler_pic_GO='--shared'
12136 lt_prog_compiler_static_GO='--static'
12138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12139 # Portland Group compilers (*not* the Pentium gcc compiler,
12140 # which looks to be a dead project)
12141 lt_prog_compiler_wl_GO='-Wl,'
12142 lt_prog_compiler_pic_GO='-fpic'
12143 lt_prog_compiler_static_GO='-Bstatic'
12145 ccc*)
12146 lt_prog_compiler_wl_GO='-Wl,'
12147 # All Alpha code is PIC.
12148 lt_prog_compiler_static_GO='-non_shared'
12150 xl* | bgxl* | bgf* | mpixl*)
12151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12152 lt_prog_compiler_wl_GO='-Wl,'
12153 lt_prog_compiler_pic_GO='-qpic'
12154 lt_prog_compiler_static_GO='-qstaticlink'
12157 case `$CC -V 2>&1 | sed 5q` in
12158 *Sun\ F* | *Sun*Fortran*)
12159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12160 lt_prog_compiler_pic_GO='-KPIC'
12161 lt_prog_compiler_static_GO='-Bstatic'
12162 lt_prog_compiler_wl_GO=''
12164 *Sun\ C*)
12165 # Sun C 5.9
12166 lt_prog_compiler_pic_GO='-KPIC'
12167 lt_prog_compiler_static_GO='-Bstatic'
12168 lt_prog_compiler_wl_GO='-Wl,'
12170 esac
12172 esac
12175 newsos6)
12176 lt_prog_compiler_pic_GO='-KPIC'
12177 lt_prog_compiler_static_GO='-Bstatic'
12180 *nto* | *qnx*)
12181 # QNX uses GNU C++, but need to define -shared option too, otherwise
12182 # it will coredump.
12183 lt_prog_compiler_pic_GO='-fPIC -shared'
12186 osf3* | osf4* | osf5*)
12187 lt_prog_compiler_wl_GO='-Wl,'
12188 # All OSF/1 code is PIC.
12189 lt_prog_compiler_static_GO='-non_shared'
12192 rdos*)
12193 lt_prog_compiler_static_GO='-non_shared'
12196 solaris*)
12197 lt_prog_compiler_pic_GO='-KPIC'
12198 lt_prog_compiler_static_GO='-Bstatic'
12199 case $cc_basename in
12200 f77* | f90* | f95*)
12201 lt_prog_compiler_wl_GO='-Qoption ld ';;
12203 lt_prog_compiler_wl_GO='-Wl,';;
12204 esac
12207 sunos4*)
12208 lt_prog_compiler_wl_GO='-Qoption ld '
12209 lt_prog_compiler_pic_GO='-PIC'
12210 lt_prog_compiler_static_GO='-Bstatic'
12213 sysv4 | sysv4.2uw2* | sysv4.3*)
12214 lt_prog_compiler_wl_GO='-Wl,'
12215 lt_prog_compiler_pic_GO='-KPIC'
12216 lt_prog_compiler_static_GO='-Bstatic'
12219 sysv4*MP*)
12220 if test -d /usr/nec ;then
12221 lt_prog_compiler_pic_GO='-Kconform_pic'
12222 lt_prog_compiler_static_GO='-Bstatic'
12226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12227 lt_prog_compiler_wl_GO='-Wl,'
12228 lt_prog_compiler_pic_GO='-KPIC'
12229 lt_prog_compiler_static_GO='-Bstatic'
12232 unicos*)
12233 lt_prog_compiler_wl_GO='-Wl,'
12234 lt_prog_compiler_can_build_shared_GO=no
12237 uts4*)
12238 lt_prog_compiler_pic_GO='-pic'
12239 lt_prog_compiler_static_GO='-Bstatic'
12243 lt_prog_compiler_can_build_shared_GO=no
12245 esac
12248 case $host_os in
12249 # For platforms which do not support PIC, -DPIC is meaningless:
12250 *djgpp*)
12251 lt_prog_compiler_pic_GO=
12254 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12256 esac
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12258 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12263 # Check to make sure the PIC flag actually works.
12265 if test -n "$lt_prog_compiler_pic_GO"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12268 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 lt_cv_prog_compiler_pic_works_GO=no
12272 ac_outfile=conftest.$ac_objext
12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12274 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 # The option is referenced via a variable to avoid confusing sed.
12280 lt_compile=`echo "$ac_compile" | $SED \
12281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12283 -e 's:$: $lt_compiler_flag:'`
12284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12285 (eval "$lt_compile" 2>conftest.err)
12286 ac_status=$?
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 if (exit $ac_status) && test -s "$ac_outfile"; then
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings other than the usual output.
12292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_pic_works_GO=yes
12298 $RM conftest*
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12302 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12304 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12305 case $lt_prog_compiler_pic_GO in
12306 "" | " "*) ;;
12307 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12308 esac
12309 else
12310 lt_prog_compiler_pic_GO=
12311 lt_prog_compiler_can_build_shared_GO=no
12319 # Check to make sure the static flag actually works.
12321 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12324 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 lt_cv_prog_compiler_static_works_GO=no
12328 save_LDFLAGS="$LDFLAGS"
12329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12332 # The linker can only warn and ignore the option if not recognized
12333 # So say no if there are warnings
12334 if test -s conftest.err; then
12335 # Append any errors to the config.log.
12336 cat conftest.err 1>&5
12337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_cv_prog_compiler_static_works_GO=yes
12342 else
12343 lt_cv_prog_compiler_static_works_GO=yes
12346 $RM -r conftest*
12347 LDFLAGS="$save_LDFLAGS"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12351 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12353 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12355 else
12356 lt_prog_compiler_static_GO=
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12364 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 lt_cv_prog_compiler_c_o_GO=no
12368 $RM -r conftest 2>/dev/null
12369 mkdir conftest
12370 cd conftest
12371 mkdir out
12372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12374 lt_compiler_flag="-o out/conftest2.$ac_objext"
12375 # Insert the option either (1) after the last *FLAGS variable, or
12376 # (2) before a word containing "conftest.", or (3) at the end.
12377 # Note that $ac_compile itself does not contain backslashes and begins
12378 # with a dollar sign (not a hyphen), so the echo should work correctly.
12379 lt_compile=`echo "$ac_compile" | $SED \
12380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12382 -e 's:$: $lt_compiler_flag:'`
12383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12384 (eval "$lt_compile" 2>out/conftest.err)
12385 ac_status=$?
12386 cat out/conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12389 then
12390 # The compiler can only warn and ignore the option if not recognized
12391 # So say no if there are warnings
12392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12395 lt_cv_prog_compiler_c_o_GO=yes
12398 chmod u+w . 2>&5
12399 $RM conftest*
12400 # SGI C++ compiler will create directory out/ii_files/ for
12401 # template instantiation
12402 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12403 $RM out/* && rmdir out
12404 cd ..
12405 $RM -r conftest
12406 $RM conftest*
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12410 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12416 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 lt_cv_prog_compiler_c_o_GO=no
12420 $RM -r conftest 2>/dev/null
12421 mkdir conftest
12422 cd conftest
12423 mkdir out
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426 lt_compiler_flag="-o out/conftest2.$ac_objext"
12427 # Insert the option either (1) after the last *FLAGS variable, or
12428 # (2) before a word containing "conftest.", or (3) at the end.
12429 # Note that $ac_compile itself does not contain backslashes and begins
12430 # with a dollar sign (not a hyphen), so the echo should work correctly.
12431 lt_compile=`echo "$ac_compile" | $SED \
12432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434 -e 's:$: $lt_compiler_flag:'`
12435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436 (eval "$lt_compile" 2>out/conftest.err)
12437 ac_status=$?
12438 cat out/conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12441 then
12442 # The compiler can only warn and ignore the option if not recognized
12443 # So say no if there are warnings
12444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12447 lt_cv_prog_compiler_c_o_GO=yes
12450 chmod u+w . 2>&5
12451 $RM conftest*
12452 # SGI C++ compiler will create directory out/ii_files/ for
12453 # template instantiation
12454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12455 $RM out/* && rmdir out
12456 cd ..
12457 $RM -r conftest
12458 $RM conftest*
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12462 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12467 hard_links="nottested"
12468 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12469 # do not overwrite the value of need_locks provided by the user
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12471 $as_echo_n "checking if we can lock with hard links... " >&6; }
12472 hard_links=yes
12473 $RM conftest*
12474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12475 touch conftest.a
12476 ln conftest.a conftest.b 2>&5 || hard_links=no
12477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12479 $as_echo "$hard_links" >&6; }
12480 if test "$hard_links" = no; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12482 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12483 need_locks=warn
12485 else
12486 need_locks=no
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12494 runpath_var=
12495 allow_undefined_flag_GO=
12496 always_export_symbols_GO=no
12497 archive_cmds_GO=
12498 archive_expsym_cmds_GO=
12499 compiler_needs_object_GO=no
12500 enable_shared_with_static_runtimes_GO=no
12501 export_dynamic_flag_spec_GO=
12502 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12503 hardcode_automatic_GO=no
12504 hardcode_direct_GO=no
12505 hardcode_direct_absolute_GO=no
12506 hardcode_libdir_flag_spec_GO=
12507 hardcode_libdir_flag_spec_ld_GO=
12508 hardcode_libdir_separator_GO=
12509 hardcode_minus_L_GO=no
12510 hardcode_shlibpath_var_GO=unsupported
12511 inherit_rpath_GO=no
12512 link_all_deplibs_GO=unknown
12513 module_cmds_GO=
12514 module_expsym_cmds_GO=
12515 old_archive_from_new_cmds_GO=
12516 old_archive_from_expsyms_cmds_GO=
12517 thread_safe_flag_spec_GO=
12518 whole_archive_flag_spec_GO=
12519 # include_expsyms should be a list of space-separated symbols to be *always*
12520 # included in the symbol list
12521 include_expsyms_GO=
12522 # exclude_expsyms can be an extended regexp of symbols to exclude
12523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12525 # as well as any symbol that contains `d'.
12526 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12528 # platforms (ab)use it in PIC code, but their linkers get confused if
12529 # the symbol is explicitly referenced. Since portable code cannot
12530 # rely on this symbol name, it's probably fine to never include it in
12531 # preloaded symbol tables.
12532 # Exclude shared library initialization/finalization symbols.
12533 extract_expsyms_cmds=
12535 case $host_os in
12536 cygwin* | mingw* | pw32* | cegcc*)
12537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12538 # When not using gcc, we currently assume that we are using
12539 # Microsoft Visual C++.
12540 if test "$GCC" != yes; then
12541 with_gnu_ld=no
12544 interix*)
12545 # we just hope/assume this is gcc and not c89 (= MSVC++)
12546 with_gnu_ld=yes
12548 openbsd*)
12549 with_gnu_ld=no
12551 esac
12553 ld_shlibs_GO=yes
12555 # On some targets, GNU ld is compatible enough with the native linker
12556 # that we're better off using the native interface for both.
12557 lt_use_gnu_ld_interface=no
12558 if test "$with_gnu_ld" = yes; then
12559 case $host_os in
12560 aix*)
12561 # The AIX port of GNU ld has always aspired to compatibility
12562 # with the native linker. However, as the warning in the GNU ld
12563 # block says, versions before 2.19.5* couldn't really create working
12564 # shared libraries, regardless of the interface used.
12565 case `$LD -v 2>&1` in
12566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12570 lt_use_gnu_ld_interface=yes
12572 esac
12575 lt_use_gnu_ld_interface=yes
12577 esac
12580 if test "$lt_use_gnu_ld_interface" = yes; then
12581 # If archive_cmds runs LD, not CC, wlarc should be empty
12582 wlarc='${wl}'
12584 # Set some defaults for GNU ld with shared library support. These
12585 # are reset later if shared libraries are not supported. Putting them
12586 # here allows them to be overridden if necessary.
12587 runpath_var=LD_RUN_PATH
12588 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12589 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12590 # ancient GNU ld didn't support --whole-archive et. al.
12591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12592 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12593 else
12594 whole_archive_flag_spec_GO=
12596 supports_anon_versioning=no
12597 case `$LD -v 2>&1` in
12598 *GNU\ gold*) supports_anon_versioning=yes ;;
12599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12602 *\ 2.11.*) ;; # other 2.11 versions
12603 *) supports_anon_versioning=yes ;;
12604 esac
12606 # See if GNU ld supports shared libraries.
12607 case $host_os in
12608 aix[3-9]*)
12609 # On AIX/PPC, the GNU linker is very broken
12610 if test "$host_cpu" != ia64; then
12611 ld_shlibs_GO=no
12612 cat <<_LT_EOF 1>&2
12614 *** Warning: the GNU linker, at least up to release 2.19, is reported
12615 *** to be unable to reliably create shared libraries on AIX.
12616 *** Therefore, libtool is disabling shared libraries support. If you
12617 *** really care for shared libraries, you may want to install binutils
12618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12619 *** You will then need to restart the configuration process.
12621 _LT_EOF
12625 amigaos*)
12626 case $host_cpu in
12627 powerpc)
12628 # see comment about AmigaOS4 .so support
12629 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 archive_expsym_cmds_GO=''
12632 m68k)
12633 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)'
12634 hardcode_libdir_flag_spec_GO='-L$libdir'
12635 hardcode_minus_L_GO=yes
12637 esac
12640 beos*)
12641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12642 allow_undefined_flag_GO=unsupported
12643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12644 # support --undefined. This deserves some investigation. FIXME
12645 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 else
12647 ld_shlibs_GO=no
12651 cygwin* | mingw* | pw32* | cegcc*)
12652 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12653 # as there is no search path for DLLs.
12654 hardcode_libdir_flag_spec_GO='-L$libdir'
12655 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12656 allow_undefined_flag_GO=unsupported
12657 always_export_symbols_GO=no
12658 enable_shared_with_static_runtimes_GO=yes
12659 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663 # If the export-symbols file already is a .def file (1st line
12664 # is EXPORTS), use it as is; otherwise, prepend...
12665 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666 cp $export_symbols $output_objdir/$soname.def;
12667 else
12668 echo EXPORTS > $output_objdir/$soname.def;
12669 cat $export_symbols >> $output_objdir/$soname.def;
12671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12672 else
12673 ld_shlibs_GO=no
12677 haiku*)
12678 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 link_all_deplibs_GO=yes
12682 interix[3-9]*)
12683 hardcode_direct_GO=no
12684 hardcode_shlibpath_var_GO=no
12685 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_GO='${wl}-E'
12687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688 # Instead, shared libraries are loaded at an image base (0x10000000 by
12689 # default) and relocated if they conflict, which is a slow very memory
12690 # consuming and fragmenting process. To avoid this, we pick a random,
12691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12693 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'
12694 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'
12697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12698 tmp_diet=no
12699 if test "$host_os" = linux-dietlibc; then
12700 case $cc_basename in
12701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12702 esac
12704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12705 && test "$tmp_diet" = no
12706 then
12707 tmp_addflag=
12708 tmp_sharedflag='-shared'
12709 case $cc_basename,$host_cpu in
12710 pgcc*) # Portland Group C compiler
12711 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'
12712 tmp_addflag=' $pic_flag'
12714 pgf77* | pgf90* | pgf95* | pgfortran*)
12715 # Portland Group f77 and f90 compilers
12716 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'
12717 tmp_addflag=' $pic_flag -Mnomain' ;;
12718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12719 tmp_addflag=' -i_dynamic' ;;
12720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12721 tmp_addflag=' -i_dynamic -nofor_main' ;;
12722 ifc* | ifort*) # Intel Fortran compiler
12723 tmp_addflag=' -nofor_main' ;;
12724 lf95*) # Lahey Fortran 8.1
12725 whole_archive_flag_spec_GO=
12726 tmp_sharedflag='--shared' ;;
12727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12728 tmp_sharedflag='-qmkshrobj'
12729 tmp_addflag= ;;
12730 nvcc*) # Cuda Compiler Driver 2.2
12731 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'
12732 compiler_needs_object_GO=yes
12734 esac
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*) # Sun C 5.9
12737 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'
12738 compiler_needs_object_GO=yes
12739 tmp_sharedflag='-G' ;;
12740 *Sun\ F*) # Sun Fortran 8.3
12741 tmp_sharedflag='-G' ;;
12742 esac
12743 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 if test "x$supports_anon_versioning" = xyes; then
12746 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748 echo "local: *; };" >> $output_objdir/$libname.ver~
12749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12752 case $cc_basename in
12753 xlf* | bgf* | bgxlf* | mpixlf*)
12754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12755 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12756 hardcode_libdir_flag_spec_GO=
12757 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12758 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12759 if test "x$supports_anon_versioning" = xyes; then
12760 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762 echo "local: *; };" >> $output_objdir/$libname.ver~
12763 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12766 esac
12767 else
12768 ld_shlibs_GO=no
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775 wlarc=
12776 else
12777 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12782 solaris*)
12783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12784 ld_shlibs_GO=no
12785 cat <<_LT_EOF 1>&2
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems. Therefore, libtool
12789 *** is disabling shared libraries support. We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer. Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12794 _LT_EOF
12795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 else
12799 ld_shlibs_GO=no
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804 case `$LD -v 2>&1` in
12805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12806 ld_shlibs_GO=no
12807 cat <<_LT_EOF 1>&2
12809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12810 *** reliably create shared libraries on SCO systems. Therefore, libtool
12811 *** is disabling shared libraries support. We urge you to upgrade GNU
12812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12813 *** your PATH or compiler configuration so that the native linker is
12814 *** used, and then restart.
12816 _LT_EOF
12819 # For security reasons, it is highly recommended that you always
12820 # use absolute paths for naming shared libraries, and exclude the
12821 # DT_RUNPATH tag from executables and libraries. But doing so
12822 # requires that you compile everything twice, which is a pain.
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12825 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12827 else
12828 ld_shlibs_GO=no
12831 esac
12834 sunos4*)
12835 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12836 wlarc=
12837 hardcode_direct_GO=yes
12838 hardcode_shlibpath_var_GO=no
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_GO=no
12849 esac
12851 if test "$ld_shlibs_GO" = no; then
12852 runpath_var=
12853 hardcode_libdir_flag_spec_GO=
12854 export_dynamic_flag_spec_GO=
12855 whole_archive_flag_spec_GO=
12857 else
12858 # PORTME fill in a description of your system's linker (not GNU ld)
12859 case $host_os in
12860 aix3*)
12861 allow_undefined_flag_GO=unsupported
12862 always_export_symbols_GO=yes
12863 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'
12864 # Note: this linker hardcodes the directories in LIBPATH if there
12865 # are no directories specified by -L.
12866 hardcode_minus_L_GO=yes
12867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12868 # Neither direct hardcoding nor static linking is supported with a
12869 # broken collect2.
12870 hardcode_direct_GO=unsupported
12874 aix[4-9]*)
12875 if test "$host_cpu" = ia64; then
12876 # On IA64, the linker does run time linking by default, so we don't
12877 # have to do anything special.
12878 aix_use_runtimelinking=no
12879 exp_sym_flag='-Bexport'
12880 no_entry_flag=""
12881 else
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 # Also, AIX nm treats weak defined symbols like other global
12885 # defined symbols, whereas GNU nm marks them as "W".
12886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12887 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'
12888 else
12889 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'
12891 aix_use_runtimelinking=no
12893 # Test if we are trying to use run time linking or normal
12894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12895 # need to do runtime linking.
12896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12897 for ld_flag in $LDFLAGS; do
12898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12899 aix_use_runtimelinking=yes
12900 break
12902 done
12904 esac
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916 archive_cmds_GO=''
12917 hardcode_direct_GO=yes
12918 hardcode_direct_absolute_GO=yes
12919 hardcode_libdir_separator_GO=':'
12920 link_all_deplibs_GO=yes
12921 file_list_spec_GO='${wl}-f,'
12923 if test "$GCC" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930 then
12931 # We have reworked collect2
12933 else
12934 # We have old collect2
12935 hardcode_direct_GO=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_GO=yes
12940 hardcode_libdir_flag_spec_GO='-L$libdir'
12941 hardcode_libdir_separator_GO=
12944 esac
12945 shared_flag='-shared'
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag="$shared_flag "'${wl}-G'
12949 else
12950 # not using gcc
12951 if test "$host_cpu" = ia64; then
12952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953 # chokes on -Wl,-G. The following line is correct:
12954 shared_flag='-G'
12955 else
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag='${wl}-G'
12958 else
12959 shared_flag='${wl}-bM:SRE'
12964 export_dynamic_flag_spec_GO='${wl}-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to export.
12967 always_export_symbols_GO=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_GO='-berok'
12972 # Determine the default libpath from the value encoded in an
12973 # empty executable.
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12978 main ()
12982 return 0;
12984 _ACEOF
12985 if ac_fn_c_try_link "$LINENO"; then :
12987 lt_aix_libpath_sed='
12988 /Import File Strings/,/^$/ {
12989 /^0/ {
12990 s/^0 *\(.*\)$/\1/
12994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995 # Check for a 64-bit object if we didn't find anything.
12996 if test -z "$aix_libpath"; then
12997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13004 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13005 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"
13006 else
13007 if test "$host_cpu" = ia64; then
13008 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
13009 allow_undefined_flag_GO="-z nodefs"
13010 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"
13011 else
13012 # Determine the default libpath from the value encoded in an
13013 # empty executable.
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13018 main ()
13022 return 0;
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13027 lt_aix_libpath_sed='
13028 /Import File Strings/,/^$/ {
13029 /^0/ {
13030 s/^0 *\(.*\)$/\1/
13034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 # Check for a 64-bit object if we didn't find anything.
13036 if test -z "$aix_libpath"; then
13037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13044 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13045 # Warning - without using the other run time loading flags,
13046 # -berok will link without error, but may produce a broken library.
13047 no_undefined_flag_GO=' ${wl}-bernotok'
13048 allow_undefined_flag_GO=' ${wl}-berok'
13049 if test "$with_gnu_ld" = yes; then
13050 # We only use this code for GNU lds that support --whole-archive.
13051 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13052 else
13053 # Exported symbols can be pulled into shared objects from archives
13054 whole_archive_flag_spec_GO='$convenience'
13056 archive_cmds_need_lc_GO=yes
13057 # This is similar to how AIX traditionally builds its shared libraries.
13058 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'
13063 amigaos*)
13064 case $host_cpu in
13065 powerpc)
13066 # see comment about AmigaOS4 .so support
13067 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068 archive_expsym_cmds_GO=''
13070 m68k)
13071 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)'
13072 hardcode_libdir_flag_spec_GO='-L$libdir'
13073 hardcode_minus_L_GO=yes
13075 esac
13078 bsdi[45]*)
13079 export_dynamic_flag_spec_GO=-rdynamic
13082 cygwin* | mingw* | pw32* | cegcc*)
13083 # When not using gcc, we currently assume that we are using
13084 # Microsoft Visual C++.
13085 # hardcode_libdir_flag_spec is actually meaningless, as there is
13086 # no search path for DLLs.
13087 hardcode_libdir_flag_spec_GO=' '
13088 allow_undefined_flag_GO=unsupported
13089 # Tell ltmain to make .lib files, not .a files.
13090 libext=lib
13091 # Tell ltmain to make .dll files, not .so files.
13092 shrext_cmds=".dll"
13093 # FIXME: Setting linknames here is a bad hack.
13094 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13095 # The linker will automatically build a .lib file if we build a DLL.
13096 old_archive_from_new_cmds_GO='true'
13097 # FIXME: Should let the user specify the lib program.
13098 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13099 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13100 enable_shared_with_static_runtimes_GO=yes
13103 darwin* | rhapsody*)
13106 archive_cmds_need_lc_GO=no
13107 hardcode_direct_GO=no
13108 hardcode_automatic_GO=yes
13109 hardcode_shlibpath_var_GO=unsupported
13110 if test "$lt_cv_ld_force_load" = "yes"; then
13111 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\"`'
13112 else
13113 whole_archive_flag_spec_GO=''
13115 link_all_deplibs_GO=yes
13116 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13117 case $cc_basename in
13118 ifort*) _lt_dar_can_shared=yes ;;
13119 *) _lt_dar_can_shared=$GCC ;;
13120 esac
13121 if test "$_lt_dar_can_shared" = "yes"; then
13122 output_verbose_link_cmd=func_echo_all
13123 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}"
13124 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13125 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}"
13126 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}"
13128 else
13129 ld_shlibs_GO=no
13134 dgux*)
13135 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_libdir_flag_spec_GO='-L$libdir'
13137 hardcode_shlibpath_var_GO=no
13140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13141 # support. Future versions do this automatically, but an explicit c++rt0.o
13142 # does not break anything, and helps significantly (at the cost of a little
13143 # extra space).
13144 freebsd2.2*)
13145 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13146 hardcode_libdir_flag_spec_GO='-R$libdir'
13147 hardcode_direct_GO=yes
13148 hardcode_shlibpath_var_GO=no
13151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13152 freebsd2.*)
13153 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_direct_GO=yes
13155 hardcode_minus_L_GO=yes
13156 hardcode_shlibpath_var_GO=no
13159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13160 freebsd* | dragonfly*)
13161 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13162 hardcode_libdir_flag_spec_GO='-R$libdir'
13163 hardcode_direct_GO=yes
13164 hardcode_shlibpath_var_GO=no
13167 hpux9*)
13168 if test "$GCC" = yes; then
13169 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'
13170 else
13171 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'
13173 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13174 hardcode_libdir_separator_GO=:
13175 hardcode_direct_GO=yes
13177 # hardcode_minus_L: Not really in the search PATH,
13178 # but as the default location of the library.
13179 hardcode_minus_L_GO=yes
13180 export_dynamic_flag_spec_GO='${wl}-E'
13183 hpux10*)
13184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13185 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13186 else
13187 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13189 if test "$with_gnu_ld" = no; then
13190 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13191 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13192 hardcode_libdir_separator_GO=:
13193 hardcode_direct_GO=yes
13194 hardcode_direct_absolute_GO=yes
13195 export_dynamic_flag_spec_GO='${wl}-E'
13196 # hardcode_minus_L: Not really in the search PATH,
13197 # but as the default location of the library.
13198 hardcode_minus_L_GO=yes
13202 hpux11*)
13203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13204 case $host_cpu in
13205 hppa*64*)
13206 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13208 ia64*)
13209 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13214 esac
13215 else
13216 case $host_cpu in
13217 hppa*64*)
13218 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 ia64*)
13221 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13224 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226 esac
13228 if test "$with_gnu_ld" = no; then
13229 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13230 hardcode_libdir_separator_GO=:
13232 case $host_cpu in
13233 hppa*64*|ia64*)
13234 hardcode_direct_GO=no
13235 hardcode_shlibpath_var_GO=no
13238 hardcode_direct_GO=yes
13239 hardcode_direct_absolute_GO=yes
13240 export_dynamic_flag_spec_GO='${wl}-E'
13242 # hardcode_minus_L: Not really in the search PATH,
13243 # but as the default location of the library.
13244 hardcode_minus_L_GO=yes
13246 esac
13250 irix5* | irix6* | nonstopux*)
13251 if test "$GCC" = yes; then
13252 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'
13253 # Try to use the -exported_symbol ld option, if it does not
13254 # work, assume that -exports_file does not work either and
13255 # implicitly export all symbols.
13256 save_LDFLAGS="$LDFLAGS"
13257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 int foo(void) {}
13261 _ACEOF
13262 if ac_fn_c_try_link "$LINENO"; then :
13263 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'
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LDFLAGS="$save_LDFLAGS"
13269 else
13270 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'
13271 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'
13273 archive_cmds_need_lc_GO='no'
13274 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13275 hardcode_libdir_separator_GO=:
13276 inherit_rpath_GO=yes
13277 link_all_deplibs_GO=yes
13280 netbsd*)
13281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13282 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13283 else
13284 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13286 hardcode_libdir_flag_spec_GO='-R$libdir'
13287 hardcode_direct_GO=yes
13288 hardcode_shlibpath_var_GO=no
13291 newsos6)
13292 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13293 hardcode_direct_GO=yes
13294 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13295 hardcode_libdir_separator_GO=:
13296 hardcode_shlibpath_var_GO=no
13299 *nto* | *qnx*)
13302 openbsd*)
13303 if test -f /usr/libexec/ld.so; then
13304 hardcode_direct_GO=yes
13305 hardcode_shlibpath_var_GO=no
13306 hardcode_direct_absolute_GO=yes
13307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13308 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13310 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13311 export_dynamic_flag_spec_GO='${wl}-E'
13312 else
13313 case $host_os in
13314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13315 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13316 hardcode_libdir_flag_spec_GO='-R$libdir'
13319 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13320 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13322 esac
13324 else
13325 ld_shlibs_GO=no
13329 os2*)
13330 hardcode_libdir_flag_spec_GO='-L$libdir'
13331 hardcode_minus_L_GO=yes
13332 allow_undefined_flag_GO=unsupported
13333 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'
13334 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13337 osf3*)
13338 if test "$GCC" = yes; then
13339 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13340 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'
13341 else
13342 allow_undefined_flag_GO=' -expect_unresolved \*'
13343 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'
13345 archive_cmds_need_lc_GO='no'
13346 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13347 hardcode_libdir_separator_GO=:
13350 osf4* | osf5*) # as osf3* with the addition of -msym flag
13351 if test "$GCC" = yes; then
13352 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13353 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'
13354 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13355 else
13356 allow_undefined_flag_GO=' -expect_unresolved \*'
13357 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'
13358 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~
13359 $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'
13361 # Both c and cxx compiler support -rpath directly
13362 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13364 archive_cmds_need_lc_GO='no'
13365 hardcode_libdir_separator_GO=:
13368 solaris*)
13369 no_undefined_flag_GO=' -z defs'
13370 if test "$GCC" = yes; then
13371 wlarc='${wl}'
13372 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13373 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13375 else
13376 case `$CC -V 2>&1` in
13377 *"Compilers 5.0"*)
13378 wlarc=''
13379 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13380 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13384 wlarc='${wl}'
13385 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13387 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13389 esac
13391 hardcode_libdir_flag_spec_GO='-R$libdir'
13392 hardcode_shlibpath_var_GO=no
13393 case $host_os in
13394 solaris2.[0-5] | solaris2.[0-5].*) ;;
13396 # The compiler driver will combine and reorder linker options,
13397 # but understands `-z linker_flag'. GCC discards it without `$wl',
13398 # but is careful enough not to reorder.
13399 # Supported since Solaris 2.6 (maybe 2.5.1?)
13400 if test "$GCC" = yes; then
13401 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13402 else
13403 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13406 esac
13407 link_all_deplibs_GO=yes
13410 sunos4*)
13411 if test "x$host_vendor" = xsequent; then
13412 # Use $CC to link under sequent, because it throws in some extra .o
13413 # files that make .init and .fini sections work.
13414 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13415 else
13416 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13418 hardcode_libdir_flag_spec_GO='-L$libdir'
13419 hardcode_direct_GO=yes
13420 hardcode_minus_L_GO=yes
13421 hardcode_shlibpath_var_GO=no
13424 sysv4)
13425 case $host_vendor in
13426 sni)
13427 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_GO=yes # is this really true???
13430 siemens)
13431 ## LD is ld it makes a PLAMLIB
13432 ## CC just makes a GrossModule.
13433 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13434 reload_cmds_GO='$CC -r -o $output$reload_objs'
13435 hardcode_direct_GO=no
13437 motorola)
13438 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13441 esac
13442 runpath_var='LD_RUN_PATH'
13443 hardcode_shlibpath_var_GO=no
13446 sysv4.3*)
13447 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_shlibpath_var_GO=no
13449 export_dynamic_flag_spec_GO='-Bexport'
13452 sysv4*MP*)
13453 if test -d /usr/nec; then
13454 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455 hardcode_shlibpath_var_GO=no
13456 runpath_var=LD_RUN_PATH
13457 hardcode_runpath_var=yes
13458 ld_shlibs_GO=yes
13462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13463 no_undefined_flag_GO='${wl}-z,text'
13464 archive_cmds_need_lc_GO=no
13465 hardcode_shlibpath_var_GO=no
13466 runpath_var='LD_RUN_PATH'
13468 if test "$GCC" = yes; then
13469 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 else
13472 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 sysv5* | sco3.2v5* | sco5v6*)
13478 # Note: We can NOT use -z defs as we might desire, because we do not
13479 # link with -lc, and that would cause any symbols used from libc to
13480 # always be unresolved, which means just about no library would
13481 # ever link correctly. If we're not using GNU ld we use -z text
13482 # though, which does catch some bad symbols but isn't as heavy-handed
13483 # as -z defs.
13484 no_undefined_flag_GO='${wl}-z,text'
13485 allow_undefined_flag_GO='${wl}-z,nodefs'
13486 archive_cmds_need_lc_GO=no
13487 hardcode_shlibpath_var_GO=no
13488 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13489 hardcode_libdir_separator_GO=':'
13490 link_all_deplibs_GO=yes
13491 export_dynamic_flag_spec_GO='${wl}-Bexport'
13492 runpath_var='LD_RUN_PATH'
13494 if test "$GCC" = yes; then
13495 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 else
13498 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 uts4*)
13504 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_libdir_flag_spec_GO='-L$libdir'
13506 hardcode_shlibpath_var_GO=no
13510 ld_shlibs_GO=no
13512 esac
13514 if test x$host_vendor = xsni; then
13515 case $host in
13516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13517 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13519 esac
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13524 $as_echo "$ld_shlibs_GO" >&6; }
13525 test "$ld_shlibs_GO" = no && can_build_shared=no
13527 with_gnu_ld_GO=$with_gnu_ld
13535 # Do we need to explicitly link libc?
13537 case "x$archive_cmds_need_lc_GO" in
13538 x|xyes)
13539 # Assume -lc should be added
13540 archive_cmds_need_lc_GO=yes
13542 if test "$enable_shared" = yes && test "$GCC" = yes; then
13543 case $archive_cmds_GO in
13544 *'~'*)
13545 # FIXME: we may have to deal with multi-command sequences.
13547 '$CC '*)
13548 # Test whether the compiler implicitly links with -lc since on some
13549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13550 # to ld, don't add -lc before -lgcc.
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13552 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13553 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 $RM conftest*
13557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13560 (eval $ac_compile) 2>&5
13561 ac_status=$?
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; } 2>conftest.err; then
13564 soname=conftest
13565 lib=conftest
13566 libobjs=conftest.$ac_objext
13567 deplibs=
13568 wl=$lt_prog_compiler_wl_GO
13569 pic_flag=$lt_prog_compiler_pic_GO
13570 compiler_flags=-v
13571 linker_flags=-v
13572 verstring=
13573 output_objdir=.
13574 libname=conftest
13575 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13576 allow_undefined_flag_GO=
13577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13578 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13579 ac_status=$?
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; }
13582 then
13583 lt_cv_archive_cmds_need_lc_GO=no
13584 else
13585 lt_cv_archive_cmds_need_lc_GO=yes
13587 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13588 else
13589 cat conftest.err 1>&5
13591 $RM conftest*
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13595 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13596 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13598 esac
13601 esac
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13668 hardcode_action_GO=
13669 if test -n "$hardcode_libdir_flag_spec_GO" ||
13670 test -n "$runpath_var_GO" ||
13671 test "X$hardcode_automatic_GO" = "Xyes" ; then
13673 # We can hardcode non-existent directories.
13674 if test "$hardcode_direct_GO" != no &&
13675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13676 # have to relink, otherwise we might link with an installed library
13677 # when we should be linking with a yet-to-be-installed one
13678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13679 test "$hardcode_minus_L_GO" != no; then
13680 # Linking always hardcodes the temporary library directory.
13681 hardcode_action_GO=relink
13682 else
13683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13684 hardcode_action_GO=immediate
13686 else
13687 # We cannot hardcode anything, or else we can only hardcode existing
13688 # directories.
13689 hardcode_action_GO=unsupported
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13692 $as_echo "$hardcode_action_GO" >&6; }
13694 if test "$hardcode_action_GO" = relink ||
13695 test "$inherit_rpath_GO" = yes; then
13696 # Fast installation is not supported
13697 enable_fast_install=no
13698 elif test "$shlibpath_overrides_runpath" = yes ||
13699 test "$enable_shared" = no; then
13700 # Fast installation is not necessary
13701 enable_fast_install=needless
13712 ac_ext=c
13713 ac_cpp='$CPP $CPPFLAGS'
13714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13719 GCC=$lt_save_GCC
13720 CC="$lt_save_CC"
13725 ac_config_commands="$ac_config_commands libtool"
13730 # Only expand once:
13736 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13739 for ac_prog in gawk mawk nawk awk
13741 # Extract the first word of "$ac_prog", so it can be a program name with args.
13742 set dummy $ac_prog; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if ${ac_cv_prog_AWK+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test -n "$AWK"; then
13749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13750 else
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_AWK="$ac_prog"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13762 done
13763 done
13764 IFS=$as_save_IFS
13768 AWK=$ac_cv_prog_AWK
13769 if test -n "$AWK"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13771 $as_echo "$AWK" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13778 test -n "$AWK" && break
13779 done
13782 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13785 # Check whether --enable-werror was given.
13786 if test "${enable_werror+set}" = set; then :
13787 enableval=$enable_werror;
13790 if test "x$enable_werror" != "xno"; then
13791 WERROR="-Werror"
13795 glibgo_toolexecdir=no
13796 glibgo_toolexeclibdir=no
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13799 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13800 # Check whether --enable-version-specific-runtime-libs was given.
13801 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13802 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13803 yes) version_specific_libs=yes ;;
13804 no) version_specific_libs=no ;;
13805 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13806 esac
13807 else
13808 version_specific_libs=no
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13812 $as_echo "$version_specific_libs" >&6; }
13815 # Check whether --with-toolexeclibdir was given.
13816 if test "${with_toolexeclibdir+set}" = set; then :
13817 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13821 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
13823 esac
13824 else
13825 with_toolexeclibdir=no
13830 # Version-specific runtime libs processing.
13831 if test $version_specific_libs = yes; then
13832 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13833 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13836 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13837 # Install a library built with a cross compiler in tooldir, not libdir.
13838 if test -n "$with_cross_host" &&
13839 test x"$with_cross_host" != x"no"; then
13840 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13841 case ${with_toolexeclibdir} in
13843 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13846 nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
13848 esac
13849 else
13850 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13851 nover_glibgo_toolexeclibdir='${libdir}'
13853 multi_os_directory=`$GOC -print-multi-os-directory`
13854 case $multi_os_directory in
13855 .) ;; # Avoid trailing /.
13856 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13857 esac
13859 if test x"$glibgo_toolexecdir" = x"no"; then
13860 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13861 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13868 # See if the user wants to configure without libffi. Some
13869 # architectures don't support it. FIXME: We should set a default
13870 # based on the host.
13872 # Check whether --with-libffi was given.
13873 if test "${with_libffi+set}" = set; then :
13874 withval=$with_libffi; :
13875 else
13876 with_libffi=${with_libffi_default-yes}
13880 LIBFFI=
13881 LIBFFIINCS=
13882 if test "$with_libffi" != no; then
13884 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13886 LIBFFI=../libffi/libffi_convenience.la
13887 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13891 if test "$with_libffi" != "no"; then
13892 USE_LIBFFI_TRUE=
13893 USE_LIBFFI_FALSE='#'
13894 else
13895 USE_LIBFFI_TRUE='#'
13896 USE_LIBFFI_FALSE=
13900 # See if the user wants to configure without libatomic. This is useful if we are
13901 # on an architecture for which libgo does not need an atomic support library and
13902 # libatomic does not support our C compiler.
13904 # Check whether --with-libatomic was given.
13905 if test "${with_libatomic+set}" = set; then :
13906 withval=$with_libatomic; :
13907 else
13908 with_libatomic=${with_libatomic_default-yes}
13912 LIBATOMIC=
13913 if test "$with_libatomic" != no; then
13914 LIBATOMIC=../libatomic/libatomic_convenience.la
13918 # Used to tell GNU make to include a file without telling automake to
13919 # include it.
13920 go_include="-include"
13923 # All known GOOS values. This is the union of all operating systems
13924 # supported by the gofrontend and all operating systems supported by
13925 # the gc toolchain.
13926 ALLGOOS="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
13928 is_darwin=no
13929 is_freebsd=no
13930 is_irix=no
13931 is_linux=no
13932 is_netbsd=no
13933 is_openbsd=no
13934 is_dragonfly=no
13935 is_rtems=no
13936 is_solaris=no
13937 is_aix=no
13938 is_hurd=no
13939 GOOS=unknown
13940 case ${host} in
13941 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13942 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13943 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13944 *-*-linux*) is_linux=yes; GOOS=linux ;;
13945 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13946 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13947 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13948 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13949 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13950 *-*-aix*) is_aix=yes; GOOS=aix ;;
13951 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
13952 esac
13953 if test $is_darwin = yes; then
13954 LIBGO_IS_DARWIN_TRUE=
13955 LIBGO_IS_DARWIN_FALSE='#'
13956 else
13957 LIBGO_IS_DARWIN_TRUE='#'
13958 LIBGO_IS_DARWIN_FALSE=
13961 if test $is_freebsd = yes; then
13962 LIBGO_IS_FREEBSD_TRUE=
13963 LIBGO_IS_FREEBSD_FALSE='#'
13964 else
13965 LIBGO_IS_FREEBSD_TRUE='#'
13966 LIBGO_IS_FREEBSD_FALSE=
13969 if test $is_irix = yes; then
13970 LIBGO_IS_IRIX_TRUE=
13971 LIBGO_IS_IRIX_FALSE='#'
13972 else
13973 LIBGO_IS_IRIX_TRUE='#'
13974 LIBGO_IS_IRIX_FALSE=
13977 if test $is_linux = yes; then
13978 LIBGO_IS_LINUX_TRUE=
13979 LIBGO_IS_LINUX_FALSE='#'
13980 else
13981 LIBGO_IS_LINUX_TRUE='#'
13982 LIBGO_IS_LINUX_FALSE=
13985 if test $is_netbsd = yes; then
13986 LIBGO_IS_NETBSD_TRUE=
13987 LIBGO_IS_NETBSD_FALSE='#'
13988 else
13989 LIBGO_IS_NETBSD_TRUE='#'
13990 LIBGO_IS_NETBSD_FALSE=
13993 if test $is_openbsd = yes; then
13994 LIBGO_IS_OPENBSD_TRUE=
13995 LIBGO_IS_OPENBSD_FALSE='#'
13996 else
13997 LIBGO_IS_OPENBSD_TRUE='#'
13998 LIBGO_IS_OPENBSD_FALSE=
14001 if test $is_dragonfly = yes; then
14002 LIBGO_IS_DRAGONFLY_TRUE=
14003 LIBGO_IS_DRAGONFLY_FALSE='#'
14004 else
14005 LIBGO_IS_DRAGONFLY_TRUE='#'
14006 LIBGO_IS_DRAGONFLY_FALSE=
14009 if test $is_rtems = yes; then
14010 LIBGO_IS_RTEMS_TRUE=
14011 LIBGO_IS_RTEMS_FALSE='#'
14012 else
14013 LIBGO_IS_RTEMS_TRUE='#'
14014 LIBGO_IS_RTEMS_FALSE=
14017 if test $is_solaris = yes; then
14018 LIBGO_IS_SOLARIS_TRUE=
14019 LIBGO_IS_SOLARIS_FALSE='#'
14020 else
14021 LIBGO_IS_SOLARIS_TRUE='#'
14022 LIBGO_IS_SOLARIS_FALSE=
14025 if test $is_aix = yes; then
14026 LIBGO_IS_AIX_TRUE=
14027 LIBGO_IS_AIX_FALSE='#'
14028 else
14029 LIBGO_IS_AIX_TRUE='#'
14030 LIBGO_IS_AIX_FALSE=
14033 if test $is_hurd = yes; then
14034 LIBGO_IS_HURD_TRUE=
14035 LIBGO_IS_HURD_FALSE='#'
14036 else
14037 LIBGO_IS_HURD_TRUE='#'
14038 LIBGO_IS_HURD_FALSE=
14041 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14042 LIBGO_IS_BSD_TRUE=
14043 LIBGO_IS_BSD_FALSE='#'
14044 else
14045 LIBGO_IS_BSD_TRUE='#'
14046 LIBGO_IS_BSD_FALSE=
14052 USE_DEJAGNU=no
14053 case ${host} in
14054 *-*-rtems*) USE_DEJAGNU=yes ;;
14055 ${build}) ;;
14056 *) USE_DEJAGNU=yes ;;
14057 esac
14060 # All known GOARCH values. This is the union of all architectures
14061 # supported by the gofrontend and all architectures supported by the
14062 # gc toolchain.
14063 # To add a new architecture:
14064 # - add it to this list
14065 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14066 # - add an entry to the case on ${host} below to set GOARCH
14067 # - update goarchList in libgo/go/go/build/syslist.go
14068 # - update goarch.sh to report the values for this architecture
14069 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14070 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14071 # - update arch lists in libgo/match.sh
14072 # - update arch lists in libgo/testsuite/gotest
14073 # - update +build lines in several places
14074 # - libgo/go/runtime/lfstack_NNbit.go
14075 # - libgo/go/runtime/hashNN.go
14076 # - libgo/go/runtime/unalignedN.go
14077 # - libgo/go/syscall/endian_XX.go
14078 # - possibly others
14079 # - possibly update files in libgo/go/internal/syscall/unix
14080 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
14082 # All known GOARCH family values.
14083 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14085 GOARCH=unknown
14086 case ${host} in
14087 alpha*-*-*)
14088 GOARCH=alpha
14090 aarch64-*-*)
14091 GOARCH=arm64
14093 aarch64_be-*-*)
14094 GOARCH=arm64be
14096 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
14097 GOARCH=arm
14098 case ${host} in
14099 arm*b*-*-*)
14100 GOARCH=armbe
14102 esac
14104 i[34567]86-*-* | x86_64-*-*)
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 #ifdef __x86_64__
14109 #error 64-bit
14110 #endif
14112 _ACEOF
14113 if ac_fn_c_try_compile "$LINENO"; then :
14114 GOARCH=386
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14119 #ifdef __ILP32__
14120 #error x32
14121 #endif
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 GOARCH=amd64
14126 else
14127 GOARCH=amd64p32
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 ia64-*-*)
14134 GOARCH=ia64
14136 m68k*-*-*)
14137 GOARCH=m68k
14139 mips*-*-*)
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 #if _MIPS_SIM != _ABIO32
14144 #error not o32
14145 #endif
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14149 mips_abi="o32"
14150 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14154 #if _MIPS_SIM != _ABIN32
14155 #error not n32
14156 #endif
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160 mips_abi="n32"
14161 else
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 #if _MIPS_SIM != _ABI64
14166 #error not n64
14167 #endif
14169 _ACEOF
14170 if ac_fn_c_try_compile "$LINENO"; then :
14171 mips_abi="n64"
14172 else
14173 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
14174 mips_abi="n32"
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 case "$mips_abi" in
14182 "o32") GOARCH=mips ;;
14183 "n32") GOARCH=mips64p32 ;;
14184 "n64") GOARCH=mips64 ;;
14185 esac
14186 case "${host}" in
14187 mips*el-*-*)
14188 GOARCH="${GOARCH}le"
14190 esac
14192 nios2-*-*)
14193 GOARCH=nios2
14195 rs6000*-*-* | powerpc*-*-*)
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14199 #ifdef _ARCH_PPC64
14200 #error 64-bit
14201 #endif
14203 _ACEOF
14204 if ac_fn_c_try_compile "$LINENO"; then :
14205 GOARCH=ppc
14206 else
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14212 #error 64be
14213 #endif
14215 _ACEOF
14216 if ac_fn_c_try_compile "$LINENO"; then :
14217 GOARCH=ppc64le
14218 else
14219 GOARCH=ppc64
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 riscv*-*-*)
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14229 #if __riscv_xlen == 64
14230 #error 64-bit
14231 #endif
14233 _ACEOF
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235 GOARCH=riscv
14236 else
14237 GOARCH=riscv64
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 s390*-*-*)
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14245 #if defined(__s390x__)
14246 #error 64-bit
14247 #endif
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251 GOARCH=s390
14252 else
14253 GOARCH=s390x
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 sh3eb*-*-* | sh4eb*-*-*)
14258 GOARCH=shbe
14260 sh3*-*-* | sh4*-*-*)
14261 GOARCH=sh
14263 sparc*-*-*)
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14267 #if defined(__sparcv9) || defined(__arch64__)
14268 #error 64-bit
14269 #endif
14271 _ACEOF
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273 GOARCH=sparc
14274 else
14275 GOARCH=sparc64
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 esac
14284 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14285 LIBGO_IS_X86_TRUE=
14286 LIBGO_IS_X86_FALSE='#'
14287 else
14288 LIBGO_IS_X86_TRUE='#'
14289 LIBGO_IS_X86_FALSE=
14293 FUNCTION_DESCRIPTORS=false
14294 case ${host} in
14295 rs6000*-*-* | powerpc*-*-*)
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 #if _CALL_ELF == 1
14300 #error descriptors
14301 #endif
14303 _ACEOF
14304 if ac_fn_c_try_compile "$LINENO"; then :
14305 FUNCTION_DESCRIPTORS=false
14306 else
14307 FUNCTION_DESCRIPTORS=true
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 esac
14314 GO_LIBCALL_OS_FILE=
14315 GO_LIBCALL_OS_ARCH_FILE=
14316 GO_SYSCALL_OS_FILE=
14317 GO_SYSCALL_OS_ARCH_FILE=
14318 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14319 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14321 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14322 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14324 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14325 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14327 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14328 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14335 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14336 case "$target" in
14337 mips-sgi-irix6.5*)
14338 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14339 # msghdr in <sys/socket.h>.
14340 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14342 *-*-solaris2.*)
14343 # Solaris 10+ needs this so struct msghdr gets the msg_control
14344 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14345 # above doesn't work with C99.
14346 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14348 esac
14352 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14354 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14355 # with a different meaning.
14356 case ${target_os} in
14357 solaris2*)
14358 ac_save_CFLAGS="$CFLAGS"
14359 CFLAGS="$CFLAGS -Wa,-nH"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14362 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14367 main ()
14369 return 0;
14371 return 0;
14373 _ACEOF
14374 if ac_fn_c_try_compile "$LINENO"; then :
14375 ac_hwcap_flags=yes
14376 else
14377 ac_hwcap_flags=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 if test "$ac_hwcap_flags" = "yes"; then
14381 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14384 $as_echo "$ac_hwcap_flags" >&6; }
14386 CFLAGS="$ac_save_CFLAGS"
14388 esac
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14394 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14395 if ${libgo_cv_c_split_stack_supported+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 CFLAGS_hold=$CFLAGS
14399 CFLAGS="$CFLAGS -fsplit-stack"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 int i;
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 libgo_cv_c_split_stack_supported=yes
14406 else
14407 libgo_cv_c_split_stack_supported=no
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 CFLAGS=$CFLAGS_hold
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14413 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14416 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14417 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 cat > conftest1.c << EOF
14421 extern void f();
14422 int main() { f(); return 0; }
14424 cat > conftest2.c << EOF
14425 void f() {}
14427 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14428 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14429 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14430 libgo_cv_c_linker_split_non_split=yes
14431 else
14432 libgo_cv_c_linker_split_non_split=no
14434 rm -f conftest1.* conftest2.* conftest
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14437 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14439 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14440 SPLIT_STACK=-fsplit-stack
14442 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14444 else
14445 SPLIT_STACK=
14448 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14449 USING_SPLIT_STACK_TRUE=
14450 USING_SPLIT_STACK_FALSE='#'
14451 else
14452 USING_SPLIT_STACK_TRUE='#'
14453 USING_SPLIT_STACK_FALSE=
14457 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14458 GO_SPLIT_STACK=-fno-split-stack
14459 else
14460 GO_SPLIT_STACK=
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14465 $as_echo_n "checking whether linker supports split stack... " >&6; }
14466 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 libgo_cv_c_linker_supports_split_stack=no
14470 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14471 libgo_cv_c_linker_supports_split_stack=yes
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14475 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14476 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14478 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14483 $as_echo_n "checking whether compiler is llgo... " >&6; }
14484 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 libgo_cv_c_goc_is_llgo=no
14488 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14489 libgo_cv_c_goc_is_llgo=yes
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14493 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14494 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14495 GOC_IS_LLGO_TRUE=
14496 GOC_IS_LLGO_FALSE='#'
14497 else
14498 GOC_IS_LLGO_TRUE='#'
14499 GOC_IS_LLGO_FALSE=
14503 MATH_LIBS=
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14505 $as_echo_n "checking for sqrt in -lm... " >&6; }
14506 if ${ac_cv_lib_m_sqrt+:} false; then :
14507 $as_echo_n "(cached) " >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lm $LIBS"
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 char sqrt ();
14522 main ()
14524 return sqrt ();
14526 return 0;
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 ac_cv_lib_m_sqrt=yes
14531 else
14532 ac_cv_lib_m_sqrt=no
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14539 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14540 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14541 MATH_LIBS=-lm
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14547 $as_echo_n "checking for socket libraries... " >&6; }
14548 if ${libgo_cv_lib_sockets+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 libgo_cv_lib_sockets=
14552 libgo_check_both=no
14553 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14554 if test "x$ac_cv_func_connect" = xyes; then :
14555 libgo_check_socket=no
14556 else
14557 libgo_check_socket=yes
14560 if test "$libgo_check_socket" = "yes"; then
14561 unset ac_cv_func_connect
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14563 $as_echo_n "checking for main in -lsocket... " >&6; }
14564 if ${ac_cv_lib_socket_main+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lsocket $LIBS"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14574 main ()
14576 return main ();
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_socket_main=yes
14583 else
14584 ac_cv_lib_socket_main=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14591 $as_echo "$ac_cv_lib_socket_main" >&6; }
14592 if test "x$ac_cv_lib_socket_main" = xyes; then :
14593 libgo_cv_lib_sockets="-lsocket"
14594 else
14595 libgo_check_both=yes
14599 if test "$libgo_check_both" = "yes"; then
14600 libgo_old_libs=$LIBS
14601 LIBS="$LIBS -lsocket -lnsl"
14602 unset ac_cv_func_accept
14603 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14604 if test "x$ac_cv_func_accept" = xyes; then :
14605 libgo_check_nsl=no
14606 libgo_cv_lib_sockets="-lsocket -lnsl"
14609 unset ac_cv_func_accept
14610 LIBS=$libgo_old_libs
14612 unset ac_cv_func_gethostbyname
14613 libgo_old_libs="$LIBS"
14614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14615 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14619 $as_echo_n "checking for main in -lnsl... " >&6; }
14620 if ${ac_cv_lib_nsl_main+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 ac_check_lib_save_LIBS=$LIBS
14624 LIBS="-lnsl $LIBS"
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14630 main ()
14632 return main ();
14634 return 0;
14636 _ACEOF
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_lib_nsl_main=yes
14639 else
14640 ac_cv_lib_nsl_main=no
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14647 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14648 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14649 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14654 unset ac_cv_func_gethostbyname
14655 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14656 if test "x$ac_cv_func_sendfile" = xyes; then :
14658 else
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14660 $as_echo_n "checking for main in -lsendfile... " >&6; }
14661 if ${ac_cv_lib_sendfile_main+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 ac_check_lib_save_LIBS=$LIBS
14665 LIBS="-lsendfile $LIBS"
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14671 main ()
14673 return main ();
14675 return 0;
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"; then :
14679 ac_cv_lib_sendfile_main=yes
14680 else
14681 ac_cv_lib_sendfile_main=no
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685 LIBS=$ac_check_lib_save_LIBS
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14688 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14689 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14690 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14695 LIBS=$libgo_old_libs
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14699 $as_echo "$libgo_cv_lib_sockets" >&6; }
14700 NET_LIBS="$libgo_cv_lib_sockets"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14704 $as_echo_n "checking whether -pthread is supported... " >&6; }
14705 if ${libgo_cv_lib_pthread+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 CFLAGS_hold=$CFLAGS
14709 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712 int i;
14713 _ACEOF
14714 if ac_fn_c_try_compile "$LINENO"; then :
14715 libgo_cv_lib_pthread=yes
14716 else
14717 libgo_cv_lib_pthread=no
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 CFLAGS=$CFLAGS_hold
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14723 $as_echo "$libgo_cv_lib_pthread" >&6; }
14724 PTHREAD_CFLAGS=
14725 if test "$libgo_cv_lib_pthread" = yes; then
14726 # RISC-V apparently adds -latomic when using -pthread.
14727 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14731 PTHREAD_LIBS=
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14733 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14734 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 ac_check_lib_save_LIBS=$LIBS
14738 LIBS="-lpthread $LIBS"
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14742 /* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14745 #ifdef __cplusplus
14746 extern "C"
14747 #endif
14748 char pthread_create ();
14750 main ()
14752 return pthread_create ();
14754 return 0;
14756 _ACEOF
14757 if ac_fn_c_try_link "$LINENO"; then :
14758 ac_cv_lib_pthread_pthread_create=yes
14759 else
14760 ac_cv_lib_pthread_pthread_create=no
14762 rm -f core conftest.err conftest.$ac_objext \
14763 conftest$ac_exeext conftest.$ac_ext
14764 LIBS=$ac_check_lib_save_LIBS
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14767 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14768 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14769 PTHREAD_LIBS=-lpthread
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14775 $as_echo_n "checking for library containing sched_yield... " >&6; }
14776 if ${ac_cv_search_sched_yield+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 ac_func_search_save_LIBS=$LIBS
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 char sched_yield ();
14791 main ()
14793 return sched_yield ();
14795 return 0;
14797 _ACEOF
14798 for ac_lib in '' rt; do
14799 if test -z "$ac_lib"; then
14800 ac_res="none required"
14801 else
14802 ac_res=-l$ac_lib
14803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 ac_cv_search_sched_yield=$ac_res
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext
14810 if ${ac_cv_search_sched_yield+:} false; then :
14811 break
14813 done
14814 if ${ac_cv_search_sched_yield+:} false; then :
14816 else
14817 ac_cv_search_sched_yield=no
14819 rm conftest.$ac_ext
14820 LIBS=$ac_func_search_save_LIBS
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14823 $as_echo "$ac_cv_search_sched_yield" >&6; }
14824 ac_res=$ac_cv_search_sched_yield
14825 if test "$ac_res" != no; then :
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14831 $as_echo_n "checking for library containing nanosleep... " >&6; }
14832 if ${ac_cv_search_nanosleep+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 ac_func_search_save_LIBS=$LIBS
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14839 /* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 char nanosleep ();
14847 main ()
14849 return nanosleep ();
14851 return 0;
14853 _ACEOF
14854 for ac_lib in '' rt; do
14855 if test -z "$ac_lib"; then
14856 ac_res="none required"
14857 else
14858 ac_res=-l$ac_lib
14859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14861 if ac_fn_c_try_link "$LINENO"; then :
14862 ac_cv_search_nanosleep=$ac_res
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext
14866 if ${ac_cv_search_nanosleep+:} false; then :
14867 break
14869 done
14870 if ${ac_cv_search_nanosleep+:} false; then :
14872 else
14873 ac_cv_search_nanosleep=no
14875 rm conftest.$ac_ext
14876 LIBS=$ac_func_search_save_LIBS
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14879 $as_echo "$ac_cv_search_nanosleep" >&6; }
14880 ac_res=$ac_cv_search_nanosleep
14881 if test "$ac_res" != no; then :
14882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14887 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14888 if ${ac_cv_search_clock_gettime+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 ac_func_search_save_LIBS=$LIBS
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 char clock_gettime ();
14903 main ()
14905 return clock_gettime ();
14907 return 0;
14909 _ACEOF
14910 for ac_lib in '' rt; do
14911 if test -z "$ac_lib"; then
14912 ac_res="none required"
14913 else
14914 ac_res=-l$ac_lib
14915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14917 if ac_fn_c_try_link "$LINENO"; then :
14918 ac_cv_search_clock_gettime=$ac_res
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext
14922 if ${ac_cv_search_clock_gettime+:} false; then :
14923 break
14925 done
14926 if ${ac_cv_search_clock_gettime+:} false; then :
14928 else
14929 ac_cv_search_clock_gettime=no
14931 rm conftest.$ac_ext
14932 LIBS=$ac_func_search_save_LIBS
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14935 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14936 ac_res=$ac_cv_search_clock_gettime
14937 if test "$ac_res" != no; then :
14938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14944 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14945 if ${ac_cv_c_bigendian+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947 else
14948 ac_cv_c_bigendian=unknown
14949 # See if we're dealing with a universal compiler.
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #ifndef __APPLE_CC__
14953 not a universal capable compiler
14954 #endif
14955 typedef int dummy;
14957 _ACEOF
14958 if ac_fn_c_try_compile "$LINENO"; then :
14960 # Check for potential -arch flags. It is not universal unless
14961 # there are at least two -arch flags with different values.
14962 ac_arch=
14963 ac_prev=
14964 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14965 if test -n "$ac_prev"; then
14966 case $ac_word in
14967 i?86 | x86_64 | ppc | ppc64)
14968 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14969 ac_arch=$ac_word
14970 else
14971 ac_cv_c_bigendian=universal
14972 break
14975 esac
14976 ac_prev=
14977 elif test "x$ac_word" = "x-arch"; then
14978 ac_prev=arch
14980 done
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 if test $ac_cv_c_bigendian = unknown; then
14984 # See if sys/param.h defines the BYTE_ORDER macro.
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 #include <sys/types.h>
14988 #include <sys/param.h>
14991 main ()
14993 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14994 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14995 && LITTLE_ENDIAN)
14996 bogus endian macros
14997 #endif
15000 return 0;
15002 _ACEOF
15003 if ac_fn_c_try_compile "$LINENO"; then :
15004 # It does; now see whether it defined to BIG_ENDIAN or not.
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 #include <sys/types.h>
15008 #include <sys/param.h>
15011 main ()
15013 #if BYTE_ORDER != BIG_ENDIAN
15014 not big endian
15015 #endif
15018 return 0;
15020 _ACEOF
15021 if ac_fn_c_try_compile "$LINENO"; then :
15022 ac_cv_c_bigendian=yes
15023 else
15024 ac_cv_c_bigendian=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 if test $ac_cv_c_bigendian = unknown; then
15031 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <limits.h>
15037 main ()
15039 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15040 bogus endian macros
15041 #endif
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 # It does; now see whether it defined to _BIG_ENDIAN or not.
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 #include <limits.h>
15054 main ()
15056 #ifndef _BIG_ENDIAN
15057 not big endian
15058 #endif
15061 return 0;
15063 _ACEOF
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065 ac_cv_c_bigendian=yes
15066 else
15067 ac_cv_c_bigendian=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 if test $ac_cv_c_bigendian = unknown; then
15074 # Compile a test program.
15075 if test "$cross_compiling" = yes; then :
15076 # Try to guess by grepping values from an object file.
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 short int ascii_mm[] =
15080 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15081 short int ascii_ii[] =
15082 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15083 int use_ascii (int i) {
15084 return ascii_mm[i] + ascii_ii[i];
15086 short int ebcdic_ii[] =
15087 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15088 short int ebcdic_mm[] =
15089 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15090 int use_ebcdic (int i) {
15091 return ebcdic_mm[i] + ebcdic_ii[i];
15093 extern int foo;
15096 main ()
15098 return use_ascii (foo) == use_ebcdic (foo);
15100 return 0;
15102 _ACEOF
15103 if ac_fn_c_try_compile "$LINENO"; then :
15104 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15105 ac_cv_c_bigendian=yes
15107 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15108 if test "$ac_cv_c_bigendian" = unknown; then
15109 ac_cv_c_bigendian=no
15110 else
15111 # finding both strings is unlikely to happen, but who knows?
15112 ac_cv_c_bigendian=unknown
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 else
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120 $ac_includes_default
15122 main ()
15125 /* Are we little or big endian? From Harbison&Steele. */
15126 union
15128 long int l;
15129 char c[sizeof (long int)];
15130 } u;
15131 u.l = 1;
15132 return u.c[sizeof (long int) - 1] == 1;
15135 return 0;
15137 _ACEOF
15138 if ac_fn_c_try_run "$LINENO"; then :
15139 ac_cv_c_bigendian=no
15140 else
15141 ac_cv_c_bigendian=yes
15143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15144 conftest.$ac_objext conftest.beam conftest.$ac_ext
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15150 $as_echo "$ac_cv_c_bigendian" >&6; }
15151 case $ac_cv_c_bigendian in #(
15152 yes)
15153 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15154 ;; #(
15156 ;; #(
15157 universal)
15159 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15161 ;; #(
15163 as_fn_error $? "unknown endianness
15164 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15165 esac
15170 # Check whether --with-system-libunwind was given.
15171 if test "${with_system_libunwind+set}" = set; then :
15172 withval=$with_system_libunwind;
15175 # If system-libunwind was not specifically set, pick a default setting.
15176 if test x$with_system_libunwind = x; then
15177 case ${target} in
15178 ia64-*-hpux*) with_system_libunwind=yes ;;
15179 *) with_system_libunwind=no ;;
15180 esac
15182 # Based on system-libunwind and target, do we have ipinfo?
15183 if test x$with_system_libunwind = xyes; then
15184 case ${target} in
15185 ia64-*-*) have_unwind_getipinfo=no ;;
15186 *) have_unwind_getipinfo=yes ;;
15187 esac
15188 else
15189 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15191 case ${target} in
15192 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15193 *) have_unwind_getipinfo=yes ;;
15194 esac
15198 if test x$have_unwind_getipinfo = xyes; then
15200 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15205 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/sysctl.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/bpf.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
15206 do :
15207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15208 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15209 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212 _ACEOF
15216 done
15219 for ac_header in netinet/icmp6.h
15220 do :
15221 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15224 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
15225 cat >>confdefs.h <<_ACEOF
15226 #define HAVE_NETINET_ICMP6_H 1
15227 _ACEOF
15231 done
15234 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
15235 do :
15236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15238 #include <sys/socket.h>
15239 #endif
15242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245 _ACEOF
15249 done
15252 if test "$ac_cv_header_sys_mman_h" = yes; then
15253 HAVE_SYS_MMAN_H_TRUE=
15254 HAVE_SYS_MMAN_H_FALSE='#'
15255 else
15256 HAVE_SYS_MMAN_H_TRUE='#'
15257 HAVE_SYS_MMAN_H_FALSE=
15261 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15262 do :
15263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15266 cat >>confdefs.h <<_ACEOF
15267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15268 _ACEOF
15271 done
15273 if test "$ac_cv_func_strerror_r" = yes; then
15274 HAVE_STRERROR_R_TRUE=
15275 HAVE_STRERROR_R_FALSE='#'
15276 else
15277 HAVE_STRERROR_R_TRUE='#'
15278 HAVE_STRERROR_R_FALSE=
15281 if test "$ac_cv_func_wait4" = yes; then
15282 HAVE_WAIT4_TRUE=
15283 HAVE_WAIT4_FALSE='#'
15284 else
15285 HAVE_WAIT4_TRUE='#'
15286 HAVE_WAIT4_FALSE=
15290 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
15291 do :
15292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15294 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15295 cat >>confdefs.h <<_ACEOF
15296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15297 _ACEOF
15300 done
15302 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15303 if test "x$ac_cv_type_off_t" = xyes; then :
15305 else
15307 cat >>confdefs.h <<_ACEOF
15308 #define off_t long int
15309 _ACEOF
15313 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15314 if test "x$ac_cv_type_loff_t" = xyes; then :
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_LOFF_T 1
15318 _ACEOF
15324 LIBS_hold="$LIBS"
15325 LIBS="$LIBS -lm"
15326 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15327 do :
15328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15331 cat >>confdefs.h <<_ACEOF
15332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15333 _ACEOF
15336 done
15338 LIBS="$LIBS_hold"
15340 CFLAGS_hold="$CFLAGS"
15341 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15342 LIBS_hold="$LIBS"
15343 LIBS="$LIBS $PTHREAD_LIBS"
15344 for ac_func in sem_timedwait
15345 do :
15346 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15347 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_SEM_TIMEDWAIT 1
15350 _ACEOF
15353 done
15355 CFLAGS="$CFLAGS_hold"
15356 LIBS="$LIBS_hold"
15358 LIBS_hold="$LIBS"
15359 LIBS="$LIBS $MATH_LIBS"
15360 for ac_func in matherr
15361 do :
15362 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15363 if test "x$ac_cv_func_matherr" = xyes; then :
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_MATHERR 1
15366 _ACEOF
15369 done
15371 LIBS="$LIBS_hold"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15374 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15375 if ${libgo_cv_c_stringops+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 CFLAGS_hold=$CFLAGS
15379 CFLAGS="$CFLAGS -minline-all-stringops"
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 int i;
15383 _ACEOF
15384 if ac_fn_c_try_compile "$LINENO"; then :
15385 libgo_cv_c_stringops=yes
15386 else
15387 libgo_cv_c_stringops=no
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 CFLAGS=$CFLAGS_hold
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15393 $as_echo "$libgo_cv_c_stringops" >&6; }
15394 STRINGOPS_FLAG=
15395 if test "$libgo_cv_c_stringops" = yes; then
15396 STRINGOPS_FLAG=-minline-all-stringops
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15401 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15402 if ${libgo_cv_c_fancymath+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 CFLAGS_hold=$CFLAGS
15406 CFLAGS="$CFLAGS -mfancy-math-387"
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 int i;
15410 _ACEOF
15411 if ac_fn_c_try_compile "$LINENO"; then :
15412 libgo_cv_c_fancymath=yes
15413 else
15414 libgo_cv_c_fancymath=no
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417 CFLAGS=$CFLAGS_hold
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15420 $as_echo "$libgo_cv_c_fancymath" >&6; }
15421 MATH_FLAG=
15422 if test "$libgo_cv_c_fancymath" = yes; then
15423 MATH_FLAG="-mfancy-math-387"
15425 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15428 CFLAGS_hold=$CFLAGS
15429 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15430 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15431 if test "x$ac_cv_type_off64_t" = xyes; then :
15433 cat >>confdefs.h <<_ACEOF
15434 #define HAVE_OFF64_T 1
15435 _ACEOF
15440 CFLAGS=$CFLAGS_hold
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15443 $as_echo_n "checking epoll_event size... " >&6; }
15444 if ${libgo_cv_c_epoll_event_size+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15449 else
15450 libgo_cv_c_epoll_event_size=0
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15455 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15456 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15460 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15461 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15462 $as_echo_n "(cached) " >&6
15463 else
15464 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15465 #include <sys/epoll.h>"; then :
15467 else
15468 libgo_cv_c_epoll_event_fd_offset=0
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15473 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15474 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 #include <sys/stat.h>
15481 _ACEOF
15482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15483 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15484 have_stat_timespec=yes
15485 else
15486 have_stat_timespec=no
15488 rm -f conftest*
15490 if test $have_stat_timespec = yes; then
15491 HAVE_STAT_TIMESPEC_TRUE=
15492 HAVE_STAT_TIMESPEC_FALSE='#'
15493 else
15494 HAVE_STAT_TIMESPEC_TRUE='#'
15495 HAVE_STAT_TIMESPEC_FALSE=
15499 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15501 if test "x$ac_cv_type_struct_exception" = xyes; then :
15502 libgo_has_struct_exception=yes
15503 else
15504 libgo_has_struct_exception=no
15507 if test "$libgo_has_struct_exception" = "yes"; then
15509 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15514 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15515 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15516 $as_echo_n "(cached) " >&6
15517 else
15518 CFLAGS_hold="$CFLAGS"
15519 CFLAGS="$PTHREAD_CFLAGS"
15520 LIBS_hold="$LIBS"
15521 LIBS="$LIBS $PTHREAD_LIBS"
15522 # The cast to long int works around a bug in the HP C Compiler
15523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15525 # This bug is HP SR number 8606223364.
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15527 $as_echo_n "checking size of void *... " >&6; }
15528 if ${ac_cv_sizeof_void_p+:} false; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15533 else
15534 if test "$ac_cv_type_void_p" = yes; then
15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15537 as_fn_error 77 "cannot compute sizeof (void *)
15538 See \`config.log' for more details" "$LINENO" 5; }
15539 else
15540 ac_cv_sizeof_void_p=0
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15546 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15550 cat >>confdefs.h <<_ACEOF
15551 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15552 _ACEOF
15555 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15556 if test "$cross_compiling" = yes; then :
15557 case "$target:$ptr_type_size" in
15558 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15559 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15561 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15562 esac
15564 else
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15568 #include <pthread.h>
15569 #include <stdlib.h>
15570 #include <ucontext.h>
15571 #include <unistd.h>
15573 __thread int tls;
15575 static char stack[10 * 1024 * 1024];
15576 static ucontext_t c;
15578 /* Called via makecontext/setcontext. */
15580 static void
15581 cfn (void)
15583 exit (tls);
15586 /* Called via pthread_create. */
15588 static void *
15589 tfn (void *dummy)
15591 /* The thread should still see this value after calling
15592 setcontext. */
15593 tls = 0;
15595 setcontext (&c);
15597 /* The call to setcontext should not return. */
15598 abort ();
15602 main ()
15604 pthread_t tid;
15606 /* The thread should not see this value. */
15607 tls = 1;
15609 if (getcontext (&c) < 0)
15610 abort ();
15612 c.uc_stack.ss_sp = stack;
15613 #ifdef MAKECONTEXT_STACK_TOP
15614 c.uc_stack.ss_sp += sizeof stack;
15615 #endif
15616 c.uc_stack.ss_flags = 0;
15617 c.uc_stack.ss_size = sizeof stack;
15618 c.uc_link = NULL;
15619 makecontext (&c, cfn, 0);
15621 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15622 abort ();
15624 if (pthread_join (tid, NULL) != 0)
15625 abort ();
15627 /* The thread should have called exit. */
15628 abort ();
15631 _ACEOF
15632 if ac_fn_c_try_run "$LINENO"; then :
15633 libgo_cv_lib_setcontext_clobbers_tls=no
15634 else
15635 libgo_cv_lib_setcontext_clobbers_tls=yes
15637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15638 conftest.$ac_objext conftest.beam conftest.$ac_ext
15641 CFLAGS="$CFLAGS_hold"
15642 LIBS="$LIBS_hold"
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15646 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15647 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15649 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15654 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15655 if ${libgo_cv_ro_eh_frame+:} false; then :
15656 $as_echo_n "(cached) " >&6
15657 else
15659 libgo_cv_ro_eh_frame=no
15660 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15661 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15662 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15663 libgo_cv_ro_eh_frame=yes
15664 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15665 | grep -v '#write' > /dev/null; then
15666 libgo_cv_ro_eh_frame=yes
15669 rm -f conftest.*
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15673 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15674 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15676 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15678 else
15680 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15685 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15686 if ${libgo_cv_c_unused_arguments+:} false; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 CFLAGS_hold=$CFLAGS
15690 CFLAGS="$CFLAGS -Qunused-arguments"
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 int i;
15694 _ACEOF
15695 if ac_fn_c_try_compile "$LINENO"; then :
15696 libgo_cv_c_unused_arguments=yes
15697 else
15698 libgo_cv_c_unused_arguments=no
15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 CFLAGS=$CFLAGS_hold
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15704 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15707 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15708 if ${libgo_cv_as_comdat_gnu+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15712 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15713 CFLAGS_hold=$CFLAGS
15714 if test "$libgo_cv_c_unused_arguments" = yes; then
15715 CFLAGS="$CFLAGS -Qunused-arguments"
15717 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15718 libgo_cv_as_comdat_gnu=yes
15719 else
15720 libgo_cv_as_comdat_gnu=no
15722 CFLAGS=$CFLAGS_hold
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15726 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15727 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15729 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15734 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15735 if ${libgo_cv_as_x86_pcrel+:} false; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15739 libgo_cv_as_x86_pcrel=yes
15740 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15741 CFLAGS_hold=$CFLAGS
15742 if test "$libgo_cv_c_unused_arguments" = yes; then
15743 CFLAGS="$CFLAGS -Qunused-arguments"
15745 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15746 libgo_cv_as_x86_pcrel=no
15748 CFLAGS=$CFLAGS_hold
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15752 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15753 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15755 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15760 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15761 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
15762 $as_echo_n "(cached) " >&6
15763 else
15765 libgo_cv_as_x86_64_unwind_section_type=yes
15766 echo '.section .eh_frame,"a",@unwind' > conftest.s
15767 CFLAGS_hold=$CFLAGS
15768 if test "$libgo_cv_c_unused_arguments" = yes; then
15769 CFLAGS="$CFLAGS -Qunused-arguments"
15771 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15772 libgo_cv_as_x86_64_unwind_section_type=no
15774 CFLAGS=$CFLAGS_hold
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15778 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15779 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15781 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15786 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15787 if ${libgo_cv_as_x86_aes+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15791 libgo_cv_as_x86_aes=yes
15792 echo 'aesenc %xmm0, %xmm1' > conftest.s
15793 CFLAGS_hold=$CFLAGS
15794 if test "$libgo_cv_c_unused_arguments" = yes; then
15795 CFLAGS="$CFLAGS -Qunused-arguments"
15797 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15798 libgo_cv_as_x86_aes=no
15800 CFLAGS=$CFLAGS_hold
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15804 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15805 if test "x$libgo_cv_as_x86_aes" = xyes; then
15807 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
15812 $as_echo_n "checking whether -static is supported... " >&6; }
15813 if ${libgo_cv_ld_static+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 LDFLAGS_hold=$LDFLAGS
15817 LDFLAGS="$LDFLAGS -static"
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15822 main ()
15826 return 0;
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"; then :
15830 libgo_cv_ld_static=yes
15831 else
15832 libgo_cv_ld_static=no
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 LDFLAGS=$LDFLAGS_hold
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
15839 $as_echo "$libgo_cv_ld_static" >&6; }
15840 if test "$libgo_cv_ld_static" = yes; then
15841 HAVE_STATIC_LINK_TRUE=
15842 HAVE_STATIC_LINK_FALSE='#'
15843 else
15844 HAVE_STATIC_LINK_TRUE='#'
15845 HAVE_STATIC_LINK_FALSE=
15849 cat >confcache <<\_ACEOF
15850 # This file is a shell script that caches the results of configure
15851 # tests run on this system so they can be shared between configure
15852 # scripts and configure runs, see configure's option --config-cache.
15853 # It is not useful on other systems. If it contains results you don't
15854 # want to keep, you may remove or edit it.
15856 # config.status only pays attention to the cache file if you give it
15857 # the --recheck option to rerun configure.
15859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15861 # following values.
15863 _ACEOF
15865 # The following way of writing the cache mishandles newlines in values,
15866 # but we know of no workaround that is simple, portable, and efficient.
15867 # So, we kill variables containing newlines.
15868 # Ultrix sh set writes to stderr and can't be redirected directly,
15869 # and sets the high bit in the cache file unless we assign to the vars.
15871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15872 eval ac_val=\$$ac_var
15873 case $ac_val in #(
15874 *${as_nl}*)
15875 case $ac_var in #(
15876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15878 esac
15879 case $ac_var in #(
15880 _ | IFS | as_nl) ;; #(
15881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15882 *) { eval $ac_var=; unset $ac_var;} ;;
15883 esac ;;
15884 esac
15885 done
15887 (set) 2>&1 |
15888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15889 *${as_nl}ac_space=\ *)
15890 # `set' does not quote correctly, so add quotes: double-quote
15891 # substitution turns \\\\ into \\, and sed turns \\ into \.
15892 sed -n \
15893 "s/'/'\\\\''/g;
15894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15895 ;; #(
15897 # `set' quotes correctly as required by POSIX, so do not add quotes.
15898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15900 esac |
15901 sort
15903 sed '
15904 /^ac_cv_env_/b end
15905 t clear
15906 :clear
15907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15908 t end
15909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15910 :end' >>confcache
15911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15912 if test -w "$cache_file"; then
15913 if test "x$cache_file" != "x/dev/null"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15915 $as_echo "$as_me: updating cache $cache_file" >&6;}
15916 if test ! -f "$cache_file" || test -h "$cache_file"; then
15917 cat confcache >"$cache_file"
15918 else
15919 case $cache_file in #(
15920 */* | ?:*)
15921 mv -f confcache "$cache_file"$$ &&
15922 mv -f "$cache_file"$$ "$cache_file" ;; #(
15924 mv -f confcache "$cache_file" ;;
15925 esac
15928 else
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15930 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15933 rm -f confcache
15935 if test ${multilib} = yes; then
15936 multilib_arg="--enable-multilib"
15937 else
15938 multilib_arg=
15941 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
15944 ac_config_commands="$ac_config_commands default"
15947 cat >confcache <<\_ACEOF
15948 # This file is a shell script that caches the results of configure
15949 # tests run on this system so they can be shared between configure
15950 # scripts and configure runs, see configure's option --config-cache.
15951 # It is not useful on other systems. If it contains results you don't
15952 # want to keep, you may remove or edit it.
15954 # config.status only pays attention to the cache file if you give it
15955 # the --recheck option to rerun configure.
15957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15959 # following values.
15961 _ACEOF
15963 # The following way of writing the cache mishandles newlines in values,
15964 # but we know of no workaround that is simple, portable, and efficient.
15965 # So, we kill variables containing newlines.
15966 # Ultrix sh set writes to stderr and can't be redirected directly,
15967 # and sets the high bit in the cache file unless we assign to the vars.
15969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15970 eval ac_val=\$$ac_var
15971 case $ac_val in #(
15972 *${as_nl}*)
15973 case $ac_var in #(
15974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15976 esac
15977 case $ac_var in #(
15978 _ | IFS | as_nl) ;; #(
15979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15980 *) { eval $ac_var=; unset $ac_var;} ;;
15981 esac ;;
15982 esac
15983 done
15985 (set) 2>&1 |
15986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15987 *${as_nl}ac_space=\ *)
15988 # `set' does not quote correctly, so add quotes: double-quote
15989 # substitution turns \\\\ into \\, and sed turns \\ into \.
15990 sed -n \
15991 "s/'/'\\\\''/g;
15992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15993 ;; #(
15995 # `set' quotes correctly as required by POSIX, so do not add quotes.
15996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15998 esac |
15999 sort
16001 sed '
16002 /^ac_cv_env_/b end
16003 t clear
16004 :clear
16005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16006 t end
16007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16008 :end' >>confcache
16009 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16010 if test -w "$cache_file"; then
16011 if test "x$cache_file" != "x/dev/null"; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16013 $as_echo "$as_me: updating cache $cache_file" >&6;}
16014 if test ! -f "$cache_file" || test -h "$cache_file"; then
16015 cat confcache >"$cache_file"
16016 else
16017 case $cache_file in #(
16018 */* | ?:*)
16019 mv -f confcache "$cache_file"$$ &&
16020 mv -f "$cache_file"$$ "$cache_file" ;; #(
16022 mv -f confcache "$cache_file" ;;
16023 esac
16026 else
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16031 rm -f confcache
16033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16034 # Let make expand exec_prefix.
16035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16037 DEFS=-DHAVE_CONFIG_H
16039 ac_libobjs=
16040 ac_ltlibobjs=
16042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16043 # 1. Remove the extension, and $U if already installed.
16044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16047 # will be set to the directory where LIBOBJS objects are built.
16048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16050 done
16051 LIBOBJS=$ac_libobjs
16053 LTLIBOBJS=$ac_ltlibobjs
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16057 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16058 if test -n "$am_sleep_pid"; then
16059 # Hide warnings about reused PIDs.
16060 wait $am_sleep_pid 2>/dev/null
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16063 $as_echo "done" >&6; }
16064 if test -n "$EXEEXT"; then
16065 am__EXEEXT_TRUE=
16066 am__EXEEXT_FALSE='#'
16067 else
16068 am__EXEEXT_TRUE='#'
16069 am__EXEEXT_FALSE=
16072 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16073 as_fn_error $? "conditional \"AMDEP\" was never defined.
16074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16077 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16080 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16081 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16084 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16085 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16088 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16089 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
16090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16092 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16093 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
16094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16096 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16097 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
16098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16100 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16101 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
16102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16104 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16105 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
16106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16108 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16109 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
16110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16112 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16113 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
16114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16116 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16117 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16120 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16121 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
16122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16124 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16125 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
16126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16128 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16129 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16132 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16133 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16136 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16137 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16140 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16141 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16144 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16145 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
16146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16148 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16149 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
16150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16153 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16154 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
16155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16157 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16158 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
16159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16161 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16162 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
16163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16165 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16166 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16169 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16170 as_fn_error $? "conditional \"HAVE_STATIC_LINK\" was never defined.
16171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16174 : "${CONFIG_STATUS=./config.status}"
16175 ac_write_fail=0
16176 ac_clean_files_save=$ac_clean_files
16177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16180 as_write_fail=0
16181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16182 #! $SHELL
16183 # Generated by $as_me.
16184 # Run this file to recreate the current configuration.
16185 # Compiler output produced by configure, useful for debugging
16186 # configure, is in config.log if it exists.
16188 debug=false
16189 ac_cs_recheck=false
16190 ac_cs_silent=false
16192 SHELL=\${CONFIG_SHELL-$SHELL}
16193 export SHELL
16194 _ASEOF
16195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16196 ## -------------------- ##
16197 ## M4sh Initialization. ##
16198 ## -------------------- ##
16200 # Be more Bourne compatible
16201 DUALCASE=1; export DUALCASE # for MKS sh
16202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16203 emulate sh
16204 NULLCMD=:
16205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16206 # is contrary to our usage. Disable this feature.
16207 alias -g '${1+"$@"}'='"$@"'
16208 setopt NO_GLOB_SUBST
16209 else
16210 case `(set -o) 2>/dev/null` in #(
16211 *posix*) :
16212 set -o posix ;; #(
16213 *) :
16215 esac
16219 as_nl='
16221 export as_nl
16222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16226 # Prefer a ksh shell builtin over an external printf program on Solaris,
16227 # but without wasting forks for bash or zsh.
16228 if test -z "$BASH_VERSION$ZSH_VERSION" \
16229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16230 as_echo='print -r --'
16231 as_echo_n='print -rn --'
16232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16233 as_echo='printf %s\n'
16234 as_echo_n='printf %s'
16235 else
16236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16238 as_echo_n='/usr/ucb/echo -n'
16239 else
16240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16241 as_echo_n_body='eval
16242 arg=$1;
16243 case $arg in #(
16244 *"$as_nl"*)
16245 expr "X$arg" : "X\\(.*\\)$as_nl";
16246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16247 esac;
16248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16250 export as_echo_n_body
16251 as_echo_n='sh -c $as_echo_n_body as_echo'
16253 export as_echo_body
16254 as_echo='sh -c $as_echo_body as_echo'
16257 # The user is always right.
16258 if test "${PATH_SEPARATOR+set}" != set; then
16259 PATH_SEPARATOR=:
16260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16262 PATH_SEPARATOR=';'
16267 # IFS
16268 # We need space, tab and new line, in precisely that order. Quoting is
16269 # there to prevent editors from complaining about space-tab.
16270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16271 # splitting by setting IFS to empty value.)
16272 IFS=" "" $as_nl"
16274 # Find who we are. Look in the path if we contain no directory separator.
16275 as_myself=
16276 case $0 in #((
16277 *[\\/]* ) as_myself=$0 ;;
16278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16281 IFS=$as_save_IFS
16282 test -z "$as_dir" && as_dir=.
16283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16284 done
16285 IFS=$as_save_IFS
16288 esac
16289 # We did not find ourselves, most probably we were run as `sh COMMAND'
16290 # in which case we are not to be found in the path.
16291 if test "x$as_myself" = x; then
16292 as_myself=$0
16294 if test ! -f "$as_myself"; then
16295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16296 exit 1
16299 # Unset variables that we do not need and which cause bugs (e.g. in
16300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16301 # suppresses any "Segmentation fault" message there. '((' could
16302 # trigger a bug in pdksh 5.2.14.
16303 for as_var in BASH_ENV ENV MAIL MAILPATH
16304 do eval test x\${$as_var+set} = xset \
16305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16306 done
16307 PS1='$ '
16308 PS2='> '
16309 PS4='+ '
16311 # NLS nuisances.
16312 LC_ALL=C
16313 export LC_ALL
16314 LANGUAGE=C
16315 export LANGUAGE
16317 # CDPATH.
16318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16322 # ----------------------------------------
16323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16325 # script with STATUS, using 1 if that was 0.
16326 as_fn_error ()
16328 as_status=$1; test $as_status -eq 0 && as_status=1
16329 if test "$4"; then
16330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16333 $as_echo "$as_me: error: $2" >&2
16334 as_fn_exit $as_status
16335 } # as_fn_error
16338 # as_fn_set_status STATUS
16339 # -----------------------
16340 # Set $? to STATUS, without forking.
16341 as_fn_set_status ()
16343 return $1
16344 } # as_fn_set_status
16346 # as_fn_exit STATUS
16347 # -----------------
16348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16349 as_fn_exit ()
16351 set +e
16352 as_fn_set_status $1
16353 exit $1
16354 } # as_fn_exit
16356 # as_fn_unset VAR
16357 # ---------------
16358 # Portably unset VAR.
16359 as_fn_unset ()
16361 { eval $1=; unset $1;}
16363 as_unset=as_fn_unset
16364 # as_fn_append VAR VALUE
16365 # ----------------------
16366 # Append the text in VALUE to the end of the definition contained in VAR. Take
16367 # advantage of any shell optimizations that allow amortized linear growth over
16368 # repeated appends, instead of the typical quadratic growth present in naive
16369 # implementations.
16370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16371 eval 'as_fn_append ()
16373 eval $1+=\$2
16375 else
16376 as_fn_append ()
16378 eval $1=\$$1\$2
16380 fi # as_fn_append
16382 # as_fn_arith ARG...
16383 # ------------------
16384 # Perform arithmetic evaluation on the ARGs, and store the result in the
16385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16386 # must be portable across $(()) and expr.
16387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16388 eval 'as_fn_arith ()
16390 as_val=$(( $* ))
16392 else
16393 as_fn_arith ()
16395 as_val=`expr "$@" || test $? -eq 1`
16397 fi # as_fn_arith
16400 if expr a : '\(a\)' >/dev/null 2>&1 &&
16401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16402 as_expr=expr
16403 else
16404 as_expr=false
16407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16408 as_basename=basename
16409 else
16410 as_basename=false
16413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16414 as_dirname=dirname
16415 else
16416 as_dirname=false
16419 as_me=`$as_basename -- "$0" ||
16420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16421 X"$0" : 'X\(//\)$' \| \
16422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16423 $as_echo X/"$0" |
16424 sed '/^.*\/\([^/][^/]*\)\/*$/{
16425 s//\1/
16428 /^X\/\(\/\/\)$/{
16429 s//\1/
16432 /^X\/\(\/\).*/{
16433 s//\1/
16436 s/.*/./; q'`
16438 # Avoid depending upon Character Ranges.
16439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16442 as_cr_digits='0123456789'
16443 as_cr_alnum=$as_cr_Letters$as_cr_digits
16445 ECHO_C= ECHO_N= ECHO_T=
16446 case `echo -n x` in #(((((
16447 -n*)
16448 case `echo 'xy\c'` in
16449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16450 xy) ECHO_C='\c';;
16451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16452 ECHO_T=' ';;
16453 esac;;
16455 ECHO_N='-n';;
16456 esac
16458 rm -f conf$$ conf$$.exe conf$$.file
16459 if test -d conf$$.dir; then
16460 rm -f conf$$.dir/conf$$.file
16461 else
16462 rm -f conf$$.dir
16463 mkdir conf$$.dir 2>/dev/null
16465 if (echo >conf$$.file) 2>/dev/null; then
16466 if ln -s conf$$.file conf$$ 2>/dev/null; then
16467 as_ln_s='ln -s'
16468 # ... but there are two gotchas:
16469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16471 # In both cases, we have to default to `cp -pR'.
16472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16473 as_ln_s='cp -pR'
16474 elif ln conf$$.file conf$$ 2>/dev/null; then
16475 as_ln_s=ln
16476 else
16477 as_ln_s='cp -pR'
16479 else
16480 as_ln_s='cp -pR'
16482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16483 rmdir conf$$.dir 2>/dev/null
16486 # as_fn_mkdir_p
16487 # -------------
16488 # Create "$as_dir" as a directory, including parents if necessary.
16489 as_fn_mkdir_p ()
16492 case $as_dir in #(
16493 -*) as_dir=./$as_dir;;
16494 esac
16495 test -d "$as_dir" || eval $as_mkdir_p || {
16496 as_dirs=
16497 while :; do
16498 case $as_dir in #(
16499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16500 *) as_qdir=$as_dir;;
16501 esac
16502 as_dirs="'$as_qdir' $as_dirs"
16503 as_dir=`$as_dirname -- "$as_dir" ||
16504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16505 X"$as_dir" : 'X\(//\)[^/]' \| \
16506 X"$as_dir" : 'X\(//\)$' \| \
16507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16508 $as_echo X"$as_dir" |
16509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16510 s//\1/
16513 /^X\(\/\/\)[^/].*/{
16514 s//\1/
16517 /^X\(\/\/\)$/{
16518 s//\1/
16521 /^X\(\/\).*/{
16522 s//\1/
16525 s/.*/./; q'`
16526 test -d "$as_dir" && break
16527 done
16528 test -z "$as_dirs" || eval "mkdir $as_dirs"
16529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16532 } # as_fn_mkdir_p
16533 if mkdir -p . 2>/dev/null; then
16534 as_mkdir_p='mkdir -p "$as_dir"'
16535 else
16536 test -d ./-p && rmdir ./-p
16537 as_mkdir_p=false
16541 # as_fn_executable_p FILE
16542 # -----------------------
16543 # Test if FILE is an executable regular file.
16544 as_fn_executable_p ()
16546 test -f "$1" && test -x "$1"
16547 } # as_fn_executable_p
16548 as_test_x='test -x'
16549 as_executable_p=as_fn_executable_p
16551 # Sed expression to map a string onto a valid CPP name.
16552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16554 # Sed expression to map a string onto a valid variable name.
16555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16558 exec 6>&1
16559 ## ----------------------------------- ##
16560 ## Main body of $CONFIG_STATUS script. ##
16561 ## ----------------------------------- ##
16562 _ASEOF
16563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566 # Save the log message, to keep $0 and so on meaningful, and to
16567 # report actual input values of CONFIG_FILES etc. instead of their
16568 # values after options handling.
16569 ac_log="
16570 This file was extended by package-unused $as_me version-unused, which was
16571 generated by GNU Autoconf 2.69. Invocation command line was
16573 CONFIG_FILES = $CONFIG_FILES
16574 CONFIG_HEADERS = $CONFIG_HEADERS
16575 CONFIG_LINKS = $CONFIG_LINKS
16576 CONFIG_COMMANDS = $CONFIG_COMMANDS
16577 $ $0 $@
16579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16582 _ACEOF
16584 case $ac_config_files in *"
16585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16586 esac
16588 case $ac_config_headers in *"
16589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16590 esac
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 # Files that config.status was made for.
16595 config_files="$ac_config_files"
16596 config_headers="$ac_config_headers"
16597 config_commands="$ac_config_commands"
16599 _ACEOF
16601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16602 ac_cs_usage="\
16603 \`$as_me' instantiates files and other configuration actions
16604 from templates according to the current configuration. Unless the files
16605 and actions are specified as TAGs, all are instantiated by default.
16607 Usage: $0 [OPTION]... [TAG]...
16609 -h, --help print this help, then exit
16610 -V, --version print version number and configuration settings, then exit
16611 --config print configuration, then exit
16612 -q, --quiet, --silent
16613 do not print progress messages
16614 -d, --debug don't remove temporary files
16615 --recheck update $as_me by reconfiguring in the same conditions
16616 --file=FILE[:TEMPLATE]
16617 instantiate the configuration file FILE
16618 --header=FILE[:TEMPLATE]
16619 instantiate the configuration header FILE
16621 Configuration files:
16622 $config_files
16624 Configuration headers:
16625 $config_headers
16627 Configuration commands:
16628 $config_commands
16630 Report bugs to the package provider."
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16634 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16635 ac_cs_version="\\
16636 package-unused config.status version-unused
16637 configured by $0, generated by GNU Autoconf 2.69,
16638 with options \\"\$ac_cs_config\\"
16640 Copyright (C) 2012 Free Software Foundation, Inc.
16641 This config.status script is free software; the Free Software Foundation
16642 gives unlimited permission to copy, distribute and modify it."
16644 ac_pwd='$ac_pwd'
16645 srcdir='$srcdir'
16646 INSTALL='$INSTALL'
16647 MKDIR_P='$MKDIR_P'
16648 AWK='$AWK'
16649 test -n "\$AWK" || AWK=awk
16650 _ACEOF
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 # The default lists apply if the user does not specify any file.
16654 ac_need_defaults=:
16655 while test $# != 0
16657 case $1 in
16658 --*=?*)
16659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16661 ac_shift=:
16663 --*=)
16664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16665 ac_optarg=
16666 ac_shift=:
16669 ac_option=$1
16670 ac_optarg=$2
16671 ac_shift=shift
16673 esac
16675 case $ac_option in
16676 # Handling of the options.
16677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16678 ac_cs_recheck=: ;;
16679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16680 $as_echo "$ac_cs_version"; exit ;;
16681 --config | --confi | --conf | --con | --co | --c )
16682 $as_echo "$ac_cs_config"; exit ;;
16683 --debug | --debu | --deb | --de | --d | -d )
16684 debug=: ;;
16685 --file | --fil | --fi | --f )
16686 $ac_shift
16687 case $ac_optarg in
16688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16689 '') as_fn_error $? "missing file argument" ;;
16690 esac
16691 as_fn_append CONFIG_FILES " '$ac_optarg'"
16692 ac_need_defaults=false;;
16693 --header | --heade | --head | --hea )
16694 $ac_shift
16695 case $ac_optarg in
16696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16697 esac
16698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16699 ac_need_defaults=false;;
16700 --he | --h)
16701 # Conflict between --help and --header
16702 as_fn_error $? "ambiguous option: \`$1'
16703 Try \`$0 --help' for more information.";;
16704 --help | --hel | -h )
16705 $as_echo "$ac_cs_usage"; exit ;;
16706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16708 ac_cs_silent=: ;;
16710 # This is an error.
16711 -*) as_fn_error $? "unrecognized option: \`$1'
16712 Try \`$0 --help' for more information." ;;
16714 *) as_fn_append ac_config_targets " $1"
16715 ac_need_defaults=false ;;
16717 esac
16718 shift
16719 done
16721 ac_configure_extra_args=
16723 if $ac_cs_silent; then
16724 exec 6>/dev/null
16725 ac_configure_extra_args="$ac_configure_extra_args --silent"
16728 _ACEOF
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 if \$ac_cs_recheck; then
16731 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16732 shift
16733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16734 CONFIG_SHELL='$SHELL'
16735 export CONFIG_SHELL
16736 exec "\$@"
16739 _ACEOF
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 exec 5>>config.log
16743 echo
16744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16745 ## Running $as_me. ##
16746 _ASBOX
16747 $as_echo "$ac_log"
16748 } >&5
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16753 # INIT-COMMANDS
16756 srcdir="$srcdir"
16757 host="$host"
16758 target="$target"
16759 with_multisubdir="$with_multisubdir"
16760 with_multisrctop="$with_multisrctop"
16761 with_target_subdir="$with_target_subdir"
16762 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16763 multi_basedir="$multi_basedir"
16764 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16765 CC="$CC"
16766 CXX="$CXX"
16767 GFORTRAN="$GFORTRAN"
16768 GDC="$GDC"
16769 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16772 # The HP-UX ksh and POSIX shell print the target directory to stdout
16773 # if CDPATH is set.
16774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16776 sed_quote_subst='$sed_quote_subst'
16777 double_quote_subst='$double_quote_subst'
16778 delay_variable_subst='$delay_variable_subst'
16779 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16780 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16781 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16782 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16783 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16784 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16785 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16786 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16787 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16788 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16789 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16790 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16791 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16792 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16793 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16794 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16795 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16796 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16797 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16798 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16799 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16800 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16801 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16802 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16803 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16804 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16805 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16806 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16807 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16808 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16809 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16810 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16811 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16812 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16813 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16814 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16815 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16816 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16817 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16818 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16819 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16820 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16821 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16822 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16823 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16824 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16825 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16826 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16827 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"`'
16828 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16829 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16830 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16831 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16832 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16833 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16834 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16835 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16836 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16837 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16838 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16839 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16840 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16841 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16842 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16843 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16844 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16845 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16846 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16847 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16848 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16849 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16850 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16851 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16852 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16853 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16854 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16855 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16856 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16857 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16858 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16859 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16860 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16861 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16862 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16863 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16864 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16865 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16866 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16867 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16868 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16869 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16870 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16871 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16872 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16873 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16874 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16875 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16876 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16877 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16878 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16879 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16880 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16881 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16882 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16883 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16884 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16885 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16886 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16887 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16888 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16889 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16890 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16891 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16892 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16893 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16894 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16895 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16896 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16897 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16898 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16899 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16900 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16901 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16902 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16903 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16904 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16905 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16906 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16907 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16908 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16909 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16910 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16911 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16912 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16913 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16914 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16915 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16916 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16917 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16918 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16919 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16920 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16921 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16922 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16923 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16924 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16925 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16926 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16927 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16928 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16929 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16930 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16931 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16932 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16933 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16934 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16935 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16936 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16937 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16938 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16939 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16940 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16941 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16943 LTCC='$LTCC'
16944 LTCFLAGS='$LTCFLAGS'
16945 compiler='$compiler_DEFAULT'
16947 # A function that is used when there is no print builtin or printf.
16948 func_fallback_echo ()
16950 eval 'cat <<_LTECHO_EOF
16952 _LTECHO_EOF'
16955 # Quote evaled strings.
16956 for var in SED \
16957 GREP \
16958 EGREP \
16959 FGREP \
16960 SHELL \
16961 ECHO \
16962 LD \
16963 NM \
16964 LN_S \
16965 lt_SP2NL \
16966 lt_NL2SP \
16967 reload_flag \
16968 OBJDUMP \
16969 deplibs_check_method \
16970 file_magic_cmd \
16971 AR \
16972 AR_FLAGS \
16973 STRIP \
16974 RANLIB \
16975 CC \
16976 CFLAGS \
16977 compiler \
16978 lt_cv_sys_global_symbol_pipe \
16979 lt_cv_sys_global_symbol_to_cdecl \
16980 lt_cv_sys_global_symbol_to_c_name_address \
16981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16982 lt_prog_compiler_no_builtin_flag \
16983 lt_prog_compiler_wl \
16984 lt_prog_compiler_pic \
16985 lt_prog_compiler_static \
16986 lt_cv_prog_compiler_c_o \
16987 need_locks \
16988 DSYMUTIL \
16989 NMEDIT \
16990 LIPO \
16991 OTOOL \
16992 OTOOL64 \
16993 shrext_cmds \
16994 export_dynamic_flag_spec \
16995 whole_archive_flag_spec \
16996 compiler_needs_object \
16997 with_gnu_ld \
16998 allow_undefined_flag \
16999 no_undefined_flag \
17000 hardcode_libdir_flag_spec \
17001 hardcode_libdir_flag_spec_ld \
17002 hardcode_libdir_separator \
17003 fix_srcfile_path \
17004 exclude_expsyms \
17005 include_expsyms \
17006 file_list_spec \
17007 variables_saved_for_relink \
17008 libname_spec \
17009 library_names_spec \
17010 soname_spec \
17011 install_override_mode \
17012 finish_eval \
17013 old_striplib \
17014 striplib \
17015 LD_GO \
17016 reload_flag_GO \
17017 compiler_GO \
17018 lt_prog_compiler_no_builtin_flag_GO \
17019 lt_prog_compiler_wl_GO \
17020 lt_prog_compiler_pic_GO \
17021 lt_prog_compiler_static_GO \
17022 lt_cv_prog_compiler_c_o_GO \
17023 export_dynamic_flag_spec_GO \
17024 whole_archive_flag_spec_GO \
17025 compiler_needs_object_GO \
17026 with_gnu_ld_GO \
17027 allow_undefined_flag_GO \
17028 no_undefined_flag_GO \
17029 hardcode_libdir_flag_spec_GO \
17030 hardcode_libdir_flag_spec_ld_GO \
17031 hardcode_libdir_separator_GO \
17032 fix_srcfile_path_GO \
17033 exclude_expsyms_GO \
17034 include_expsyms_GO \
17035 file_list_spec_GO; do
17036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17037 *[\\\\\\\`\\"\\\$]*)
17038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17043 esac
17044 done
17046 # Double-quote double-evaled strings.
17047 for var in reload_cmds \
17048 old_postinstall_cmds \
17049 old_postuninstall_cmds \
17050 old_archive_cmds \
17051 extract_expsyms_cmds \
17052 old_archive_from_new_cmds \
17053 old_archive_from_expsyms_cmds \
17054 archive_cmds \
17055 archive_expsym_cmds \
17056 module_cmds \
17057 module_expsym_cmds \
17058 export_symbols_cmds \
17059 prelink_cmds \
17060 postinstall_cmds \
17061 postuninstall_cmds \
17062 finish_cmds \
17063 sys_lib_search_path_spec \
17064 sys_lib_dlsearch_path_spec \
17065 reload_cmds_GO \
17066 old_archive_cmds_GO \
17067 old_archive_from_new_cmds_GO \
17068 old_archive_from_expsyms_cmds_GO \
17069 archive_cmds_GO \
17070 archive_expsym_cmds_GO \
17071 module_cmds_GO \
17072 module_expsym_cmds_GO \
17073 export_symbols_cmds_GO \
17074 prelink_cmds_GO; do
17075 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17076 *[\\\\\\\`\\"\\\$]*)
17077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17082 esac
17083 done
17085 ac_aux_dir='$ac_aux_dir'
17086 xsi_shell='$xsi_shell'
17087 lt_shell_append='$lt_shell_append'
17089 # See if we are running on zsh, and set the options which allow our
17090 # commands through without removal of \ escapes INIT.
17091 if test -n "\${ZSH_VERSION+set}" ; then
17092 setopt NO_GLOB_SUBST
17096 PACKAGE='$PACKAGE'
17097 VERSION='$VERSION'
17098 TIMESTAMP='$TIMESTAMP'
17099 RM='$RM'
17100 ofile='$ofile'
17107 # Variables needed in config.status (file generation) which aren't already
17108 # passed by autoconf.
17109 SUBDIRS="$SUBDIRS"
17112 _ACEOF
17114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116 # Handling of arguments.
17117 for ac_config_target in $ac_config_targets
17119 case $ac_config_target in
17120 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17121 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17125 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17126 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17127 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17129 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17130 esac
17131 done
17134 # If the user did not use the arguments to specify the items to instantiate,
17135 # then the envvar interface is used. Set only those that are not.
17136 # We use the long form for the default assignment because of an extremely
17137 # bizarre bug on SunOS 4.1.3.
17138 if $ac_need_defaults; then
17139 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17140 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17141 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17144 # Have a temporary directory for convenience. Make it in the build tree
17145 # simply because there is no reason against having it here, and in addition,
17146 # creating and moving files from /tmp can sometimes cause problems.
17147 # Hook for its removal unless debugging.
17148 # Note that there is a small window in which the directory will not be cleaned:
17149 # after its creation but before its name has been assigned to `$tmp'.
17150 $debug ||
17152 tmp= ac_tmp=
17153 trap 'exit_status=$?
17154 : "${ac_tmp:=$tmp}"
17155 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17157 trap 'as_fn_exit 1' 1 2 13 15
17159 # Create a (secure) tmp directory for tmp files.
17162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17163 test -d "$tmp"
17164 } ||
17166 tmp=./conf$$-$RANDOM
17167 (umask 077 && mkdir "$tmp")
17168 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17169 ac_tmp=$tmp
17171 # Set up the scripts for CONFIG_FILES section.
17172 # No need to generate them if there are no CONFIG_FILES.
17173 # This happens for instance with `./config.status config.h'.
17174 if test -n "$CONFIG_FILES"; then
17177 ac_cr=`echo X | tr X '\015'`
17178 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17179 # But we know of no other shell where ac_cr would be empty at this
17180 # point, so we can use a bashism as a fallback.
17181 if test "x$ac_cr" = x; then
17182 eval ac_cr=\$\'\\r\'
17184 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17185 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17186 ac_cs_awk_cr='\\r'
17187 else
17188 ac_cs_awk_cr=$ac_cr
17191 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17192 _ACEOF
17196 echo "cat >conf$$subs.awk <<_ACEOF" &&
17197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17198 echo "_ACEOF"
17199 } >conf$$subs.sh ||
17200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17201 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17202 ac_delim='%!_!# '
17203 for ac_last_try in false false false false false :; do
17204 . ./conf$$subs.sh ||
17205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17208 if test $ac_delim_n = $ac_delim_num; then
17209 break
17210 elif $ac_last_try; then
17211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17212 else
17213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17215 done
17216 rm -f conf$$subs.sh
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17220 _ACEOF
17221 sed -n '
17223 s/^/S["/; s/!.*/"]=/
17226 s/^[^!]*!//
17227 :repl
17228 t repl
17229 s/'"$ac_delim"'$//
17230 t delim
17233 s/\(.\{148\}\)..*/\1/
17234 t more1
17235 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17238 b repl
17239 :more1
17240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17243 s/.\{148\}//
17244 t nl
17245 :delim
17247 s/\(.\{148\}\)..*/\1/
17248 t more2
17249 s/["\\]/\\&/g; s/^/"/; s/$/"/
17252 :more2
17253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17256 s/.\{148\}//
17257 t delim
17258 ' <conf$$subs.awk | sed '
17259 /^[^""]/{
17261 s/\n//
17263 ' >>$CONFIG_STATUS || ac_write_fail=1
17264 rm -f conf$$subs.awk
17265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17266 _ACAWK
17267 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17268 for (key in S) S_is_set[key] = 1
17269 FS = "\a"
17273 line = $ 0
17274 nfields = split(line, field, "@")
17275 substed = 0
17276 len = length(field[1])
17277 for (i = 2; i < nfields; i++) {
17278 key = field[i]
17279 keylen = length(key)
17280 if (S_is_set[key]) {
17281 value = S[key]
17282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17283 len += length(value) + length(field[++i])
17284 substed = 1
17285 } else
17286 len += 1 + keylen
17289 print line
17292 _ACAWK
17293 _ACEOF
17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17297 else
17299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17301 _ACEOF
17303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17305 # trailing colons and then remove the whole line if VPATH becomes empty
17306 # (actually we leave an empty line to preserve line numbers).
17307 if test "x$srcdir" = x.; then
17308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17310 s///
17311 s/^/:/
17312 s/[ ]*$/:/
17313 s/:\$(srcdir):/:/g
17314 s/:\${srcdir}:/:/g
17315 s/:@srcdir@:/:/g
17316 s/^:*//
17317 s/:*$//
17319 s/\(=[ ]*\).*/\1/
17321 s/\n//
17322 s/^[^=]*=[ ]*$//
17326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17327 fi # test -n "$CONFIG_FILES"
17329 # Set up the scripts for CONFIG_HEADERS section.
17330 # No need to generate them if there are no CONFIG_HEADERS.
17331 # This happens for instance with `./config.status Makefile'.
17332 if test -n "$CONFIG_HEADERS"; then
17333 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17334 BEGIN {
17335 _ACEOF
17337 # Transform confdefs.h into an awk script `defines.awk', embedded as
17338 # here-document in config.status, that substitutes the proper values into
17339 # config.h.in to produce config.h.
17341 # Create a delimiter string that does not exist in confdefs.h, to ease
17342 # handling of long lines.
17343 ac_delim='%!_!# '
17344 for ac_last_try in false false :; do
17345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17346 if test -z "$ac_tt"; then
17347 break
17348 elif $ac_last_try; then
17349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17350 else
17351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17353 done
17355 # For the awk script, D is an array of macro values keyed by name,
17356 # likewise P contains macro parameters if any. Preserve backslash
17357 # newline sequences.
17359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17360 sed -n '
17361 s/.\{148\}/&'"$ac_delim"'/g
17362 t rset
17363 :rset
17364 s/^[ ]*#[ ]*define[ ][ ]*/ /
17365 t def
17367 :def
17368 s/\\$//
17369 t bsnl
17370 s/["\\]/\\&/g
17371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17372 D["\1"]=" \3"/p
17373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17375 :bsnl
17376 s/["\\]/\\&/g
17377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17378 D["\1"]=" \3\\\\\\n"\\/p
17379 t cont
17380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17381 t cont
17383 :cont
17385 s/.\{148\}/&'"$ac_delim"'/g
17386 t clear
17387 :clear
17388 s/\\$//
17389 t bsnlc
17390 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17392 :bsnlc
17393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17394 b cont
17395 ' <confdefs.h | sed '
17396 s/'"$ac_delim"'/"\\\
17397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17400 for (key in D) D_is_set[key] = 1
17401 FS = "\a"
17403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17404 line = \$ 0
17405 split(line, arg, " ")
17406 if (arg[1] == "#") {
17407 defundef = arg[2]
17408 mac1 = arg[3]
17409 } else {
17410 defundef = substr(arg[1], 2)
17411 mac1 = arg[2]
17413 split(mac1, mac2, "(") #)
17414 macro = mac2[1]
17415 prefix = substr(line, 1, index(line, defundef) - 1)
17416 if (D_is_set[macro]) {
17417 # Preserve the white space surrounding the "#".
17418 print prefix "define", macro P[macro] D[macro]
17419 next
17420 } else {
17421 # Replace #undef with comments. This is necessary, for example,
17422 # in the case of _POSIX_SOURCE, which is predefined and required
17423 # on some systems where configure will not decide to define it.
17424 if (defundef == "undef") {
17425 print "/*", prefix defundef, macro, "*/"
17426 next
17430 { print }
17431 _ACAWK
17432 _ACEOF
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17435 fi # test -n "$CONFIG_HEADERS"
17438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17439 shift
17440 for ac_tag
17442 case $ac_tag in
17443 :[FHLC]) ac_mode=$ac_tag; continue;;
17444 esac
17445 case $ac_mode$ac_tag in
17446 :[FHL]*:*);;
17447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17448 :[FH]-) ac_tag=-:-;;
17449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17450 esac
17451 ac_save_IFS=$IFS
17452 IFS=:
17453 set x $ac_tag
17454 IFS=$ac_save_IFS
17455 shift
17456 ac_file=$1
17457 shift
17459 case $ac_mode in
17460 :L) ac_source=$1;;
17461 :[FH])
17462 ac_file_inputs=
17463 for ac_f
17465 case $ac_f in
17466 -) ac_f="$ac_tmp/stdin";;
17467 *) # Look for the file first in the build tree, then in the source tree
17468 # (if the path is not absolute). The absolute path cannot be DOS-style,
17469 # because $ac_f cannot contain `:'.
17470 test -f "$ac_f" ||
17471 case $ac_f in
17472 [\\/$]*) false;;
17473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17474 esac ||
17475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17476 esac
17477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17478 as_fn_append ac_file_inputs " '$ac_f'"
17479 done
17481 # Let's still pretend it is `configure' which instantiates (i.e., don't
17482 # use $as_me), people would be surprised to read:
17483 # /* config.h. Generated by config.status. */
17484 configure_input='Generated from '`
17485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17486 `' by configure.'
17487 if test x"$ac_file" != x-; then
17488 configure_input="$ac_file. $configure_input"
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17490 $as_echo "$as_me: creating $ac_file" >&6;}
17492 # Neutralize special characters interpreted by sed in replacement strings.
17493 case $configure_input in #(
17494 *\&* | *\|* | *\\* )
17495 ac_sed_conf_input=`$as_echo "$configure_input" |
17496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17497 *) ac_sed_conf_input=$configure_input;;
17498 esac
17500 case $ac_tag in
17501 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17503 esac
17505 esac
17507 ac_dir=`$as_dirname -- "$ac_file" ||
17508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17509 X"$ac_file" : 'X\(//\)[^/]' \| \
17510 X"$ac_file" : 'X\(//\)$' \| \
17511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17512 $as_echo X"$ac_file" |
17513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17514 s//\1/
17517 /^X\(\/\/\)[^/].*/{
17518 s//\1/
17521 /^X\(\/\/\)$/{
17522 s//\1/
17525 /^X\(\/\).*/{
17526 s//\1/
17529 s/.*/./; q'`
17530 as_dir="$ac_dir"; as_fn_mkdir_p
17531 ac_builddir=.
17533 case "$ac_dir" in
17534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17537 # A ".." for each directory in $ac_dir_suffix.
17538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17539 case $ac_top_builddir_sub in
17540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17542 esac ;;
17543 esac
17544 ac_abs_top_builddir=$ac_pwd
17545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17546 # for backward compatibility:
17547 ac_top_builddir=$ac_top_build_prefix
17549 case $srcdir in
17550 .) # We are building in place.
17551 ac_srcdir=.
17552 ac_top_srcdir=$ac_top_builddir_sub
17553 ac_abs_top_srcdir=$ac_pwd ;;
17554 [\\/]* | ?:[\\/]* ) # Absolute name.
17555 ac_srcdir=$srcdir$ac_dir_suffix;
17556 ac_top_srcdir=$srcdir
17557 ac_abs_top_srcdir=$srcdir ;;
17558 *) # Relative name.
17559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17560 ac_top_srcdir=$ac_top_build_prefix$srcdir
17561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17562 esac
17563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17566 case $ac_mode in
17569 # CONFIG_FILE
17572 case $INSTALL in
17573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17575 esac
17576 ac_MKDIR_P=$MKDIR_P
17577 case $MKDIR_P in
17578 [\\/$]* | ?:[\\/]* ) ;;
17579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17580 esac
17581 _ACEOF
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584 # If the template does not know about datarootdir, expand it.
17585 # FIXME: This hack should be removed a few years after 2.60.
17586 ac_datarootdir_hack=; ac_datarootdir_seen=
17587 ac_sed_dataroot='
17588 /datarootdir/ {
17592 /@datadir@/p
17593 /@docdir@/p
17594 /@infodir@/p
17595 /@localedir@/p
17596 /@mandir@/p'
17597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17598 *datarootdir*) ac_datarootdir_seen=yes;;
17599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17602 _ACEOF
17603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 ac_datarootdir_hack='
17605 s&@datadir@&$datadir&g
17606 s&@docdir@&$docdir&g
17607 s&@infodir@&$infodir&g
17608 s&@localedir@&$localedir&g
17609 s&@mandir@&$mandir&g
17610 s&\\\${datarootdir}&$datarootdir&g' ;;
17611 esac
17612 _ACEOF
17614 # Neutralize VPATH when `$srcdir' = `.'.
17615 # Shell code in configure.ac might set extrasub.
17616 # FIXME: do we really want to maintain this feature?
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_sed_extra="$ac_vpsub
17619 $extrasub
17620 _ACEOF
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17624 s|@configure_input@|$ac_sed_conf_input|;t t
17625 s&@top_builddir@&$ac_top_builddir_sub&;t t
17626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17627 s&@srcdir@&$ac_srcdir&;t t
17628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17629 s&@top_srcdir@&$ac_top_srcdir&;t t
17630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17631 s&@builddir@&$ac_builddir&;t t
17632 s&@abs_builddir@&$ac_abs_builddir&;t t
17633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17634 s&@INSTALL@&$ac_INSTALL&;t t
17635 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17636 $ac_datarootdir_hack
17638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17646 which seems to be undefined. Please make sure it is defined" >&5
17647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17648 which seems to be undefined. Please make sure it is defined" >&2;}
17650 rm -f "$ac_tmp/stdin"
17651 case $ac_file in
17652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17654 esac \
17655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17659 # CONFIG_HEADER
17661 if test x"$ac_file" != x-; then
17663 $as_echo "/* $configure_input */" \
17664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17665 } >"$ac_tmp/config.h" \
17666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17667 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17670 else
17671 rm -f "$ac_file"
17672 mv "$ac_tmp/config.h" "$ac_file" \
17673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17675 else
17676 $as_echo "/* $configure_input */" \
17677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17678 || as_fn_error $? "could not create -" "$LINENO" 5
17680 # Compute "$ac_file"'s index in $config_headers.
17681 _am_arg="$ac_file"
17682 _am_stamp_count=1
17683 for _am_header in $config_headers :; do
17684 case $_am_header in
17685 $_am_arg | $_am_arg:* )
17686 break ;;
17688 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17689 esac
17690 done
17691 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17692 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$_am_arg" : 'X\(//\)[^/]' \| \
17694 X"$_am_arg" : 'X\(//\)$' \| \
17695 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17696 $as_echo X"$_am_arg" |
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17698 s//\1/
17701 /^X\(\/\/\)[^/].*/{
17702 s//\1/
17705 /^X\(\/\/\)$/{
17706 s//\1/
17709 /^X\(\/\).*/{
17710 s//\1/
17713 s/.*/./; q'`/stamp-h$_am_stamp_count
17716 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17717 $as_echo "$as_me: executing $ac_file commands" >&6;}
17719 esac
17722 case $ac_file$ac_mode in
17723 "default-1":C)
17724 # Only add multilib support code if we just rebuilt the top-level
17725 # Makefile.
17726 case " $CONFIG_FILES " in
17727 *" Makefile "*)
17728 ac_file=Makefile . ${multi_basedir}/config-ml.in
17730 esac ;;
17731 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17732 # Older Autoconf quotes --file arguments for eval, but not when files
17733 # are listed without --file. Let's play safe and only enable the eval
17734 # if we detect the quoting.
17735 case $CONFIG_FILES in
17736 *\'*) eval set x "$CONFIG_FILES" ;;
17737 *) set x $CONFIG_FILES ;;
17738 esac
17739 shift
17740 for mf
17742 # Strip MF so we end up with the name of the file.
17743 mf=`echo "$mf" | sed -e 's/:.*$//'`
17744 # Check whether this is an Automake generated Makefile or not.
17745 # We used to match only the files named 'Makefile.in', but
17746 # some people rename them; so instead we look at the file content.
17747 # Grep'ing the first line is not enough: some people post-process
17748 # each Makefile.in and add a new line on top of each file to say so.
17749 # Grep'ing the whole file is not good either: AIX grep has a line
17750 # limit of 2048, but all sed's we know have understand at least 4000.
17751 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17752 dirpart=`$as_dirname -- "$mf" ||
17753 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17754 X"$mf" : 'X\(//\)[^/]' \| \
17755 X"$mf" : 'X\(//\)$' \| \
17756 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17757 $as_echo X"$mf" |
17758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17759 s//\1/
17762 /^X\(\/\/\)[^/].*/{
17763 s//\1/
17766 /^X\(\/\/\)$/{
17767 s//\1/
17770 /^X\(\/\).*/{
17771 s//\1/
17774 s/.*/./; q'`
17775 else
17776 continue
17778 # Extract the definition of DEPDIR, am__include, and am__quote
17779 # from the Makefile without running 'make'.
17780 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17781 test -z "$DEPDIR" && continue
17782 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17783 test -z "$am__include" && continue
17784 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17785 # Find all dependency output files, they are included files with
17786 # $(DEPDIR) in their names. We invoke sed twice because it is the
17787 # simplest approach to changing $(DEPDIR) to its actual value in the
17788 # expansion.
17789 for file in `sed -n "
17790 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17791 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17792 # Make sure the directory exists.
17793 test -f "$dirpart/$file" && continue
17794 fdir=`$as_dirname -- "$file" ||
17795 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796 X"$file" : 'X\(//\)[^/]' \| \
17797 X"$file" : 'X\(//\)$' \| \
17798 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17799 $as_echo X"$file" |
17800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17801 s//\1/
17804 /^X\(\/\/\)[^/].*/{
17805 s//\1/
17808 /^X\(\/\/\)$/{
17809 s//\1/
17812 /^X\(\/\).*/{
17813 s//\1/
17816 s/.*/./; q'`
17817 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17818 # echo "creating $dirpart/$file"
17819 echo '# dummy' > "$dirpart/$file"
17820 done
17821 done
17824 "libtool":C)
17826 # See if we are running on zsh, and set the options which allow our
17827 # commands through without removal of \ escapes.
17828 if test -n "${ZSH_VERSION+set}" ; then
17829 setopt NO_GLOB_SUBST
17832 cfgfile="${ofile}T"
17833 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17834 $RM "$cfgfile"
17836 cat <<_LT_EOF >> "$cfgfile"
17837 #! $SHELL
17839 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17840 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17841 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17842 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17844 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17845 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17846 # Written by Gordon Matzigkeit, 1996
17848 # This file is part of GNU Libtool.
17850 # GNU Libtool is free software; you can redistribute it and/or
17851 # modify it under the terms of the GNU General Public License as
17852 # published by the Free Software Foundation; either version 2 of
17853 # the License, or (at your option) any later version.
17855 # As a special exception to the GNU General Public License,
17856 # if you distribute this file as part of a program or library that
17857 # is built using GNU Libtool, you may include this file under the
17858 # same distribution terms that you use for the rest of that program.
17860 # GNU Libtool is distributed in the hope that it will be useful,
17861 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17862 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17863 # GNU General Public License for more details.
17865 # You should have received a copy of the GNU General Public License
17866 # along with GNU Libtool; see the file COPYING. If not, a copy
17867 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17868 # obtained by writing to the Free Software Foundation, Inc.,
17869 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17872 # The names of the tagged configurations supported by this script.
17873 available_tags="GO "
17875 # ### BEGIN LIBTOOL CONFIG
17877 # A sed program that does not truncate output.
17878 SED=$lt_SED
17880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17881 Xsed="\$SED -e 1s/^X//"
17883 # A grep program that handles long lines.
17884 GREP=$lt_GREP
17886 # An ERE matcher.
17887 EGREP=$lt_EGREP
17889 # A literal string matcher.
17890 FGREP=$lt_FGREP
17892 # Shell to use when invoking shell scripts.
17893 SHELL=$lt_SHELL
17895 # An echo program that protects backslashes.
17896 ECHO=$lt_ECHO
17898 # Which release of libtool.m4 was used?
17899 macro_version=$macro_version
17900 macro_revision=$macro_revision
17902 # Whether or not to build shared libraries.
17903 build_libtool_libs=$enable_shared
17905 # Whether or not to build static libraries.
17906 build_old_libs=$enable_static
17908 # What type of objects to build.
17909 pic_mode=$pic_mode
17911 # Whether or not to optimize for fast installation.
17912 fast_install=$enable_fast_install
17914 # The host system.
17915 host_alias=$host_alias
17916 host=$host
17917 host_os=$host_os
17919 # The build system.
17920 build_alias=$build_alias
17921 build=$build
17922 build_os=$build_os
17924 # A BSD- or MS-compatible name lister.
17925 NM=$lt_NM
17927 # Whether we need soft or hard links.
17928 LN_S=$lt_LN_S
17930 # What is the maximum length of a command?
17931 max_cmd_len=$max_cmd_len
17933 # Object file suffix (normally "o").
17934 objext=$ac_objext
17936 # Executable file suffix (normally "").
17937 exeext=$exeext
17939 # whether the shell understands "unset".
17940 lt_unset=$lt_unset
17942 # turn spaces into newlines.
17943 SP2NL=$lt_lt_SP2NL
17945 # turn newlines into spaces.
17946 NL2SP=$lt_lt_NL2SP
17948 # An object symbol dumper.
17949 OBJDUMP=$lt_OBJDUMP
17951 # Method to check whether dependent libraries are shared objects.
17952 deplibs_check_method=$lt_deplibs_check_method
17954 # Command to use when deplibs_check_method == "file_magic".
17955 file_magic_cmd=$lt_file_magic_cmd
17957 # The archiver.
17958 AR=$lt_AR
17959 AR_FLAGS=$lt_AR_FLAGS
17961 # A symbol stripping program.
17962 STRIP=$lt_STRIP
17964 # Commands used to install an old-style archive.
17965 RANLIB=$lt_RANLIB
17966 old_postinstall_cmds=$lt_old_postinstall_cmds
17967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17969 # Whether to use a lock for old archive extraction.
17970 lock_old_archive_extraction=$lock_old_archive_extraction
17972 # A C compiler.
17973 LTCC=$lt_CC
17975 # LTCC compiler flags.
17976 LTCFLAGS=$lt_CFLAGS
17978 # Take the output of nm and produce a listing of raw symbols and C names.
17979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17981 # Transform the output of nm in a proper C declaration.
17982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17984 # Transform the output of nm in a C name address pair.
17985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17987 # Transform the output of nm in a C name address pair when lib prefix is needed.
17988 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17990 # The name of the directory that contains temporary libtool files.
17991 objdir=$objdir
17993 # Used to examine libraries when file_magic_cmd begins with "file".
17994 MAGIC_CMD=$MAGIC_CMD
17996 # Must we lock files when doing compilation?
17997 need_locks=$lt_need_locks
17999 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18000 DSYMUTIL=$lt_DSYMUTIL
18002 # Tool to change global to local symbols on Mac OS X.
18003 NMEDIT=$lt_NMEDIT
18005 # Tool to manipulate fat objects and archives on Mac OS X.
18006 LIPO=$lt_LIPO
18008 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18009 OTOOL=$lt_OTOOL
18011 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18012 OTOOL64=$lt_OTOOL64
18014 # Old archive suffix (normally "a").
18015 libext=$libext
18017 # Shared library suffix (normally ".so").
18018 shrext_cmds=$lt_shrext_cmds
18020 # The commands to extract the exported symbol list from a shared archive.
18021 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18023 # Variables whose values should be saved in libtool wrapper scripts and
18024 # restored at link time.
18025 variables_saved_for_relink=$lt_variables_saved_for_relink
18027 # Do we need the "lib" prefix for modules?
18028 need_lib_prefix=$need_lib_prefix
18030 # Do we need a version for libraries?
18031 need_version=$need_version
18033 # Library versioning type.
18034 version_type=$version_type
18036 # Shared library runtime path variable.
18037 runpath_var=$runpath_var
18039 # Shared library path variable.
18040 shlibpath_var=$shlibpath_var
18042 # Is shlibpath searched before the hard-coded library search path?
18043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18045 # Format of library name prefix.
18046 libname_spec=$lt_libname_spec
18048 # List of archive names. First name is the real one, the rest are links.
18049 # The last name is the one that the linker finds with -lNAME
18050 library_names_spec=$lt_library_names_spec
18052 # The coded name of the library, if different from the real name.
18053 soname_spec=$lt_soname_spec
18055 # Permission mode override for installation of shared libraries.
18056 install_override_mode=$lt_install_override_mode
18058 # Command to use after installation of a shared archive.
18059 postinstall_cmds=$lt_postinstall_cmds
18061 # Command to use after uninstallation of a shared archive.
18062 postuninstall_cmds=$lt_postuninstall_cmds
18064 # Commands used to finish a libtool library installation in a directory.
18065 finish_cmds=$lt_finish_cmds
18067 # As "finish_cmds", except a single script fragment to be evaled but
18068 # not shown.
18069 finish_eval=$lt_finish_eval
18071 # Whether we should hardcode library paths into libraries.
18072 hardcode_into_libs=$hardcode_into_libs
18074 # Compile-time system search path for libraries.
18075 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18077 # Run-time system search path for libraries.
18078 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18080 # Whether dlopen is supported.
18081 dlopen_support=$enable_dlopen
18083 # Whether dlopen of programs is supported.
18084 dlopen_self=$enable_dlopen_self
18086 # Whether dlopen of statically linked programs is supported.
18087 dlopen_self_static=$enable_dlopen_self_static
18089 # Commands to strip libraries.
18090 old_striplib=$lt_old_striplib
18091 striplib=$lt_striplib
18094 # The linker used to build libraries.
18095 LD=$lt_LD
18097 # How to create reloadable object files.
18098 reload_flag=$lt_reload_flag
18099 reload_cmds=$lt_reload_cmds
18101 # Commands used to build an old-style archive.
18102 old_archive_cmds=$lt_old_archive_cmds
18104 # A language specific compiler.
18105 CC=$lt_compiler
18107 # Is the compiler the GNU compiler?
18108 with_gcc=$GCC
18110 # Compiler flag to turn off builtin functions.
18111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18113 # How to pass a linker flag through the compiler.
18114 wl=$lt_lt_prog_compiler_wl
18116 # Additional compiler flags for building library objects.
18117 pic_flag=$lt_lt_prog_compiler_pic
18119 # Compiler flag to prevent dynamic linking.
18120 link_static_flag=$lt_lt_prog_compiler_static
18122 # Does compiler simultaneously support -c and -o options?
18123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18125 # Whether or not to add -lc for building shared libraries.
18126 build_libtool_need_lc=$archive_cmds_need_lc
18128 # Whether or not to disallow shared libs when runtime libs are static.
18129 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18131 # Compiler flag to allow reflexive dlopens.
18132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18134 # Compiler flag to generate shared objects directly from archives.
18135 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18137 # Whether the compiler copes with passing no objects directly.
18138 compiler_needs_object=$lt_compiler_needs_object
18140 # Create an old-style archive from a shared archive.
18141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18143 # Create a temporary old-style archive to link instead of a shared archive.
18144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18146 # Commands used to build a shared archive.
18147 archive_cmds=$lt_archive_cmds
18148 archive_expsym_cmds=$lt_archive_expsym_cmds
18150 # Commands used to build a loadable module if different from building
18151 # a shared archive.
18152 module_cmds=$lt_module_cmds
18153 module_expsym_cmds=$lt_module_expsym_cmds
18155 # Whether we are building with GNU ld or not.
18156 with_gnu_ld=$lt_with_gnu_ld
18158 # Flag that allows shared libraries with undefined symbols to be built.
18159 allow_undefined_flag=$lt_allow_undefined_flag
18161 # Flag that enforces no undefined symbols.
18162 no_undefined_flag=$lt_no_undefined_flag
18164 # Flag to hardcode \$libdir into a binary during linking.
18165 # This must work even if \$libdir does not exist
18166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18168 # If ld is used when linking, flag to hardcode \$libdir into a binary
18169 # during linking. This must work even if \$libdir does not exist.
18170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18172 # Whether we need a single "-rpath" flag with a separated argument.
18173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18175 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18176 # DIR into the resulting binary.
18177 hardcode_direct=$hardcode_direct
18179 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18180 # DIR into the resulting binary and the resulting library dependency is
18181 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18182 # library is relocated.
18183 hardcode_direct_absolute=$hardcode_direct_absolute
18185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18186 # into the resulting binary.
18187 hardcode_minus_L=$hardcode_minus_L
18189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18190 # into the resulting binary.
18191 hardcode_shlibpath_var=$hardcode_shlibpath_var
18193 # Set to "yes" if building a shared library automatically hardcodes DIR
18194 # into the library and all subsequent libraries and executables linked
18195 # against it.
18196 hardcode_automatic=$hardcode_automatic
18198 # Set to yes if linker adds runtime paths of dependent libraries
18199 # to runtime path list.
18200 inherit_rpath=$inherit_rpath
18202 # Whether libtool must link a program against all its dependency libraries.
18203 link_all_deplibs=$link_all_deplibs
18205 # Fix the shell variable \$srcfile for the compiler.
18206 fix_srcfile_path=$lt_fix_srcfile_path
18208 # Set to "yes" if exported symbols are required.
18209 always_export_symbols=$always_export_symbols
18211 # The commands to list exported symbols.
18212 export_symbols_cmds=$lt_export_symbols_cmds
18214 # Symbols that should not be listed in the preloaded symbols.
18215 exclude_expsyms=$lt_exclude_expsyms
18217 # Symbols that must always be exported.
18218 include_expsyms=$lt_include_expsyms
18220 # Commands necessary for linking programs (against libraries) with templates.
18221 prelink_cmds=$lt_prelink_cmds
18223 # Specify filename containing input files.
18224 file_list_spec=$lt_file_list_spec
18226 # How to hardcode a shared library path into an executable.
18227 hardcode_action=$hardcode_action
18229 # ### END LIBTOOL CONFIG
18231 _LT_EOF
18233 case $host_os in
18234 aix3*)
18235 cat <<\_LT_EOF >> "$cfgfile"
18236 # AIX sometimes has problems with the GCC collect2 program. For some
18237 # reason, if we set the COLLECT_NAMES environment variable, the problems
18238 # vanish in a puff of smoke.
18239 if test "X${COLLECT_NAMES+set}" != Xset; then
18240 COLLECT_NAMES=
18241 export COLLECT_NAMES
18243 _LT_EOF
18245 esac
18248 ltmain="$ac_aux_dir/ltmain.sh"
18251 # We use sed instead of cat because bash on DJGPP gets confused if
18252 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18253 # text mode, it properly converts lines to CR/LF. This bash problem
18254 # is reportedly fixed, but why not run on old versions too?
18255 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18256 || (rm -f "$cfgfile"; exit 1)
18258 case $xsi_shell in
18259 yes)
18260 cat << \_LT_EOF >> "$cfgfile"
18262 # func_dirname file append nondir_replacement
18263 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18264 # otherwise set result to NONDIR_REPLACEMENT.
18265 func_dirname ()
18267 case ${1} in
18268 */*) func_dirname_result="${1%/*}${2}" ;;
18269 * ) func_dirname_result="${3}" ;;
18270 esac
18273 # func_basename file
18274 func_basename ()
18276 func_basename_result="${1##*/}"
18279 # func_dirname_and_basename file append nondir_replacement
18280 # perform func_basename and func_dirname in a single function
18281 # call:
18282 # dirname: Compute the dirname of FILE. If nonempty,
18283 # add APPEND to the result, otherwise set result
18284 # to NONDIR_REPLACEMENT.
18285 # value returned in "$func_dirname_result"
18286 # basename: Compute filename of FILE.
18287 # value retuned in "$func_basename_result"
18288 # Implementation must be kept synchronized with func_dirname
18289 # and func_basename. For efficiency, we do not delegate to
18290 # those functions but instead duplicate the functionality here.
18291 func_dirname_and_basename ()
18293 case ${1} in
18294 */*) func_dirname_result="${1%/*}${2}" ;;
18295 * ) func_dirname_result="${3}" ;;
18296 esac
18297 func_basename_result="${1##*/}"
18300 # func_stripname prefix suffix name
18301 # strip PREFIX and SUFFIX off of NAME.
18302 # PREFIX and SUFFIX must not contain globbing or regex special
18303 # characters, hashes, percent signs, but SUFFIX may contain a leading
18304 # dot (in which case that matches only a dot).
18305 func_stripname ()
18307 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18308 # positional parameters, so assign one to ordinary parameter first.
18309 func_stripname_result=${3}
18310 func_stripname_result=${func_stripname_result#"${1}"}
18311 func_stripname_result=${func_stripname_result%"${2}"}
18314 # func_opt_split
18315 func_opt_split ()
18317 func_opt_split_opt=${1%%=*}
18318 func_opt_split_arg=${1#*=}
18321 # func_lo2o object
18322 func_lo2o ()
18324 case ${1} in
18325 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18326 *) func_lo2o_result=${1} ;;
18327 esac
18330 # func_xform libobj-or-source
18331 func_xform ()
18333 func_xform_result=${1%.*}.lo
18336 # func_arith arithmetic-term...
18337 func_arith ()
18339 func_arith_result=$(( $* ))
18342 # func_len string
18343 # STRING may not start with a hyphen.
18344 func_len ()
18346 func_len_result=${#1}
18349 _LT_EOF
18351 *) # Bourne compatible functions.
18352 cat << \_LT_EOF >> "$cfgfile"
18354 # func_dirname file append nondir_replacement
18355 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18356 # otherwise set result to NONDIR_REPLACEMENT.
18357 func_dirname ()
18359 # Extract subdirectory from the argument.
18360 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18361 if test "X$func_dirname_result" = "X${1}"; then
18362 func_dirname_result="${3}"
18363 else
18364 func_dirname_result="$func_dirname_result${2}"
18368 # func_basename file
18369 func_basename ()
18371 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18375 # func_stripname prefix suffix name
18376 # strip PREFIX and SUFFIX off of NAME.
18377 # PREFIX and SUFFIX must not contain globbing or regex special
18378 # characters, hashes, percent signs, but SUFFIX may contain a leading
18379 # dot (in which case that matches only a dot).
18380 # func_strip_suffix prefix name
18381 func_stripname ()
18383 case ${2} in
18384 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18385 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18386 esac
18389 # sed scripts:
18390 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18391 my_sed_long_arg='1s/^-[^=]*=//'
18393 # func_opt_split
18394 func_opt_split ()
18396 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18397 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18400 # func_lo2o object
18401 func_lo2o ()
18403 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18406 # func_xform libobj-or-source
18407 func_xform ()
18409 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18412 # func_arith arithmetic-term...
18413 func_arith ()
18415 func_arith_result=`expr "$@"`
18418 # func_len string
18419 # STRING may not start with a hyphen.
18420 func_len ()
18422 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18425 _LT_EOF
18426 esac
18428 case $lt_shell_append in
18429 yes)
18430 cat << \_LT_EOF >> "$cfgfile"
18432 # func_append var value
18433 # Append VALUE to the end of shell variable VAR.
18434 func_append ()
18436 eval "$1+=\$2"
18438 _LT_EOF
18441 cat << \_LT_EOF >> "$cfgfile"
18443 # func_append var value
18444 # Append VALUE to the end of shell variable VAR.
18445 func_append ()
18447 eval "$1=\$$1\$2"
18450 _LT_EOF
18452 esac
18455 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18456 || (rm -f "$cfgfile"; exit 1)
18458 mv -f "$cfgfile" "$ofile" ||
18459 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18460 chmod +x "$ofile"
18463 cat <<_LT_EOF >> "$ofile"
18465 # ### BEGIN LIBTOOL TAG CONFIG: GO
18467 # The linker used to build libraries.
18468 LD=$lt_LD_GO
18470 # How to create reloadable object files.
18471 reload_flag=$lt_reload_flag_GO
18472 reload_cmds=$lt_reload_cmds_GO
18474 # Commands used to build an old-style archive.
18475 old_archive_cmds=$lt_old_archive_cmds_GO
18477 # A language specific compiler.
18478 CC=$lt_compiler_GO
18480 # Is the compiler the GNU compiler?
18481 with_gcc=$GCC_GO
18483 # Compiler flag to turn off builtin functions.
18484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18486 # How to pass a linker flag through the compiler.
18487 wl=$lt_lt_prog_compiler_wl_GO
18489 # Additional compiler flags for building library objects.
18490 pic_flag=$lt_lt_prog_compiler_pic_GO
18492 # Compiler flag to prevent dynamic linking.
18493 link_static_flag=$lt_lt_prog_compiler_static_GO
18495 # Does compiler simultaneously support -c and -o options?
18496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18498 # Whether or not to add -lc for building shared libraries.
18499 build_libtool_need_lc=$archive_cmds_need_lc_GO
18501 # Whether or not to disallow shared libs when runtime libs are static.
18502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18504 # Compiler flag to allow reflexive dlopens.
18505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18507 # Compiler flag to generate shared objects directly from archives.
18508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18510 # Whether the compiler copes with passing no objects directly.
18511 compiler_needs_object=$lt_compiler_needs_object_GO
18513 # Create an old-style archive from a shared archive.
18514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18516 # Create a temporary old-style archive to link instead of a shared archive.
18517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18519 # Commands used to build a shared archive.
18520 archive_cmds=$lt_archive_cmds_GO
18521 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18523 # Commands used to build a loadable module if different from building
18524 # a shared archive.
18525 module_cmds=$lt_module_cmds_GO
18526 module_expsym_cmds=$lt_module_expsym_cmds_GO
18528 # Whether we are building with GNU ld or not.
18529 with_gnu_ld=$lt_with_gnu_ld_GO
18531 # Flag that allows shared libraries with undefined symbols to be built.
18532 allow_undefined_flag=$lt_allow_undefined_flag_GO
18534 # Flag that enforces no undefined symbols.
18535 no_undefined_flag=$lt_no_undefined_flag_GO
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18541 # If ld is used when linking, flag to hardcode \$libdir into a binary
18542 # during linking. This must work even if \$libdir does not exist.
18543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18545 # Whether we need a single "-rpath" flag with a separated argument.
18546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18549 # DIR into the resulting binary.
18550 hardcode_direct=$hardcode_direct_GO
18552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18553 # DIR into the resulting binary and the resulting library dependency is
18554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18555 # library is relocated.
18556 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18559 # into the resulting binary.
18560 hardcode_minus_L=$hardcode_minus_L_GO
18562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18563 # into the resulting binary.
18564 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18566 # Set to "yes" if building a shared library automatically hardcodes DIR
18567 # into the library and all subsequent libraries and executables linked
18568 # against it.
18569 hardcode_automatic=$hardcode_automatic_GO
18571 # Set to yes if linker adds runtime paths of dependent libraries
18572 # to runtime path list.
18573 inherit_rpath=$inherit_rpath_GO
18575 # Whether libtool must link a program against all its dependency libraries.
18576 link_all_deplibs=$link_all_deplibs_GO
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path=$lt_fix_srcfile_path_GO
18581 # Set to "yes" if exported symbols are required.
18582 always_export_symbols=$always_export_symbols_GO
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds_GO
18587 # Symbols that should not be listed in the preloaded symbols.
18588 exclude_expsyms=$lt_exclude_expsyms_GO
18590 # Symbols that must always be exported.
18591 include_expsyms=$lt_include_expsyms_GO
18593 # Commands necessary for linking programs (against libraries) with templates.
18594 prelink_cmds=$lt_prelink_cmds_GO
18596 # Specify filename containing input files.
18597 file_list_spec=$lt_file_list_spec_GO
18599 # How to hardcode a shared library path into an executable.
18600 hardcode_action=$hardcode_action_GO
18602 # ### END LIBTOOL TAG CONFIG: GO
18603 _LT_EOF
18606 "default":C) if test -n "$CONFIG_FILES"; then
18607 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18608 # that multilib installs will end up installed in the correct place.
18609 # The testsuite needs it for multilib-aware ABI baseline files.
18610 # To work around this not being passed down from config-ml.in ->
18611 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18612 # append it here. Only modify Makefiles that have just been created.
18614 # Also, get rid of this simulated-VPATH thing that automake does.
18615 cat > vpsed << \_EOF
18616 s!`test -f '$<' || echo '$(srcdir)/'`!!
18617 _EOF
18618 for i in $SUBDIRS; do
18619 case $CONFIG_FILES in
18620 *${i}/Makefile*)
18621 #echo "Adding MULTISUBDIR to $i/Makefile"
18622 sed -f vpsed $i/Makefile > tmp
18623 grep '^MULTISUBDIR =' Makefile >> tmp
18624 mv tmp $i/Makefile
18626 esac
18627 done
18628 rm vpsed
18632 esac
18633 done # for ac_tag
18636 as_fn_exit 0
18637 _ACEOF
18638 ac_clean_files=$ac_clean_files_save
18640 test $ac_write_fail = 0 ||
18641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18644 # configure is writing to config.log, and then calls config.status.
18645 # config.status does its own redirection, appending to config.log.
18646 # Unfortunately, on DOS this fails, as config.log is still kept open
18647 # by configure, so config.status won't be able to write to it; its
18648 # output is simply discarded. So we exec the FD to /dev/null,
18649 # effectively closing config.log, so it can be properly (re)opened and
18650 # appended to by config.status. When coming back to configure, we
18651 # need to make the FD available again.
18652 if test "$no_create" != yes; then
18653 ac_cs_success=:
18654 ac_config_status_args=
18655 test "$silent" = yes &&
18656 ac_config_status_args="$ac_config_status_args --quiet"
18657 exec 5>/dev/null
18658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18659 exec 5>>config.log
18660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18661 # would make configure fail if this is the last instruction.
18662 $ac_cs_success || as_fn_exit 1
18664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}