libbacktrace: don't let "make clean" remove allocfail.sh
[official-gcc.git] / libgo / configure
blob61a49947eb947488a94ac3bd1a5399aefcdb858a
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 --disable-werror disable building with -Werror
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_member LINENO AGGR MEMBER VAR INCLUDES
1960 # ----------------------------------------------------
1961 # Tries to find if the field MEMBER exists in type AGGR, after including
1962 # INCLUDES, setting cache variable VAR accordingly.
1963 ac_fn_c_check_member ()
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.$3" >&5
1967 $as_echo_n "checking for $2.$3... " >&6; }
1968 if eval \${$4+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 main ()
1977 static $2 ac_aggr;
1978 if (ac_aggr.$3)
1979 return 0;
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$4=yes"
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static $2 ac_aggr;
1994 if (sizeof ac_aggr.$3)
1995 return 0;
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$4=yes"
2002 else
2003 eval "$4=no"
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 eval ac_res=\$$4
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_member
2016 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2017 # -------------------------------------------
2018 # Tests whether TYPE exists after having included INCLUDES, setting cache
2019 # variable VAR accordingly.
2020 ac_fn_c_check_type ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 eval "$3=no"
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 if (sizeof ($2))
2036 return 0;
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 main ()
2048 if (sizeof (($2)))
2049 return 0;
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2056 else
2057 eval "$3=yes"
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_type
2070 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071 # --------------------------------------------
2072 # Tries to find the compile-time value of EXPR in a program that includes
2073 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2074 # computed
2075 ac_fn_c_compute_int ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) >= 0)];
2087 test_array [0] = 0;
2088 return test_array [0];
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=0 ac_mid=0
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2101 main ()
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 test_array [0] = 0;
2105 return test_array [0];
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0;
2132 return test_array [0];
2135 return 0;
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=-1 ac_mid=-1
2140 while :; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2148 test_array [0] = 0;
2149 return test_array [0];
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_lo=$ac_mid; break
2157 else
2158 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2159 if test $ac_mid -le $ac_hi; then
2160 ac_lo= ac_hi=
2161 break
2163 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 else
2168 ac_lo= ac_hi=
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 # Binary search between lo and hi bounds.
2174 while test "x$ac_lo" != "x$ac_hi"; do
2175 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0;
2184 return test_array [0];
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2210 main ()
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2223 else
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2251 } # ac_fn_c_compute_int
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2256 It was created by package-unused $as_me version-unused, which was
2257 generated by GNU Autoconf 2.69. Invocation command line was
2259 $ $0 $@
2261 _ACEOF
2262 exec 5>>config.log
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2286 _ASUNAME
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2297 } >&5
2299 cat >&5 <<_ACEOF
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2306 _ACEOF
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2320 for ac_arg
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2349 as_fn_append ac_configure_args " '$ac_arg'"
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2365 echo
2367 $as_echo "## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##"
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 esac |
2399 sort
2401 echo
2403 $as_echo "## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##"
2406 echo
2407 for ac_var in $ac_subst_vars
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2417 if test -n "$ac_subst_files"; then
2418 $as_echo "## ------------------- ##
2419 ## File substitutions. ##
2420 ## ------------------- ##"
2421 echo
2422 for ac_var in $ac_subst_files
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2433 if test -s confdefs.h; then
2434 $as_echo "## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##"
2437 echo
2438 cat confdefs.h
2439 echo
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 # We do not want a PATH search for config.site.
2492 case $CONFIG_SITE in #((
2493 -*) ac_site_file1=./$CONFIG_SITE;;
2494 */*) ac_site_file1=$CONFIG_SITE;;
2495 *) ac_site_file1=./$CONFIG_SITE;;
2496 esac
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2500 else
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506 test "x$ac_site_file" = xNONE && continue
2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file" \
2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $? "failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2517 done
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 case $cache_file in
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2528 esac
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 >$cache_file
2536 # Check that the precious variables saved in the cache have kept the same
2537 # value.
2538 ac_cache_corrupted=false
2539 for ac_var in $ac_precious_vars; do
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2545 set,)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,set)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2553 ,);;
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 esac
2585 done
2586 if $ac_cache_corrupted; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 ac_config_headers="$ac_config_headers config.h"
2611 libtool_VERSION=21:0:0
2614 # Default to --enable-multilib
2615 # Check whether --enable-multilib was given.
2616 if test "${enable_multilib+set}" = set; then :
2617 enableval=$enable_multilib; case "$enableval" in
2618 yes) multilib=yes ;;
2619 no) multilib=no ;;
2620 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2621 esac
2622 else
2623 multilib=yes
2627 # We may get other options which we leave undocumented:
2628 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2629 # See config-ml.in if you want the gory details.
2631 if test "$srcdir" = "."; then
2632 if test "$with_target_subdir" != "."; then
2633 multi_basedir="$srcdir/$with_multisrctop../.."
2634 else
2635 multi_basedir="$srcdir/$with_multisrctop.."
2637 else
2638 multi_basedir="$srcdir/.."
2642 # Even if the default multilib is not a cross compilation,
2643 # it may be that some of the other multilibs are.
2644 if test $cross_compiling = no && test $multilib = yes \
2645 && test "x${with_multisubdir}" != x ; then
2646 cross_compiling=maybe
2649 ac_config_commands="$ac_config_commands default-1"
2652 ac_aux_dir=
2653 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2654 if test -f "$ac_dir/install-sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install-sh -c"
2657 break
2658 elif test -f "$ac_dir/install.sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install.sh -c"
2661 break
2662 elif test -f "$ac_dir/shtool"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/shtool install -c"
2665 break
2667 done
2668 if test -z "$ac_aux_dir"; then
2669 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2672 # These three variables are undocumented and unsupported,
2673 # and are intended to be withdrawn in a future Autoconf release.
2674 # They can cause serious problems if a builder's source tree is in a directory
2675 # whose full name contains unusual characters.
2676 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2677 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2678 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2681 # Make sure we can run config.sub.
2682 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2683 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2686 $as_echo_n "checking build system type... " >&6; }
2687 if ${ac_cv_build+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 ac_build_alias=$build_alias
2691 test "x$ac_build_alias" = x &&
2692 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2693 test "x$ac_build_alias" = x &&
2694 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2695 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2700 $as_echo "$ac_cv_build" >&6; }
2701 case $ac_cv_build in
2702 *-*-*) ;;
2703 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2704 esac
2705 build=$ac_cv_build
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_build
2708 shift
2709 build_cpu=$1
2710 build_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 build_os=$*
2715 IFS=$ac_save_IFS
2716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2720 $as_echo_n "checking host system type... " >&6; }
2721 if ${ac_cv_host+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test "x$host_alias" = x; then
2725 ac_cv_host=$ac_cv_build
2726 else
2727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2733 $as_echo "$ac_cv_host" >&6; }
2734 case $ac_cv_host in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2737 esac
2738 host=$ac_cv_host
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_host
2741 shift
2742 host_cpu=$1
2743 host_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 host_os=$*
2748 IFS=$ac_save_IFS
2749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2753 $as_echo_n "checking target system type... " >&6; }
2754 if ${ac_cv_target+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test "x$target_alias" = x; then
2758 ac_cv_target=$ac_cv_host
2759 else
2760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2766 $as_echo "$ac_cv_target" >&6; }
2767 case $ac_cv_target in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2770 esac
2771 target=$ac_cv_target
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_target
2774 shift
2775 target_cpu=$1
2776 target_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 target_os=$*
2781 IFS=$ac_save_IFS
2782 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2785 # The aliases save the names the user supplied, while $host etc.
2786 # will get canonicalized.
2787 test -n "$target_alias" &&
2788 test "$program_prefix$program_suffix$program_transform_name" = \
2789 NONENONEs,x,x, &&
2790 program_prefix=${target_alias}-
2792 target_alias=${target_alias-$host_alias}
2794 am__api_version='1.15'
2796 # Find a good install program. We prefer a C program (faster),
2797 # so one script is as good as another. But avoid the broken or
2798 # incompatible versions:
2799 # SysV /etc/install, /usr/sbin/install
2800 # SunOS /usr/etc/install
2801 # IRIX /sbin/install
2802 # AIX /bin/install
2803 # AmigaOS /C/install, which installs bootblocks on floppy discs
2804 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2807 # OS/2's system install, which has a completely different semantic
2808 # ./install, which can be erroneously created by make from ./install.sh.
2809 # Reject install programs that cannot install multiple files.
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2811 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2812 if test -z "$INSTALL"; then
2813 if ${ac_cv_path_install+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 # Account for people who put trailing slashes in PATH elements.
2822 case $as_dir/ in #((
2823 ./ | .// | /[cC]/* | \
2824 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2825 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2826 /usr/ucb/* ) ;;
2828 # OSF1 and SCO ODT 3.0 have their own names for install.
2829 # Don't use installbsd from OSF since it installs stuff as root
2830 # by default.
2831 for ac_prog in ginstall scoinst install; do
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2834 if test $ac_prog = install &&
2835 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2836 # AIX install. It has an incompatible calling convention.
2838 elif test $ac_prog = install &&
2839 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # program-specific install script used by HP pwplus--don't use.
2842 else
2843 rm -rf conftest.one conftest.two conftest.dir
2844 echo one > conftest.one
2845 echo two > conftest.two
2846 mkdir conftest.dir
2847 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2848 test -s conftest.one && test -s conftest.two &&
2849 test -s conftest.dir/conftest.one &&
2850 test -s conftest.dir/conftest.two
2851 then
2852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2853 break 3
2857 done
2858 done
2860 esac
2862 done
2863 IFS=$as_save_IFS
2865 rm -rf conftest.one conftest.two conftest.dir
2868 if test "${ac_cv_path_install+set}" = set; then
2869 INSTALL=$ac_cv_path_install
2870 else
2871 # As a last resort, use the slow shell script. Don't cache a
2872 # value for INSTALL within a source directory, because that will
2873 # break other packages using the cache if that directory is
2874 # removed, or if the value is a relative name.
2875 INSTALL=$ac_install_sh
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2879 $as_echo "$INSTALL" >&6; }
2881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2882 # It thinks the first close brace ends the variable substitution.
2883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2890 $as_echo_n "checking whether build environment is sane... " >&6; }
2891 # Reject unsafe characters in $srcdir or the absolute working directory
2892 # name. Accept space and tab only in the latter.
2893 am_lf='
2895 case `pwd` in
2896 *[\\\"\#\$\&\'\`$am_lf]*)
2897 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2898 esac
2899 case $srcdir in
2900 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2901 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2902 esac
2904 # Do 'set' in a subshell so we don't clobber the current shell's
2905 # arguments. Must try -L first in case configure is actually a
2906 # symlink; some systems play weird games with the mod time of symlinks
2907 # (eg FreeBSD returns the mod time of the symlink's containing
2908 # directory).
2909 if (
2910 am_has_slept=no
2911 for am_try in 1 2; do
2912 echo "timestamp, slept: $am_has_slept" > conftest.file
2913 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2914 if test "$*" = "X"; then
2915 # -L didn't work.
2916 set X `ls -t "$srcdir/configure" conftest.file`
2918 if test "$*" != "X $srcdir/configure conftest.file" \
2919 && test "$*" != "X conftest.file $srcdir/configure"; then
2921 # If neither matched, then we have a broken ls. This can happen
2922 # if, for instance, CONFIG_SHELL is bash and it inherits a
2923 # broken ls alias from the environment. This has actually
2924 # happened. Such a system could not be considered "sane".
2925 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2926 alias in your environment" "$LINENO" 5
2928 if test "$2" = conftest.file || test $am_try -eq 2; then
2929 break
2931 # Just in case.
2932 sleep 1
2933 am_has_slept=yes
2934 done
2935 test "$2" = conftest.file
2937 then
2938 # Ok.
2940 else
2941 as_fn_error $? "newly created file is older than distributed files!
2942 Check your system clock" "$LINENO" 5
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945 $as_echo "yes" >&6; }
2946 # If we didn't sleep, we still need to ensure time stamps of config.status and
2947 # generated files are strictly newer.
2948 am_sleep_pid=
2949 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2950 ( sleep 1 ) &
2951 am_sleep_pid=$!
2954 rm -f conftest.file
2956 test "$program_prefix" != NONE &&
2957 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2958 # Use a double $ so make ignores it.
2959 test "$program_suffix" != NONE &&
2960 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2961 # Double any \ or $.
2962 # By default was `s,x,x', remove it if useless.
2963 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2964 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2966 # Expand $ac_aux_dir to an absolute path.
2967 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2969 if test x"${MISSING+set}" != xset; then
2970 case $am_aux_dir in
2971 *\ * | *\ *)
2972 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2974 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2975 esac
2977 # Use eval to expand $SHELL
2978 if eval "$MISSING --is-lightweight"; then
2979 am_missing_run="$MISSING "
2980 else
2981 am_missing_run=
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2983 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2986 if test x"${install_sh+set}" != xset; then
2987 case $am_aux_dir in
2988 *\ * | *\ *)
2989 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2991 install_sh="\${SHELL} $am_aux_dir/install-sh"
2992 esac
2995 # Installed binaries are usually stripped using 'strip' when the user
2996 # run "make install-strip". However 'strip' might not be the right
2997 # tool to use in cross-compilation environments, therefore Automake
2998 # will honor the 'STRIP' environment variable to overrule this program.
2999 if test "$cross_compiling" != no; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}strip; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_STRIP+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$STRIP"; then
3009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3022 done
3023 done
3024 IFS=$as_save_IFS
3028 STRIP=$ac_cv_prog_STRIP
3029 if test -n "$STRIP"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3031 $as_echo "$STRIP" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$ac_cv_prog_STRIP"; then
3040 ac_ct_STRIP=$STRIP
3041 # Extract the first word of "strip", so it can be a program name with args.
3042 set dummy strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$ac_ct_STRIP"; then
3049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_ac_ct_STRIP="strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3069 if test -n "$ac_ct_STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3071 $as_echo "$ac_ct_STRIP" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3077 if test "x$ac_ct_STRIP" = x; then
3078 STRIP=":"
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 STRIP=$ac_ct_STRIP
3088 else
3089 STRIP="$ac_cv_prog_STRIP"
3093 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3096 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3097 if test -z "$MKDIR_P"; then
3098 if ${ac_cv_path_mkdir+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_prog in mkdir gmkdir; do
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3109 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3110 'mkdir (GNU coreutils) '* | \
3111 'mkdir (coreutils) '* | \
3112 'mkdir (fileutils) '4.1*)
3113 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3114 break 3;;
3115 esac
3116 done
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 test -d ./--version && rmdir ./--version
3124 if test "${ac_cv_path_mkdir+set}" = set; then
3125 MKDIR_P="$ac_cv_path_mkdir -p"
3126 else
3127 # As a last resort, use the slow shell script. Don't cache a
3128 # value for MKDIR_P within a source directory, because that will
3129 # break other packages using the cache if that directory is
3130 # removed, or if the value is a relative name.
3131 MKDIR_P="$ac_install_sh -d"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3135 $as_echo "$MKDIR_P" >&6; }
3137 for ac_prog in gawk mawk nawk awk
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_AWK+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$AWK"; then
3147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AWK="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3162 IFS=$as_save_IFS
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3169 $as_echo "$AWK" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$AWK" && break
3177 done
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181 set x ${MAKE-make}
3182 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3183 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 cat >conftest.make <<\_ACEOF
3187 SHELL = /bin/sh
3188 all:
3189 @echo '@@@%%%=$(MAKE)=@@@%%%'
3190 _ACEOF
3191 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193 *@@@%%%=?*=@@@%%%*)
3194 eval ac_cv_prog_make_${ac_make}_set=yes;;
3196 eval ac_cv_prog_make_${ac_make}_set=no;;
3197 esac
3198 rm -f conftest.make
3200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; }
3203 SET_MAKE=
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 SET_MAKE="MAKE=${MAKE-make}"
3210 rm -rf .tst 2>/dev/null
3211 mkdir .tst 2>/dev/null
3212 if test -d .tst; then
3213 am__leading_dot=.
3214 else
3215 am__leading_dot=_
3217 rmdir .tst 2>/dev/null
3219 # Check whether --enable-silent-rules was given.
3220 if test "${enable_silent_rules+set}" = set; then :
3221 enableval=$enable_silent_rules;
3224 case $enable_silent_rules in # (((
3225 yes) AM_DEFAULT_VERBOSITY=0;;
3226 no) AM_DEFAULT_VERBOSITY=1;;
3227 *) AM_DEFAULT_VERBOSITY=1;;
3228 esac
3229 am_make=${MAKE-make}
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3231 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3232 if ${am_cv_make_support_nested_variables+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if $as_echo 'TRUE=$(BAR$(V))
3236 BAR0=false
3237 BAR1=true
3239 am__doit:
3240 @$(TRUE)
3241 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3242 am_cv_make_support_nested_variables=yes
3243 else
3244 am_cv_make_support_nested_variables=no
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3248 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3249 if test $am_cv_make_support_nested_variables = yes; then
3250 AM_V='$(V)'
3251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3252 else
3253 AM_V=$AM_DEFAULT_VERBOSITY
3254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3256 AM_BACKSLASH='\'
3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260 # is not polluted with repeated "-I."
3261 am__isrc=' -I$(srcdir)'
3262 # test to see if srcdir already configured
3263 if test -f $srcdir/config.status; then
3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3268 # test whether we have cygpath
3269 if test -z "$CYGPATH_W"; then
3270 if (cygpath --version) >/dev/null 2>/dev/null; then
3271 CYGPATH_W='cygpath -w'
3272 else
3273 CYGPATH_W=echo
3278 # Define the identity of the package.
3279 PACKAGE='libgo'
3280 VERSION='version-unused'
3283 # Some tools Automake needs.
3285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3299 # For better backward compatibility. To be removed once Automake 1.9.x
3300 # dies out for good. For more background, see:
3301 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3302 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3303 mkdir_p='$(MKDIR_P)'
3305 # We need awk for the "check" target (and possibly the TAP driver). The
3306 # system "awk" is bad on some platforms.
3307 # Always define AMTAR for backward compatibility. Yes, it's still used
3308 # in the wild :-( We should find a proper way to deprecate it ...
3309 AMTAR='$${TAR-tar}'
3312 # We'll loop over all known methods to create a tar archive until one works.
3313 _am_tools='gnutar pax cpio none'
3315 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3322 # POSIX will say in a future version that running "rm -f" with no argument
3323 # is OK; and we want to be able to make that assumption in our Makefile
3324 # recipes. So use an aggressive probe to check that the usage we want is
3325 # actually supported "in the wild" to an acceptable degree.
3326 # See automake bug#10828.
3327 # To make any issue more visible, cause the running configure to be aborted
3328 # by default if the 'rm' program in use doesn't match our expectations; the
3329 # user can still override this though.
3330 if rm -f && rm -fr && rm -rf; then : OK; else
3331 cat >&2 <<'END'
3332 Oops!
3334 Your 'rm' program seems unable to run without file operands specified
3335 on the command line, even when the '-f' option is present. This is contrary
3336 to the behaviour of most rm programs out there, and not conforming with
3337 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3339 Please tell bug-automake@gnu.org about your system, including the value
3340 of your $PATH and any error possibly output before this message. This
3341 can help us improve future automake versions.
3344 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3345 echo 'Configuration will proceed anyway, since you have set the' >&2
3346 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3347 echo >&2
3348 else
3349 cat >&2 <<'END'
3350 Aborting the configuration process, to ensure you take notice of the issue.
3352 You can download and install GNU coreutils to get an 'rm' implementation
3353 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3355 If you want to complete the configuration process using your problematic
3356 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3357 to "yes", and re-run configure.
3360 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3398 IFS=$as_save_IFS
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460 CC=$ac_ct_CC
3462 else
3463 CC="$ac_cv_prog_CC"
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3489 done
3490 done
3491 IFS=$as_save_IFS
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; }
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 ac_prog_rejected=no
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3528 continue
3530 ac_cv_prog_CC="cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3538 if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3541 shift
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3546 shift
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if ${ac_cv_prog_CC+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$CC" && break
3605 done
3607 if test -z "$CC"; then
3608 ac_ct_CC=$CC
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$ac_ct_CC" && break
3649 done
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details" "$LINENO" 5; }
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674 set X $ac_compile
3675 ac_compiler=$2
3676 for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685 ac_status=$?
3686 if test -s conftest.err; then
3687 sed '10a\
3688 ... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3692 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3695 done
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 ac_clean_files_save=$ac_clean_files
3709 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3710 # Try to create an executable without -o first, disregard a.out.
3711 # It will help us diagnose broken compilers, and finding out an intuition
3712 # of exeext.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3714 $as_echo_n "checking whether the C compiler works... " >&6; }
3715 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3717 # The possible output files:
3718 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3720 ac_rmfiles=
3721 for ac_file in $ac_files
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 esac
3727 done
3728 rm -f $ac_rmfiles
3730 if { { ac_try="$ac_link_default"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link_default") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3742 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3744 # so that the user can short-circuit this test for compilers unknown to
3745 # Autoconf.
3746 for ac_file in $ac_files ''
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3752 [ab].out )
3753 # We found the default executable, but exeext='' is most
3754 # certainly right.
3755 break;;
3756 *.* )
3757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3758 then :; else
3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3761 # We set ac_cv_exeext here because the later test for it is not
3762 # safe: cross compilers may not add the suffix if given an `-o'
3763 # argument, so we may need to know it at that point already.
3764 # Even if this section looks crufty: it has the advantage of
3765 # actually working.
3766 break;;
3768 break;;
3769 esac
3770 done
3771 test "$ac_cv_exeext" = no && ac_cv_exeext=
3773 else
3774 ac_file=''
3776 if test -z "$ac_file"; then :
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error 77 "C compiler cannot create executables
3785 See \`config.log' for more details" "$LINENO" 5; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 $as_echo "$ac_file" >&6; }
3794 ac_exeext=$ac_cv_exeext
3796 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3797 ac_clean_files=$ac_clean_files_save
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3799 $as_echo_n "checking for suffix of executables... " >&6; }
3800 if { { ac_try="$ac_link"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_link") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3812 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3813 # work properly (i.e., refer to `conftest.exe'), while it won't with
3814 # `rm'.
3815 for ac_file in conftest.exe conftest conftest.*; do
3816 test -f "$ac_file" || continue
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820 break;;
3821 * ) break;;
3822 esac
3823 done
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3828 See \`config.log' for more details" "$LINENO" 5; }
3830 rm -f conftest conftest$ac_cv_exeext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3832 $as_echo "$ac_cv_exeext" >&6; }
3834 rm -f conftest.$ac_ext
3835 EXEEXT=$ac_cv_exeext
3836 ac_exeext=$EXEEXT
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <stdio.h>
3841 main ()
3843 FILE *f = fopen ("conftest.out", "w");
3844 return ferror (f) || fclose (f) != 0;
3847 return 0;
3849 _ACEOF
3850 ac_clean_files="$ac_clean_files conftest.out"
3851 # Check that the compiler produces executables we can run. If not, either
3852 # the compiler is broken, or we cross compile.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3854 $as_echo_n "checking whether we are cross compiling... " >&6; }
3855 if test "$cross_compiling" != yes; then
3856 { { ac_try="$ac_link"
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_link") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 if { ac_try='./conftest$ac_cv_exeext'
3868 { { case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; }; then
3878 cross_compiling=no
3879 else
3880 if test "$cross_compiling" = maybe; then
3881 cross_compiling=yes
3882 else
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $? "cannot run C compiled programs.
3886 If you meant to cross compile, use \`--host'.
3887 See \`config.log' for more details" "$LINENO" 5; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3892 $as_echo "$cross_compiling" >&6; }
3894 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3897 $as_echo_n "checking for suffix of object files... " >&6; }
3898 if ${ac_cv_objext+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.o conftest.obj
3913 if { { ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compile") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 for ac_file in conftest.o conftest.obj conftest.*; do
3925 test -f "$ac_file" || continue;
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3929 break;;
3930 esac
3931 done
3932 else
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error $? "cannot compute suffix of object files: cannot compile
3939 See \`config.log' for more details" "$LINENO" 5; }
3941 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3944 $as_echo "$ac_cv_objext" >&6; }
3945 OBJEXT=$ac_cv_objext
3946 ac_objext=$OBJEXT
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3949 if ${ac_cv_c_compiler_gnu+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 main ()
3958 #ifndef __GNUC__
3959 choke me
3960 #endif
3963 return 0;
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_compiler_gnu=yes
3968 else
3969 ac_compiler_gnu=no
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3976 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3977 if test $ac_compiler_gnu = yes; then
3978 GCC=yes
3979 else
3980 GCC=
3982 ac_test_CFLAGS=${CFLAGS+set}
3983 ac_save_CFLAGS=$CFLAGS
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3985 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3986 if ${ac_cv_prog_cc_g+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 ac_save_c_werror_flag=$ac_c_werror_flag
3990 ac_c_werror_flag=yes
3991 ac_cv_prog_cc_g=no
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006 else
4007 CFLAGS=""
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4012 main ()
4016 return 0;
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4021 else
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 CFLAGS="-g"
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4028 main ()
4032 return 0;
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_g=yes
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4046 $as_echo "$ac_cv_prog_cc_g" >&6; }
4047 if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049 elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4051 CFLAGS="-g -O2"
4052 else
4053 CFLAGS="-g"
4055 else
4056 if test "$GCC" = yes; then
4057 CFLAGS="-O2"
4058 else
4059 CFLAGS=
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4064 if ${ac_cv_prog_cc_c89+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 ac_cv_prog_cc_c89=no
4068 ac_save_CC=$CC
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <stdarg.h>
4072 #include <stdio.h>
4073 struct stat;
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4078 char **p;
4079 int i;
4081 return p[i];
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4085 char *s;
4086 va_list v;
4087 va_start (v,p);
4088 s = g (p, va_arg (v,int));
4089 va_end (v);
4090 return s;
4093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4094 function prototypes and stuff, but not '\xHH' hex character constants.
4095 These don't provoke an error unfortunately, instead are silently treated
4096 as 'x'. The following induces an error, until -std is added to get
4097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4098 array size at least. It's necessary to write '\x00'==0 to get something
4099 that's true only with -std. */
4100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103 inside strings and character constants. */
4104 #define FOO(x) 'x'
4105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4107 int test (int i, double x);
4108 struct s1 {int (*f) (int a);};
4109 struct s2 {int (*f) (double a);};
4110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111 int argc;
4112 char **argv;
4114 main ()
4116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4118 return 0;
4120 _ACEOF
4121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4124 CC="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_c89=$ac_arg
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4140 xno)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4148 if test "x$ac_cv_prog_cc_c89" != xno; then :
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4164 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4165 if ${am_cv_prog_cc_c_o+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 main ()
4176 return 0;
4178 _ACEOF
4179 # Make sure it works both with $CC and with simple cc.
4180 # Following AC_PROG_CC_C_O, we do the test twice because some
4181 # compilers refuse to overwrite an existing .o file with -o,
4182 # though they will create one.
4183 am_cv_prog_cc_c_o=yes
4184 for am_i in 1 2; do
4185 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4186 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } \
4190 && test -f conftest2.$ac_objext; then
4191 : OK
4192 else
4193 am_cv_prog_cc_c_o=no
4194 break
4196 done
4197 rm -f core conftest*
4198 unset am_i
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4201 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4202 if test "$am_cv_prog_cc_c_o" != yes; then
4203 # Losing compiler, so override with the script.
4204 # FIXME: It is wrong to rewrite CC.
4205 # But if we don't then we get into trouble of one sort or another.
4206 # A longer-term fix would be to have automake use am__CC in this case,
4207 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4208 CC="$am_aux_dir/compile $CC"
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 DEPDIR="${am__leading_dot}deps"
4218 ac_config_commands="$ac_config_commands depfiles"
4221 am_make=${MAKE-make}
4222 cat > confinc << 'END'
4223 am__doit:
4224 @echo this is the am__doit target
4225 .PHONY: am__doit
4227 # If we don't find an include directive, just comment out the code.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4229 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4230 am__include="#"
4231 am__quote=
4232 _am_result=none
4233 # First try GNU make style include.
4234 echo "include confinc" > confmf
4235 # Ignore all kinds of additional output from 'make'.
4236 case `$am_make -s -f confmf 2> /dev/null` in #(
4237 *the\ am__doit\ target*)
4238 am__include=include
4239 am__quote=
4240 _am_result=GNU
4242 esac
4243 # Now try BSD make style include.
4244 if test "$am__include" = "#"; then
4245 echo '.include "confinc"' > confmf
4246 case `$am_make -s -f confmf 2> /dev/null` in #(
4247 *the\ am__doit\ target*)
4248 am__include=.include
4249 am__quote="\""
4250 _am_result=BSD
4252 esac
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4257 $as_echo "$_am_result" >&6; }
4258 rm -f confinc confmf
4260 # Check whether --enable-dependency-tracking was given.
4261 if test "${enable_dependency_tracking+set}" = set; then :
4262 enableval=$enable_dependency_tracking;
4265 if test "x$enable_dependency_tracking" != xno; then
4266 am_depcomp="$ac_aux_dir/depcomp"
4267 AMDEPBACKSLASH='\'
4268 am__nodep='_no'
4270 if test "x$enable_dependency_tracking" != xno; then
4271 AMDEP_TRUE=
4272 AMDEP_FALSE='#'
4273 else
4274 AMDEP_TRUE='#'
4275 AMDEP_FALSE=
4280 depcc="$CC" am_compiler_list=
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4283 $as_echo_n "checking dependency style of $depcc... " >&6; }
4284 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288 # We make a subdir and do the tests there. Otherwise we can end up
4289 # making bogus files that we don't know about and never remove. For
4290 # instance it was reported that on HP-UX the gcc test will end up
4291 # making a dummy file named 'D' -- because '-MD' means "put the output
4292 # in D".
4293 rm -rf conftest.dir
4294 mkdir conftest.dir
4295 # Copy depcomp to subdir because otherwise we won't find it if we're
4296 # using a relative directory.
4297 cp "$am_depcomp" conftest.dir
4298 cd conftest.dir
4299 # We will build objects and dependencies in a subdirectory because
4300 # it helps to detect inapplicable dependency modes. For instance
4301 # both Tru64's cc and ICC support -MD to output dependencies as a
4302 # side effect of compilation, but ICC will put the dependencies in
4303 # the current directory while Tru64 will put them in the object
4304 # directory.
4305 mkdir sub
4307 am_cv_CC_dependencies_compiler_type=none
4308 if test "$am_compiler_list" = ""; then
4309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4311 am__universal=false
4312 case " $depcc " in #(
4313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314 esac
4316 for depmode in $am_compiler_list; do
4317 # Setup a source with many dependencies, because some compilers
4318 # like to wrap large dependency lists on column 80 (with \), and
4319 # we should not choose a depcomp mode which is confused by this.
4321 # We need to recreate these files for each test, as the compiler may
4322 # overwrite some of them when testing with obscure command lines.
4323 # This happens at least with the AIX C compiler.
4324 : > sub/conftest.c
4325 for i in 1 2 3 4 5 6; do
4326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4328 # Solaris 10 /bin/sh.
4329 echo '/* dummy */' > sub/conftst$i.h
4330 done
4331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4333 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4334 # mode. It turns out that the SunPro C++ compiler does not properly
4335 # handle '-M -o', and we need to detect this. Also, some Intel
4336 # versions had trouble with output in subdirs.
4337 am__obj=sub/conftest.${OBJEXT-o}
4338 am__minus_obj="-o $am__obj"
4339 case $depmode in
4340 gcc)
4341 # This depmode causes a compiler race in universal mode.
4342 test "$am__universal" = false || continue
4344 nosideeffect)
4345 # After this tag, mechanisms are not by side-effect, so they'll
4346 # only be used when explicitly requested.
4347 if test "x$enable_dependency_tracking" = xyes; then
4348 continue
4349 else
4350 break
4353 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4354 # This compiler won't grok '-c -o', but also, the minuso test has
4355 # not run yet. These depmodes are late enough in the game, and
4356 # so weak that their functioning should not be impacted.
4357 am__obj=conftest.${OBJEXT-o}
4358 am__minus_obj=
4360 none) break ;;
4361 esac
4362 if depmode=$depmode \
4363 source=sub/conftest.c object=$am__obj \
4364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4366 >/dev/null 2>conftest.err &&
4367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371 # icc doesn't choke on unknown options, it will just issue warnings
4372 # or remarks (even with -Werror). So we grep stderr for any message
4373 # that says an option was ignored or not supported.
4374 # When given -MP, icc 7.0 and 7.1 complain thusly:
4375 # icc: Command line warning: ignoring option '-M'; no argument required
4376 # The diagnosis changed in icc 8.0:
4377 # icc: Command line remark: option '-MP' not supported
4378 if (grep 'ignoring option' conftest.err ||
4379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380 am_cv_CC_dependencies_compiler_type=$depmode
4381 break
4384 done
4386 cd ..
4387 rm -rf conftest.dir
4388 else
4389 am_cv_CC_dependencies_compiler_type=none
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4398 test "x$enable_dependency_tracking" != xno \
4399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400 am__fastdepCC_TRUE=
4401 am__fastdepCC_FALSE='#'
4402 else
4403 am__fastdepCC_TRUE='#'
4404 am__fastdepCC_FALSE=
4408 ac_ext=go
4409 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4410 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=yes
4412 if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_GOC+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$GOC"; then
4421 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4436 IFS=$as_save_IFS
4440 GOC=$ac_cv_prog_GOC
4441 if test -n "$GOC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4443 $as_echo "$GOC" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4451 if test -z "$ac_cv_prog_GOC"; then
4452 ac_ct_GOC=$GOC
4453 # Extract the first word of "gccgo", so it can be a program name with args.
4454 set dummy gccgo; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -n "$ac_ct_GOC"; then
4461 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_ac_ct_GOC="gccgo"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4480 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4481 if test -n "$ac_ct_GOC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4483 $as_echo "$ac_ct_GOC" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4489 if test "x$ac_ct_GOC" = x; then
4490 GOC=""
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 GOC=$ac_ct_GOC
4500 else
4501 GOC="$ac_cv_prog_GOC"
4504 if test -z "$GOC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_GOC+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$GOC"; then
4514 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4527 done
4528 done
4529 IFS=$as_save_IFS
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; }
4545 if test -z "$GOC"; then
4546 # Extract the first word of "gccgo", so it can be a program name with args.
4547 set dummy gccgo; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_GOC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$GOC"; then
4554 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4555 else
4556 ac_prog_rejected=no
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4565 ac_prog_rejected=yes
4566 continue
4568 ac_cv_prog_GOC="gccgo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4576 if test $ac_prog_rejected = yes; then
4577 # We found a bogon in the path, so make sure we never use it.
4578 set dummy $ac_cv_prog_GOC
4579 shift
4580 if test $# != 0; then
4581 # We chose a different compiler from the bogus one.
4582 # However, it has the same basename, so the bogon will be chosen
4583 # first if we set GOC to just the basename; use the full file name.
4584 shift
4585 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4590 GOC=$ac_cv_prog_GOC
4591 if test -n "$GOC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4593 $as_echo "$GOC" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4603 # Provide some information about the compiler.
4604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 { { ac_try="$ac_compiler --version >&5"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler --version >&5") 2>conftest.err
4615 ac_status=$?
4616 if test -s conftest.err; then
4617 sed '10a\
4618 ... rest of stderr output deleted ...
4619 10q' conftest.err >conftest.er1
4620 cat conftest.er1 >&5
4622 rm -f conftest.er1 conftest.err
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4625 GOFLAGS="-g -O2"
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632 # By default we simply use the C compiler to build assembly code.
4634 test "${CCAS+set}" = set || CCAS=$CC
4635 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4639 depcc="$CCAS" am_compiler_list=
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4642 $as_echo_n "checking dependency style of $depcc... " >&6; }
4643 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4647 # We make a subdir and do the tests there. Otherwise we can end up
4648 # making bogus files that we don't know about and never remove. For
4649 # instance it was reported that on HP-UX the gcc test will end up
4650 # making a dummy file named 'D' -- because '-MD' means "put the output
4651 # in D".
4652 rm -rf conftest.dir
4653 mkdir conftest.dir
4654 # Copy depcomp to subdir because otherwise we won't find it if we're
4655 # using a relative directory.
4656 cp "$am_depcomp" conftest.dir
4657 cd conftest.dir
4658 # We will build objects and dependencies in a subdirectory because
4659 # it helps to detect inapplicable dependency modes. For instance
4660 # both Tru64's cc and ICC support -MD to output dependencies as a
4661 # side effect of compilation, but ICC will put the dependencies in
4662 # the current directory while Tru64 will put them in the object
4663 # directory.
4664 mkdir sub
4666 am_cv_CCAS_dependencies_compiler_type=none
4667 if test "$am_compiler_list" = ""; then
4668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4670 am__universal=false
4673 for depmode in $am_compiler_list; do
4674 # Setup a source with many dependencies, because some compilers
4675 # like to wrap large dependency lists on column 80 (with \), and
4676 # we should not choose a depcomp mode which is confused by this.
4678 # We need to recreate these files for each test, as the compiler may
4679 # overwrite some of them when testing with obscure command lines.
4680 # This happens at least with the AIX C compiler.
4681 : > sub/conftest.c
4682 for i in 1 2 3 4 5 6; do
4683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4685 # Solaris 10 /bin/sh.
4686 echo '/* dummy */' > sub/conftst$i.h
4687 done
4688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4690 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4691 # mode. It turns out that the SunPro C++ compiler does not properly
4692 # handle '-M -o', and we need to detect this. Also, some Intel
4693 # versions had trouble with output in subdirs.
4694 am__obj=sub/conftest.${OBJEXT-o}
4695 am__minus_obj="-o $am__obj"
4696 case $depmode in
4697 gcc)
4698 # This depmode causes a compiler race in universal mode.
4699 test "$am__universal" = false || continue
4701 nosideeffect)
4702 # After this tag, mechanisms are not by side-effect, so they'll
4703 # only be used when explicitly requested.
4704 if test "x$enable_dependency_tracking" = xyes; then
4705 continue
4706 else
4707 break
4710 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4711 # This compiler won't grok '-c -o', but also, the minuso test has
4712 # not run yet. These depmodes are late enough in the game, and
4713 # so weak that their functioning should not be impacted.
4714 am__obj=conftest.${OBJEXT-o}
4715 am__minus_obj=
4717 none) break ;;
4718 esac
4719 if depmode=$depmode \
4720 source=sub/conftest.c object=$am__obj \
4721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4723 >/dev/null 2>conftest.err &&
4724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4728 # icc doesn't choke on unknown options, it will just issue warnings
4729 # or remarks (even with -Werror). So we grep stderr for any message
4730 # that says an option was ignored or not supported.
4731 # When given -MP, icc 7.0 and 7.1 complain thusly:
4732 # icc: Command line warning: ignoring option '-M'; no argument required
4733 # The diagnosis changed in icc 8.0:
4734 # icc: Command line remark: option '-MP' not supported
4735 if (grep 'ignoring option' conftest.err ||
4736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4737 am_cv_CCAS_dependencies_compiler_type=$depmode
4738 break
4741 done
4743 cd ..
4744 rm -rf conftest.dir
4745 else
4746 am_cv_CCAS_dependencies_compiler_type=none
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4751 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4752 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4755 test "x$enable_dependency_tracking" != xno \
4756 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4757 am__fastdepCCAS_TRUE=
4758 am__fastdepCCAS_FALSE='#'
4759 else
4760 am__fastdepCCAS_TRUE='#'
4761 am__fastdepCCAS_FALSE=
4769 case ${host} in
4770 *-*-aix*)
4771 # Check default architecture for FAT library creation
4772 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4773 AIX_EXTRA_ARCH='64'
4774 else
4775 AIX_EXTRA_ARCH='32'
4779 esac
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4784 # Check whether --enable-maintainer-mode was given.
4785 if test "${enable_maintainer_mode+set}" = set; then :
4786 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4787 else
4788 USE_MAINTAINER_MODE=no
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4793 if test $USE_MAINTAINER_MODE = yes; then
4794 MAINTAINER_MODE_TRUE=
4795 MAINTAINER_MODE_FALSE='#'
4796 else
4797 MAINTAINER_MODE_TRUE='#'
4798 MAINTAINER_MODE_FALSE=
4801 MAINT=$MAINTAINER_MODE_TRUE
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4806 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4807 if ${ac_cv_path_SED+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4811 for ac_i in 1 2 3 4 5 6 7; do
4812 ac_script="$ac_script$as_nl$ac_script"
4813 done
4814 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4815 { ac_script=; unset ac_script;}
4816 if test -z "$SED"; then
4817 ac_path_SED_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_prog in sed gsed; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4827 as_fn_executable_p "$ac_path_SED" || continue
4828 # Check for GNU ac_path_SED and select it if it is found.
4829 # Check for GNU $ac_path_SED
4830 case `"$ac_path_SED" --version 2>&1` in
4831 *GNU*)
4832 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4834 ac_count=0
4835 $as_echo_n 0123456789 >"conftest.in"
4836 while :
4838 cat "conftest.in" "conftest.in" >"conftest.tmp"
4839 mv "conftest.tmp" "conftest.in"
4840 cp "conftest.in" "conftest.nl"
4841 $as_echo '' >> "conftest.nl"
4842 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844 as_fn_arith $ac_count + 1 && ac_count=$as_val
4845 if test $ac_count -gt ${ac_path_SED_max-0}; then
4846 # Best one so far, save it but keep looking for a better one
4847 ac_cv_path_SED="$ac_path_SED"
4848 ac_path_SED_max=$ac_count
4850 # 10*(2^10) chars as input seems more than enough
4851 test $ac_count -gt 10 && break
4852 done
4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4854 esac
4856 $ac_path_SED_found && break 3
4857 done
4858 done
4859 done
4860 IFS=$as_save_IFS
4861 if test -z "$ac_cv_path_SED"; then
4862 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4864 else
4865 ac_cv_path_SED=$SED
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4870 $as_echo "$ac_cv_path_SED" >&6; }
4871 SED="$ac_cv_path_SED"
4872 rm -f conftest.sed
4874 test -z "$SED" && SED=sed
4875 Xsed="$SED -e 1s/^X//"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4888 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4889 if ${ac_cv_path_GREP+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -z "$GREP"; then
4893 ac_path_GREP_found=false
4894 # Loop through the user's path and test for each of PROGNAME-LIST
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_prog in grep ggrep; do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4903 as_fn_executable_p "$ac_path_GREP" || continue
4904 # Check for GNU ac_path_GREP and select it if it is found.
4905 # Check for GNU $ac_path_GREP
4906 case `"$ac_path_GREP" --version 2>&1` in
4907 *GNU*)
4908 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4910 ac_count=0
4911 $as_echo_n 0123456789 >"conftest.in"
4912 while :
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 $as_echo 'GREP' >> "conftest.nl"
4918 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_GREP="$ac_path_GREP"
4924 ac_path_GREP_max=$ac_count
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4932 $ac_path_GREP_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_GREP"; then
4938 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4940 else
4941 ac_cv_path_GREP=$GREP
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4946 $as_echo "$ac_cv_path_GREP" >&6; }
4947 GREP="$ac_cv_path_GREP"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4951 $as_echo_n "checking for egrep... " >&6; }
4952 if ${ac_cv_path_EGREP+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4956 then ac_cv_path_EGREP="$GREP -E"
4957 else
4958 if test -z "$EGREP"; then
4959 ac_path_EGREP_found=false
4960 # Loop through the user's path and test for each of PROGNAME-LIST
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_prog in egrep; do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4969 as_fn_executable_p "$ac_path_EGREP" || continue
4970 # Check for GNU ac_path_EGREP and select it if it is found.
4971 # Check for GNU $ac_path_EGREP
4972 case `"$ac_path_EGREP" --version 2>&1` in
4973 *GNU*)
4974 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4976 ac_count=0
4977 $as_echo_n 0123456789 >"conftest.in"
4978 while :
4980 cat "conftest.in" "conftest.in" >"conftest.tmp"
4981 mv "conftest.tmp" "conftest.in"
4982 cp "conftest.in" "conftest.nl"
4983 $as_echo 'EGREP' >> "conftest.nl"
4984 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4986 as_fn_arith $ac_count + 1 && ac_count=$as_val
4987 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4988 # Best one so far, save it but keep looking for a better one
4989 ac_cv_path_EGREP="$ac_path_EGREP"
4990 ac_path_EGREP_max=$ac_count
4992 # 10*(2^10) chars as input seems more than enough
4993 test $ac_count -gt 10 && break
4994 done
4995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4996 esac
4998 $ac_path_EGREP_found && break 3
4999 done
5000 done
5001 done
5002 IFS=$as_save_IFS
5003 if test -z "$ac_cv_path_EGREP"; then
5004 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006 else
5007 ac_cv_path_EGREP=$EGREP
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5013 $as_echo "$ac_cv_path_EGREP" >&6; }
5014 EGREP="$ac_cv_path_EGREP"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5018 $as_echo_n "checking for fgrep... " >&6; }
5019 if ${ac_cv_path_FGREP+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5023 then ac_cv_path_FGREP="$GREP -F"
5024 else
5025 if test -z "$FGREP"; then
5026 ac_path_FGREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in fgrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5036 as_fn_executable_p "$ac_path_FGREP" || continue
5037 # Check for GNU ac_path_FGREP and select it if it is found.
5038 # Check for GNU $ac_path_FGREP
5039 case `"$ac_path_FGREP" --version 2>&1` in
5040 *GNU*)
5041 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5043 ac_count=0
5044 $as_echo_n 0123456789 >"conftest.in"
5045 while :
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'FGREP' >> "conftest.nl"
5051 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_FGREP="$ac_path_FGREP"
5057 ac_path_FGREP_max=$ac_count
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5061 done
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5065 $ac_path_FGREP_found && break 3
5066 done
5067 done
5068 done
5069 IFS=$as_save_IFS
5070 if test -z "$ac_cv_path_FGREP"; then
5071 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5073 else
5074 ac_cv_path_FGREP=$FGREP
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5080 $as_echo "$ac_cv_path_FGREP" >&6; }
5081 FGREP="$ac_cv_path_FGREP"
5084 test -z "$GREP" && GREP=grep
5102 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5103 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5107 $as_echo_n "checking how to print strings... " >&6; }
5108 # Test print first, because it will be a builtin if present.
5109 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5111 ECHO='print -r --'
5112 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5113 ECHO='printf %s\n'
5114 else
5115 # Use this function as a fallback that always works.
5116 func_fallback_echo ()
5118 eval 'cat <<_LTECHO_EOF
5120 _LTECHO_EOF'
5122 ECHO='func_fallback_echo'
5125 # func_echo_all arg...
5126 # Invoke $ECHO with all args, space-separated.
5127 func_echo_all ()
5129 $ECHO ""
5132 case "$ECHO" in
5133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5134 $as_echo "printf" >&6; } ;;
5135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5136 $as_echo "print -r" >&6; } ;;
5137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5138 $as_echo "cat" >&6; } ;;
5139 esac
5156 # Check whether --with-gnu-ld was given.
5157 if test "${with_gnu_ld+set}" = set; then :
5158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5159 else
5160 with_gnu_ld=no
5163 ac_prog=ld
5164 if test "$GCC" = yes; then
5165 # Check if gcc -print-prog-name=ld gives a path.
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5167 $as_echo_n "checking for ld used by $CC... " >&6; }
5168 case $host in
5169 *-*-mingw*)
5170 # gcc leaves a trailing carriage return which upsets mingw
5171 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5173 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5174 esac
5175 case $ac_prog in
5176 # Accept absolute paths.
5177 [\\/]* | ?:[\\/]*)
5178 re_direlt='/[^/][^/]*/\.\./'
5179 # Canonicalize the pathname of ld
5180 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5181 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5182 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5183 done
5184 test -z "$LD" && LD="$ac_prog"
5187 # If it fails, then pretend we aren't using GCC.
5188 ac_prog=ld
5191 # If it is relative, then search for the first ld in PATH.
5192 with_gnu_ld=unknown
5194 esac
5195 elif test "$with_gnu_ld" = yes; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5197 $as_echo_n "checking for GNU ld... " >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5200 $as_echo_n "checking for non-GNU ld... " >&6; }
5202 if ${lt_cv_path_LD+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -z "$LD"; then
5206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5207 for ac_dir in $PATH; do
5208 IFS="$lt_save_ifs"
5209 test -z "$ac_dir" && ac_dir=.
5210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5211 lt_cv_path_LD="$ac_dir/$ac_prog"
5212 # Check to see if the program is GNU ld. I'd rather use --version,
5213 # but apparently some variants of GNU ld only accept -v.
5214 # Break only if it was the GNU/non-GNU ld that we prefer.
5215 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5216 *GNU* | *'with BFD'*)
5217 test "$with_gnu_ld" != no && break
5220 test "$with_gnu_ld" != yes && break
5222 esac
5224 done
5225 IFS="$lt_save_ifs"
5226 else
5227 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5231 LD="$lt_cv_path_LD"
5232 if test -n "$LD"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5234 $as_echo "$LD" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5239 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5242 if ${lt_cv_prog_gnu_ld+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5246 case `$LD -v 2>&1 </dev/null` in
5247 *GNU* | *'with BFD'*)
5248 lt_cv_prog_gnu_ld=yes
5251 lt_cv_prog_gnu_ld=no
5253 esac
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5256 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5257 with_gnu_ld=$lt_cv_prog_gnu_ld
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_RANLIB+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$RANLIB"; then
5276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 RANLIB=$ac_cv_prog_RANLIB
5296 if test -n "$RANLIB"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5298 $as_echo "$RANLIB" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_RANLIB"; then
5307 ac_ct_RANLIB=$RANLIB
5308 # Extract the first word of "ranlib", so it can be a program name with args.
5309 set dummy ranlib; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_RANLIB"; then
5316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_RANLIB="ranlib"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5336 if test -n "$ac_ct_RANLIB"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5338 $as_echo "$ac_ct_RANLIB" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_RANLIB" = x; then
5345 RANLIB=":"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 RANLIB=$ac_ct_RANLIB
5355 else
5356 RANLIB="$ac_cv_prog_RANLIB"
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_OBJCOPY+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$OBJCOPY"; then
5368 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 OBJCOPY=$ac_cv_prog_OBJCOPY
5388 if test -n "$OBJCOPY"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5390 $as_echo "$OBJCOPY" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test -z "$ac_cv_prog_OBJCOPY"; then
5399 ac_ct_OBJCOPY=$OBJCOPY
5400 # Extract the first word of "objcopy", so it can be a program name with args.
5401 set dummy objcopy; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_OBJCOPY"; then
5408 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5427 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5428 if test -n "$ac_ct_OBJCOPY"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5430 $as_echo "$ac_ct_OBJCOPY" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5436 if test "x$ac_ct_OBJCOPY" = x; then
5437 OBJCOPY="missing-objcopy"
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445 OBJCOPY=$ac_ct_OBJCOPY
5447 else
5448 OBJCOPY="$ac_cv_prog_OBJCOPY"
5452 enable_dlopen=yes
5456 case `pwd` in
5457 *\ * | *\ *)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5459 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5460 esac
5464 macro_version='2.2.7a'
5465 macro_revision='1.3134'
5479 ltmain="$ac_aux_dir/ltmain.sh"
5481 # Backslashify metacharacters that are still active within
5482 # double-quoted strings.
5483 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5485 # Same as above, but do not quote variable references.
5486 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5488 # Sed substitution to delay expansion of an escaped shell variable in a
5489 # double_quote_subst'ed string.
5490 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5492 # Sed substitution to delay expansion of an escaped single quote.
5493 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5495 # Sed substitution to avoid accidental globbing in evaled expressions
5496 no_glob_subst='s/\*/\\\*/g'
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5500 if ${lt_cv_path_NM+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$NM"; then
5504 # Let the user override the test.
5505 lt_cv_path_NM="$NM"
5506 else
5507 lt_nm_to_check="${ac_tool_prefix}nm"
5508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509 lt_nm_to_check="$lt_nm_to_check nm"
5511 for lt_tmp_nm in $lt_nm_to_check; do
5512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514 IFS="$lt_save_ifs"
5515 test -z "$ac_dir" && ac_dir=.
5516 tmp_nm="$ac_dir/$lt_tmp_nm"
5517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5518 # Check to see if the nm accepts a BSD-compat flag.
5519 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5520 # nm: unknown option "B" ignored
5521 # Tru64's nm complains that /dev/null is an invalid object file
5522 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5523 */dev/null* | *'Invalid file or object type'*)
5524 lt_cv_path_NM="$tmp_nm -B"
5525 break
5528 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5529 */dev/null*)
5530 lt_cv_path_NM="$tmp_nm -p"
5531 break
5534 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5535 continue # so that we can try to find one that supports BSD flags
5537 esac
5539 esac
5541 done
5542 IFS="$lt_save_ifs"
5543 done
5544 : ${lt_cv_path_NM=no}
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5548 $as_echo "$lt_cv_path_NM" >&6; }
5549 if test "$lt_cv_path_NM" != "no"; then
5550 NM="$lt_cv_path_NM"
5551 else
5552 # Didn't find any BSD compatible name lister, look for dumpbin.
5553 if test -n "$DUMPBIN"; then :
5554 # Let the user override the test.
5555 else
5556 if test -n "$ac_tool_prefix"; then
5557 for ac_prog in dumpbin "link -dump"
5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_DUMPBIN+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$DUMPBIN"; then
5567 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 DUMPBIN=$ac_cv_prog_DUMPBIN
5587 if test -n "$DUMPBIN"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5589 $as_echo "$DUMPBIN" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5596 test -n "$DUMPBIN" && break
5597 done
5599 if test -z "$DUMPBIN"; then
5600 ac_ct_DUMPBIN=$DUMPBIN
5601 for ac_prog in dumpbin "link -dump"
5603 # Extract the first word of "$ac_prog", so it can be a program name with args.
5604 set dummy $ac_prog; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$ac_ct_DUMPBIN"; then
5611 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5631 if test -n "$ac_ct_DUMPBIN"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5633 $as_echo "$ac_ct_DUMPBIN" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5640 test -n "$ac_ct_DUMPBIN" && break
5641 done
5643 if test "x$ac_ct_DUMPBIN" = x; then
5644 DUMPBIN=":"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 DUMPBIN=$ac_ct_DUMPBIN
5656 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5657 *COFF*)
5658 DUMPBIN="$DUMPBIN -symbols"
5661 DUMPBIN=:
5663 esac
5666 if test "$DUMPBIN" != ":"; then
5667 NM="$DUMPBIN"
5670 test -z "$NM" && NM=nm
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5678 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5679 if ${lt_cv_nm_interface+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 lt_cv_nm_interface="BSD nm"
5683 echo "int some_variable = 0;" > conftest.$ac_ext
5684 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5685 (eval "$ac_compile" 2>conftest.err)
5686 cat conftest.err >&5
5687 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5688 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5689 cat conftest.err >&5
5690 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5691 cat conftest.out >&5
5692 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5693 lt_cv_nm_interface="MS dumpbin"
5695 rm -f conftest*
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5698 $as_echo "$lt_cv_nm_interface" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5701 $as_echo_n "checking whether ln -s works... " >&6; }
5702 LN_S=$as_ln_s
5703 if test "$LN_S" = "ln -s"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705 $as_echo "yes" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5708 $as_echo "no, using $LN_S" >&6; }
5711 # find the maximum length of command line arguments
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5713 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5714 if ${lt_cv_sys_max_cmd_len+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5718 teststring="ABCD"
5720 case $build_os in
5721 msdosdjgpp*)
5722 # On DJGPP, this test can blow up pretty badly due to problems in libc
5723 # (any single argument exceeding 2000 bytes causes a buffer overrun
5724 # during glob expansion). Even if it were fixed, the result of this
5725 # check would be larger than it should be.
5726 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5729 gnu*)
5730 # Under GNU Hurd, this test is not required because there is
5731 # no limit to the length of command line arguments.
5732 # Libtool will interpret -1 as no limit whatsoever
5733 lt_cv_sys_max_cmd_len=-1;
5736 cygwin* | mingw* | cegcc*)
5737 # On Win9x/ME, this test blows up -- it succeeds, but takes
5738 # about 5 minutes as the teststring grows exponentially.
5739 # Worse, since 9x/ME are not pre-emptively multitasking,
5740 # you end up with a "frozen" computer, even though with patience
5741 # the test eventually succeeds (with a max line length of 256k).
5742 # Instead, let's just punt: use the minimum linelength reported by
5743 # all of the supported platforms: 8192 (on NT/2K/XP).
5744 lt_cv_sys_max_cmd_len=8192;
5747 mint*)
5748 # On MiNT this can take a long time and run out of memory.
5749 lt_cv_sys_max_cmd_len=8192;
5752 amigaos*)
5753 # On AmigaOS with pdksh, this test takes hours, literally.
5754 # So we just punt and use a minimum line length of 8192.
5755 lt_cv_sys_max_cmd_len=8192;
5758 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5759 # This has been around since 386BSD, at least. Likely further.
5760 if test -x /sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5762 elif test -x /usr/sbin/sysctl; then
5763 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5764 else
5765 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5767 # And add a safety zone
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5772 interix*)
5773 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5774 lt_cv_sys_max_cmd_len=196608
5777 osf*)
5778 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5779 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5780 # nice to cause kernel panics so lets avoid the loop below.
5781 # First set a reasonable default.
5782 lt_cv_sys_max_cmd_len=16384
5784 if test -x /sbin/sysconfig; then
5785 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5786 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5787 esac
5790 sco3.2v5*)
5791 lt_cv_sys_max_cmd_len=102400
5793 sysv5* | sco5v6* | sysv4.2uw2*)
5794 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5795 if test -n "$kargmax"; then
5796 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5797 else
5798 lt_cv_sys_max_cmd_len=32768
5802 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5803 if test -n "$lt_cv_sys_max_cmd_len"; then
5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806 else
5807 # Make teststring a little bigger before we do anything with it.
5808 # a 1K string should be a reasonable start.
5809 for i in 1 2 3 4 5 6 7 8 ; do
5810 teststring=$teststring$teststring
5811 done
5812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5813 # If test is not a shell built-in, we'll probably end up computing a
5814 # maximum length that is only half of the actual maximum length, but
5815 # we can't tell.
5816 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5817 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5818 test $i != 17 # 1/2 MB should be enough
5820 i=`expr $i + 1`
5821 teststring=$teststring$teststring
5822 done
5823 # Only check the string length outside the loop.
5824 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5825 teststring=
5826 # Add a significant safety factor because C++ compilers can tack on
5827 # massive amounts of additional arguments before passing them to the
5828 # linker. It appears as though 1/2 is a usable value.
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5832 esac
5836 if test -n $lt_cv_sys_max_cmd_len ; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5838 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5841 $as_echo "none" >&6; }
5843 max_cmd_len=$lt_cv_sys_max_cmd_len
5850 : ${CP="cp -f"}
5851 : ${MV="mv -f"}
5852 : ${RM="rm -f"}
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5855 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5856 # Try some XSI features
5857 xsi_shell=no
5858 ( _lt_dummy="a/b/c"
5859 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5860 = c,a/b,, \
5861 && eval 'test $(( 1 + 1 )) -eq 2 \
5862 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5863 && xsi_shell=yes
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5865 $as_echo "$xsi_shell" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5869 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5870 lt_shell_append=no
5871 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5872 >/dev/null 2>&1 \
5873 && lt_shell_append=yes
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5875 $as_echo "$lt_shell_append" >&6; }
5878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5879 lt_unset=unset
5880 else
5881 lt_unset=false
5888 # test EBCDIC or ASCII
5889 case `echo X|tr X '\101'` in
5890 A) # ASCII based system
5891 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5892 lt_SP2NL='tr \040 \012'
5893 lt_NL2SP='tr \015\012 \040\040'
5895 *) # EBCDIC based system
5896 lt_SP2NL='tr \100 \n'
5897 lt_NL2SP='tr \r\n \100\100'
5899 esac
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5910 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5911 if ${lt_cv_ld_reload_flag+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 lt_cv_ld_reload_flag='-r'
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5917 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5918 reload_flag=$lt_cv_ld_reload_flag
5919 case $reload_flag in
5920 "" | " "*) ;;
5921 *) reload_flag=" $reload_flag" ;;
5922 esac
5923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5924 case $host_os in
5925 darwin*)
5926 if test "$GCC" = yes; then
5927 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5928 else
5929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5932 esac
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_OBJDUMP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$OBJDUMP"; then
5951 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 OBJDUMP=$ac_cv_prog_OBJDUMP
5971 if test -n "$OBJDUMP"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5973 $as_echo "$OBJDUMP" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_OBJDUMP"; then
5982 ac_ct_OBJDUMP=$OBJDUMP
5983 # Extract the first word of "objdump", so it can be a program name with args.
5984 set dummy objdump; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$ac_ct_OBJDUMP"; then
5991 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6006 IFS=$as_save_IFS
6010 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6011 if test -n "$ac_ct_OBJDUMP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6013 $as_echo "$ac_ct_OBJDUMP" >&6; }
6014 else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_OBJDUMP" = x; then
6020 OBJDUMP="false"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028 OBJDUMP=$ac_ct_OBJDUMP
6030 else
6031 OBJDUMP="$ac_cv_prog_OBJDUMP"
6034 test -z "$OBJDUMP" && OBJDUMP=objdump
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6045 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6046 if ${lt_cv_deplibs_check_method+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 lt_cv_file_magic_cmd='$MAGIC_CMD'
6050 lt_cv_file_magic_test_file=
6051 lt_cv_deplibs_check_method='unknown'
6052 # Need to set the preceding variable on all platforms that support
6053 # interlibrary dependencies.
6054 # 'none' -- dependencies not supported.
6055 # `unknown' -- same as none, but documents that we really don't know.
6056 # 'pass_all' -- all dependencies passed with no checks.
6057 # 'test_compile' -- check by making test program.
6058 # 'file_magic [[regex]]' -- check by looking for files in library path
6059 # which responds to the $file_magic_cmd with a given extended regex.
6060 # If you have `file' or equivalent on your system and you're not sure
6061 # whether `pass_all' will *always* work, you probably want this one.
6063 case $host_os in
6064 aix[4-9]*)
6065 lt_cv_deplibs_check_method=pass_all
6068 beos*)
6069 lt_cv_deplibs_check_method=pass_all
6072 bsdi[45]*)
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6074 lt_cv_file_magic_cmd='/usr/bin/file -L'
6075 lt_cv_file_magic_test_file=/shlib/libc.so
6078 cygwin*)
6079 # func_win32_libid is a shell function defined in ltmain.sh
6080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081 lt_cv_file_magic_cmd='func_win32_libid'
6084 mingw* | pw32*)
6085 # Base MSYS/MinGW do not provide the 'file' command needed by
6086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087 # unless we find 'file', for example because we are cross-compiling.
6088 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6089 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091 lt_cv_file_magic_cmd='func_win32_libid'
6092 else
6093 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6094 lt_cv_file_magic_cmd='$OBJDUMP -f'
6098 cegcc*)
6099 # use the weaker test based on 'objdump'. See mingw*.
6100 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6101 lt_cv_file_magic_cmd='$OBJDUMP -f'
6104 darwin* | rhapsody*)
6105 lt_cv_deplibs_check_method=pass_all
6108 freebsd* | dragonfly*)
6109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110 case $host_cpu in
6111 i*86 )
6112 # Not sure whether the presence of OpenBSD here was a mistake.
6113 # Let's accept both of them until this is cleared up.
6114 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6118 esac
6119 else
6120 lt_cv_deplibs_check_method=pass_all
6124 gnu*)
6125 lt_cv_deplibs_check_method=pass_all
6128 haiku*)
6129 lt_cv_deplibs_check_method=pass_all
6132 hpux10.20* | hpux11*)
6133 lt_cv_file_magic_cmd=/usr/bin/file
6134 case $host_cpu in
6135 ia64*)
6136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6137 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6139 hppa*64*)
6140 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]'
6141 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6145 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6147 esac
6150 interix[3-9]*)
6151 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6155 irix5* | irix6* | nonstopux*)
6156 case $LD in
6157 *-32|*"-32 ") libmagic=32-bit;;
6158 *-n32|*"-n32 ") libmagic=N32;;
6159 *-64|*"-64 ") libmagic=64-bit;;
6160 *) libmagic=never-match;;
6161 esac
6162 lt_cv_deplibs_check_method=pass_all
6165 # This must be Linux ELF.
6166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6167 lt_cv_deplibs_check_method=pass_all
6170 netbsd*)
6171 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 else
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6178 newos6*)
6179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6180 lt_cv_file_magic_cmd=/usr/bin/file
6181 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6184 *nto* | *qnx*)
6185 lt_cv_deplibs_check_method=pass_all
6188 openbsd*)
6189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6191 else
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6196 osf3* | osf4* | osf5*)
6197 lt_cv_deplibs_check_method=pass_all
6200 rdos*)
6201 lt_cv_deplibs_check_method=pass_all
6204 solaris*)
6205 lt_cv_deplibs_check_method=pass_all
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209 lt_cv_deplibs_check_method=pass_all
6212 sysv4 | sysv4.3*)
6213 case $host_vendor in
6214 motorola)
6215 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]'
6216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6218 ncr)
6219 lt_cv_deplibs_check_method=pass_all
6221 sequent)
6222 lt_cv_file_magic_cmd='/bin/file'
6223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6225 sni)
6226 lt_cv_file_magic_cmd='/bin/file'
6227 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6228 lt_cv_file_magic_test_file=/lib/libc.so
6230 siemens)
6231 lt_cv_deplibs_check_method=pass_all
6234 lt_cv_deplibs_check_method=pass_all
6236 esac
6239 tpf*)
6240 lt_cv_deplibs_check_method=pass_all
6242 esac
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6246 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6247 file_magic_cmd=$lt_cv_file_magic_cmd
6248 deplibs_check_method=$lt_cv_deplibs_check_method
6249 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}ar; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_AR+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$AR"; then
6271 ac_cv_prog_AR="$AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_AR="${ac_tool_prefix}ar"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6286 IFS=$as_save_IFS
6290 AR=$ac_cv_prog_AR
6291 if test -n "$AR"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6293 $as_echo "$AR" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6301 if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_AR="ar"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6324 done
6325 done
6326 IFS=$as_save_IFS
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6333 $as_echo "$ac_ct_AR" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6339 if test "x$ac_ct_AR" = x; then
6340 AR="false"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348 AR=$ac_ct_AR
6350 else
6351 AR="$ac_cv_prog_AR"
6354 test -z "$AR" && AR=ar
6355 test -z "$AR_FLAGS" && AR_FLAGS=cru
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$STRIP"; then
6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 STRIP=$ac_cv_prog_STRIP
6396 if test -n "$STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398 $as_echo "$STRIP" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_STRIP"; then
6407 ac_ct_STRIP=$STRIP
6408 # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438 $as_echo "$ac_ct_STRIP" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_STRIP" = x; then
6445 STRIP=":"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453 STRIP=$ac_ct_STRIP
6455 else
6456 STRIP="$ac_cv_prog_STRIP"
6459 test -z "$STRIP" && STRIP=:
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6490 IFS=$as_save_IFS
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497 $as_echo "$RANLIB" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537 $as_echo "$ac_ct_RANLIB" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 RANLIB=$ac_ct_RANLIB
6554 else
6555 RANLIB="$ac_cv_prog_RANLIB"
6558 test -z "$RANLIB" && RANLIB=:
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6570 if test -n "$RANLIB"; then
6571 case $host_os in
6572 openbsd*)
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6578 esac
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6582 case $host_os in
6583 darwin*)
6584 lock_old_archive_extraction=yes ;;
6586 lock_old_archive_extraction=no ;;
6587 esac
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6653 # Define system-specific variables.
6654 case $host_os in
6655 aix*)
6656 symcode='[BCDT]'
6658 cygwin* | mingw* | pw32* | cegcc*)
6659 symcode='[ABCDGISTW]'
6661 hpux*)
6662 if test "$host_cpu" = ia64; then
6663 symcode='[ABCDEGRST]'
6666 irix* | nonstopux*)
6667 symcode='[BCDEGRST]'
6669 osf*)
6670 symcode='[BCDEGQRST]'
6672 solaris*)
6673 symcode='[BDRT]'
6675 sco3.2v5*)
6676 symcode='[DT]'
6678 sysv4.2uw2*)
6679 symcode='[DT]'
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682 symcode='[ABDT]'
6684 sysv4)
6685 symcode='[DFNSTU]'
6687 esac
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6693 esac
6695 # Transform an extracted symbol line into a proper C declaration.
6696 # Some systems (esp. on ia64) link data and code symbols differently,
6697 # so use this general approach.
6698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6700 # Transform an extracted symbol line into symbol name and symbol address
6701 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6702 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'"
6704 # Handle CRLF in mingw tool chain
6705 opt_cr=
6706 case $build_os in
6707 mingw*)
6708 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6710 esac
6712 # Try without a prefix underscore, then with it.
6713 for ac_symprfx in "" "_"; do
6715 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6716 symxfrm="\\1 $ac_symprfx\\2 \\2"
6718 # Write the raw and C identifiers.
6719 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6720 # Fake it for dumpbin and say T for any non-static function
6721 # and D for any global variable.
6722 # Also find C++ and __fastcall symbols from MSVC++,
6723 # which start with @ or ?.
6724 lt_cv_sys_global_symbol_pipe="$AWK '"\
6725 " {last_section=section; section=\$ 3};"\
6726 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6727 " \$ 0!~/External *\|/{next};"\
6728 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6729 " {if(hide[section]) next};"\
6730 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6731 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6732 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6733 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6734 " ' prfx=^$ac_symprfx"
6735 else
6736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6739 # Check to see that the pipe works correctly.
6740 pipe_works=no
6742 rm -f conftest*
6743 cat > conftest.$ac_ext <<_LT_EOF
6744 #ifdef __cplusplus
6745 extern "C" {
6746 #endif
6747 char nm_test_var;
6748 void nm_test_func(void);
6749 void nm_test_func(void){}
6750 #ifdef __cplusplus
6752 #endif
6753 int main(){nm_test_var='a';nm_test_func();return(0);}
6754 _LT_EOF
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6758 ac_status=$?
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 # Now try to grab the symbols.
6762 nlist=conftest.nm
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6764 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; } && test -s "$nlist"; then
6768 # Try sorting and uniquifying the output.
6769 if sort "$nlist" | uniq > "$nlist"T; then
6770 mv -f "$nlist"T "$nlist"
6771 else
6772 rm -f "$nlist"T
6775 # Make sure that we snagged all the symbols we need.
6776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6778 cat <<_LT_EOF > conftest.$ac_ext
6779 #ifdef __cplusplus
6780 extern "C" {
6781 #endif
6783 _LT_EOF
6784 # Now generate the symbol file.
6785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6787 cat <<_LT_EOF >> conftest.$ac_ext
6789 /* The mapping between symbol names and symbols. */
6790 const struct {
6791 const char *name;
6792 void *address;
6794 lt__PROGRAM__LTX_preloaded_symbols[] =
6796 { "@PROGRAM@", (void *) 0 },
6797 _LT_EOF
6798 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6799 cat <<\_LT_EOF >> conftest.$ac_ext
6800 {0, (void *) 0}
6803 /* This works around a problem in FreeBSD linker */
6804 #ifdef FREEBSD_WORKAROUND
6805 static const void *lt_preloaded_setup() {
6806 return lt__PROGRAM__LTX_preloaded_symbols;
6808 #endif
6810 #ifdef __cplusplus
6812 #endif
6813 _LT_EOF
6814 # Now try linking the two files.
6815 mv conftest.$ac_objext conftstm.$ac_objext
6816 lt_save_LIBS="$LIBS"
6817 lt_save_CFLAGS="$CFLAGS"
6818 LIBS="conftstm.$ac_objext"
6819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6821 (eval $ac_link) 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6825 pipe_works=yes
6827 LIBS="$lt_save_LIBS"
6828 CFLAGS="$lt_save_CFLAGS"
6829 else
6830 echo "cannot find nm_test_func in $nlist" >&5
6832 else
6833 echo "cannot find nm_test_var in $nlist" >&5
6835 else
6836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6838 else
6839 echo "$progname: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6842 rm -rf conftest* conftst*
6844 # Do not use the global_symbol_pipe unless it works.
6845 if test "$pipe_works" = yes; then
6846 break
6847 else
6848 lt_cv_sys_global_symbol_pipe=
6850 done
6854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6855 lt_cv_sys_global_symbol_to_cdecl=
6857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6859 $as_echo "failed" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6862 $as_echo "ok" >&6; }
6887 # Check whether --enable-libtool-lock was given.
6888 if test "${enable_libtool_lock+set}" = set; then :
6889 enableval=$enable_libtool_lock;
6892 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6894 # Some flags need to be propagated to the compiler or linker for good
6895 # libtool support.
6896 case $host in
6897 ia64-*-hpux*)
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.$ac_objext` in
6906 *ELF-32*)
6907 HPUX_IA64_MODE="32"
6909 *ELF-64*)
6910 HPUX_IA64_MODE="64"
6912 esac
6914 rm -rf conftest*
6916 *-*-irix6*)
6917 # Find out which ABI we are using.
6918 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6920 (eval $ac_compile) 2>&5
6921 ac_status=$?
6922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923 test $ac_status = 0; }; then
6924 if test "$lt_cv_prog_gnu_ld" = yes; then
6925 case `/usr/bin/file conftest.$ac_objext` in
6926 *32-bit*)
6927 LD="${LD-ld} -melf32bsmip"
6929 *N32*)
6930 LD="${LD-ld} -melf32bmipn32"
6932 *64-bit*)
6933 LD="${LD-ld} -melf64bmip"
6935 esac
6936 else
6937 case `/usr/bin/file conftest.$ac_objext` in
6938 *32-bit*)
6939 LD="${LD-ld} -32"
6941 *N32*)
6942 LD="${LD-ld} -n32"
6944 *64-bit*)
6945 LD="${LD-ld} -64"
6947 esac
6950 rm -rf conftest*
6953 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6954 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6955 # Find out which ABI we are using.
6956 echo 'int i;' > conftest.$ac_ext
6957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }; then
6962 case `/usr/bin/file conftest.o` in
6963 *32-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_i386_fbsd"
6968 x86_64-*linux*)
6969 case `/usr/bin/file conftest.o` in
6970 *x86-64*)
6971 LD="${LD-ld} -m elf32_x86_64"
6974 LD="${LD-ld} -m elf_i386"
6976 esac
6978 powerpc64le-*linux*)
6979 LD="${LD-ld} -m elf32lppclinux"
6981 powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6990 esac
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
7000 powerpcle-*linux*)
7001 LD="${LD-ld} -m elf64lppc"
7003 powerpc-*linux*)
7004 LD="${LD-ld} -m elf64ppc"
7006 s390*-*linux*|s390*-*tpf*)
7007 LD="${LD-ld} -m elf64_s390"
7009 sparc*-*linux*)
7010 LD="${LD-ld} -m elf64_sparc"
7012 esac
7014 esac
7016 rm -rf conftest*
7019 *-*-sco3.2v5*)
7020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7021 SAVE_CFLAGS="$CFLAGS"
7022 CFLAGS="$CFLAGS -belf"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7024 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7025 if ${lt_cv_cc_needs_belf+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7038 main ()
7042 return 0;
7044 _ACEOF
7045 if ac_fn_c_try_link "$LINENO"; then :
7046 lt_cv_cc_needs_belf=yes
7047 else
7048 lt_cv_cc_needs_belf=no
7050 rm -f core conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7060 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7063 CFLAGS="$SAVE_CFLAGS"
7066 sparc*-*solaris*)
7067 # Find out which ABI we are using.
7068 echo 'int i;' > conftest.$ac_ext
7069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7070 (eval $ac_compile) 2>&5
7071 ac_status=$?
7072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073 test $ac_status = 0; }; then
7074 case `/usr/bin/file conftest.o` in
7075 *64-bit*)
7076 case $lt_cv_prog_gnu_ld in
7077 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7079 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7080 LD="${LD-ld} -64"
7083 esac
7085 esac
7087 rm -rf conftest*
7089 esac
7091 need_locks="$enable_libtool_lock"
7094 case $host_os in
7095 rhapsody* | darwin*)
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$DSYMUTIL"; then
7105 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7125 if test -n "$DSYMUTIL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7127 $as_echo "$DSYMUTIL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7135 if test -z "$ac_cv_prog_DSYMUTIL"; then
7136 ac_ct_DSYMUTIL=$DSYMUTIL
7137 # Extract the first word of "dsymutil", so it can be a program name with args.
7138 set dummy dsymutil; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7165 if test -n "$ac_ct_DSYMUTIL"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7167 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 if test "x$ac_ct_DSYMUTIL" = x; then
7174 DSYMUTIL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 DSYMUTIL=$ac_ct_DSYMUTIL
7184 else
7185 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_NMEDIT+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$NMEDIT"; then
7197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 NMEDIT=$ac_cv_prog_NMEDIT
7217 if test -n "$NMEDIT"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7219 $as_echo "$NMEDIT" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_NMEDIT"; then
7228 ac_ct_NMEDIT=$NMEDIT
7229 # Extract the first word of "nmedit", so it can be a program name with args.
7230 set dummy nmedit; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_NMEDIT"; then
7237 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7257 if test -n "$ac_ct_NMEDIT"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7259 $as_echo "$ac_ct_NMEDIT" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_NMEDIT" = x; then
7266 NMEDIT=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 NMEDIT=$ac_ct_NMEDIT
7276 else
7277 NMEDIT="$ac_cv_prog_NMEDIT"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_LIPO+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$LIPO"; then
7289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7302 done
7303 done
7304 IFS=$as_save_IFS
7308 LIPO=$ac_cv_prog_LIPO
7309 if test -n "$LIPO"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7311 $as_echo "$LIPO" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 if test -z "$ac_cv_prog_LIPO"; then
7320 ac_ct_LIPO=$LIPO
7321 # Extract the first word of "lipo", so it can be a program name with args.
7322 set dummy lipo; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_LIPO"; then
7329 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_LIPO="lipo"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7349 if test -n "$ac_ct_LIPO"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7351 $as_echo "$ac_ct_LIPO" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7357 if test "x$ac_ct_LIPO" = x; then
7358 LIPO=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 LIPO=$ac_ct_LIPO
7368 else
7369 LIPO="$ac_cv_prog_LIPO"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$OTOOL"; then
7381 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7400 OTOOL=$ac_cv_prog_OTOOL
7401 if test -n "$OTOOL"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7403 $as_echo "$OTOOL" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7411 if test -z "$ac_cv_prog_OTOOL"; then
7412 ac_ct_OTOOL=$OTOOL
7413 # Extract the first word of "otool", so it can be a program name with args.
7414 set dummy otool; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_OTOOL"; then
7421 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_OTOOL="otool"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7434 done
7435 done
7436 IFS=$as_save_IFS
7440 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7441 if test -n "$ac_ct_OTOOL"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7443 $as_echo "$ac_ct_OTOOL" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 if test "x$ac_ct_OTOOL" = x; then
7450 OTOOL=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 OTOOL=$ac_ct_OTOOL
7460 else
7461 OTOOL="$ac_cv_prog_OTOOL"
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL64+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL64"; then
7473 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7492 OTOOL64=$ac_cv_prog_OTOOL64
7493 if test -n "$OTOOL64"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7495 $as_echo "$OTOOL64" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7503 if test -z "$ac_cv_prog_OTOOL64"; then
7504 ac_ct_OTOOL64=$OTOOL64
7505 # Extract the first word of "otool64", so it can be a program name with args.
7506 set dummy otool64; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL64"; then
7513 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL64="otool64"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7533 if test -n "$ac_ct_OTOOL64"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7535 $as_echo "$ac_ct_OTOOL64" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7541 if test "x$ac_ct_OTOOL64" = x; then
7542 OTOOL64=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL64=$ac_ct_OTOOL64
7552 else
7553 OTOOL64="$ac_cv_prog_OTOOL64"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7583 $as_echo_n "checking for -single_module linker flag... " >&6; }
7584 if ${lt_cv_apple_cc_single_mod+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_apple_cc_single_mod=no
7588 if test -z "${LT_MULTI_MODULE}"; then
7589 # By default we will add the -single_module flag. You can override
7590 # by either setting the environment variable LT_MULTI_MODULE
7591 # non-empty at configure time, or by adding -multi_module to the
7592 # link flags.
7593 rm -rf libconftest.dylib*
7594 echo "int foo(void){return 1;}" > conftest.c
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596 -dynamiclib -Wl,-single_module conftest.c" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7599 _lt_result=$?
7600 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7601 lt_cv_apple_cc_single_mod=yes
7602 else
7603 cat conftest.err >&5
7605 rm -rf libconftest.dylib*
7606 rm -f conftest.*
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7610 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7612 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7613 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 lt_cv_ld_exported_symbols_list=no
7617 save_LDFLAGS=$LDFLAGS
7618 echo "_main" > conftest.sym
7619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7624 main ()
7628 return 0;
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"; then :
7632 lt_cv_ld_exported_symbols_list=yes
7633 else
7634 lt_cv_ld_exported_symbols_list=no
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 LDFLAGS="$save_LDFLAGS"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7642 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7644 $as_echo_n "checking for -force_load linker flag... " >&6; }
7645 if ${lt_cv_ld_force_load+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 lt_cv_ld_force_load=no
7649 cat > conftest.c << _LT_EOF
7650 int forced_loaded() { return 2;}
7651 _LT_EOF
7652 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7653 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7654 echo "$AR cru libconftest.a conftest.o" >&5
7655 $AR cru libconftest.a conftest.o 2>&5
7656 cat > conftest.c << _LT_EOF
7657 int main() { return 0;}
7658 _LT_EOF
7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661 _lt_result=$?
7662 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7663 lt_cv_ld_force_load=yes
7664 else
7665 cat conftest.err >&5
7667 rm -f conftest.err libconftest.a conftest conftest.c
7668 rm -rf conftest.dSYM
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7672 $as_echo "$lt_cv_ld_force_load" >&6; }
7673 case $host_os in
7674 rhapsody* | darwin1.[012])
7675 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7676 darwin1.*)
7677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7678 darwin*) # darwin 5.x on
7679 # if running on 10.5 or later, the deployment target defaults
7680 # to the OS version, if on x86, and 10.4, the deployment
7681 # target defaults to 10.4. Don't you love it?
7682 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7683 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7685 10.[012][,.]*)
7686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7687 10.*)
7688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7689 esac
7691 esac
7692 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7693 _lt_dar_single_mod='$single_module'
7695 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7696 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7697 else
7698 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7700 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7701 _lt_dsymutil='~$DSYMUTIL $lib || :'
7702 else
7703 _lt_dsymutil=
7706 esac
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7715 # On Suns, sometimes $CPP names a directory.
7716 if test -n "$CPP" && test -d "$CPP"; then
7717 CPP=
7719 if test -z "$CPP"; then
7720 if ${ac_cv_prog_CPP+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 # Double quotes because CPP needs to be expanded
7724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7726 ac_preproc_ok=false
7727 for ac_c_preproc_warn_flag in '' yes
7729 # Use a header file that comes with gcc, so configuring glibc
7730 # with a fresh cross-compiler works.
7731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7732 # <limits.h> exists even on freestanding compilers.
7733 # On the NeXT, cc -E runs the code through the compiler's parser,
7734 # not just through cpp. "Syntax error" is here to catch this case.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #ifdef __STDC__
7738 # include <limits.h>
7739 #else
7740 # include <assert.h>
7741 #endif
7742 Syntax error
7743 _ACEOF
7744 if ac_fn_c_try_cpp "$LINENO"; then :
7746 else
7747 # Broken: fails on valid input.
7748 continue
7750 rm -f conftest.err conftest.i conftest.$ac_ext
7752 # OK, works on sane cases. Now check whether nonexistent headers
7753 # can be detected and how.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <ac_nonexistent.h>
7757 _ACEOF
7758 if ac_fn_c_try_cpp "$LINENO"; then :
7759 # Broken: success on invalid input.
7760 continue
7761 else
7762 # Passes both tests.
7763 ac_preproc_ok=:
7764 break
7766 rm -f conftest.err conftest.i conftest.$ac_ext
7768 done
7769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7770 rm -f conftest.i conftest.err conftest.$ac_ext
7771 if $ac_preproc_ok; then :
7772 break
7775 done
7776 ac_cv_prog_CPP=$CPP
7779 CPP=$ac_cv_prog_CPP
7780 else
7781 ac_cv_prog_CPP=$CPP
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7784 $as_echo "$CPP" >&6; }
7785 ac_preproc_ok=false
7786 for ac_c_preproc_warn_flag in '' yes
7788 # Use a header file that comes with gcc, so configuring glibc
7789 # with a fresh cross-compiler works.
7790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 # <limits.h> exists even on freestanding compilers.
7792 # On the NeXT, cc -E runs the code through the compiler's parser,
7793 # not just through cpp. "Syntax error" is here to catch this case.
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #ifdef __STDC__
7797 # include <limits.h>
7798 #else
7799 # include <assert.h>
7800 #endif
7801 Syntax error
7802 _ACEOF
7803 if ac_fn_c_try_cpp "$LINENO"; then :
7805 else
7806 # Broken: fails on valid input.
7807 continue
7809 rm -f conftest.err conftest.i conftest.$ac_ext
7811 # OK, works on sane cases. Now check whether nonexistent headers
7812 # can be detected and how.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <ac_nonexistent.h>
7816 _ACEOF
7817 if ac_fn_c_try_cpp "$LINENO"; then :
7818 # Broken: success on invalid input.
7819 continue
7820 else
7821 # Passes both tests.
7822 ac_preproc_ok=:
7823 break
7825 rm -f conftest.err conftest.i conftest.$ac_ext
7827 done
7828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7829 rm -f conftest.i conftest.err conftest.$ac_ext
7830 if $ac_preproc_ok; then :
7832 else
7833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7835 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7836 See \`config.log' for more details" "$LINENO" 5; }
7839 ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7847 $as_echo_n "checking for ANSI C header files... " >&6; }
7848 if ${ac_cv_header_stdc+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <stdlib.h>
7854 #include <stdarg.h>
7855 #include <string.h>
7856 #include <float.h>
7859 main ()
7863 return 0;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 ac_cv_header_stdc=yes
7868 else
7869 ac_cv_header_stdc=no
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 if test $ac_cv_header_stdc = yes; then
7874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 #include <string.h>
7879 _ACEOF
7880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7881 $EGREP "memchr" >/dev/null 2>&1; then :
7883 else
7884 ac_cv_header_stdc=no
7886 rm -f conftest*
7890 if test $ac_cv_header_stdc = yes; then
7891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 #include <stdlib.h>
7896 _ACEOF
7897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898 $EGREP "free" >/dev/null 2>&1; then :
7900 else
7901 ac_cv_header_stdc=no
7903 rm -f conftest*
7907 if test $ac_cv_header_stdc = yes; then
7908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7909 if test "$cross_compiling" = yes; then :
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <ctype.h>
7915 #include <stdlib.h>
7916 #if ((' ' & 0x0FF) == 0x020)
7917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7919 #else
7920 # define ISLOWER(c) \
7921 (('a' <= (c) && (c) <= 'i') \
7922 || ('j' <= (c) && (c) <= 'r') \
7923 || ('s' <= (c) && (c) <= 'z'))
7924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7925 #endif
7927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 main ()
7931 int i;
7932 for (i = 0; i < 256; i++)
7933 if (XOR (islower (i), ISLOWER (i))
7934 || toupper (i) != TOUPPER (i))
7935 return 2;
7936 return 0;
7938 _ACEOF
7939 if ac_fn_c_try_run "$LINENO"; then :
7941 else
7942 ac_cv_header_stdc=no
7944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7945 conftest.$ac_objext conftest.beam conftest.$ac_ext
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7951 $as_echo "$ac_cv_header_stdc" >&6; }
7952 if test $ac_cv_header_stdc = yes; then
7954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7960 inttypes.h stdint.h unistd.h
7961 do :
7962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7966 cat >>confdefs.h <<_ACEOF
7967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968 _ACEOF
7972 done
7975 for ac_header in dlfcn.h
7976 do :
7977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7979 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DLFCN_H 1
7982 _ACEOF
7986 done
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_GOC+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$GOC"; then
7997 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8016 GOC=$ac_cv_prog_GOC
8017 if test -n "$GOC"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
8019 $as_echo "$GOC" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_GOC"; then
8028 ac_ct_GOC=$GOC
8029 # Extract the first word of "gccgo", so it can be a program name with args.
8030 set dummy gccgo; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_GOC"; then
8037 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_GOC="gccgo"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
8057 if test -n "$ac_ct_GOC"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8059 $as_echo "$ac_ct_GOC" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_GOC" = x; then
8066 GOC=""
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 GOC=$ac_ct_GOC
8076 else
8077 GOC="$ac_cv_prog_GOC"
8085 # Set options
8090 enable_win32_dll=no
8093 # Check whether --enable-shared was given.
8094 if test "${enable_shared+set}" = set; then :
8095 enableval=$enable_shared; p=${PACKAGE-default}
8096 case $enableval in
8097 yes) enable_shared=yes ;;
8098 no) enable_shared=no ;;
8100 enable_shared=no
8101 # Look at the argument we got. We use all the common list separators.
8102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8103 for pkg in $enableval; do
8104 IFS="$lt_save_ifs"
8105 if test "X$pkg" = "X$p"; then
8106 enable_shared=yes
8108 done
8109 IFS="$lt_save_ifs"
8111 esac
8112 else
8113 enable_shared=yes
8124 # Check whether --enable-static was given.
8125 if test "${enable_static+set}" = set; then :
8126 enableval=$enable_static; p=${PACKAGE-default}
8127 case $enableval in
8128 yes) enable_static=yes ;;
8129 no) enable_static=no ;;
8131 enable_static=no
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for pkg in $enableval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$pkg" = "X$p"; then
8137 enable_static=yes
8139 done
8140 IFS="$lt_save_ifs"
8142 esac
8143 else
8144 enable_static=yes
8156 # Check whether --with-pic was given.
8157 if test "${with_pic+set}" = set; then :
8158 withval=$with_pic; pic_mode="$withval"
8159 else
8160 pic_mode=default
8164 test -z "$pic_mode" && pic_mode=default
8172 # Check whether --enable-fast-install was given.
8173 if test "${enable_fast_install+set}" = set; then :
8174 enableval=$enable_fast_install; p=${PACKAGE-default}
8175 case $enableval in
8176 yes) enable_fast_install=yes ;;
8177 no) enable_fast_install=no ;;
8179 enable_fast_install=no
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for pkg in $enableval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$pkg" = "X$p"; then
8185 enable_fast_install=yes
8187 done
8188 IFS="$lt_save_ifs"
8190 esac
8191 else
8192 enable_fast_install=yes
8205 # This can be used to rebuild libtool when needed
8206 LIBTOOL_DEPS="$ltmain"
8208 # Always use our own libtool.
8209 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8236 test -z "$LN_S" && LN_S="ln -s"
8251 if test -n "${ZSH_VERSION+set}" ; then
8252 setopt NO_GLOB_SUBST
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8256 $as_echo_n "checking for objdir... " >&6; }
8257 if ${lt_cv_objdir+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 rm -f .libs 2>/dev/null
8261 mkdir .libs 2>/dev/null
8262 if test -d .libs; then
8263 lt_cv_objdir=.libs
8264 else
8265 # MS-DOS does not allow filenames that begin with a dot.
8266 lt_cv_objdir=_libs
8268 rmdir .libs 2>/dev/null
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8271 $as_echo "$lt_cv_objdir" >&6; }
8272 objdir=$lt_cv_objdir
8278 cat >>confdefs.h <<_ACEOF
8279 #define LT_OBJDIR "$lt_cv_objdir/"
8280 _ACEOF
8285 case $host_os in
8286 aix3*)
8287 # AIX sometimes has problems with the GCC collect2 program. For some
8288 # reason, if we set the COLLECT_NAMES environment variable, the problems
8289 # vanish in a puff of smoke.
8290 if test "X${COLLECT_NAMES+set}" != Xset; then
8291 COLLECT_NAMES=
8292 export COLLECT_NAMES
8295 esac
8297 # Global variables:
8298 ofile=libtool
8299 can_build_shared=yes
8301 # All known linkers require a `.a' archive for static linking (except MSVC,
8302 # which needs '.lib').
8303 libext=a
8305 with_gnu_ld="$lt_cv_prog_gnu_ld"
8307 old_CC="$CC"
8308 old_CFLAGS="$CFLAGS"
8310 # Set sane defaults for various variables
8311 test -z "$CC" && CC=cc
8312 test -z "$LTCC" && LTCC=$CC
8313 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8314 test -z "$LD" && LD=ld
8315 test -z "$ac_objext" && ac_objext=o
8317 for cc_temp in $compiler""; do
8318 case $cc_temp in
8319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8321 \-*) ;;
8322 *) break;;
8323 esac
8324 done
8325 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8328 # Only perform the check for file, if the check method requires it
8329 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330 case $deplibs_check_method in
8331 file_magic*)
8332 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8334 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8335 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $MAGIC_CMD in
8339 [\\/*] | ?:[\\/]*)
8340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 lt_save_MAGIC_CMD="$MAGIC_CMD"
8344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346 for ac_dir in $ac_dummy; do
8347 IFS="$lt_save_ifs"
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/${ac_tool_prefix}file; then
8350 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8351 if test -n "$file_magic_test_file"; then
8352 case $deplibs_check_method in
8353 "file_magic "*)
8354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357 $EGREP "$file_magic_regex" > /dev/null; then
8359 else
8360 cat <<_LT_EOF 1>&2
8362 *** Warning: the command libtool uses to detect shared libraries,
8363 *** $file_magic_cmd, produces output that libtool cannot recognize.
8364 *** The result is that libtool may fail to recognize shared libraries
8365 *** as such. This will affect the creation of libtool libraries that
8366 *** depend on shared libraries, but programs linked with such libtool
8367 *** libraries will work regardless of this problem. Nevertheless, you
8368 *** may want to report the problem to your system manager and/or to
8369 *** bug-libtool@gnu.org
8371 _LT_EOF
8372 fi ;;
8373 esac
8375 break
8377 done
8378 IFS="$lt_save_ifs"
8379 MAGIC_CMD="$lt_save_MAGIC_CMD"
8381 esac
8384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385 if test -n "$MAGIC_CMD"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387 $as_echo "$MAGIC_CMD" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8397 if test -z "$lt_cv_path_MAGIC_CMD"; then
8398 if test -n "$ac_tool_prefix"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8400 $as_echo_n "checking for file... " >&6; }
8401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 case $MAGIC_CMD in
8405 [\\/*] | ?:[\\/]*)
8406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 lt_save_MAGIC_CMD="$MAGIC_CMD"
8410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412 for ac_dir in $ac_dummy; do
8413 IFS="$lt_save_ifs"
8414 test -z "$ac_dir" && ac_dir=.
8415 if test -f $ac_dir/file; then
8416 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8417 if test -n "$file_magic_test_file"; then
8418 case $deplibs_check_method in
8419 "file_magic "*)
8420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423 $EGREP "$file_magic_regex" > /dev/null; then
8425 else
8426 cat <<_LT_EOF 1>&2
8428 *** Warning: the command libtool uses to detect shared libraries,
8429 *** $file_magic_cmd, produces output that libtool cannot recognize.
8430 *** The result is that libtool may fail to recognize shared libraries
8431 *** as such. This will affect the creation of libtool libraries that
8432 *** depend on shared libraries, but programs linked with such libtool
8433 *** libraries will work regardless of this problem. Nevertheless, you
8434 *** may want to report the problem to your system manager and/or to
8435 *** bug-libtool@gnu.org
8437 _LT_EOF
8438 fi ;;
8439 esac
8441 break
8443 done
8444 IFS="$lt_save_ifs"
8445 MAGIC_CMD="$lt_save_MAGIC_CMD"
8447 esac
8450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451 if test -n "$MAGIC_CMD"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453 $as_echo "$MAGIC_CMD" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8460 else
8461 MAGIC_CMD=:
8467 esac
8469 # Use C for the default configuration in the libtool script
8471 lt_save_CC="$CC"
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479 # Source file extension for C test sources.
8480 ac_ext=c
8482 # Object file extension for compiled C test sources.
8483 objext=o
8484 objext=$objext
8486 # Code to be used in simple compile tests
8487 lt_simple_compile_test_code="int some_variable = 0;"
8489 # Code to be used in simple link tests
8490 lt_simple_link_test_code='int main(){return(0);}'
8498 # If no C compiler was specified, use CC.
8499 LTCC=${LTCC-"$CC"}
8501 # If no C compiler flags were specified, use CFLAGS.
8502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8504 # Allow CC to be a program name with arguments.
8505 compiler=$CC
8507 # Save the default compiler, since it gets overwritten when the other
8508 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8509 compiler_DEFAULT=$CC
8511 # save warnings/boilerplate of simple test code
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515 _lt_compiler_boilerplate=`cat conftest.err`
8516 $RM conftest*
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521 _lt_linker_boilerplate=`cat conftest.err`
8522 $RM -r conftest*
8525 ## CAVEAT EMPTOR:
8526 ## There is no encapsulation within the following macros, do not change
8527 ## the running order or otherwise move them around unless you know exactly
8528 ## what you are doing...
8529 if test -n "$compiler"; then
8531 lt_prog_compiler_no_builtin_flag=
8533 if test "$GCC" = yes; then
8534 case $cc_basename in
8535 nvcc*)
8536 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8538 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539 esac
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 lt_cv_prog_compiler_rtti_exceptions=no
8547 ac_outfile=conftest.$ac_objext
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549 lt_compiler_flag="-fno-rtti -fno-exceptions"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 # The option is referenced via a variable to avoid confusing sed.
8555 lt_compile=`echo "$ac_compile" | $SED \
8556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558 -e 's:$: $lt_compiler_flag:'`
8559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval "$lt_compile" 2>conftest.err)
8561 ac_status=$?
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 if (exit $ac_status) && test -s "$ac_outfile"; then
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings other than the usual output.
8567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_rtti_exceptions=yes
8573 $RM conftest*
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581 else
8592 lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8599 if test "$GCC" = yes; then
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_static='-static'
8603 case $host_os in
8604 aix*)
8605 # All AIX code is PIC.
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 now supports IA64 processor
8608 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_pic='-fPIC'
8613 amigaos*)
8614 case $host_cpu in
8615 powerpc)
8616 # see comment about AmigaOS4 .so support
8617 lt_prog_compiler_pic='-fPIC'
8619 m68k)
8620 # FIXME: we need at least 68020 code to build shared libraries, but
8621 # adding the `-m68020' flag to GCC prevents building anything better,
8622 # like `-m68040'.
8623 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8625 esac
8628 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8629 # PIC is the default for these OSes.
8632 mingw* | cygwin* | pw32* | os2* | cegcc*)
8633 # This hack is so that the source file can tell whether it is being
8634 # built for inclusion in a dll (and should export symbols for example).
8635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8636 # (--disable-auto-import) libraries
8637 lt_prog_compiler_pic='-DDLL_EXPORT'
8640 darwin* | rhapsody*)
8641 # PIC is the default on this platform
8642 # Common symbols not allowed in MH_DYLIB files
8643 lt_prog_compiler_pic='-fno-common'
8646 haiku*)
8647 # PIC is the default for Haiku.
8648 # The "-static" flag exists, but is broken.
8649 lt_prog_compiler_static=
8652 hpux*)
8653 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8654 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8655 # sets the default TLS model and affects inlining.
8656 case $host_cpu in
8657 hppa*64*)
8658 # +Z the default
8661 lt_prog_compiler_pic='-fPIC'
8663 esac
8666 interix[3-9]*)
8667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8668 # Instead, we relocate shared libraries at runtime.
8671 msdosdjgpp*)
8672 # Just because we use GCC doesn't mean we suddenly get shared libraries
8673 # on systems that don't support them.
8674 lt_prog_compiler_can_build_shared=no
8675 enable_shared=no
8678 *nto* | *qnx*)
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 # it will coredump.
8681 lt_prog_compiler_pic='-fPIC -shared'
8684 sysv4*MP*)
8685 if test -d /usr/nec; then
8686 lt_prog_compiler_pic=-Kconform_pic
8691 lt_prog_compiler_pic='-fPIC'
8693 esac
8695 case $cc_basename in
8696 nvcc*) # Cuda Compiler Driver 2.2
8697 lt_prog_compiler_wl='-Xlinker '
8698 lt_prog_compiler_pic='-Xcompiler -fPIC'
8700 esac
8701 else
8702 # PORTME Check for flag to pass linker flags through the system compiler.
8703 case $host_os in
8704 aix*)
8705 lt_prog_compiler_wl='-Wl,'
8706 if test "$host_cpu" = ia64; then
8707 # AIX 5 now supports IA64 processor
8708 lt_prog_compiler_static='-Bstatic'
8709 else
8710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8714 mingw* | cygwin* | pw32* | os2* | cegcc*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 hpux9* | hpux10* | hpux11*)
8721 lt_prog_compiler_wl='-Wl,'
8722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8723 # not for PA HP-UX.
8724 case $host_cpu in
8725 hppa*64*|ia64*)
8726 # +Z the default
8729 lt_prog_compiler_pic='+Z'
8731 esac
8732 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8733 lt_prog_compiler_static='${wl}-a ${wl}archive'
8736 irix5* | irix6* | nonstopux*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # PIC (with -KPIC) is the default.
8739 lt_prog_compiler_static='-non_shared'
8742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8743 case $cc_basename in
8744 # old Intel for x86_64 which still supported -KPIC.
8745 ecc*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-static'
8750 # icc used to be incompatible with GCC.
8751 # ICC 10 doesn't accept -KPIC any more.
8752 icc* | ifort*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-fPIC'
8755 lt_prog_compiler_static='-static'
8757 # Lahey Fortran 8.1.
8758 lf95*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='--shared'
8761 lt_prog_compiler_static='--static'
8763 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group compilers (*not* the Pentium gcc compiler,
8765 # which looks to be a dead project)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fpic'
8768 lt_prog_compiler_static='-Bstatic'
8770 ccc*)
8771 lt_prog_compiler_wl='-Wl,'
8772 # All Alpha code is PIC.
8773 lt_prog_compiler_static='-non_shared'
8775 xl* | bgxl* | bgf* | mpixl*)
8776 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-qpic'
8779 lt_prog_compiler_static='-qstaticlink'
8782 case `$CC -V 2>&1 | sed 5q` in
8783 *Sun\ F* | *Sun*Fortran*)
8784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 lt_prog_compiler_wl=''
8789 *Sun\ C*)
8790 # Sun C 5.9
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8793 lt_prog_compiler_wl='-Wl,'
8795 esac
8797 esac
8800 newsos6)
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8805 *nto* | *qnx*)
8806 # QNX uses GNU C++, but need to define -shared option too, otherwise
8807 # it will coredump.
8808 lt_prog_compiler_pic='-fPIC -shared'
8811 osf3* | osf4* | osf5*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All OSF/1 code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8817 rdos*)
8818 lt_prog_compiler_static='-non_shared'
8821 solaris*)
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 case $cc_basename in
8825 f77* | f90* | f95*)
8826 lt_prog_compiler_wl='-Qoption ld ';;
8828 lt_prog_compiler_wl='-Wl,';;
8829 esac
8832 sunos4*)
8833 lt_prog_compiler_wl='-Qoption ld '
8834 lt_prog_compiler_pic='-PIC'
8835 lt_prog_compiler_static='-Bstatic'
8838 sysv4 | sysv4.2uw2* | sysv4.3*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-Bstatic'
8844 sysv4*MP*)
8845 if test -d /usr/nec ;then
8846 lt_prog_compiler_pic='-Kconform_pic'
8847 lt_prog_compiler_static='-Bstatic'
8851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8857 unicos*)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_can_build_shared=no
8862 uts4*)
8863 lt_prog_compiler_pic='-pic'
8864 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_can_build_shared=no
8870 esac
8873 case $host_os in
8874 # For platforms which do not support PIC, -DPIC is meaningless:
8875 *djgpp*)
8876 lt_prog_compiler_pic=
8879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8881 esac
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8883 $as_echo "$lt_prog_compiler_pic" >&6; }
8891 # Check to make sure the PIC flag actually works.
8893 if test -n "$lt_prog_compiler_pic"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8895 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8896 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_pic_works=no
8900 ac_outfile=conftest.$ac_objext
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 # The option is referenced via a variable to avoid confusing sed.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>conftest.err)
8914 ac_status=$?
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s "$ac_outfile"; then
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings other than the usual output.
8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_pic_works=yes
8926 $RM conftest*
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8930 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8932 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8933 case $lt_prog_compiler_pic in
8934 "" | " "*) ;;
8935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8936 esac
8937 else
8938 lt_prog_compiler_pic=
8939 lt_prog_compiler_can_build_shared=no
8950 # Check to make sure the static flag actually works.
8952 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8954 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8955 if ${lt_cv_prog_compiler_static_works+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 lt_cv_prog_compiler_static_works=no
8959 save_LDFLAGS="$LDFLAGS"
8960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8963 # The linker can only warn and ignore the option if not recognized
8964 # So say no if there are warnings
8965 if test -s conftest.err; then
8966 # Append any errors to the config.log.
8967 cat conftest.err 1>&5
8968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8970 if diff conftest.exp conftest.er2 >/dev/null; then
8971 lt_cv_prog_compiler_static_works=yes
8973 else
8974 lt_cv_prog_compiler_static_works=yes
8977 $RM -r conftest*
8978 LDFLAGS="$save_LDFLAGS"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8984 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8986 else
8987 lt_prog_compiler_static=
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998 if ${lt_cv_prog_compiler_c_o+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 lt_cv_prog_compiler_c_o=no
9002 $RM -r conftest 2>/dev/null
9003 mkdir conftest
9004 cd conftest
9005 mkdir out
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008 lt_compiler_flag="-o out/conftest2.$ac_objext"
9009 # Insert the option either (1) after the last *FLAGS variable, or
9010 # (2) before a word containing "conftest.", or (3) at the end.
9011 # Note that $ac_compile itself does not contain backslashes and begins
9012 # with a dollar sign (not a hyphen), so the echo should work correctly.
9013 lt_compile=`echo "$ac_compile" | $SED \
9014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016 -e 's:$: $lt_compiler_flag:'`
9017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018 (eval "$lt_compile" 2>out/conftest.err)
9019 ac_status=$?
9020 cat out/conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023 then
9024 # The compiler can only warn and ignore the option if not recognized
9025 # So say no if there are warnings
9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler_c_o=yes
9032 chmod u+w . 2>&5
9033 $RM conftest*
9034 # SGI C++ compiler will create directory out/ii_files/ for
9035 # template instantiation
9036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037 $RM out/* && rmdir out
9038 cd ..
9039 $RM -r conftest
9040 $RM conftest*
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9053 if ${lt_cv_prog_compiler_c_o+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 lt_cv_prog_compiler_c_o=no
9057 $RM -r conftest 2>/dev/null
9058 mkdir conftest
9059 cd conftest
9060 mkdir out
9061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063 lt_compiler_flag="-o out/conftest2.$ac_objext"
9064 # Insert the option either (1) after the last *FLAGS variable, or
9065 # (2) before a word containing "conftest.", or (3) at the end.
9066 # Note that $ac_compile itself does not contain backslashes and begins
9067 # with a dollar sign (not a hyphen), so the echo should work correctly.
9068 lt_compile=`echo "$ac_compile" | $SED \
9069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9071 -e 's:$: $lt_compiler_flag:'`
9072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9073 (eval "$lt_compile" 2>out/conftest.err)
9074 ac_status=$?
9075 cat out/conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9078 then
9079 # The compiler can only warn and ignore the option if not recognized
9080 # So say no if there are warnings
9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_c_o=yes
9087 chmod u+w . 2>&5
9088 $RM conftest*
9089 # SGI C++ compiler will create directory out/ii_files/ for
9090 # template instantiation
9091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9092 $RM out/* && rmdir out
9093 cd ..
9094 $RM -r conftest
9095 $RM conftest*
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9099 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9104 hard_links="nottested"
9105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9106 # do not overwrite the value of need_locks provided by the user
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9108 $as_echo_n "checking if we can lock with hard links... " >&6; }
9109 hard_links=yes
9110 $RM conftest*
9111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9112 touch conftest.a
9113 ln conftest.a conftest.b 2>&5 || hard_links=no
9114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9116 $as_echo "$hard_links" >&6; }
9117 if test "$hard_links" = no; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9119 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9120 need_locks=warn
9122 else
9123 need_locks=no
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9134 runpath_var=
9135 allow_undefined_flag=
9136 always_export_symbols=no
9137 archive_cmds=
9138 archive_expsym_cmds=
9139 compiler_needs_object=no
9140 enable_shared_with_static_runtimes=no
9141 export_dynamic_flag_spec=
9142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143 hardcode_automatic=no
9144 hardcode_direct=no
9145 hardcode_direct_absolute=no
9146 hardcode_libdir_flag_spec=
9147 hardcode_libdir_flag_spec_ld=
9148 hardcode_libdir_separator=
9149 hardcode_minus_L=no
9150 hardcode_shlibpath_var=unsupported
9151 inherit_rpath=no
9152 link_all_deplibs=unknown
9153 module_cmds=
9154 module_expsym_cmds=
9155 old_archive_from_new_cmds=
9156 old_archive_from_expsyms_cmds=
9157 thread_safe_flag_spec=
9158 whole_archive_flag_spec=
9159 # include_expsyms should be a list of space-separated symbols to be *always*
9160 # included in the symbol list
9161 include_expsyms=
9162 # exclude_expsyms can be an extended regexp of symbols to exclude
9163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165 # as well as any symbol that contains `d'.
9166 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168 # platforms (ab)use it in PIC code, but their linkers get confused if
9169 # the symbol is explicitly referenced. Since portable code cannot
9170 # rely on this symbol name, it's probably fine to never include it in
9171 # preloaded symbol tables.
9172 # Exclude shared library initialization/finalization symbols.
9173 extract_expsyms_cmds=
9175 case $host_os in
9176 cygwin* | mingw* | pw32* | cegcc*)
9177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178 # When not using gcc, we currently assume that we are using
9179 # Microsoft Visual C++.
9180 if test "$GCC" != yes; then
9181 with_gnu_ld=no
9184 interix*)
9185 # we just hope/assume this is gcc and not c89 (= MSVC++)
9186 with_gnu_ld=yes
9188 openbsd*)
9189 with_gnu_ld=no
9191 esac
9193 ld_shlibs=yes
9195 # On some targets, GNU ld is compatible enough with the native linker
9196 # that we're better off using the native interface for both.
9197 lt_use_gnu_ld_interface=no
9198 if test "$with_gnu_ld" = yes; then
9199 case $host_os in
9200 aix*)
9201 # The AIX port of GNU ld has always aspired to compatibility
9202 # with the native linker. However, as the warning in the GNU ld
9203 # block says, versions before 2.19.5* couldn't really create working
9204 # shared libraries, regardless of the interface used.
9205 case `$LD -v 2>&1` in
9206 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9210 lt_use_gnu_ld_interface=yes
9212 esac
9215 lt_use_gnu_ld_interface=yes
9217 esac
9220 if test "$lt_use_gnu_ld_interface" = yes; then
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9222 wlarc='${wl}'
9224 # Set some defaults for GNU ld with shared library support. These
9225 # are reset later if shared libraries are not supported. Putting them
9226 # here allows them to be overridden if necessary.
9227 runpath_var=LD_RUN_PATH
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 export_dynamic_flag_spec='${wl}--export-dynamic'
9230 # ancient GNU ld didn't support --whole-archive et. al.
9231 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9233 else
9234 whole_archive_flag_spec=
9236 supports_anon_versioning=no
9237 case `$LD -v 2>&1` in
9238 *GNU\ gold*) supports_anon_versioning=yes ;;
9239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242 *\ 2.11.*) ;; # other 2.11 versions
9243 *) supports_anon_versioning=yes ;;
9244 esac
9246 # See if GNU ld supports shared libraries.
9247 case $host_os in
9248 aix[3-9]*)
9249 # On AIX/PPC, the GNU linker is very broken
9250 if test "$host_cpu" != ia64; then
9251 ld_shlibs=no
9252 cat <<_LT_EOF 1>&2
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support. If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9261 _LT_EOF
9265 amigaos*)
9266 case $host_cpu in
9267 powerpc)
9268 # see comment about AmigaOS4 .so support
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds=''
9272 m68k)
9273 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)'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_minus_L=yes
9277 esac
9280 beos*)
9281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 allow_undefined_flag=unsupported
9283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284 # support --undefined. This deserves some investigation. FIXME
9285 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 else
9287 ld_shlibs=no
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293 # as there is no search path for DLLs.
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 export_dynamic_flag_spec='${wl}--export-all-symbols'
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=no
9298 enable_shared_with_static_runtimes=yes
9299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9303 # If the export-symbols file already is a .def file (1st line
9304 # is EXPORTS), use it as is; otherwise, prepend...
9305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306 cp $export_symbols $output_objdir/$soname.def;
9307 else
9308 echo EXPORTS > $output_objdir/$soname.def;
9309 cat $export_symbols >> $output_objdir/$soname.def;
9311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9312 else
9313 ld_shlibs=no
9317 haiku*)
9318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 link_all_deplibs=yes
9322 interix[3-9]*)
9323 hardcode_direct=no
9324 hardcode_shlibpath_var=no
9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326 export_dynamic_flag_spec='${wl}-E'
9327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9328 # Instead, shared libraries are loaded at an image base (0x10000000 by
9329 # default) and relocated if they conflict, which is a slow very memory
9330 # consuming and fragmenting process. To avoid this, we pick a random,
9331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9334 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'
9337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9338 tmp_diet=no
9339 if test "$host_os" = linux-dietlibc; then
9340 case $cc_basename in
9341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9342 esac
9344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9345 && test "$tmp_diet" = no
9346 then
9347 tmp_addflag=
9348 tmp_sharedflag='-shared'
9349 case $cc_basename,$host_cpu in
9350 pgcc*) # Portland Group C compiler
9351 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'
9352 tmp_addflag=' $pic_flag'
9354 pgf77* | pgf90* | pgf95* | pgfortran*)
9355 # Portland Group f77 and f90 compilers
9356 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'
9357 tmp_addflag=' $pic_flag -Mnomain' ;;
9358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9359 tmp_addflag=' -i_dynamic' ;;
9360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9361 tmp_addflag=' -i_dynamic -nofor_main' ;;
9362 ifc* | ifort*) # Intel Fortran compiler
9363 tmp_addflag=' -nofor_main' ;;
9364 lf95*) # Lahey Fortran 8.1
9365 whole_archive_flag_spec=
9366 tmp_sharedflag='--shared' ;;
9367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9368 tmp_sharedflag='-qmkshrobj'
9369 tmp_addflag= ;;
9370 nvcc*) # Cuda Compiler Driver 2.2
9371 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'
9372 compiler_needs_object=yes
9374 esac
9375 case `$CC -V 2>&1 | sed 5q` in
9376 *Sun\ C*) # Sun C 5.9
9377 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'
9378 compiler_needs_object=yes
9379 tmp_sharedflag='-G' ;;
9380 *Sun\ F*) # Sun Fortran 8.3
9381 tmp_sharedflag='-G' ;;
9382 esac
9383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 if test "x$supports_anon_versioning" = xyes; then
9386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9388 echo "local: *; };" >> $output_objdir/$libname.ver~
9389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9392 case $cc_basename in
9393 xlf* | bgf* | bgxlf* | mpixlf*)
9394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9395 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9396 hardcode_libdir_flag_spec=
9397 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9398 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9399 if test "x$supports_anon_versioning" = xyes; then
9400 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402 echo "local: *; };" >> $output_objdir/$libname.ver~
9403 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9406 esac
9407 else
9408 ld_shlibs=no
9412 netbsd*)
9413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415 wlarc=
9416 else
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422 solaris*)
9423 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9424 ld_shlibs=no
9425 cat <<_LT_EOF 1>&2
9427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428 *** create shared libraries on Solaris systems. Therefore, libtool
9429 *** is disabling shared libraries support. We urge you to upgrade GNU
9430 *** binutils to release 2.9.1 or newer. Another option is to modify
9431 *** your PATH or compiler configuration so that the native linker is
9432 *** used, and then restart.
9434 _LT_EOF
9435 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438 else
9439 ld_shlibs=no
9443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9444 case `$LD -v 2>&1` in
9445 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9446 ld_shlibs=no
9447 cat <<_LT_EOF 1>&2
9449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450 *** reliably create shared libraries on SCO systems. Therefore, libtool
9451 *** is disabling shared libraries support. We urge you to upgrade GNU
9452 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9453 *** your PATH or compiler configuration so that the native linker is
9454 *** used, and then restart.
9456 _LT_EOF
9459 # For security reasons, it is highly recommended that you always
9460 # use absolute paths for naming shared libraries, and exclude the
9461 # DT_RUNPATH tag from executables and libraries. But doing so
9462 # requires that you compile everything twice, which is a pain.
9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467 else
9468 ld_shlibs=no
9471 esac
9474 sunos4*)
9475 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476 wlarc=
9477 hardcode_direct=yes
9478 hardcode_shlibpath_var=no
9482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485 else
9486 ld_shlibs=no
9489 esac
9491 if test "$ld_shlibs" = no; then
9492 runpath_var=
9493 hardcode_libdir_flag_spec=
9494 export_dynamic_flag_spec=
9495 whole_archive_flag_spec=
9497 else
9498 # PORTME fill in a description of your system's linker (not GNU ld)
9499 case $host_os in
9500 aix3*)
9501 allow_undefined_flag=unsupported
9502 always_export_symbols=yes
9503 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'
9504 # Note: this linker hardcodes the directories in LIBPATH if there
9505 # are no directories specified by -L.
9506 hardcode_minus_L=yes
9507 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508 # Neither direct hardcoding nor static linking is supported with a
9509 # broken collect2.
9510 hardcode_direct=unsupported
9514 aix[4-9]*)
9515 if test "$host_cpu" = ia64; then
9516 # On IA64, the linker does run time linking by default, so we don't
9517 # have to do anything special.
9518 aix_use_runtimelinking=no
9519 exp_sym_flag='-Bexport'
9520 no_entry_flag=""
9521 else
9522 # If we're using GNU nm, then we don't want the "-C" option.
9523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9524 # Also, AIX nm treats weak defined symbols like other global
9525 # defined symbols, whereas GNU nm marks them as "W".
9526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527 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'
9528 else
9529 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'
9531 aix_use_runtimelinking=no
9533 # Test if we are trying to use run time linking or normal
9534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535 # need to do runtime linking.
9536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537 for ld_flag in $LDFLAGS; do
9538 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539 aix_use_runtimelinking=yes
9540 break
9542 done
9544 esac
9546 exp_sym_flag='-bexport'
9547 no_entry_flag='-bnoentry'
9550 # When large executables or shared objects are built, AIX ld can
9551 # have problems creating the table of contents. If linking a library
9552 # or program results in "error TOC overflow" add -mminimal-toc to
9553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9556 archive_cmds=''
9557 hardcode_direct=yes
9558 hardcode_direct_absolute=yes
9559 hardcode_libdir_separator=':'
9560 link_all_deplibs=yes
9561 file_list_spec='${wl}-f,'
9563 if test "$GCC" = yes; then
9564 case $host_os in aix4.[012]|aix4.[012].*)
9565 # We only want to do this on AIX 4.2 and lower, the check
9566 # below for broken collect2 doesn't work under 4.3+
9567 collect2name=`${CC} -print-prog-name=collect2`
9568 if test -f "$collect2name" &&
9569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570 then
9571 # We have reworked collect2
9573 else
9574 # We have old collect2
9575 hardcode_direct=unsupported
9576 # It fails to find uninstalled libraries when the uninstalled
9577 # path is not listed in the libpath. Setting hardcode_minus_L
9578 # to unsupported forces relinking
9579 hardcode_minus_L=yes
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_libdir_separator=
9584 esac
9585 shared_flag='-shared'
9586 if test "$aix_use_runtimelinking" = yes; then
9587 shared_flag="$shared_flag "'${wl}-G'
9589 else
9590 # not using gcc
9591 if test "$host_cpu" = ia64; then
9592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593 # chokes on -Wl,-G. The following line is correct:
9594 shared_flag='-G'
9595 else
9596 if test "$aix_use_runtimelinking" = yes; then
9597 shared_flag='${wl}-G'
9598 else
9599 shared_flag='${wl}-bM:SRE'
9604 export_dynamic_flag_spec='${wl}-bexpall'
9605 # It seems that -bexpall does not export symbols beginning with
9606 # underscore (_), so it is better to generate a list of symbols to export.
9607 always_export_symbols=yes
9608 if test "$aix_use_runtimelinking" = yes; then
9609 # Warning - without using the other runtime loading flags (-brtl),
9610 # -berok will link without error, but may produce a broken library.
9611 allow_undefined_flag='-berok'
9612 # Determine the default libpath from the value encoded in an
9613 # empty executable.
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9618 main ()
9622 return 0;
9624 _ACEOF
9625 if ac_fn_c_try_link "$LINENO"; then :
9627 lt_aix_libpath_sed='
9628 /Import File Strings/,/^$/ {
9629 /^0/ {
9630 s/^0 *\(.*\)$/\1/
9634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635 # Check for a 64-bit object if we didn't find anything.
9636 if test -z "$aix_libpath"; then
9637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645 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"
9646 else
9647 if test "$host_cpu" = ia64; then
9648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9649 allow_undefined_flag="-z nodefs"
9650 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"
9651 else
9652 # Determine the default libpath from the value encoded in an
9653 # empty executable.
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9658 main ()
9662 return 0;
9664 _ACEOF
9665 if ac_fn_c_try_link "$LINENO"; then :
9667 lt_aix_libpath_sed='
9668 /Import File Strings/,/^$/ {
9669 /^0/ {
9670 s/^0 *\(.*\)$/\1/
9674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 # Check for a 64-bit object if we didn't find anything.
9676 if test -z "$aix_libpath"; then
9677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9685 # Warning - without using the other run time loading flags,
9686 # -berok will link without error, but may produce a broken library.
9687 no_undefined_flag=' ${wl}-bernotok'
9688 allow_undefined_flag=' ${wl}-berok'
9689 if test "$with_gnu_ld" = yes; then
9690 # We only use this code for GNU lds that support --whole-archive.
9691 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9692 else
9693 # Exported symbols can be pulled into shared objects from archives
9694 whole_archive_flag_spec='$convenience'
9696 archive_cmds_need_lc=yes
9697 # This is similar to how AIX traditionally builds its shared libraries.
9698 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'
9703 amigaos*)
9704 case $host_cpu in
9705 powerpc)
9706 # see comment about AmigaOS4 .so support
9707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708 archive_expsym_cmds=''
9710 m68k)
9711 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)'
9712 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_minus_L=yes
9715 esac
9718 bsdi[45]*)
9719 export_dynamic_flag_spec=-rdynamic
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 # hardcode_libdir_flag_spec is actually meaningless, as there is
9726 # no search path for DLLs.
9727 hardcode_libdir_flag_spec=' '
9728 allow_undefined_flag=unsupported
9729 # Tell ltmain to make .lib files, not .a files.
9730 libext=lib
9731 # Tell ltmain to make .dll files, not .so files.
9732 shrext_cmds=".dll"
9733 # FIXME: Setting linknames here is a bad hack.
9734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9735 # The linker will automatically build a .lib file if we build a DLL.
9736 old_archive_from_new_cmds='true'
9737 # FIXME: Should let the user specify the lib program.
9738 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9739 fix_srcfile_path='`cygpath -w "$srcfile"`'
9740 enable_shared_with_static_runtimes=yes
9743 darwin* | rhapsody*)
9746 archive_cmds_need_lc=no
9747 hardcode_direct=no
9748 hardcode_automatic=yes
9749 hardcode_shlibpath_var=unsupported
9750 if test "$lt_cv_ld_force_load" = "yes"; then
9751 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\"`'
9752 else
9753 whole_archive_flag_spec=''
9755 link_all_deplibs=yes
9756 allow_undefined_flag="$_lt_dar_allow_undefined"
9757 case $cc_basename in
9758 ifort*) _lt_dar_can_shared=yes ;;
9759 *) _lt_dar_can_shared=$GCC ;;
9760 esac
9761 if test "$_lt_dar_can_shared" = "yes"; then
9762 output_verbose_link_cmd=func_echo_all
9763 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9764 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9765 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}"
9766 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}"
9768 else
9769 ld_shlibs=no
9774 dgux*)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_shlibpath_var=no
9780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9781 # support. Future versions do this automatically, but an explicit c++rt0.o
9782 # does not break anything, and helps significantly (at the cost of a little
9783 # extra space).
9784 freebsd2.2*)
9785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9786 hardcode_libdir_flag_spec='-R$libdir'
9787 hardcode_direct=yes
9788 hardcode_shlibpath_var=no
9791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792 freebsd2.*)
9793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes
9795 hardcode_minus_L=yes
9796 hardcode_shlibpath_var=no
9799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9800 freebsd* | dragonfly*)
9801 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9802 hardcode_libdir_flag_spec='-R$libdir'
9803 hardcode_direct=yes
9804 hardcode_shlibpath_var=no
9807 hpux9*)
9808 if test "$GCC" = yes; then
9809 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'
9810 else
9811 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'
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 hardcode_direct=yes
9817 # hardcode_minus_L: Not really in the search PATH,
9818 # but as the default location of the library.
9819 hardcode_minus_L=yes
9820 export_dynamic_flag_spec='${wl}-E'
9823 hpux10*)
9824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 else
9827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9829 if test "$with_gnu_ld" = no; then
9830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831 hardcode_libdir_flag_spec_ld='+b $libdir'
9832 hardcode_libdir_separator=:
9833 hardcode_direct=yes
9834 hardcode_direct_absolute=yes
9835 export_dynamic_flag_spec='${wl}-E'
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9842 hpux11*)
9843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844 case $host_cpu in
9845 hppa*64*)
9846 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 ia64*)
9849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 esac
9855 else
9856 case $host_cpu in
9857 hppa*64*)
9858 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 ia64*)
9861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9865 # Older versions of the 11.00 compiler do not understand -b yet
9866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9868 $as_echo_n "checking if $CC understands -b... " >&6; }
9869 if ${lt_cv_prog_compiler__b+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 lt_cv_prog_compiler__b=no
9873 save_LDFLAGS="$LDFLAGS"
9874 LDFLAGS="$LDFLAGS -b"
9875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9877 # The linker can only warn and ignore the option if not recognized
9878 # So say no if there are warnings
9879 if test -s conftest.err; then
9880 # Append any errors to the config.log.
9881 cat conftest.err 1>&5
9882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884 if diff conftest.exp conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler__b=yes
9887 else
9888 lt_cv_prog_compiler__b=yes
9891 $RM -r conftest*
9892 LDFLAGS="$save_LDFLAGS"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9896 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9898 if test x"$lt_cv_prog_compiler__b" = xyes; then
9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9905 esac
9907 if test "$with_gnu_ld" = no; then
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9911 case $host_cpu in
9912 hppa*64*|ia64*)
9913 hardcode_direct=no
9914 hardcode_shlibpath_var=no
9917 hardcode_direct=yes
9918 hardcode_direct_absolute=yes
9919 export_dynamic_flag_spec='${wl}-E'
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9925 esac
9929 irix5* | irix6* | nonstopux*)
9930 if test "$GCC" = yes; then
9931 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'
9932 # Try to use the -exported_symbol ld option, if it does not
9933 # work, assume that -exports_file does not work either and
9934 # implicitly export all symbols.
9935 save_LDFLAGS="$LDFLAGS"
9936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int foo(void) {}
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 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'
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LDFLAGS="$save_LDFLAGS"
9948 else
9949 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'
9950 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'
9952 archive_cmds_need_lc='no'
9953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954 hardcode_libdir_separator=:
9955 inherit_rpath=yes
9956 link_all_deplibs=yes
9959 netbsd*)
9960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9962 else
9963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9970 newsos6)
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 hardcode_libdir_separator=:
9975 hardcode_shlibpath_var=no
9978 *nto* | *qnx*)
9981 openbsd*)
9982 if test -f /usr/libexec/ld.so; then
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 hardcode_direct_absolute=yes
9986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990 export_dynamic_flag_spec='${wl}-E'
9991 else
9992 case $host_os in
9993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_libdir_flag_spec='-R$libdir'
9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10001 esac
10003 else
10004 ld_shlibs=no
10008 os2*)
10009 hardcode_libdir_flag_spec='-L$libdir'
10010 hardcode_minus_L=yes
10011 allow_undefined_flag=unsupported
10012 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'
10013 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10016 osf3*)
10017 if test "$GCC" = yes; then
10018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019 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'
10020 else
10021 allow_undefined_flag=' -expect_unresolved \*'
10022 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'
10024 archive_cmds_need_lc='no'
10025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026 hardcode_libdir_separator=:
10029 osf4* | osf5*) # as osf3* with the addition of -msym flag
10030 if test "$GCC" = yes; then
10031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032 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'
10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034 else
10035 allow_undefined_flag=' -expect_unresolved \*'
10036 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'
10037 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~
10038 $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'
10040 # Both c and cxx compiler support -rpath directly
10041 hardcode_libdir_flag_spec='-rpath $libdir'
10043 archive_cmds_need_lc='no'
10044 hardcode_libdir_separator=:
10047 solaris*)
10048 no_undefined_flag=' -z defs'
10049 if test "$GCC" = yes; then
10050 wlarc='${wl}'
10051 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054 else
10055 case `$CC -V 2>&1` in
10056 *"Compilers 5.0"*)
10057 wlarc=''
10058 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10063 wlarc='${wl}'
10064 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10068 esac
10070 hardcode_libdir_flag_spec='-R$libdir'
10071 hardcode_shlibpath_var=no
10072 case $host_os in
10073 solaris2.[0-5] | solaris2.[0-5].*) ;;
10075 # The compiler driver will combine and reorder linker options,
10076 # but understands `-z linker_flag'. GCC discards it without `$wl',
10077 # but is careful enough not to reorder.
10078 # Supported since Solaris 2.6 (maybe 2.5.1?)
10079 if test "$GCC" = yes; then
10080 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10081 else
10082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10085 esac
10086 link_all_deplibs=yes
10089 sunos4*)
10090 if test "x$host_vendor" = xsequent; then
10091 # Use $CC to link under sequent, because it throws in some extra .o
10092 # files that make .init and .fini sections work.
10093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 else
10095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_direct=yes
10099 hardcode_minus_L=yes
10100 hardcode_shlibpath_var=no
10103 sysv4)
10104 case $host_vendor in
10105 sni)
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_direct=yes # is this really true???
10109 siemens)
10110 ## LD is ld it makes a PLAMLIB
10111 ## CC just makes a GrossModule.
10112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113 reload_cmds='$CC -r -o $output$reload_objs'
10114 hardcode_direct=no
10116 motorola)
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10120 esac
10121 runpath_var='LD_RUN_PATH'
10122 hardcode_shlibpath_var=no
10125 sysv4.3*)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_shlibpath_var=no
10128 export_dynamic_flag_spec='-Bexport'
10131 sysv4*MP*)
10132 if test -d /usr/nec; then
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_shlibpath_var=no
10135 runpath_var=LD_RUN_PATH
10136 hardcode_runpath_var=yes
10137 ld_shlibs=yes
10141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142 no_undefined_flag='${wl}-z,text'
10143 archive_cmds_need_lc=no
10144 hardcode_shlibpath_var=no
10145 runpath_var='LD_RUN_PATH'
10147 if test "$GCC" = yes; then
10148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 else
10151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 sysv5* | sco3.2v5* | sco5v6*)
10157 # Note: We can NOT use -z defs as we might desire, because we do not
10158 # link with -lc, and that would cause any symbols used from libc to
10159 # always be unresolved, which means just about no library would
10160 # ever link correctly. If we're not using GNU ld we use -z text
10161 # though, which does catch some bad symbols but isn't as heavy-handed
10162 # as -z defs.
10163 no_undefined_flag='${wl}-z,text'
10164 allow_undefined_flag='${wl}-z,nodefs'
10165 archive_cmds_need_lc=no
10166 hardcode_shlibpath_var=no
10167 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168 hardcode_libdir_separator=':'
10169 link_all_deplibs=yes
10170 export_dynamic_flag_spec='${wl}-Bexport'
10171 runpath_var='LD_RUN_PATH'
10173 if test "$GCC" = yes; then
10174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 else
10177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 uts4*)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_shlibpath_var=no
10189 ld_shlibs=no
10191 esac
10193 if test x$host_vendor = xsni; then
10194 case $host in
10195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196 export_dynamic_flag_spec='${wl}-Blargedynsym'
10198 esac
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203 $as_echo "$ld_shlibs" >&6; }
10204 test "$ld_shlibs" = no && can_build_shared=no
10206 with_gnu_ld=$with_gnu_ld
10223 # Do we need to explicitly link libc?
10225 case "x$archive_cmds_need_lc" in
10226 x|xyes)
10227 # Assume -lc should be added
10228 archive_cmds_need_lc=yes
10230 if test "$enable_shared" = yes && test "$GCC" = yes; then
10231 case $archive_cmds in
10232 *'~'*)
10233 # FIXME: we may have to deal with multi-command sequences.
10235 '$CC '*)
10236 # Test whether the compiler implicitly links with -lc since on some
10237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238 # to ld, don't add -lc before -lgcc.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 $RM conftest*
10245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10248 (eval $ac_compile) 2>&5
10249 ac_status=$?
10250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10251 test $ac_status = 0; } 2>conftest.err; then
10252 soname=conftest
10253 lib=conftest
10254 libobjs=conftest.$ac_objext
10255 deplibs=
10256 wl=$lt_prog_compiler_wl
10257 pic_flag=$lt_prog_compiler_pic
10258 compiler_flags=-v
10259 linker_flags=-v
10260 verstring=
10261 output_objdir=.
10262 libname=conftest
10263 lt_save_allow_undefined_flag=$allow_undefined_flag
10264 allow_undefined_flag=
10265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10267 ac_status=$?
10268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269 test $ac_status = 0; }
10270 then
10271 lt_cv_archive_cmds_need_lc=no
10272 else
10273 lt_cv_archive_cmds_need_lc=yes
10275 allow_undefined_flag=$lt_save_allow_undefined_flag
10276 else
10277 cat conftest.err 1>&5
10279 $RM conftest*
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10283 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10284 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10286 esac
10289 esac
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10450 if test "$GCC" = yes; then
10451 case $host_os in
10452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10453 *) lt_awk_arg="/^libraries:/" ;;
10454 esac
10455 case $host_os in
10456 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10457 *) lt_sed_strip_eq="s,=/,/,g" ;;
10458 esac
10459 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10460 case $lt_search_path_spec in
10461 *\;*)
10462 # if the path contains ";" then we assume it to be the separator
10463 # otherwise default to the standard path separator (i.e. ":") - it is
10464 # assumed that no part of a normal pathname contains ";" but that should
10465 # okay in the real world where ";" in dirpaths is itself problematic.
10466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10471 esac
10472 # Ok, now we have the path, separated by spaces, we can step through it
10473 # and add multilib dir if necessary.
10474 lt_tmp_lt_search_path_spec=
10475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10476 for lt_sys_path in $lt_search_path_spec; do
10477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10479 else
10480 test -d "$lt_sys_path" && \
10481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10483 done
10484 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10485 BEGIN {RS=" "; FS="/|\n";} {
10486 lt_foo="";
10487 lt_count=0;
10488 for (lt_i = NF; lt_i > 0; lt_i--) {
10489 if ($lt_i != "" && $lt_i != ".") {
10490 if ($lt_i == "..") {
10491 lt_count++;
10492 } else {
10493 if (lt_count == 0) {
10494 lt_foo="/" $lt_i lt_foo;
10495 } else {
10496 lt_count--;
10501 if (lt_foo != "") { lt_freq[lt_foo]++; }
10502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10504 # AWK program above erroneously prepends '/' to C:/dos/paths
10505 # for these hosts.
10506 case $host_os in
10507 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10508 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10509 esac
10510 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10511 else
10512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10514 library_names_spec=
10515 libname_spec='lib$name'
10516 soname_spec=
10517 shrext_cmds=".so"
10518 postinstall_cmds=
10519 postuninstall_cmds=
10520 finish_cmds=
10521 finish_eval=
10522 shlibpath_var=
10523 shlibpath_overrides_runpath=unknown
10524 version_type=none
10525 dynamic_linker="$host_os ld.so"
10526 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10527 need_lib_prefix=unknown
10528 hardcode_into_libs=no
10530 # when you set need_version to no, make sure it does not cause -set_version
10531 # flags to be left without arguments
10532 need_version=unknown
10534 case $host_os in
10535 aix3*)
10536 version_type=linux
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10538 shlibpath_var=LIBPATH
10540 # AIX 3 has no versioning support, so we append a major version to the name.
10541 soname_spec='${libname}${release}${shared_ext}$major'
10544 aix[4-9]*)
10545 version_type=linux
10546 need_lib_prefix=no
10547 need_version=no
10548 hardcode_into_libs=yes
10549 if test "$host_cpu" = ia64; then
10550 # AIX 5 supports IA64
10551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 else
10554 # With GCC up to 2.95.x, collect2 would create an import file
10555 # for dependence libraries. The import file would start with
10556 # the line `#! .'. This would cause the generated library to
10557 # depend on `.', always an invalid library. This was fixed in
10558 # development snapshots of GCC prior to 3.0.
10559 case $host_os in
10560 aix4 | aix4.[01] | aix4.[01].*)
10561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10562 echo ' yes '
10563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10565 else
10566 can_build_shared=no
10569 esac
10570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10571 # soname into executable. Probably we can add versioning support to
10572 # collect2, so additional links can be useful in future.
10573 if test "$aix_use_runtimelinking" = yes; then
10574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10575 # instead of lib<name>.a to let people know that these are not
10576 # typical AIX shared libraries.
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 else
10579 # We preserve .a as extension for shared libraries through AIX4.2
10580 # and later when we are not doing run time linking.
10581 library_names_spec='${libname}${release}.a $libname.a'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10584 shlibpath_var=LIBPATH
10588 amigaos*)
10589 case $host_cpu in
10590 powerpc)
10591 # Since July 2007 AmigaOS4 officially supports .so libraries.
10592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 m68k)
10596 library_names_spec='$libname.ixlibrary $libname.a'
10597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10598 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'
10600 esac
10603 beos*)
10604 library_names_spec='${libname}${shared_ext}'
10605 dynamic_linker="$host_os ld.so"
10606 shlibpath_var=LIBRARY_PATH
10609 bsdi[45]*)
10610 version_type=linux
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618 # the default ld.so.conf also contains /usr/contrib/lib and
10619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620 # libtool to hard-code these into programs
10623 cygwin* | mingw* | pw32* | cegcc*)
10624 version_type=windows
10625 shrext_cmds=".dll"
10626 need_version=no
10627 need_lib_prefix=no
10629 case $GCC,$host_os in
10630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10631 library_names_spec='$libname.dll.a'
10632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633 postinstall_cmds='base_file=`basename \${file}`~
10634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635 dldir=$destdir/`dirname \$dlpath`~
10636 test -d \$dldir || mkdir -p \$dldir~
10637 $install_prog $dir/$dlname \$dldir/$dlname~
10638 chmod a+x \$dldir/$dlname~
10639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643 dlpath=$dir/\$dldll~
10644 $RM \$dlpath'
10645 shlibpath_overrides_runpath=yes
10647 case $host_os in
10648 cygwin*)
10649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10654 mingw* | cegcc*)
10655 # MinGW DLLs use traditional 'lib' prefix
10656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10658 pw32*)
10659 # pw32 DLLs use 'pw' prefix rather than 'lib'
10660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 esac
10666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10668 esac
10669 dynamic_linker='Win32 ld.exe'
10670 # FIXME: first we should search . and the directory the executable is in
10671 shlibpath_var=PATH
10674 darwin* | rhapsody*)
10675 dynamic_linker="$host_os dyld"
10676 version_type=darwin
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10680 soname_spec='${libname}${release}${major}$shared_ext'
10681 shlibpath_overrides_runpath=yes
10682 shlibpath_var=DYLD_LIBRARY_PATH
10683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10689 dgux*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10698 freebsd* | dragonfly*)
10699 # DragonFly does not have aout. When/if they implement a new
10700 # versioning mechanism, adjust this.
10701 if test -x /usr/bin/objformat; then
10702 objformat=`/usr/bin/objformat`
10703 else
10704 case $host_os in
10705 freebsd[23].*) objformat=aout ;;
10706 *) objformat=elf ;;
10707 esac
10709 version_type=freebsd-$objformat
10710 case $version_type in
10711 freebsd-elf*)
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713 need_version=no
10714 need_lib_prefix=no
10716 freebsd-*)
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10718 need_version=yes
10720 esac
10721 shlibpath_var=LD_LIBRARY_PATH
10722 case $host_os in
10723 freebsd2.*)
10724 shlibpath_overrides_runpath=yes
10726 freebsd3.[01]* | freebsdelf3.[01]*)
10727 shlibpath_overrides_runpath=yes
10728 hardcode_into_libs=yes
10730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10732 shlibpath_overrides_runpath=no
10733 hardcode_into_libs=yes
10735 *) # from 4.6 on, and DragonFly
10736 shlibpath_overrides_runpath=yes
10737 hardcode_into_libs=yes
10739 esac
10742 haiku*)
10743 version_type=linux
10744 need_lib_prefix=no
10745 need_version=no
10746 dynamic_linker="$host_os runtime_loader"
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10752 hardcode_into_libs=yes
10755 hpux9* | hpux10* | hpux11*)
10756 # Give a soname corresponding to the major version so that dld.sl refuses to
10757 # link against other versions.
10758 version_type=sunos
10759 need_lib_prefix=no
10760 need_version=no
10761 case $host_cpu in
10762 ia64*)
10763 shrext_cmds='.so'
10764 hardcode_into_libs=yes
10765 dynamic_linker="$host_os dld.so"
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 if test "X$HPUX_IA64_MODE" = X32; then
10771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10772 else
10773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10777 hppa*64*)
10778 shrext_cmds='.sl'
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.sl"
10781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10789 shrext_cmds='.sl'
10790 dynamic_linker="$host_os dld.sl"
10791 shlibpath_var=SHLIB_PATH
10792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10796 esac
10797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10798 postinstall_cmds='chmod 555 $lib'
10799 # or fails outright, so override atomically:
10800 install_override_mode=555
10803 interix[3-9]*)
10804 version_type=linux
10805 need_lib_prefix=no
10806 need_version=no
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10815 irix5* | irix6* | nonstopux*)
10816 case $host_os in
10817 nonstopux*) version_type=nonstopux ;;
10819 if test "$lt_cv_prog_gnu_ld" = yes; then
10820 version_type=linux
10821 else
10822 version_type=irix
10823 fi ;;
10824 esac
10825 need_lib_prefix=no
10826 need_version=no
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10829 case $host_os in
10830 irix5* | nonstopux*)
10831 libsuff= shlibsuff=
10834 case $LD in # libtool.m4 will add one of these switches to LD
10835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10836 libsuff= shlibsuff= libmagic=32-bit;;
10837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10838 libsuff=32 shlibsuff=N32 libmagic=N32;;
10839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10841 *) libsuff= shlibsuff= libmagic=never-match;;
10842 esac
10844 esac
10845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10846 shlibpath_overrides_runpath=no
10847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10849 hardcode_into_libs=yes
10852 # No shared lib support for Linux oldld, aout, or coff.
10853 linux*oldld* | linux*aout* | linux*coff*)
10854 dynamic_linker=no
10857 # This must be Linux ELF.
10858 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10859 version_type=linux
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10868 # Some binutils ld are patched to set DT_RUNPATH
10869 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 lt_cv_shlibpath_overrides_runpath=no
10873 save_LDFLAGS=$LDFLAGS
10874 save_libdir=$libdir
10875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10881 main ()
10885 return 0;
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10890 lt_cv_shlibpath_overrides_runpath=yes
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LDFLAGS=$save_LDFLAGS
10896 libdir=$save_libdir
10900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10902 # This implies no fast_install, which is unacceptable.
10903 # Some rework will be needed to allow for fast_install
10904 # before this can be enabled.
10905 hardcode_into_libs=yes
10907 # Append ld.so.conf contents to the search path
10908 if test -f /etc/ld.so.conf; then
10909 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' ' '`
10910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10913 # We used to test for /lib/ld.so.1 and disable shared libraries on
10914 # powerpc, because MkLinux only supported shared libraries with the
10915 # GNU dynamic linker. Since this was broken with cross compilers,
10916 # most powerpc-linux boxes support dynamic linking these days and
10917 # people can always --disable-shared, the test was removed, and we
10918 # assume the GNU/Linux dynamic linker is in use.
10919 dynamic_linker='GNU/Linux ld.so'
10922 netbsd*)
10923 version_type=sunos
10924 need_lib_prefix=no
10925 need_version=no
10926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929 dynamic_linker='NetBSD (a.out) ld.so'
10930 else
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 dynamic_linker='NetBSD ld.elf_so'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=yes
10937 hardcode_into_libs=yes
10940 newsos6)
10941 version_type=linux
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes
10947 *nto* | *qnx*)
10948 version_type=qnx
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955 hardcode_into_libs=yes
10956 dynamic_linker='ldqnx.so'
10959 openbsd*)
10960 version_type=sunos
10961 sys_lib_dlsearch_path_spec="/usr/lib"
10962 need_lib_prefix=no
10963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10964 case $host_os in
10965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10966 *) need_version=no ;;
10967 esac
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10972 case $host_os in
10973 openbsd2.[89] | openbsd2.[89].*)
10974 shlibpath_overrides_runpath=no
10977 shlibpath_overrides_runpath=yes
10979 esac
10980 else
10981 shlibpath_overrides_runpath=yes
10985 os2*)
10986 libname_spec='$name'
10987 shrext_cmds=".dll"
10988 need_lib_prefix=no
10989 library_names_spec='$libname${shared_ext} $libname.a'
10990 dynamic_linker='OS/2 ld.exe'
10991 shlibpath_var=LIBPATH
10994 osf3* | osf4* | osf5*)
10995 version_type=osf
10996 need_lib_prefix=no
10997 need_version=no
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11005 rdos*)
11006 dynamic_linker=no
11009 solaris*)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=yes
11017 hardcode_into_libs=yes
11018 # ldd complains unless libraries are executable
11019 postinstall_cmds='chmod +x $lib'
11022 sunos4*)
11023 version_type=sunos
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 if test "$with_gnu_ld" = yes; then
11029 need_lib_prefix=no
11031 need_version=yes
11034 sysv4 | sysv4.3*)
11035 version_type=linux
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 case $host_vendor in
11040 sni)
11041 shlibpath_overrides_runpath=no
11042 need_lib_prefix=no
11043 runpath_var=LD_RUN_PATH
11045 siemens)
11046 need_lib_prefix=no
11048 motorola)
11049 need_lib_prefix=no
11050 need_version=no
11051 shlibpath_overrides_runpath=no
11052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11054 esac
11057 sysv4*MP*)
11058 if test -d /usr/nec ;then
11059 version_type=linux
11060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11061 soname_spec='$libname${shared_ext}.$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11067 version_type=freebsd-elf
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 if test "$with_gnu_ld" = yes; then
11076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11077 else
11078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11079 case $host_os in
11080 sco3.2v5*)
11081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11083 esac
11085 sys_lib_dlsearch_path_spec='/usr/lib'
11088 tpf*)
11089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11090 version_type=linux
11091 need_lib_prefix=no
11092 need_version=no
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=no
11096 hardcode_into_libs=yes
11099 uts4*)
11100 version_type=linux
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11107 dynamic_linker=no
11109 esac
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11111 $as_echo "$dynamic_linker" >&6; }
11112 test "$dynamic_linker" = no && can_build_shared=no
11114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11115 if test "$GCC" = yes; then
11116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11219 hardcode_action=
11220 if test -n "$hardcode_libdir_flag_spec" ||
11221 test -n "$runpath_var" ||
11222 test "X$hardcode_automatic" = "Xyes" ; then
11224 # We can hardcode non-existent directories.
11225 if test "$hardcode_direct" != no &&
11226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11227 # have to relink, otherwise we might link with an installed library
11228 # when we should be linking with a yet-to-be-installed one
11229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11230 test "$hardcode_minus_L" != no; then
11231 # Linking always hardcodes the temporary library directory.
11232 hardcode_action=relink
11233 else
11234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11235 hardcode_action=immediate
11237 else
11238 # We cannot hardcode anything, or else we can only hardcode existing
11239 # directories.
11240 hardcode_action=unsupported
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11243 $as_echo "$hardcode_action" >&6; }
11245 if test "$hardcode_action" = relink ||
11246 test "$inherit_rpath" = yes; then
11247 # Fast installation is not supported
11248 enable_fast_install=no
11249 elif test "$shlibpath_overrides_runpath" = yes ||
11250 test "$enable_shared" = no; then
11251 # Fast installation is not necessary
11252 enable_fast_install=needless
11260 if test "x$enable_dlopen" != xyes; then
11261 enable_dlopen=unknown
11262 enable_dlopen_self=unknown
11263 enable_dlopen_self_static=unknown
11264 else
11265 lt_cv_dlopen=no
11266 lt_cv_dlopen_libs=
11268 case $host_os in
11269 beos*)
11270 lt_cv_dlopen="load_add_on"
11271 lt_cv_dlopen_libs=
11272 lt_cv_dlopen_self=yes
11275 mingw* | pw32* | cegcc*)
11276 lt_cv_dlopen="LoadLibrary"
11277 lt_cv_dlopen_libs=
11280 cygwin*)
11281 lt_cv_dlopen="dlopen"
11282 lt_cv_dlopen_libs=
11285 darwin*)
11286 # if libdl is installed we need to link against it
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11289 if ${ac_cv_lib_dl_dlopen+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldl $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 char dlopen ();
11305 main ()
11307 return dlopen ();
11309 return 0;
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_lib_dl_dlopen=yes
11314 else
11315 ac_cv_lib_dl_dlopen=no
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11323 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11325 else
11327 lt_cv_dlopen="dyld"
11328 lt_cv_dlopen_libs=
11329 lt_cv_dlopen_self=yes
11336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11337 if test "x$ac_cv_func_shl_load" = xyes; then :
11338 lt_cv_dlopen="shl_load"
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11342 if ${ac_cv_lib_dld_shl_load+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-ldld $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char shl_load ();
11358 main ()
11360 return shl_load ();
11362 return 0;
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_dld_shl_load=yes
11367 else
11368 ac_cv_lib_dld_shl_load=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11376 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11378 else
11379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11380 if test "x$ac_cv_func_dlopen" = xyes; then :
11381 lt_cv_dlopen="dlopen"
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11385 if ${ac_cv_lib_dl_dlopen+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldl $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11401 main ()
11403 return dlopen ();
11405 return 0;
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dl_dlopen=yes
11410 else
11411 ac_cv_lib_dl_dlopen=no
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11424 if ${ac_cv_lib_svld_dlopen+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lsvld $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dlopen ();
11440 main ()
11442 return dlopen ();
11444 return 0;
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_svld_dlopen=yes
11449 else
11450 ac_cv_lib_svld_dlopen=no
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11458 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11463 if ${ac_cv_lib_dld_dld_link+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldld $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11471 /* Override any GCC internal prototype to avoid an error.
11472 Use char because int might match the return type of a GCC
11473 builtin and then its argument prototype would still apply. */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dld_link ();
11479 main ()
11481 return dld_link ();
11483 return 0;
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_lib_dld_dld_link=yes
11488 else
11489 ac_cv_lib_dld_dld_link=no
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11497 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11517 esac
11519 if test "x$lt_cv_dlopen" != xno; then
11520 enable_dlopen=yes
11521 else
11522 enable_dlopen=no
11525 case $lt_cv_dlopen in
11526 dlopen)
11527 save_CPPFLAGS="$CPPFLAGS"
11528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11530 save_LDFLAGS="$LDFLAGS"
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11533 save_LIBS="$LIBS"
11534 LIBS="$lt_cv_dlopen_libs $LIBS"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11538 if ${lt_cv_dlopen_self+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test "$cross_compiling" = yes; then :
11542 lt_cv_dlopen_self=cross
11543 else
11544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11545 lt_status=$lt_dlunknown
11546 cat > conftest.$ac_ext <<_LT_EOF
11547 #line 11547 "configure"
11548 #include "confdefs.h"
11550 #if HAVE_DLFCN_H
11551 #include <dlfcn.h>
11552 #endif
11554 #include <stdio.h>
11556 #ifdef RTLD_GLOBAL
11557 # define LT_DLGLOBAL RTLD_GLOBAL
11558 #else
11559 # ifdef DL_GLOBAL
11560 # define LT_DLGLOBAL DL_GLOBAL
11561 # else
11562 # define LT_DLGLOBAL 0
11563 # endif
11564 #endif
11566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11567 find out it does not work in some platform. */
11568 #ifndef LT_DLLAZY_OR_NOW
11569 # ifdef RTLD_LAZY
11570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11571 # else
11572 # ifdef DL_LAZY
11573 # define LT_DLLAZY_OR_NOW DL_LAZY
11574 # else
11575 # ifdef RTLD_NOW
11576 # define LT_DLLAZY_OR_NOW RTLD_NOW
11577 # else
11578 # ifdef DL_NOW
11579 # define LT_DLLAZY_OR_NOW DL_NOW
11580 # else
11581 # define LT_DLLAZY_OR_NOW 0
11582 # endif
11583 # endif
11584 # endif
11585 # endif
11586 #endif
11588 /* When -fvisbility=hidden is used, assume the code has been annotated
11589 correspondingly for the symbols needed. */
11590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11591 void fnord () __attribute__((visibility("default")));
11592 #endif
11594 void fnord () { int i=42; }
11595 int main ()
11597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11598 int status = $lt_dlunknown;
11600 if (self)
11602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11603 else
11605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11606 else puts (dlerror ());
11608 /* dlclose (self); */
11610 else
11611 puts (dlerror ());
11613 return status;
11615 _LT_EOF
11616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11617 (eval $ac_link) 2>&5
11618 ac_status=$?
11619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11621 (./conftest; exit; ) >&5 2>/dev/null
11622 lt_status=$?
11623 case x$lt_status in
11624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11627 esac
11628 else :
11629 # compilation failed
11630 lt_cv_dlopen_self=no
11633 rm -fr conftest*
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11638 $as_echo "$lt_cv_dlopen_self" >&6; }
11640 if test "x$lt_cv_dlopen_self" = xyes; then
11641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11643 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11644 if ${lt_cv_dlopen_self_static+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test "$cross_compiling" = yes; then :
11648 lt_cv_dlopen_self_static=cross
11649 else
11650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11651 lt_status=$lt_dlunknown
11652 cat > conftest.$ac_ext <<_LT_EOF
11653 #line 11653 "configure"
11654 #include "confdefs.h"
11656 #if HAVE_DLFCN_H
11657 #include <dlfcn.h>
11658 #endif
11660 #include <stdio.h>
11662 #ifdef RTLD_GLOBAL
11663 # define LT_DLGLOBAL RTLD_GLOBAL
11664 #else
11665 # ifdef DL_GLOBAL
11666 # define LT_DLGLOBAL DL_GLOBAL
11667 # else
11668 # define LT_DLGLOBAL 0
11669 # endif
11670 #endif
11672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11673 find out it does not work in some platform. */
11674 #ifndef LT_DLLAZY_OR_NOW
11675 # ifdef RTLD_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11677 # else
11678 # ifdef DL_LAZY
11679 # define LT_DLLAZY_OR_NOW DL_LAZY
11680 # else
11681 # ifdef RTLD_NOW
11682 # define LT_DLLAZY_OR_NOW RTLD_NOW
11683 # else
11684 # ifdef DL_NOW
11685 # define LT_DLLAZY_OR_NOW DL_NOW
11686 # else
11687 # define LT_DLLAZY_OR_NOW 0
11688 # endif
11689 # endif
11690 # endif
11691 # endif
11692 #endif
11694 /* When -fvisbility=hidden is used, assume the code has been annotated
11695 correspondingly for the symbols needed. */
11696 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11697 void fnord () __attribute__((visibility("default")));
11698 #endif
11700 void fnord () { int i=42; }
11701 int main ()
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11706 if (self)
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else
11711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 else puts (dlerror ());
11714 /* dlclose (self); */
11716 else
11717 puts (dlerror ());
11719 return status;
11721 _LT_EOF
11722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11727 (./conftest; exit; ) >&5 2>/dev/null
11728 lt_status=$?
11729 case x$lt_status in
11730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11732 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11733 esac
11734 else :
11735 # compilation failed
11736 lt_cv_dlopen_self_static=no
11739 rm -fr conftest*
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11744 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11747 CPPFLAGS="$save_CPPFLAGS"
11748 LDFLAGS="$save_LDFLAGS"
11749 LIBS="$save_LIBS"
11751 esac
11753 case $lt_cv_dlopen_self in
11754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11755 *) enable_dlopen_self=unknown ;;
11756 esac
11758 case $lt_cv_dlopen_self_static in
11759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11760 *) enable_dlopen_self_static=unknown ;;
11761 esac
11780 striplib=
11781 old_striplib=
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11783 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11784 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 else
11790 # FIXME - insert some real tests, host_os isn't really good enough
11791 case $host_os in
11792 darwin*)
11793 if test -n "$STRIP" ; then
11794 striplib="$STRIP -x"
11795 old_striplib="$STRIP -S"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11807 esac
11821 # Report which library types will actually be built
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11825 $as_echo "$can_build_shared" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11828 $as_echo_n "checking whether to build shared libraries... " >&6; }
11829 test "$can_build_shared" = "no" && enable_shared=no
11831 # On AIX, shared libraries and static libraries use the same namespace, and
11832 # are all built from PIC.
11833 case $host_os in
11834 aix3*)
11835 test "$enable_shared" = yes && enable_static=no
11836 if test -n "$RANLIB"; then
11837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11838 postinstall_cmds='$RANLIB $lib'
11842 aix[4-9]*)
11843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11844 test "$enable_shared" = yes && enable_static=no
11847 esac
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11849 $as_echo "$enable_shared" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11852 $as_echo_n "checking whether to build static libraries... " >&6; }
11853 # Make sure either enable_shared or enable_static is yes.
11854 test "$enable_shared" = yes || enable_static=yes
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11856 $as_echo "$enable_static" >&6; }
11862 ac_ext=c
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868 CC="$lt_save_CC"
11882 # Source file extension for Go test sources.
11883 ac_ext=go
11885 # Object file extension for compiled Go test sources.
11886 objext=o
11887 objext_GO=$objext
11889 # Code to be used in simple compile tests
11890 lt_simple_compile_test_code="package main; func main() { }"
11892 # Code to be used in simple link tests
11893 lt_simple_link_test_code='package main; func main() { }'
11895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11902 # If no C compiler was specified, use CC.
11903 LTCC=${LTCC-"$CC"}
11905 # If no C compiler flags were specified, use CFLAGS.
11906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11908 # Allow CC to be a program name with arguments.
11909 compiler=$CC
11912 # save warnings/boilerplate of simple test code
11913 ac_outfile=conftest.$ac_objext
11914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916 _lt_compiler_boilerplate=`cat conftest.err`
11917 $RM conftest*
11919 ac_outfile=conftest.$ac_objext
11920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_linker_boilerplate=`cat conftest.err`
11923 $RM -r conftest*
11926 # Allow CC to be a program name with arguments.
11927 lt_save_CC="$CC"
11928 lt_save_GCC="$GCC"
11929 GCC=yes
11930 CC=${GOC-"gccgo"}
11931 compiler=$CC
11932 compiler_GO=$CC
11933 LD_GO="$LD"
11934 for cc_temp in $compiler""; do
11935 case $cc_temp in
11936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11938 \-*) ;;
11939 *) break;;
11940 esac
11941 done
11942 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11945 # Go did not exist at the time GCC didn't implicitly link libc in.
11946 archive_cmds_need_lc_GO=no
11948 old_archive_cmds_GO=$old_archive_cmds
11950 ## CAVEAT EMPTOR:
11951 ## There is no encapsulation within the following macros, do not change
11952 ## the running order or otherwise move them around unless you know exactly
11953 ## what you are doing...
11954 if test -n "$compiler"; then
11956 lt_prog_compiler_no_builtin_flag_GO=
11958 if test "$GCC" = yes; then
11959 case $cc_basename in
11960 nvcc*)
11961 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11963 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11964 esac
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11967 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11968 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 lt_cv_prog_compiler_rtti_exceptions=no
11972 ac_outfile=conftest.$ac_objext
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11974 lt_compiler_flag="-fno-rtti -fno-exceptions"
11975 # Insert the option either (1) after the last *FLAGS variable, or
11976 # (2) before a word containing "conftest.", or (3) at the end.
11977 # Note that $ac_compile itself does not contain backslashes and begins
11978 # with a dollar sign (not a hyphen), so the echo should work correctly.
11979 # The option is referenced via a variable to avoid confusing sed.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>conftest.err)
11986 ac_status=$?
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s "$ac_outfile"; then
11990 # The compiler can only warn and ignore the option if not recognized
11991 # So say no if there are warnings other than the usual output.
11992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11995 lt_cv_prog_compiler_rtti_exceptions=yes
11998 $RM conftest*
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12002 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12005 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
12006 else
12014 lt_prog_compiler_wl_GO=
12015 lt_prog_compiler_pic_GO=
12016 lt_prog_compiler_static_GO=
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12019 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12021 if test "$GCC" = yes; then
12022 lt_prog_compiler_wl_GO='-Wl,'
12023 lt_prog_compiler_static_GO='-static'
12025 case $host_os in
12026 aix*)
12027 # All AIX code is PIC.
12028 if test "$host_cpu" = ia64; then
12029 # AIX 5 now supports IA64 processor
12030 lt_prog_compiler_static_GO='-Bstatic'
12032 lt_prog_compiler_pic_GO='-fPIC'
12035 amigaos*)
12036 case $host_cpu in
12037 powerpc)
12038 # see comment about AmigaOS4 .so support
12039 lt_prog_compiler_pic_GO='-fPIC'
12041 m68k)
12042 # FIXME: we need at least 68020 code to build shared libraries, but
12043 # adding the `-m68020' flag to GCC prevents building anything better,
12044 # like `-m68040'.
12045 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
12047 esac
12050 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12051 # PIC is the default for these OSes.
12054 mingw* | cygwin* | pw32* | os2* | cegcc*)
12055 # This hack is so that the source file can tell whether it is being
12056 # built for inclusion in a dll (and should export symbols for example).
12057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12058 # (--disable-auto-import) libraries
12059 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12062 darwin* | rhapsody*)
12063 # PIC is the default on this platform
12064 # Common symbols not allowed in MH_DYLIB files
12065 lt_prog_compiler_pic_GO='-fno-common'
12068 haiku*)
12069 # PIC is the default for Haiku.
12070 # The "-static" flag exists, but is broken.
12071 lt_prog_compiler_static_GO=
12074 hpux*)
12075 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12076 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12077 # sets the default TLS model and affects inlining.
12078 case $host_cpu in
12079 hppa*64*)
12080 # +Z the default
12083 lt_prog_compiler_pic_GO='-fPIC'
12085 esac
12088 interix[3-9]*)
12089 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12090 # Instead, we relocate shared libraries at runtime.
12093 msdosdjgpp*)
12094 # Just because we use GCC doesn't mean we suddenly get shared libraries
12095 # on systems that don't support them.
12096 lt_prog_compiler_can_build_shared_GO=no
12097 enable_shared=no
12100 *nto* | *qnx*)
12101 # QNX uses GNU C++, but need to define -shared option too, otherwise
12102 # it will coredump.
12103 lt_prog_compiler_pic_GO='-fPIC -shared'
12106 sysv4*MP*)
12107 if test -d /usr/nec; then
12108 lt_prog_compiler_pic_GO=-Kconform_pic
12113 lt_prog_compiler_pic_GO='-fPIC'
12115 esac
12117 case $cc_basename in
12118 nvcc*) # Cuda Compiler Driver 2.2
12119 lt_prog_compiler_wl_GO='-Xlinker '
12120 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12122 esac
12123 else
12124 # PORTME Check for flag to pass linker flags through the system compiler.
12125 case $host_os in
12126 aix*)
12127 lt_prog_compiler_wl_GO='-Wl,'
12128 if test "$host_cpu" = ia64; then
12129 # AIX 5 now supports IA64 processor
12130 lt_prog_compiler_static_GO='-Bstatic'
12131 else
12132 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12136 mingw* | cygwin* | pw32* | os2* | cegcc*)
12137 # This hack is so that the source file can tell whether it is being
12138 # built for inclusion in a dll (and should export symbols for example).
12139 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12142 hpux9* | hpux10* | hpux11*)
12143 lt_prog_compiler_wl_GO='-Wl,'
12144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12145 # not for PA HP-UX.
12146 case $host_cpu in
12147 hppa*64*|ia64*)
12148 # +Z the default
12151 lt_prog_compiler_pic_GO='+Z'
12153 esac
12154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12155 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12158 irix5* | irix6* | nonstopux*)
12159 lt_prog_compiler_wl_GO='-Wl,'
12160 # PIC (with -KPIC) is the default.
12161 lt_prog_compiler_static_GO='-non_shared'
12164 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12165 case $cc_basename in
12166 # old Intel for x86_64 which still supported -KPIC.
12167 ecc*)
12168 lt_prog_compiler_wl_GO='-Wl,'
12169 lt_prog_compiler_pic_GO='-KPIC'
12170 lt_prog_compiler_static_GO='-static'
12172 # icc used to be incompatible with GCC.
12173 # ICC 10 doesn't accept -KPIC any more.
12174 icc* | ifort*)
12175 lt_prog_compiler_wl_GO='-Wl,'
12176 lt_prog_compiler_pic_GO='-fPIC'
12177 lt_prog_compiler_static_GO='-static'
12179 # Lahey Fortran 8.1.
12180 lf95*)
12181 lt_prog_compiler_wl_GO='-Wl,'
12182 lt_prog_compiler_pic_GO='--shared'
12183 lt_prog_compiler_static_GO='--static'
12185 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12186 # Portland Group compilers (*not* the Pentium gcc compiler,
12187 # which looks to be a dead project)
12188 lt_prog_compiler_wl_GO='-Wl,'
12189 lt_prog_compiler_pic_GO='-fpic'
12190 lt_prog_compiler_static_GO='-Bstatic'
12192 ccc*)
12193 lt_prog_compiler_wl_GO='-Wl,'
12194 # All Alpha code is PIC.
12195 lt_prog_compiler_static_GO='-non_shared'
12197 xl* | bgxl* | bgf* | mpixl*)
12198 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12199 lt_prog_compiler_wl_GO='-Wl,'
12200 lt_prog_compiler_pic_GO='-qpic'
12201 lt_prog_compiler_static_GO='-qstaticlink'
12204 case `$CC -V 2>&1 | sed 5q` in
12205 *Sun\ F* | *Sun*Fortran*)
12206 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12207 lt_prog_compiler_pic_GO='-KPIC'
12208 lt_prog_compiler_static_GO='-Bstatic'
12209 lt_prog_compiler_wl_GO=''
12211 *Sun\ C*)
12212 # Sun C 5.9
12213 lt_prog_compiler_pic_GO='-KPIC'
12214 lt_prog_compiler_static_GO='-Bstatic'
12215 lt_prog_compiler_wl_GO='-Wl,'
12217 esac
12219 esac
12222 newsos6)
12223 lt_prog_compiler_pic_GO='-KPIC'
12224 lt_prog_compiler_static_GO='-Bstatic'
12227 *nto* | *qnx*)
12228 # QNX uses GNU C++, but need to define -shared option too, otherwise
12229 # it will coredump.
12230 lt_prog_compiler_pic_GO='-fPIC -shared'
12233 osf3* | osf4* | osf5*)
12234 lt_prog_compiler_wl_GO='-Wl,'
12235 # All OSF/1 code is PIC.
12236 lt_prog_compiler_static_GO='-non_shared'
12239 rdos*)
12240 lt_prog_compiler_static_GO='-non_shared'
12243 solaris*)
12244 lt_prog_compiler_pic_GO='-KPIC'
12245 lt_prog_compiler_static_GO='-Bstatic'
12246 case $cc_basename in
12247 f77* | f90* | f95*)
12248 lt_prog_compiler_wl_GO='-Qoption ld ';;
12250 lt_prog_compiler_wl_GO='-Wl,';;
12251 esac
12254 sunos4*)
12255 lt_prog_compiler_wl_GO='-Qoption ld '
12256 lt_prog_compiler_pic_GO='-PIC'
12257 lt_prog_compiler_static_GO='-Bstatic'
12260 sysv4 | sysv4.2uw2* | sysv4.3*)
12261 lt_prog_compiler_wl_GO='-Wl,'
12262 lt_prog_compiler_pic_GO='-KPIC'
12263 lt_prog_compiler_static_GO='-Bstatic'
12266 sysv4*MP*)
12267 if test -d /usr/nec ;then
12268 lt_prog_compiler_pic_GO='-Kconform_pic'
12269 lt_prog_compiler_static_GO='-Bstatic'
12273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12274 lt_prog_compiler_wl_GO='-Wl,'
12275 lt_prog_compiler_pic_GO='-KPIC'
12276 lt_prog_compiler_static_GO='-Bstatic'
12279 unicos*)
12280 lt_prog_compiler_wl_GO='-Wl,'
12281 lt_prog_compiler_can_build_shared_GO=no
12284 uts4*)
12285 lt_prog_compiler_pic_GO='-pic'
12286 lt_prog_compiler_static_GO='-Bstatic'
12290 lt_prog_compiler_can_build_shared_GO=no
12292 esac
12295 case $host_os in
12296 # For platforms which do not support PIC, -DPIC is meaningless:
12297 *djgpp*)
12298 lt_prog_compiler_pic_GO=
12301 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12303 esac
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12305 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12310 # Check to make sure the PIC flag actually works.
12312 if test -n "$lt_prog_compiler_pic_GO"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12315 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 lt_cv_prog_compiler_pic_works_GO=no
12319 ac_outfile=conftest.$ac_objext
12320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12321 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12322 # Insert the option either (1) after the last *FLAGS variable, or
12323 # (2) before a word containing "conftest.", or (3) at the end.
12324 # Note that $ac_compile itself does not contain backslashes and begins
12325 # with a dollar sign (not a hyphen), so the echo should work correctly.
12326 # The option is referenced via a variable to avoid confusing sed.
12327 lt_compile=`echo "$ac_compile" | $SED \
12328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12330 -e 's:$: $lt_compiler_flag:'`
12331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12332 (eval "$lt_compile" 2>conftest.err)
12333 ac_status=$?
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 if (exit $ac_status) && test -s "$ac_outfile"; then
12337 # The compiler can only warn and ignore the option if not recognized
12338 # So say no if there are warnings other than the usual output.
12339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12342 lt_cv_prog_compiler_pic_works_GO=yes
12345 $RM conftest*
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12349 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12351 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12352 case $lt_prog_compiler_pic_GO in
12353 "" | " "*) ;;
12354 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12355 esac
12356 else
12357 lt_prog_compiler_pic_GO=
12358 lt_prog_compiler_can_build_shared_GO=no
12366 # Check to make sure the static flag actually works.
12368 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12370 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12371 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 lt_cv_prog_compiler_static_works_GO=no
12375 save_LDFLAGS="$LDFLAGS"
12376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12379 # The linker can only warn and ignore the option if not recognized
12380 # So say no if there are warnings
12381 if test -s conftest.err; then
12382 # Append any errors to the config.log.
12383 cat conftest.err 1>&5
12384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12386 if diff conftest.exp conftest.er2 >/dev/null; then
12387 lt_cv_prog_compiler_static_works_GO=yes
12389 else
12390 lt_cv_prog_compiler_static_works_GO=yes
12393 $RM -r conftest*
12394 LDFLAGS="$save_LDFLAGS"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12398 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12400 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12402 else
12403 lt_prog_compiler_static_GO=
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 lt_cv_prog_compiler_c_o_GO=no
12415 $RM -r conftest 2>/dev/null
12416 mkdir conftest
12417 cd conftest
12418 mkdir out
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421 lt_compiler_flag="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out/conftest.err)
12432 ac_status=$?
12433 cat out/conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436 then
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442 lt_cv_prog_compiler_c_o_GO=yes
12445 chmod u+w . 2>&5
12446 $RM conftest*
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12450 $RM out/* && rmdir out
12451 cd ..
12452 $RM -r conftest
12453 $RM conftest*
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12457 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12463 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466 lt_cv_prog_compiler_c_o_GO=no
12467 $RM -r conftest 2>/dev/null
12468 mkdir conftest
12469 cd conftest
12470 mkdir out
12471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12473 lt_compiler_flag="-o out/conftest2.$ac_objext"
12474 # Insert the option either (1) after the last *FLAGS variable, or
12475 # (2) before a word containing "conftest.", or (3) at the end.
12476 # Note that $ac_compile itself does not contain backslashes and begins
12477 # with a dollar sign (not a hyphen), so the echo should work correctly.
12478 lt_compile=`echo "$ac_compile" | $SED \
12479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12481 -e 's:$: $lt_compiler_flag:'`
12482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12483 (eval "$lt_compile" 2>out/conftest.err)
12484 ac_status=$?
12485 cat out/conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12488 then
12489 # The compiler can only warn and ignore the option if not recognized
12490 # So say no if there are warnings
12491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12494 lt_cv_prog_compiler_c_o_GO=yes
12497 chmod u+w . 2>&5
12498 $RM conftest*
12499 # SGI C++ compiler will create directory out/ii_files/ for
12500 # template instantiation
12501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12502 $RM out/* && rmdir out
12503 cd ..
12504 $RM -r conftest
12505 $RM conftest*
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12509 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12514 hard_links="nottested"
12515 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12516 # do not overwrite the value of need_locks provided by the user
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12518 $as_echo_n "checking if we can lock with hard links... " >&6; }
12519 hard_links=yes
12520 $RM conftest*
12521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12522 touch conftest.a
12523 ln conftest.a conftest.b 2>&5 || hard_links=no
12524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12526 $as_echo "$hard_links" >&6; }
12527 if test "$hard_links" = no; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12530 need_locks=warn
12532 else
12533 need_locks=no
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12541 runpath_var=
12542 allow_undefined_flag_GO=
12543 always_export_symbols_GO=no
12544 archive_cmds_GO=
12545 archive_expsym_cmds_GO=
12546 compiler_needs_object_GO=no
12547 enable_shared_with_static_runtimes_GO=no
12548 export_dynamic_flag_spec_GO=
12549 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12550 hardcode_automatic_GO=no
12551 hardcode_direct_GO=no
12552 hardcode_direct_absolute_GO=no
12553 hardcode_libdir_flag_spec_GO=
12554 hardcode_libdir_flag_spec_ld_GO=
12555 hardcode_libdir_separator_GO=
12556 hardcode_minus_L_GO=no
12557 hardcode_shlibpath_var_GO=unsupported
12558 inherit_rpath_GO=no
12559 link_all_deplibs_GO=unknown
12560 module_cmds_GO=
12561 module_expsym_cmds_GO=
12562 old_archive_from_new_cmds_GO=
12563 old_archive_from_expsyms_cmds_GO=
12564 thread_safe_flag_spec_GO=
12565 whole_archive_flag_spec_GO=
12566 # include_expsyms should be a list of space-separated symbols to be *always*
12567 # included in the symbol list
12568 include_expsyms_GO=
12569 # exclude_expsyms can be an extended regexp of symbols to exclude
12570 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12571 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12572 # as well as any symbol that contains `d'.
12573 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12575 # platforms (ab)use it in PIC code, but their linkers get confused if
12576 # the symbol is explicitly referenced. Since portable code cannot
12577 # rely on this symbol name, it's probably fine to never include it in
12578 # preloaded symbol tables.
12579 # Exclude shared library initialization/finalization symbols.
12580 extract_expsyms_cmds=
12582 case $host_os in
12583 cygwin* | mingw* | pw32* | cegcc*)
12584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12585 # When not using gcc, we currently assume that we are using
12586 # Microsoft Visual C++.
12587 if test "$GCC" != yes; then
12588 with_gnu_ld=no
12591 interix*)
12592 # we just hope/assume this is gcc and not c89 (= MSVC++)
12593 with_gnu_ld=yes
12595 openbsd*)
12596 with_gnu_ld=no
12598 esac
12600 ld_shlibs_GO=yes
12602 # On some targets, GNU ld is compatible enough with the native linker
12603 # that we're better off using the native interface for both.
12604 lt_use_gnu_ld_interface=no
12605 if test "$with_gnu_ld" = yes; then
12606 case $host_os in
12607 aix*)
12608 # The AIX port of GNU ld has always aspired to compatibility
12609 # with the native linker. However, as the warning in the GNU ld
12610 # block says, versions before 2.19.5* couldn't really create working
12611 # shared libraries, regardless of the interface used.
12612 case `$LD -v 2>&1` in
12613 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12614 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12615 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12617 lt_use_gnu_ld_interface=yes
12619 esac
12622 lt_use_gnu_ld_interface=yes
12624 esac
12627 if test "$lt_use_gnu_ld_interface" = yes; then
12628 # If archive_cmds runs LD, not CC, wlarc should be empty
12629 wlarc='${wl}'
12631 # Set some defaults for GNU ld with shared library support. These
12632 # are reset later if shared libraries are not supported. Putting them
12633 # here allows them to be overridden if necessary.
12634 runpath_var=LD_RUN_PATH
12635 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12636 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12637 # ancient GNU ld didn't support --whole-archive et. al.
12638 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12639 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12640 else
12641 whole_archive_flag_spec_GO=
12643 supports_anon_versioning=no
12644 case `$LD -v 2>&1` in
12645 *GNU\ gold*) supports_anon_versioning=yes ;;
12646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12649 *\ 2.11.*) ;; # other 2.11 versions
12650 *) supports_anon_versioning=yes ;;
12651 esac
12653 # See if GNU ld supports shared libraries.
12654 case $host_os in
12655 aix[3-9]*)
12656 # On AIX/PPC, the GNU linker is very broken
12657 if test "$host_cpu" != ia64; then
12658 ld_shlibs_GO=no
12659 cat <<_LT_EOF 1>&2
12661 *** Warning: the GNU linker, at least up to release 2.19, is reported
12662 *** to be unable to reliably create shared libraries on AIX.
12663 *** Therefore, libtool is disabling shared libraries support. If you
12664 *** really care for shared libraries, you may want to install binutils
12665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12666 *** You will then need to restart the configuration process.
12668 _LT_EOF
12672 amigaos*)
12673 case $host_cpu in
12674 powerpc)
12675 # see comment about AmigaOS4 .so support
12676 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 archive_expsym_cmds_GO=''
12679 m68k)
12680 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)'
12681 hardcode_libdir_flag_spec_GO='-L$libdir'
12682 hardcode_minus_L_GO=yes
12684 esac
12687 beos*)
12688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689 allow_undefined_flag_GO=unsupported
12690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12691 # support --undefined. This deserves some investigation. FIXME
12692 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 else
12694 ld_shlibs_GO=no
12698 cygwin* | mingw* | pw32* | cegcc*)
12699 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12700 # as there is no search path for DLLs.
12701 hardcode_libdir_flag_spec_GO='-L$libdir'
12702 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12703 allow_undefined_flag_GO=unsupported
12704 always_export_symbols_GO=no
12705 enable_shared_with_static_runtimes_GO=yes
12706 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12709 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12710 # If the export-symbols file already is a .def file (1st line
12711 # is EXPORTS), use it as is; otherwise, prepend...
12712 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12713 cp $export_symbols $output_objdir/$soname.def;
12714 else
12715 echo EXPORTS > $output_objdir/$soname.def;
12716 cat $export_symbols >> $output_objdir/$soname.def;
12718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12719 else
12720 ld_shlibs_GO=no
12724 haiku*)
12725 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 link_all_deplibs_GO=yes
12729 interix[3-9]*)
12730 hardcode_direct_GO=no
12731 hardcode_shlibpath_var_GO=no
12732 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12733 export_dynamic_flag_spec_GO='${wl}-E'
12734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12735 # Instead, shared libraries are loaded at an image base (0x10000000 by
12736 # default) and relocated if they conflict, which is a slow very memory
12737 # consuming and fragmenting process. To avoid this, we pick a random,
12738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12740 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'
12741 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'
12744 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12745 tmp_diet=no
12746 if test "$host_os" = linux-dietlibc; then
12747 case $cc_basename in
12748 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12749 esac
12751 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12752 && test "$tmp_diet" = no
12753 then
12754 tmp_addflag=
12755 tmp_sharedflag='-shared'
12756 case $cc_basename,$host_cpu in
12757 pgcc*) # Portland Group C compiler
12758 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'
12759 tmp_addflag=' $pic_flag'
12761 pgf77* | pgf90* | pgf95* | pgfortran*)
12762 # Portland Group f77 and f90 compilers
12763 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'
12764 tmp_addflag=' $pic_flag -Mnomain' ;;
12765 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12766 tmp_addflag=' -i_dynamic' ;;
12767 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12768 tmp_addflag=' -i_dynamic -nofor_main' ;;
12769 ifc* | ifort*) # Intel Fortran compiler
12770 tmp_addflag=' -nofor_main' ;;
12771 lf95*) # Lahey Fortran 8.1
12772 whole_archive_flag_spec_GO=
12773 tmp_sharedflag='--shared' ;;
12774 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12775 tmp_sharedflag='-qmkshrobj'
12776 tmp_addflag= ;;
12777 nvcc*) # Cuda Compiler Driver 2.2
12778 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'
12779 compiler_needs_object_GO=yes
12781 esac
12782 case `$CC -V 2>&1 | sed 5q` in
12783 *Sun\ C*) # Sun C 5.9
12784 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'
12785 compiler_needs_object_GO=yes
12786 tmp_sharedflag='-G' ;;
12787 *Sun\ F*) # Sun Fortran 8.3
12788 tmp_sharedflag='-G' ;;
12789 esac
12790 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792 if test "x$supports_anon_versioning" = xyes; then
12793 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12795 echo "local: *; };" >> $output_objdir/$libname.ver~
12796 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12799 case $cc_basename in
12800 xlf* | bgf* | bgxlf* | mpixlf*)
12801 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12802 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12803 hardcode_libdir_flag_spec_GO=
12804 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12805 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12806 if test "x$supports_anon_versioning" = xyes; then
12807 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12809 echo "local: *; };" >> $output_objdir/$libname.ver~
12810 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12813 esac
12814 else
12815 ld_shlibs_GO=no
12819 netbsd*)
12820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12821 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12822 wlarc=
12823 else
12824 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12825 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12829 solaris*)
12830 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12831 ld_shlibs_GO=no
12832 cat <<_LT_EOF 1>&2
12834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12835 *** create shared libraries on Solaris systems. Therefore, libtool
12836 *** is disabling shared libraries support. We urge you to upgrade GNU
12837 *** binutils to release 2.9.1 or newer. Another option is to modify
12838 *** your PATH or compiler configuration so that the native linker is
12839 *** used, and then restart.
12841 _LT_EOF
12842 elif $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
12850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12851 case `$LD -v 2>&1` in
12852 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12853 ld_shlibs_GO=no
12854 cat <<_LT_EOF 1>&2
12856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12857 *** reliably create shared libraries on SCO systems. Therefore, libtool
12858 *** is disabling shared libraries support. We urge you to upgrade GNU
12859 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12860 *** your PATH or compiler configuration so that the native linker is
12861 *** used, and then restart.
12863 _LT_EOF
12866 # For security reasons, it is highly recommended that you always
12867 # use absolute paths for naming shared libraries, and exclude the
12868 # DT_RUNPATH tag from executables and libraries. But doing so
12869 # requires that you compile everything twice, which is a pain.
12870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12871 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12872 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12874 else
12875 ld_shlibs_GO=no
12878 esac
12881 sunos4*)
12882 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12883 wlarc=
12884 hardcode_direct_GO=yes
12885 hardcode_shlibpath_var_GO=no
12889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12890 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12891 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12892 else
12893 ld_shlibs_GO=no
12896 esac
12898 if test "$ld_shlibs_GO" = no; then
12899 runpath_var=
12900 hardcode_libdir_flag_spec_GO=
12901 export_dynamic_flag_spec_GO=
12902 whole_archive_flag_spec_GO=
12904 else
12905 # PORTME fill in a description of your system's linker (not GNU ld)
12906 case $host_os in
12907 aix3*)
12908 allow_undefined_flag_GO=unsupported
12909 always_export_symbols_GO=yes
12910 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'
12911 # Note: this linker hardcodes the directories in LIBPATH if there
12912 # are no directories specified by -L.
12913 hardcode_minus_L_GO=yes
12914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12915 # Neither direct hardcoding nor static linking is supported with a
12916 # broken collect2.
12917 hardcode_direct_GO=unsupported
12921 aix[4-9]*)
12922 if test "$host_cpu" = ia64; then
12923 # On IA64, the linker does run time linking by default, so we don't
12924 # have to do anything special.
12925 aix_use_runtimelinking=no
12926 exp_sym_flag='-Bexport'
12927 no_entry_flag=""
12928 else
12929 # If we're using GNU nm, then we don't want the "-C" option.
12930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12931 # Also, AIX nm treats weak defined symbols like other global
12932 # defined symbols, whereas GNU nm marks them as "W".
12933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12934 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'
12935 else
12936 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'
12938 aix_use_runtimelinking=no
12940 # Test if we are trying to use run time linking or normal
12941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12942 # need to do runtime linking.
12943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12944 for ld_flag in $LDFLAGS; do
12945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12946 aix_use_runtimelinking=yes
12947 break
12949 done
12951 esac
12953 exp_sym_flag='-bexport'
12954 no_entry_flag='-bnoentry'
12957 # When large executables or shared objects are built, AIX ld can
12958 # have problems creating the table of contents. If linking a library
12959 # or program results in "error TOC overflow" add -mminimal-toc to
12960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12963 archive_cmds_GO=''
12964 hardcode_direct_GO=yes
12965 hardcode_direct_absolute_GO=yes
12966 hardcode_libdir_separator_GO=':'
12967 link_all_deplibs_GO=yes
12968 file_list_spec_GO='${wl}-f,'
12970 if test "$GCC" = yes; then
12971 case $host_os in aix4.[012]|aix4.[012].*)
12972 # We only want to do this on AIX 4.2 and lower, the check
12973 # below for broken collect2 doesn't work under 4.3+
12974 collect2name=`${CC} -print-prog-name=collect2`
12975 if test -f "$collect2name" &&
12976 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12977 then
12978 # We have reworked collect2
12980 else
12981 # We have old collect2
12982 hardcode_direct_GO=unsupported
12983 # It fails to find uninstalled libraries when the uninstalled
12984 # path is not listed in the libpath. Setting hardcode_minus_L
12985 # to unsupported forces relinking
12986 hardcode_minus_L_GO=yes
12987 hardcode_libdir_flag_spec_GO='-L$libdir'
12988 hardcode_libdir_separator_GO=
12991 esac
12992 shared_flag='-shared'
12993 if test "$aix_use_runtimelinking" = yes; then
12994 shared_flag="$shared_flag "'${wl}-G'
12996 else
12997 # not using gcc
12998 if test "$host_cpu" = ia64; then
12999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13000 # chokes on -Wl,-G. The following line is correct:
13001 shared_flag='-G'
13002 else
13003 if test "$aix_use_runtimelinking" = yes; then
13004 shared_flag='${wl}-G'
13005 else
13006 shared_flag='${wl}-bM:SRE'
13011 export_dynamic_flag_spec_GO='${wl}-bexpall'
13012 # It seems that -bexpall does not export symbols beginning with
13013 # underscore (_), so it is better to generate a list of symbols to export.
13014 always_export_symbols_GO=yes
13015 if test "$aix_use_runtimelinking" = yes; then
13016 # Warning - without using the other runtime loading flags (-brtl),
13017 # -berok will link without error, but may produce a broken library.
13018 allow_undefined_flag_GO='-berok'
13019 # Determine the default libpath from the value encoded in an
13020 # empty executable.
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13025 main ()
13029 return 0;
13031 _ACEOF
13032 if ac_fn_c_try_link "$LINENO"; then :
13034 lt_aix_libpath_sed='
13035 /Import File Strings/,/^$/ {
13036 /^0/ {
13037 s/^0 *\(.*\)$/\1/
13041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13042 # Check for a 64-bit object if we didn't find anything.
13043 if test -z "$aix_libpath"; then
13044 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13051 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13052 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"
13053 else
13054 if test "$host_cpu" = ia64; then
13055 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
13056 allow_undefined_flag_GO="-z nodefs"
13057 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"
13058 else
13059 # Determine the default libpath from the value encoded in an
13060 # empty executable.
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13065 main ()
13069 return 0;
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13074 lt_aix_libpath_sed='
13075 /Import File Strings/,/^$/ {
13076 /^0/ {
13077 s/^0 *\(.*\)$/\1/
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13091 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13092 # Warning - without using the other run time loading flags,
13093 # -berok will link without error, but may produce a broken library.
13094 no_undefined_flag_GO=' ${wl}-bernotok'
13095 allow_undefined_flag_GO=' ${wl}-berok'
13096 if test "$with_gnu_ld" = yes; then
13097 # We only use this code for GNU lds that support --whole-archive.
13098 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13099 else
13100 # Exported symbols can be pulled into shared objects from archives
13101 whole_archive_flag_spec_GO='$convenience'
13103 archive_cmds_need_lc_GO=yes
13104 # This is similar to how AIX traditionally builds its shared libraries.
13105 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'
13110 amigaos*)
13111 case $host_cpu in
13112 powerpc)
13113 # see comment about AmigaOS4 .so support
13114 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115 archive_expsym_cmds_GO=''
13117 m68k)
13118 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)'
13119 hardcode_libdir_flag_spec_GO='-L$libdir'
13120 hardcode_minus_L_GO=yes
13122 esac
13125 bsdi[45]*)
13126 export_dynamic_flag_spec_GO=-rdynamic
13129 cygwin* | mingw* | pw32* | cegcc*)
13130 # When not using gcc, we currently assume that we are using
13131 # Microsoft Visual C++.
13132 # hardcode_libdir_flag_spec is actually meaningless, as there is
13133 # no search path for DLLs.
13134 hardcode_libdir_flag_spec_GO=' '
13135 allow_undefined_flag_GO=unsupported
13136 # Tell ltmain to make .lib files, not .a files.
13137 libext=lib
13138 # Tell ltmain to make .dll files, not .so files.
13139 shrext_cmds=".dll"
13140 # FIXME: Setting linknames here is a bad hack.
13141 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13142 # The linker will automatically build a .lib file if we build a DLL.
13143 old_archive_from_new_cmds_GO='true'
13144 # FIXME: Should let the user specify the lib program.
13145 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13146 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13147 enable_shared_with_static_runtimes_GO=yes
13150 darwin* | rhapsody*)
13153 archive_cmds_need_lc_GO=no
13154 hardcode_direct_GO=no
13155 hardcode_automatic_GO=yes
13156 hardcode_shlibpath_var_GO=unsupported
13157 if test "$lt_cv_ld_force_load" = "yes"; then
13158 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\"`'
13159 else
13160 whole_archive_flag_spec_GO=''
13162 link_all_deplibs_GO=yes
13163 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13164 case $cc_basename in
13165 ifort*) _lt_dar_can_shared=yes ;;
13166 *) _lt_dar_can_shared=$GCC ;;
13167 esac
13168 if test "$_lt_dar_can_shared" = "yes"; then
13169 output_verbose_link_cmd=func_echo_all
13170 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}"
13171 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13172 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}"
13173 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}"
13175 else
13176 ld_shlibs_GO=no
13181 dgux*)
13182 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13183 hardcode_libdir_flag_spec_GO='-L$libdir'
13184 hardcode_shlibpath_var_GO=no
13187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13188 # support. Future versions do this automatically, but an explicit c++rt0.o
13189 # does not break anything, and helps significantly (at the cost of a little
13190 # extra space).
13191 freebsd2.2*)
13192 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13193 hardcode_libdir_flag_spec_GO='-R$libdir'
13194 hardcode_direct_GO=yes
13195 hardcode_shlibpath_var_GO=no
13198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13199 freebsd2.*)
13200 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_direct_GO=yes
13202 hardcode_minus_L_GO=yes
13203 hardcode_shlibpath_var_GO=no
13206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13207 freebsd* | dragonfly*)
13208 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13209 hardcode_libdir_flag_spec_GO='-R$libdir'
13210 hardcode_direct_GO=yes
13211 hardcode_shlibpath_var_GO=no
13214 hpux9*)
13215 if test "$GCC" = yes; then
13216 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'
13217 else
13218 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'
13220 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13221 hardcode_libdir_separator_GO=:
13222 hardcode_direct_GO=yes
13224 # hardcode_minus_L: Not really in the search PATH,
13225 # but as the default location of the library.
13226 hardcode_minus_L_GO=yes
13227 export_dynamic_flag_spec_GO='${wl}-E'
13230 hpux10*)
13231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13232 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 else
13234 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13236 if test "$with_gnu_ld" = no; then
13237 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13238 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13239 hardcode_libdir_separator_GO=:
13240 hardcode_direct_GO=yes
13241 hardcode_direct_absolute_GO=yes
13242 export_dynamic_flag_spec_GO='${wl}-E'
13243 # hardcode_minus_L: Not really in the search PATH,
13244 # but as the default location of the library.
13245 hardcode_minus_L_GO=yes
13249 hpux11*)
13250 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13251 case $host_cpu in
13252 hppa*64*)
13253 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13255 ia64*)
13256 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13259 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13261 esac
13262 else
13263 case $host_cpu in
13264 hppa*64*)
13265 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13267 ia64*)
13268 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13271 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13273 esac
13275 if test "$with_gnu_ld" = no; then
13276 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13277 hardcode_libdir_separator_GO=:
13279 case $host_cpu in
13280 hppa*64*|ia64*)
13281 hardcode_direct_GO=no
13282 hardcode_shlibpath_var_GO=no
13285 hardcode_direct_GO=yes
13286 hardcode_direct_absolute_GO=yes
13287 export_dynamic_flag_spec_GO='${wl}-E'
13289 # hardcode_minus_L: Not really in the search PATH,
13290 # but as the default location of the library.
13291 hardcode_minus_L_GO=yes
13293 esac
13297 irix5* | irix6* | nonstopux*)
13298 if test "$GCC" = yes; then
13299 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'
13300 # Try to use the -exported_symbol ld option, if it does not
13301 # work, assume that -exports_file does not work either and
13302 # implicitly export all symbols.
13303 save_LDFLAGS="$LDFLAGS"
13304 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 int foo(void) {}
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 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'
13313 rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LDFLAGS="$save_LDFLAGS"
13316 else
13317 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'
13318 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'
13320 archive_cmds_need_lc_GO='no'
13321 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13322 hardcode_libdir_separator_GO=:
13323 inherit_rpath_GO=yes
13324 link_all_deplibs_GO=yes
13327 netbsd*)
13328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13329 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13330 else
13331 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13333 hardcode_libdir_flag_spec_GO='-R$libdir'
13334 hardcode_direct_GO=yes
13335 hardcode_shlibpath_var_GO=no
13338 newsos6)
13339 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13340 hardcode_direct_GO=yes
13341 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_GO=:
13343 hardcode_shlibpath_var_GO=no
13346 *nto* | *qnx*)
13349 openbsd*)
13350 if test -f /usr/libexec/ld.so; then
13351 hardcode_direct_GO=yes
13352 hardcode_shlibpath_var_GO=no
13353 hardcode_direct_absolute_GO=yes
13354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13355 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13357 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13358 export_dynamic_flag_spec_GO='${wl}-E'
13359 else
13360 case $host_os in
13361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13362 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13363 hardcode_libdir_flag_spec_GO='-R$libdir'
13366 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13367 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13369 esac
13371 else
13372 ld_shlibs_GO=no
13376 os2*)
13377 hardcode_libdir_flag_spec_GO='-L$libdir'
13378 hardcode_minus_L_GO=yes
13379 allow_undefined_flag_GO=unsupported
13380 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'
13381 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13384 osf3*)
13385 if test "$GCC" = yes; then
13386 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13387 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'
13388 else
13389 allow_undefined_flag_GO=' -expect_unresolved \*'
13390 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'
13392 archive_cmds_need_lc_GO='no'
13393 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13394 hardcode_libdir_separator_GO=:
13397 osf4* | osf5*) # as osf3* with the addition of -msym flag
13398 if test "$GCC" = yes; then
13399 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13400 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'
13401 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13402 else
13403 allow_undefined_flag_GO=' -expect_unresolved \*'
13404 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'
13405 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~
13406 $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'
13408 # Both c and cxx compiler support -rpath directly
13409 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13411 archive_cmds_need_lc_GO='no'
13412 hardcode_libdir_separator_GO=:
13415 solaris*)
13416 no_undefined_flag_GO=' -z defs'
13417 if test "$GCC" = yes; then
13418 wlarc='${wl}'
13419 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13422 else
13423 case `$CC -V 2>&1` in
13424 *"Compilers 5.0"*)
13425 wlarc=''
13426 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13431 wlarc='${wl}'
13432 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13434 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13436 esac
13438 hardcode_libdir_flag_spec_GO='-R$libdir'
13439 hardcode_shlibpath_var_GO=no
13440 case $host_os in
13441 solaris2.[0-5] | solaris2.[0-5].*) ;;
13443 # The compiler driver will combine and reorder linker options,
13444 # but understands `-z linker_flag'. GCC discards it without `$wl',
13445 # but is careful enough not to reorder.
13446 # Supported since Solaris 2.6 (maybe 2.5.1?)
13447 if test "$GCC" = yes; then
13448 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13449 else
13450 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13453 esac
13454 link_all_deplibs_GO=yes
13457 sunos4*)
13458 if test "x$host_vendor" = xsequent; then
13459 # Use $CC to link under sequent, because it throws in some extra .o
13460 # files that make .init and .fini sections work.
13461 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13462 else
13463 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_libdir_flag_spec_GO='-L$libdir'
13466 hardcode_direct_GO=yes
13467 hardcode_minus_L_GO=yes
13468 hardcode_shlibpath_var_GO=no
13471 sysv4)
13472 case $host_vendor in
13473 sni)
13474 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_direct_GO=yes # is this really true???
13477 siemens)
13478 ## LD is ld it makes a PLAMLIB
13479 ## CC just makes a GrossModule.
13480 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13481 reload_cmds_GO='$CC -r -o $output$reload_objs'
13482 hardcode_direct_GO=no
13484 motorola)
13485 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13488 esac
13489 runpath_var='LD_RUN_PATH'
13490 hardcode_shlibpath_var_GO=no
13493 sysv4.3*)
13494 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_shlibpath_var_GO=no
13496 export_dynamic_flag_spec_GO='-Bexport'
13499 sysv4*MP*)
13500 if test -d /usr/nec; then
13501 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_shlibpath_var_GO=no
13503 runpath_var=LD_RUN_PATH
13504 hardcode_runpath_var=yes
13505 ld_shlibs_GO=yes
13509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13510 no_undefined_flag_GO='${wl}-z,text'
13511 archive_cmds_need_lc_GO=no
13512 hardcode_shlibpath_var_GO=no
13513 runpath_var='LD_RUN_PATH'
13515 if test "$GCC" = yes; then
13516 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 else
13519 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 sysv5* | sco3.2v5* | sco5v6*)
13525 # Note: We can NOT use -z defs as we might desire, because we do not
13526 # link with -lc, and that would cause any symbols used from libc to
13527 # always be unresolved, which means just about no library would
13528 # ever link correctly. If we're not using GNU ld we use -z text
13529 # though, which does catch some bad symbols but isn't as heavy-handed
13530 # as -z defs.
13531 no_undefined_flag_GO='${wl}-z,text'
13532 allow_undefined_flag_GO='${wl}-z,nodefs'
13533 archive_cmds_need_lc_GO=no
13534 hardcode_shlibpath_var_GO=no
13535 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13536 hardcode_libdir_separator_GO=':'
13537 link_all_deplibs_GO=yes
13538 export_dynamic_flag_spec_GO='${wl}-Bexport'
13539 runpath_var='LD_RUN_PATH'
13541 if test "$GCC" = yes; then
13542 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13544 else
13545 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 uts4*)
13551 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_libdir_flag_spec_GO='-L$libdir'
13553 hardcode_shlibpath_var_GO=no
13557 ld_shlibs_GO=no
13559 esac
13561 if test x$host_vendor = xsni; then
13562 case $host in
13563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13564 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13566 esac
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13571 $as_echo "$ld_shlibs_GO" >&6; }
13572 test "$ld_shlibs_GO" = no && can_build_shared=no
13574 with_gnu_ld_GO=$with_gnu_ld
13582 # Do we need to explicitly link libc?
13584 case "x$archive_cmds_need_lc_GO" in
13585 x|xyes)
13586 # Assume -lc should be added
13587 archive_cmds_need_lc_GO=yes
13589 if test "$enable_shared" = yes && test "$GCC" = yes; then
13590 case $archive_cmds_GO in
13591 *'~'*)
13592 # FIXME: we may have to deal with multi-command sequences.
13594 '$CC '*)
13595 # Test whether the compiler implicitly links with -lc since on some
13596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13597 # to ld, don't add -lc before -lgcc.
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13600 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 $RM conftest*
13604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; } 2>conftest.err; then
13611 soname=conftest
13612 lib=conftest
13613 libobjs=conftest.$ac_objext
13614 deplibs=
13615 wl=$lt_prog_compiler_wl_GO
13616 pic_flag=$lt_prog_compiler_pic_GO
13617 compiler_flags=-v
13618 linker_flags=-v
13619 verstring=
13620 output_objdir=.
13621 libname=conftest
13622 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13623 allow_undefined_flag_GO=
13624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13625 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13626 ac_status=$?
13627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628 test $ac_status = 0; }
13629 then
13630 lt_cv_archive_cmds_need_lc_GO=no
13631 else
13632 lt_cv_archive_cmds_need_lc_GO=yes
13634 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13635 else
13636 cat conftest.err 1>&5
13638 $RM conftest*
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13642 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13643 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13645 esac
13648 esac
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13714 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13715 hardcode_action_GO=
13716 if test -n "$hardcode_libdir_flag_spec_GO" ||
13717 test -n "$runpath_var_GO" ||
13718 test "X$hardcode_automatic_GO" = "Xyes" ; then
13720 # We can hardcode non-existent directories.
13721 if test "$hardcode_direct_GO" != no &&
13722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13723 # have to relink, otherwise we might link with an installed library
13724 # when we should be linking with a yet-to-be-installed one
13725 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13726 test "$hardcode_minus_L_GO" != no; then
13727 # Linking always hardcodes the temporary library directory.
13728 hardcode_action_GO=relink
13729 else
13730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13731 hardcode_action_GO=immediate
13733 else
13734 # We cannot hardcode anything, or else we can only hardcode existing
13735 # directories.
13736 hardcode_action_GO=unsupported
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13739 $as_echo "$hardcode_action_GO" >&6; }
13741 if test "$hardcode_action_GO" = relink ||
13742 test "$inherit_rpath_GO" = yes; then
13743 # Fast installation is not supported
13744 enable_fast_install=no
13745 elif test "$shlibpath_overrides_runpath" = yes ||
13746 test "$enable_shared" = no; then
13747 # Fast installation is not necessary
13748 enable_fast_install=needless
13759 ac_ext=c
13760 ac_cpp='$CPP $CPPFLAGS'
13761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13766 GCC=$lt_save_GCC
13767 CC="$lt_save_CC"
13772 ac_config_commands="$ac_config_commands libtool"
13777 # Only expand once:
13783 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13786 for ac_prog in gawk mawk nawk awk
13788 # Extract the first word of "$ac_prog", so it can be a program name with args.
13789 set dummy $ac_prog; ac_word=$2
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 $as_echo_n "checking for $ac_word... " >&6; }
13792 if ${ac_cv_prog_AWK+:} false; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 if test -n "$AWK"; then
13796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13797 else
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13805 ac_cv_prog_AWK="$ac_prog"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13809 done
13810 done
13811 IFS=$as_save_IFS
13815 AWK=$ac_cv_prog_AWK
13816 if test -n "$AWK"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13818 $as_echo "$AWK" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13825 test -n "$AWK" && break
13826 done
13829 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13832 # Check whether --enable-werror was given.
13833 if test "${enable_werror+set}" = set; then :
13834 enableval=$enable_werror;
13837 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
13838 WERROR="-Werror"
13842 glibgo_toolexecdir=no
13843 glibgo_toolexeclibdir=no
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13846 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13847 # Check whether --enable-version-specific-runtime-libs was given.
13848 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13849 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13850 yes) version_specific_libs=yes ;;
13851 no) version_specific_libs=no ;;
13852 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13853 esac
13854 else
13855 version_specific_libs=no
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13859 $as_echo "$version_specific_libs" >&6; }
13862 # Check whether --with-toolexeclibdir was given.
13863 if test "${with_toolexeclibdir+set}" = set; then :
13864 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13868 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
13870 esac
13871 else
13872 with_toolexeclibdir=no
13877 # Version-specific runtime libs processing.
13878 if test $version_specific_libs = yes; then
13879 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13880 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13883 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13884 # Install a library built with a cross compiler in tooldir, not libdir.
13885 if test -n "$with_cross_host" &&
13886 test x"$with_cross_host" != x"no"; then
13887 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13888 case ${with_toolexeclibdir} in
13890 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13893 nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
13895 esac
13896 else
13897 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13898 nover_glibgo_toolexeclibdir='${libdir}'
13900 multi_os_directory=`$GOC -print-multi-os-directory`
13901 case $multi_os_directory in
13902 .) ;; # Avoid trailing /.
13903 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13904 esac
13906 if test x"$glibgo_toolexecdir" = x"no"; then
13907 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13908 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13915 # See if the user wants to configure without libffi. Some
13916 # architectures don't support it. FIXME: We should set a default
13917 # based on the host.
13919 # Check whether --with-libffi was given.
13920 if test "${with_libffi+set}" = set; then :
13921 withval=$with_libffi; :
13922 else
13923 with_libffi=${with_libffi_default-yes}
13927 LIBFFI=
13928 LIBFFIINCS=
13929 if test "$with_libffi" != no; then
13931 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13933 LIBFFI=../libffi/libffi_convenience.la
13934 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13938 if test "$with_libffi" != "no"; then
13939 USE_LIBFFI_TRUE=
13940 USE_LIBFFI_FALSE='#'
13941 else
13942 USE_LIBFFI_TRUE='#'
13943 USE_LIBFFI_FALSE=
13947 # See if the user wants to configure without libatomic. This is useful if we are
13948 # on an architecture for which libgo does not need an atomic support library and
13949 # libatomic does not support our C compiler.
13951 # Check whether --with-libatomic was given.
13952 if test "${with_libatomic+set}" = set; then :
13953 withval=$with_libatomic; :
13954 else
13955 with_libatomic=${with_libatomic_default-yes}
13959 LIBATOMIC=
13960 if test "$with_libatomic" != no; then
13961 LIBATOMIC=../libatomic/libatomic_convenience.la
13965 # Used to tell GNU make to include a file without telling automake to
13966 # include it.
13967 go_include="-include"
13970 # All known GOOS values. This is the union of all operating systems
13971 # supported by the gofrontend and all operating systems supported by
13972 # the gc toolchain.
13973 ALLGOOS="aix android darwin dragonfly freebsd hurd illumos ios irix js linux netbsd openbsd plan9 rtems solaris windows zos"
13975 is_darwin=no
13976 is_freebsd=no
13977 is_irix=no
13978 is_linux=no
13979 is_netbsd=no
13980 is_openbsd=no
13981 is_dragonfly=no
13982 is_rtems=no
13983 is_solaris=no
13984 is_aix=no
13985 is_hurd=no
13986 GOOS=unknown
13987 case ${host} in
13988 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13989 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13990 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13991 *-*-linux*) is_linux=yes; GOOS=linux ;;
13992 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13993 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13994 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13995 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13996 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13997 *-*-aix*) is_aix=yes; GOOS=aix ;;
13998 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
13999 esac
14000 if test $is_darwin = yes; then
14001 LIBGO_IS_DARWIN_TRUE=
14002 LIBGO_IS_DARWIN_FALSE='#'
14003 else
14004 LIBGO_IS_DARWIN_TRUE='#'
14005 LIBGO_IS_DARWIN_FALSE=
14008 if test $is_freebsd = yes; then
14009 LIBGO_IS_FREEBSD_TRUE=
14010 LIBGO_IS_FREEBSD_FALSE='#'
14011 else
14012 LIBGO_IS_FREEBSD_TRUE='#'
14013 LIBGO_IS_FREEBSD_FALSE=
14016 if test $is_irix = yes; then
14017 LIBGO_IS_IRIX_TRUE=
14018 LIBGO_IS_IRIX_FALSE='#'
14019 else
14020 LIBGO_IS_IRIX_TRUE='#'
14021 LIBGO_IS_IRIX_FALSE=
14024 if test $is_linux = yes; then
14025 LIBGO_IS_LINUX_TRUE=
14026 LIBGO_IS_LINUX_FALSE='#'
14027 else
14028 LIBGO_IS_LINUX_TRUE='#'
14029 LIBGO_IS_LINUX_FALSE=
14032 if test $is_netbsd = yes; then
14033 LIBGO_IS_NETBSD_TRUE=
14034 LIBGO_IS_NETBSD_FALSE='#'
14035 else
14036 LIBGO_IS_NETBSD_TRUE='#'
14037 LIBGO_IS_NETBSD_FALSE=
14040 if test $is_openbsd = yes; then
14041 LIBGO_IS_OPENBSD_TRUE=
14042 LIBGO_IS_OPENBSD_FALSE='#'
14043 else
14044 LIBGO_IS_OPENBSD_TRUE='#'
14045 LIBGO_IS_OPENBSD_FALSE=
14048 if test $is_dragonfly = yes; then
14049 LIBGO_IS_DRAGONFLY_TRUE=
14050 LIBGO_IS_DRAGONFLY_FALSE='#'
14051 else
14052 LIBGO_IS_DRAGONFLY_TRUE='#'
14053 LIBGO_IS_DRAGONFLY_FALSE=
14056 if test $is_rtems = yes; then
14057 LIBGO_IS_RTEMS_TRUE=
14058 LIBGO_IS_RTEMS_FALSE='#'
14059 else
14060 LIBGO_IS_RTEMS_TRUE='#'
14061 LIBGO_IS_RTEMS_FALSE=
14064 if test $is_solaris = yes; then
14065 LIBGO_IS_SOLARIS_TRUE=
14066 LIBGO_IS_SOLARIS_FALSE='#'
14067 else
14068 LIBGO_IS_SOLARIS_TRUE='#'
14069 LIBGO_IS_SOLARIS_FALSE=
14072 if test $is_aix = yes; then
14073 LIBGO_IS_AIX_TRUE=
14074 LIBGO_IS_AIX_FALSE='#'
14075 else
14076 LIBGO_IS_AIX_TRUE='#'
14077 LIBGO_IS_AIX_FALSE=
14080 if test $is_hurd = yes; then
14081 LIBGO_IS_HURD_TRUE=
14082 LIBGO_IS_HURD_FALSE='#'
14083 else
14084 LIBGO_IS_HURD_TRUE='#'
14085 LIBGO_IS_HURD_FALSE=
14088 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14089 LIBGO_IS_BSD_TRUE=
14090 LIBGO_IS_BSD_FALSE='#'
14091 else
14092 LIBGO_IS_BSD_TRUE='#'
14093 LIBGO_IS_BSD_FALSE=
14099 USE_DEJAGNU=no
14100 case ${host} in
14101 *-*-rtems*) USE_DEJAGNU=yes ;;
14102 ${build}) ;;
14103 *) USE_DEJAGNU=yes ;;
14104 esac
14107 # All known GOARCH values. This is the union of all architectures
14108 # supported by the gofrontend and all architectures supported by the
14109 # gc toolchain.
14110 # To add a new architecture:
14111 # - add it to this list
14112 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14113 # - add an entry to the case on ${host} below to set GOARCH
14114 # - update goarchList in libgo/go/go/build/syslist.go
14115 # - update goarch.sh to report the values for this architecture
14116 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14117 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14118 # - update arch lists in libgo/match.sh
14119 # - update arch lists in libgo/testsuite/gotest
14120 # - update +build lines in several places
14121 # - libgo/go/runtime/lfstack_NNbit.go
14122 # - libgo/go/runtime/hashNN.go
14123 # - libgo/go/runtime/unalignedN.go
14124 # - libgo/go/syscall/endian_XX.go
14125 # - possibly others
14126 # - possibly update files in libgo/go/internal/syscall/unix
14127 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"
14129 # All known GOARCH family values.
14130 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14132 GOARCH=unknown
14133 case ${host} in
14134 alpha*-*-*)
14135 GOARCH=alpha
14137 aarch64-*-*)
14138 GOARCH=arm64
14140 aarch64_be-*-*)
14141 GOARCH=arm64be
14143 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
14144 GOARCH=arm
14145 case ${host} in
14146 arm*b*-*-*)
14147 GOARCH=armbe
14149 esac
14151 i[34567]86-*-* | x86_64-*-*)
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14155 #ifdef __x86_64__
14156 #error 64-bit
14157 #endif
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 GOARCH=386
14162 else
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14166 #ifdef __ILP32__
14167 #error x32
14168 #endif
14170 _ACEOF
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 GOARCH=amd64
14173 else
14174 GOARCH=amd64p32
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 ia64-*-*)
14181 GOARCH=ia64
14183 m68k*-*-*)
14184 GOARCH=m68k
14186 mips*-*-*)
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14190 #if _MIPS_SIM != _ABIO32
14191 #error not o32
14192 #endif
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 mips_abi="o32"
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14201 #if _MIPS_SIM != _ABIN32
14202 #error not n32
14203 #endif
14205 _ACEOF
14206 if ac_fn_c_try_compile "$LINENO"; then :
14207 mips_abi="n32"
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14212 #if _MIPS_SIM != _ABI64
14213 #error not n64
14214 #endif
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"; then :
14218 mips_abi="n64"
14219 else
14220 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
14221 mips_abi="n32"
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 case "$mips_abi" in
14229 "o32") GOARCH=mips ;;
14230 "n32") GOARCH=mips64p32 ;;
14231 "n64") GOARCH=mips64 ;;
14232 esac
14233 case "${host}" in
14234 mips*el-*-*)
14235 GOARCH="${GOARCH}le"
14237 esac
14239 nios2-*-*)
14240 GOARCH=nios2
14242 rs6000*-*-* | powerpc*-*-*)
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 #ifdef _ARCH_PPC64
14247 #error 64-bit
14248 #endif
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 GOARCH=ppc
14253 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14258 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14259 #error 64be
14260 #endif
14262 _ACEOF
14263 if ac_fn_c_try_compile "$LINENO"; then :
14264 GOARCH=ppc64le
14265 else
14266 GOARCH=ppc64
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 riscv*-*-*)
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14276 #if __riscv_xlen == 64
14277 #error 64-bit
14278 #endif
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282 GOARCH=riscv
14283 else
14284 GOARCH=riscv64
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 s390*-*-*)
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 #if defined(__s390x__)
14293 #error 64-bit
14294 #endif
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 GOARCH=s390
14299 else
14300 GOARCH=s390x
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 sh3eb*-*-* | sh4eb*-*-*)
14305 GOARCH=shbe
14307 sh3*-*-* | sh4*-*-*)
14308 GOARCH=sh
14310 sparc*-*-*)
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14314 #if defined(__sparcv9) || defined(__arch64__)
14315 #error 64-bit
14316 #endif
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 GOARCH=sparc
14321 else
14322 GOARCH=sparc64
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 esac
14331 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14332 LIBGO_IS_X86_TRUE=
14333 LIBGO_IS_X86_FALSE='#'
14334 else
14335 LIBGO_IS_X86_TRUE='#'
14336 LIBGO_IS_X86_FALSE=
14340 FUNCTION_DESCRIPTORS=false
14341 case ${host} in
14342 rs6000*-*-* | powerpc*-*-*)
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 #if _CALL_ELF == 1
14347 #error descriptors
14348 #endif
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"; then :
14352 FUNCTION_DESCRIPTORS=false
14353 else
14354 FUNCTION_DESCRIPTORS=true
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 esac
14361 GO_LIBCALL_OS_FILE=
14362 GO_LIBCALL_OS_ARCH_FILE=
14363 GO_SYSCALL_OS_FILE=
14364 GO_SYSCALL_OS_ARCH_FILE=
14365 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14366 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14368 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14369 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14371 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14372 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14374 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14375 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14382 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14383 case "$target" in
14384 mips-sgi-irix6.5*)
14385 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14386 # msghdr in <sys/socket.h>.
14387 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14389 *-*-solaris2.*)
14390 # Solaris 10+ needs this so struct msghdr gets the msg_control
14391 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14392 # above doesn't work with C99.
14393 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14395 esac
14399 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14401 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14402 # with a different meaning.
14403 case ${target_os} in
14404 solaris2*)
14405 ac_save_CFLAGS="$CFLAGS"
14406 CFLAGS="$CFLAGS -Wa,-nH"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14409 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14414 main ()
14416 return 0;
14418 return 0;
14420 _ACEOF
14421 if ac_fn_c_try_compile "$LINENO"; then :
14422 ac_hwcap_flags=yes
14423 else
14424 ac_hwcap_flags=no
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 if test "$ac_hwcap_flags" = "yes"; then
14428 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14431 $as_echo "$ac_hwcap_flags" >&6; }
14433 CFLAGS="$ac_save_CFLAGS"
14435 esac
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14441 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14442 if ${libgo_cv_c_split_stack_supported+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 CFLAGS_hold=$CFLAGS
14446 CFLAGS="$CFLAGS -fsplit-stack"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 int i;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 libgo_cv_c_split_stack_supported=yes
14453 else
14454 libgo_cv_c_split_stack_supported=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 CFLAGS=$CFLAGS_hold
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14460 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14463 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14464 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 cat > conftest1.c << EOF
14468 extern void f();
14469 int main() { f(); return 0; }
14471 cat > conftest2.c << EOF
14472 void f() {}
14474 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14475 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14476 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14477 libgo_cv_c_linker_split_non_split=yes
14478 else
14479 libgo_cv_c_linker_split_non_split=no
14481 rm -f conftest1.* conftest2.* conftest
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14484 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14486 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14487 SPLIT_STACK=-fsplit-stack
14489 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14491 else
14492 SPLIT_STACK=
14495 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14496 USING_SPLIT_STACK_TRUE=
14497 USING_SPLIT_STACK_FALSE='#'
14498 else
14499 USING_SPLIT_STACK_TRUE='#'
14500 USING_SPLIT_STACK_FALSE=
14504 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14505 GO_SPLIT_STACK=-fno-split-stack
14506 else
14507 GO_SPLIT_STACK=
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14512 $as_echo_n "checking whether linker supports split stack... " >&6; }
14513 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 libgo_cv_c_linker_supports_split_stack=no
14517 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14518 libgo_cv_c_linker_supports_split_stack=yes
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14522 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14523 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14525 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14530 $as_echo_n "checking whether compiler is llgo... " >&6; }
14531 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 libgo_cv_c_goc_is_llgo=no
14535 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14536 libgo_cv_c_goc_is_llgo=yes
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14540 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14541 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14542 GOC_IS_LLGO_TRUE=
14543 GOC_IS_LLGO_FALSE='#'
14544 else
14545 GOC_IS_LLGO_TRUE='#'
14546 GOC_IS_LLGO_FALSE=
14550 MATH_LIBS=
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14552 $as_echo_n "checking for sqrt in -lm... " >&6; }
14553 if ${ac_cv_lib_m_sqrt+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-lm $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char sqrt ();
14569 main ()
14571 return sqrt ();
14573 return 0;
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_lib_m_sqrt=yes
14578 else
14579 ac_cv_lib_m_sqrt=no
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14586 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14587 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14588 MATH_LIBS=-lm
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14594 $as_echo_n "checking for socket libraries... " >&6; }
14595 if ${libgo_cv_lib_sockets+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 libgo_cv_lib_sockets=
14599 libgo_check_both=no
14600 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14601 if test "x$ac_cv_func_connect" = xyes; then :
14602 libgo_check_socket=no
14603 else
14604 libgo_check_socket=yes
14607 if test "$libgo_check_socket" = "yes"; then
14608 unset ac_cv_func_connect
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14610 $as_echo_n "checking for main in -lsocket... " >&6; }
14611 if ${ac_cv_lib_socket_main+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lsocket $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14621 main ()
14623 return main ();
14625 return 0;
14627 _ACEOF
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_lib_socket_main=yes
14630 else
14631 ac_cv_lib_socket_main=no
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14638 $as_echo "$ac_cv_lib_socket_main" >&6; }
14639 if test "x$ac_cv_lib_socket_main" = xyes; then :
14640 libgo_cv_lib_sockets="-lsocket"
14641 else
14642 libgo_check_both=yes
14646 if test "$libgo_check_both" = "yes"; then
14647 libgo_old_libs=$LIBS
14648 LIBS="$LIBS -lsocket -lnsl"
14649 unset ac_cv_func_accept
14650 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14651 if test "x$ac_cv_func_accept" = xyes; then :
14652 libgo_check_nsl=no
14653 libgo_cv_lib_sockets="-lsocket -lnsl"
14656 unset ac_cv_func_accept
14657 LIBS=$libgo_old_libs
14659 unset ac_cv_func_gethostbyname
14660 libgo_old_libs="$LIBS"
14661 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14662 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14666 $as_echo_n "checking for main in -lnsl... " >&6; }
14667 if ${ac_cv_lib_nsl_main+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 ac_check_lib_save_LIBS=$LIBS
14671 LIBS="-lnsl $LIBS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14677 main ()
14679 return main ();
14681 return 0;
14683 _ACEOF
14684 if ac_fn_c_try_link "$LINENO"; then :
14685 ac_cv_lib_nsl_main=yes
14686 else
14687 ac_cv_lib_nsl_main=no
14689 rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_check_lib_save_LIBS
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14694 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14695 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14696 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14701 unset ac_cv_func_gethostbyname
14702 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14703 if test "x$ac_cv_func_sendfile" = xyes; then :
14705 else
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14707 $as_echo_n "checking for main in -lsendfile... " >&6; }
14708 if ${ac_cv_lib_sendfile_main+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lsendfile $LIBS"
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14718 main ()
14720 return main ();
14722 return 0;
14724 _ACEOF
14725 if ac_fn_c_try_link "$LINENO"; then :
14726 ac_cv_lib_sendfile_main=yes
14727 else
14728 ac_cv_lib_sendfile_main=no
14730 rm -f core conftest.err conftest.$ac_objext \
14731 conftest$ac_exeext conftest.$ac_ext
14732 LIBS=$ac_check_lib_save_LIBS
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14735 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14736 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14737 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14742 LIBS=$libgo_old_libs
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14746 $as_echo "$libgo_cv_lib_sockets" >&6; }
14747 NET_LIBS="$libgo_cv_lib_sockets"
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14751 $as_echo_n "checking whether -pthread is supported... " >&6; }
14752 if ${libgo_cv_lib_pthread+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 CFLAGS_hold=$CFLAGS
14756 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 libgo_cv_lib_pthread=yes
14763 else
14764 libgo_cv_lib_pthread=no
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 CFLAGS=$CFLAGS_hold
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14770 $as_echo "$libgo_cv_lib_pthread" >&6; }
14771 PTHREAD_CFLAGS=
14772 if test "$libgo_cv_lib_pthread" = yes; then
14773 # RISC-V apparently adds -latomic when using -pthread.
14774 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14778 PTHREAD_LIBS=
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14780 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14781 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 ac_check_lib_save_LIBS=$LIBS
14785 LIBS="-lpthread $LIBS"
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14789 /* Override any GCC internal prototype to avoid an error.
14790 Use char because int might match the return type of a GCC
14791 builtin and then its argument prototype would still apply. */
14792 #ifdef __cplusplus
14793 extern "C"
14794 #endif
14795 char pthread_create ();
14797 main ()
14799 return pthread_create ();
14801 return 0;
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 ac_cv_lib_pthread_pthread_create=yes
14806 else
14807 ac_cv_lib_pthread_pthread_create=no
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14814 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14815 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14816 PTHREAD_LIBS=-lpthread
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14822 $as_echo_n "checking for library containing sched_yield... " >&6; }
14823 if ${ac_cv_search_sched_yield+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 ac_func_search_save_LIBS=$LIBS
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 char sched_yield ();
14838 main ()
14840 return sched_yield ();
14842 return 0;
14844 _ACEOF
14845 for ac_lib in '' rt; do
14846 if test -z "$ac_lib"; then
14847 ac_res="none required"
14848 else
14849 ac_res=-l$ac_lib
14850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14852 if ac_fn_c_try_link "$LINENO"; then :
14853 ac_cv_search_sched_yield=$ac_res
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext
14857 if ${ac_cv_search_sched_yield+:} false; then :
14858 break
14860 done
14861 if ${ac_cv_search_sched_yield+:} false; then :
14863 else
14864 ac_cv_search_sched_yield=no
14866 rm conftest.$ac_ext
14867 LIBS=$ac_func_search_save_LIBS
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14870 $as_echo "$ac_cv_search_sched_yield" >&6; }
14871 ac_res=$ac_cv_search_sched_yield
14872 if test "$ac_res" != no; then :
14873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14878 $as_echo_n "checking for library containing nanosleep... " >&6; }
14879 if ${ac_cv_search_nanosleep+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 ac_func_search_save_LIBS=$LIBS
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char nanosleep ();
14894 main ()
14896 return nanosleep ();
14898 return 0;
14900 _ACEOF
14901 for ac_lib in '' rt; do
14902 if test -z "$ac_lib"; then
14903 ac_res="none required"
14904 else
14905 ac_res=-l$ac_lib
14906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 ac_cv_search_nanosleep=$ac_res
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext
14913 if ${ac_cv_search_nanosleep+:} false; then :
14914 break
14916 done
14917 if ${ac_cv_search_nanosleep+:} false; then :
14919 else
14920 ac_cv_search_nanosleep=no
14922 rm conftest.$ac_ext
14923 LIBS=$ac_func_search_save_LIBS
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14926 $as_echo "$ac_cv_search_nanosleep" >&6; }
14927 ac_res=$ac_cv_search_nanosleep
14928 if test "$ac_res" != no; then :
14929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14934 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14935 if ${ac_cv_search_clock_gettime+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 ac_func_search_save_LIBS=$LIBS
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14942 /* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 char clock_gettime ();
14950 main ()
14952 return clock_gettime ();
14954 return 0;
14956 _ACEOF
14957 for ac_lib in '' rt; do
14958 if test -z "$ac_lib"; then
14959 ac_res="none required"
14960 else
14961 ac_res=-l$ac_lib
14962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 ac_cv_search_clock_gettime=$ac_res
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext
14969 if ${ac_cv_search_clock_gettime+:} false; then :
14970 break
14972 done
14973 if ${ac_cv_search_clock_gettime+:} false; then :
14975 else
14976 ac_cv_search_clock_gettime=no
14978 rm conftest.$ac_ext
14979 LIBS=$ac_func_search_save_LIBS
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14982 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14983 ac_res=$ac_cv_search_clock_gettime
14984 if test "$ac_res" != no; then :
14985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14991 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14992 if ${ac_cv_c_bigendian+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 ac_cv_c_bigendian=unknown
14996 # See if we're dealing with a universal compiler.
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #ifndef __APPLE_CC__
15000 not a universal capable compiler
15001 #endif
15002 typedef int dummy;
15004 _ACEOF
15005 if ac_fn_c_try_compile "$LINENO"; then :
15007 # Check for potential -arch flags. It is not universal unless
15008 # there are at least two -arch flags with different values.
15009 ac_arch=
15010 ac_prev=
15011 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15012 if test -n "$ac_prev"; then
15013 case $ac_word in
15014 i?86 | x86_64 | ppc | ppc64)
15015 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15016 ac_arch=$ac_word
15017 else
15018 ac_cv_c_bigendian=universal
15019 break
15022 esac
15023 ac_prev=
15024 elif test "x$ac_word" = "x-arch"; then
15025 ac_prev=arch
15027 done
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 if test $ac_cv_c_bigendian = unknown; then
15031 # See if sys/param.h defines the BYTE_ORDER macro.
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <sys/types.h>
15035 #include <sys/param.h>
15038 main ()
15040 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15041 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15042 && LITTLE_ENDIAN)
15043 bogus endian macros
15044 #endif
15047 return 0;
15049 _ACEOF
15050 if ac_fn_c_try_compile "$LINENO"; then :
15051 # It does; now see whether it defined to BIG_ENDIAN or not.
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include <sys/types.h>
15055 #include <sys/param.h>
15058 main ()
15060 #if BYTE_ORDER != BIG_ENDIAN
15061 not big endian
15062 #endif
15065 return 0;
15067 _ACEOF
15068 if ac_fn_c_try_compile "$LINENO"; then :
15069 ac_cv_c_bigendian=yes
15070 else
15071 ac_cv_c_bigendian=no
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 if test $ac_cv_c_bigendian = unknown; then
15078 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <limits.h>
15084 main ()
15086 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15087 bogus endian macros
15088 #endif
15091 return 0;
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 # It does; now see whether it defined to _BIG_ENDIAN or not.
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 #include <limits.h>
15101 main ()
15103 #ifndef _BIG_ENDIAN
15104 not big endian
15105 #endif
15108 return 0;
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"; then :
15112 ac_cv_c_bigendian=yes
15113 else
15114 ac_cv_c_bigendian=no
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 if test $ac_cv_c_bigendian = unknown; then
15121 # Compile a test program.
15122 if test "$cross_compiling" = yes; then :
15123 # Try to guess by grepping values from an object file.
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126 short int ascii_mm[] =
15127 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15128 short int ascii_ii[] =
15129 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15130 int use_ascii (int i) {
15131 return ascii_mm[i] + ascii_ii[i];
15133 short int ebcdic_ii[] =
15134 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15135 short int ebcdic_mm[] =
15136 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15137 int use_ebcdic (int i) {
15138 return ebcdic_mm[i] + ebcdic_ii[i];
15140 extern int foo;
15143 main ()
15145 return use_ascii (foo) == use_ebcdic (foo);
15147 return 0;
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15152 ac_cv_c_bigendian=yes
15154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15155 if test "$ac_cv_c_bigendian" = unknown; then
15156 ac_cv_c_bigendian=no
15157 else
15158 # finding both strings is unlikely to happen, but who knows?
15159 ac_cv_c_bigendian=unknown
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 else
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 $ac_includes_default
15169 main ()
15172 /* Are we little or big endian? From Harbison&Steele. */
15173 union
15175 long int l;
15176 char c[sizeof (long int)];
15177 } u;
15178 u.l = 1;
15179 return u.c[sizeof (long int) - 1] == 1;
15182 return 0;
15184 _ACEOF
15185 if ac_fn_c_try_run "$LINENO"; then :
15186 ac_cv_c_bigendian=no
15187 else
15188 ac_cv_c_bigendian=yes
15190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15191 conftest.$ac_objext conftest.beam conftest.$ac_ext
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15197 $as_echo "$ac_cv_c_bigendian" >&6; }
15198 case $ac_cv_c_bigendian in #(
15199 yes)
15200 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15201 ;; #(
15203 ;; #(
15204 universal)
15206 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15208 ;; #(
15210 as_fn_error $? "unknown endianness
15211 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15212 esac
15217 # Check whether --with-system-libunwind was given.
15218 if test "${with_system_libunwind+set}" = set; then :
15219 withval=$with_system_libunwind;
15222 # If system-libunwind was not specifically set, pick a default setting.
15223 if test x$with_system_libunwind = x; then
15224 case ${target} in
15225 ia64-*-hpux*) with_system_libunwind=yes ;;
15226 *) with_system_libunwind=no ;;
15227 esac
15229 # Based on system-libunwind and target, do we have ipinfo?
15230 if test x$with_system_libunwind = xyes; then
15231 case ${target} in
15232 ia64-*-*) have_unwind_getipinfo=no ;;
15233 *) have_unwind_getipinfo=yes ;;
15234 esac
15235 else
15236 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15238 case ${target} in
15239 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15240 *) have_unwind_getipinfo=yes ;;
15241 esac
15245 if test x$have_unwind_getipinfo = xyes; then
15247 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15252 for ac_header in fcntl.h 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 lwp.h
15253 do :
15254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15257 cat >>confdefs.h <<_ACEOF
15258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15259 _ACEOF
15263 done
15266 for ac_header in netinet/icmp6.h
15267 do :
15268 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15271 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_NETINET_ICMP6_H 1
15274 _ACEOF
15278 done
15281 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
15282 do :
15283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15285 #include <sys/socket.h>
15286 #endif
15289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15290 cat >>confdefs.h <<_ACEOF
15291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292 _ACEOF
15296 done
15299 if test "$ac_cv_header_sys_mman_h" = yes; then
15300 HAVE_SYS_MMAN_H_TRUE=
15301 HAVE_SYS_MMAN_H_FALSE='#'
15302 else
15303 HAVE_SYS_MMAN_H_TRUE='#'
15304 HAVE_SYS_MMAN_H_FALSE=
15308 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15309 do :
15310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15312 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15315 _ACEOF
15318 done
15320 if test "$ac_cv_func_strerror_r" = yes; then
15321 HAVE_STRERROR_R_TRUE=
15322 HAVE_STRERROR_R_FALSE='#'
15323 else
15324 HAVE_STRERROR_R_TRUE='#'
15325 HAVE_STRERROR_R_FALSE=
15328 if test "$ac_cv_func_wait4" = yes; then
15329 HAVE_WAIT4_TRUE=
15330 HAVE_WAIT4_FALSE='#'
15331 else
15332 HAVE_WAIT4_TRUE='#'
15333 HAVE_WAIT4_FALSE=
15337 ac_header_dirent=no
15338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15339 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15341 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15342 if eval \${$as_ac_Header+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #include <sys/types.h>
15348 #include <$ac_hdr>
15351 main ()
15353 if ((DIR *) 0)
15354 return 0;
15356 return 0;
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 eval "$as_ac_Header=yes"
15361 else
15362 eval "$as_ac_Header=no"
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 eval ac_res=\$$as_ac_Header
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15368 $as_echo "$ac_res" >&6; }
15369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15372 _ACEOF
15374 ac_header_dirent=$ac_hdr; break
15377 done
15378 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15379 if test $ac_header_dirent = dirent.h; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15381 $as_echo_n "checking for library containing opendir... " >&6; }
15382 if ${ac_cv_search_opendir+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_func_search_save_LIBS=$LIBS
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15389 /* Override any GCC internal prototype to avoid an error.
15390 Use char because int might match the return type of a GCC
15391 builtin and then its argument prototype would still apply. */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 char opendir ();
15397 main ()
15399 return opendir ();
15401 return 0;
15403 _ACEOF
15404 for ac_lib in '' dir; do
15405 if test -z "$ac_lib"; then
15406 ac_res="none required"
15407 else
15408 ac_res=-l$ac_lib
15409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 ac_cv_search_opendir=$ac_res
15414 rm -f core conftest.err conftest.$ac_objext \
15415 conftest$ac_exeext
15416 if ${ac_cv_search_opendir+:} false; then :
15417 break
15419 done
15420 if ${ac_cv_search_opendir+:} false; then :
15422 else
15423 ac_cv_search_opendir=no
15425 rm conftest.$ac_ext
15426 LIBS=$ac_func_search_save_LIBS
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15429 $as_echo "$ac_cv_search_opendir" >&6; }
15430 ac_res=$ac_cv_search_opendir
15431 if test "$ac_res" != no; then :
15432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15436 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15438 $as_echo_n "checking for library containing opendir... " >&6; }
15439 if ${ac_cv_search_opendir+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 ac_func_search_save_LIBS=$LIBS
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15449 #ifdef __cplusplus
15450 extern "C"
15451 #endif
15452 char opendir ();
15454 main ()
15456 return opendir ();
15458 return 0;
15460 _ACEOF
15461 for ac_lib in '' x; do
15462 if test -z "$ac_lib"; then
15463 ac_res="none required"
15464 else
15465 ac_res=-l$ac_lib
15466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15468 if ac_fn_c_try_link "$LINENO"; then :
15469 ac_cv_search_opendir=$ac_res
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext
15473 if ${ac_cv_search_opendir+:} false; then :
15474 break
15476 done
15477 if ${ac_cv_search_opendir+:} false; then :
15479 else
15480 ac_cv_search_opendir=no
15482 rm conftest.$ac_ext
15483 LIBS=$ac_func_search_save_LIBS
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15486 $as_echo "$ac_cv_search_opendir" >&6; }
15487 ac_res=$ac_cv_search_opendir
15488 if test "$ac_res" != no; then :
15489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15497 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
15498 #include <sys/types.h>
15499 #ifdef HAVE_DIRENT_H
15500 # include <dirent.h>
15501 #else
15502 # define dirent direct
15503 # ifdef HAVE_SYS_NDIR_H
15504 # include <sys/ndir.h>
15505 # endif
15506 # ifdef HAVE_SYS_DIR_H
15507 # include <sys/dir.h>
15508 # endif
15509 # ifdef HAVE_NDIR_H
15510 # include <ndir.h>
15511 # endif
15512 #endif
15515 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
15517 cat >>confdefs.h <<_ACEOF
15518 #define HAVE_STRUCT_DIRENT_D_TYPE 1
15519 _ACEOF
15526 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
15527 do :
15528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15529 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15530 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15531 cat >>confdefs.h <<_ACEOF
15532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533 _ACEOF
15536 done
15538 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15539 if test "x$ac_cv_type_off_t" = xyes; then :
15541 else
15543 cat >>confdefs.h <<_ACEOF
15544 #define off_t long int
15545 _ACEOF
15550 CFLAGS_hold="$CFLAGS"
15551 CFLAGS="$OSCFLAGS $CFLAGS"
15552 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "
15553 #include <sys/types.h>
15554 #include <fcntl.h>
15557 if test "x$ac_cv_type_loff_t" = xyes; then :
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_LOFF_T 1
15561 _ACEOF
15566 CFLAGS="$CFLAGS_hold"
15568 LIBS_hold="$LIBS"
15569 LIBS="$LIBS -lm"
15570 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15571 do :
15572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15577 _ACEOF
15580 done
15582 LIBS="$LIBS_hold"
15584 CFLAGS_hold="$CFLAGS"
15585 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15586 LIBS_hold="$LIBS"
15587 LIBS="$LIBS $PTHREAD_LIBS"
15588 for ac_func in sem_timedwait
15589 do :
15590 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15591 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_SEM_TIMEDWAIT 1
15594 _ACEOF
15597 done
15599 CFLAGS="$CFLAGS_hold"
15600 LIBS="$LIBS_hold"
15602 LIBS_hold="$LIBS"
15603 LIBS="$LIBS $MATH_LIBS"
15604 for ac_func in matherr
15605 do :
15606 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15607 if test "x$ac_cv_func_matherr" = xyes; then :
15608 cat >>confdefs.h <<_ACEOF
15609 #define HAVE_MATHERR 1
15610 _ACEOF
15613 done
15615 LIBS="$LIBS_hold"
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15618 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15619 if ${libgo_cv_c_stringops+:} false; then :
15620 $as_echo_n "(cached) " >&6
15621 else
15622 CFLAGS_hold=$CFLAGS
15623 CFLAGS="$CFLAGS -minline-all-stringops"
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 int i;
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"; then :
15629 libgo_cv_c_stringops=yes
15630 else
15631 libgo_cv_c_stringops=no
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 CFLAGS=$CFLAGS_hold
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15637 $as_echo "$libgo_cv_c_stringops" >&6; }
15638 STRINGOPS_FLAG=
15639 if test "$libgo_cv_c_stringops" = yes; then
15640 STRINGOPS_FLAG=-minline-all-stringops
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15645 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15646 if ${libgo_cv_c_fancymath+:} false; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 CFLAGS_hold=$CFLAGS
15650 CFLAGS="$CFLAGS -mfancy-math-387"
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 int i;
15654 _ACEOF
15655 if ac_fn_c_try_compile "$LINENO"; then :
15656 libgo_cv_c_fancymath=yes
15657 else
15658 libgo_cv_c_fancymath=no
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 CFLAGS=$CFLAGS_hold
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15664 $as_echo "$libgo_cv_c_fancymath" >&6; }
15665 MATH_FLAG=
15666 if test "$libgo_cv_c_fancymath" = yes; then
15667 MATH_FLAG="-mfancy-math-387"
15669 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15672 CFLAGS_hold=$CFLAGS
15673 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15674 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15675 if test "x$ac_cv_type_off64_t" = xyes; then :
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_OFF64_T 1
15679 _ACEOF
15684 CFLAGS=$CFLAGS_hold
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15687 $as_echo_n "checking epoll_event size... " >&6; }
15688 if ${libgo_cv_c_epoll_event_size+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15693 else
15694 libgo_cv_c_epoll_event_size=0
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15699 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15700 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15704 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15705 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15709 #include <sys/epoll.h>"; then :
15711 else
15712 libgo_cv_c_epoll_event_fd_offset=0
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15717 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15718 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 #include <sys/stat.h>
15725 _ACEOF
15726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15727 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15728 have_stat_timespec=yes
15729 else
15730 have_stat_timespec=no
15732 rm -f conftest*
15734 if test $have_stat_timespec = yes; then
15735 HAVE_STAT_TIMESPEC_TRUE=
15736 HAVE_STAT_TIMESPEC_FALSE='#'
15737 else
15738 HAVE_STAT_TIMESPEC_TRUE='#'
15739 HAVE_STAT_TIMESPEC_FALSE=
15743 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15745 if test "x$ac_cv_type_struct_exception" = xyes; then :
15746 libgo_has_struct_exception=yes
15747 else
15748 libgo_has_struct_exception=no
15751 if test "$libgo_has_struct_exception" = "yes"; then
15753 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15758 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15759 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 CFLAGS_hold="$CFLAGS"
15763 CFLAGS="$PTHREAD_CFLAGS"
15764 LIBS_hold="$LIBS"
15765 LIBS="$LIBS $PTHREAD_LIBS"
15766 # The cast to long int works around a bug in the HP C Compiler
15767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15769 # This bug is HP SR number 8606223364.
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15771 $as_echo_n "checking size of void *... " >&6; }
15772 if ${ac_cv_sizeof_void_p+:} false; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15777 else
15778 if test "$ac_cv_type_void_p" = yes; then
15779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15781 as_fn_error 77 "cannot compute sizeof (void *)
15782 See \`config.log' for more details" "$LINENO" 5; }
15783 else
15784 ac_cv_sizeof_void_p=0
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15790 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15794 cat >>confdefs.h <<_ACEOF
15795 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15796 _ACEOF
15799 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15800 if test "$cross_compiling" = yes; then :
15801 case "$target:$ptr_type_size" in
15802 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15803 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15805 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15806 esac
15808 else
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15812 #include <pthread.h>
15813 #include <stdlib.h>
15814 #include <ucontext.h>
15815 #include <unistd.h>
15817 __thread int tls;
15819 static char stack[10 * 1024 * 1024];
15820 static ucontext_t c;
15822 /* Called via makecontext/setcontext. */
15824 static void
15825 cfn (void)
15827 exit (tls);
15830 /* Called via pthread_create. */
15832 static void *
15833 tfn (void *dummy)
15835 /* The thread should still see this value after calling
15836 setcontext. */
15837 tls = 0;
15839 setcontext (&c);
15841 /* The call to setcontext should not return. */
15842 abort ();
15846 main ()
15848 pthread_t tid;
15850 /* The thread should not see this value. */
15851 tls = 1;
15853 if (getcontext (&c) < 0)
15854 abort ();
15856 c.uc_stack.ss_sp = stack;
15857 #ifdef MAKECONTEXT_STACK_TOP
15858 c.uc_stack.ss_sp += sizeof stack;
15859 #endif
15860 c.uc_stack.ss_flags = 0;
15861 c.uc_stack.ss_size = sizeof stack;
15862 c.uc_link = NULL;
15863 makecontext (&c, cfn, 0);
15865 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15866 abort ();
15868 if (pthread_join (tid, NULL) != 0)
15869 abort ();
15871 /* The thread should have called exit. */
15872 abort ();
15875 _ACEOF
15876 if ac_fn_c_try_run "$LINENO"; then :
15877 libgo_cv_lib_setcontext_clobbers_tls=no
15878 else
15879 libgo_cv_lib_setcontext_clobbers_tls=yes
15881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15882 conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 CFLAGS="$CFLAGS_hold"
15886 LIBS="$LIBS_hold"
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15890 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15891 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15893 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15898 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15899 if ${libgo_cv_ro_eh_frame+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15903 libgo_cv_ro_eh_frame=no
15904 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15905 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15906 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15907 libgo_cv_ro_eh_frame=yes
15908 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15909 | grep -v '#write' > /dev/null; then
15910 libgo_cv_ro_eh_frame=yes
15913 rm -f conftest.*
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15917 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15918 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15920 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15922 else
15924 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15929 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15930 if ${libgo_cv_c_unused_arguments+:} false; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 CFLAGS_hold=$CFLAGS
15934 CFLAGS="$CFLAGS -Qunused-arguments"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 int i;
15938 _ACEOF
15939 if ac_fn_c_try_compile "$LINENO"; then :
15940 libgo_cv_c_unused_arguments=yes
15941 else
15942 libgo_cv_c_unused_arguments=no
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 CFLAGS=$CFLAGS_hold
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15948 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15951 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15952 if ${libgo_cv_as_comdat_gnu+:} false; then :
15953 $as_echo_n "(cached) " >&6
15954 else
15956 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15957 CFLAGS_hold=$CFLAGS
15958 if test "$libgo_cv_c_unused_arguments" = yes; then
15959 CFLAGS="$CFLAGS -Qunused-arguments"
15961 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15962 libgo_cv_as_comdat_gnu=yes
15963 else
15964 libgo_cv_as_comdat_gnu=no
15966 CFLAGS=$CFLAGS_hold
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15970 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15971 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15973 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15978 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15979 if ${libgo_cv_as_x86_pcrel+:} false; then :
15980 $as_echo_n "(cached) " >&6
15981 else
15983 libgo_cv_as_x86_pcrel=yes
15984 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15985 CFLAGS_hold=$CFLAGS
15986 if test "$libgo_cv_c_unused_arguments" = yes; then
15987 CFLAGS="$CFLAGS -Qunused-arguments"
15989 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15990 libgo_cv_as_x86_pcrel=no
15992 CFLAGS=$CFLAGS_hold
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15996 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15997 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15999 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
16004 $as_echo_n "checking assembler supports unwind section type... " >&6; }
16005 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16009 libgo_cv_as_x86_64_unwind_section_type=yes
16010 echo '.section .eh_frame,"a",@unwind' > conftest.s
16011 CFLAGS_hold=$CFLAGS
16012 if test "$libgo_cv_c_unused_arguments" = yes; then
16013 CFLAGS="$CFLAGS -Qunused-arguments"
16015 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
16016 libgo_cv_as_x86_64_unwind_section_type=no
16018 CFLAGS=$CFLAGS_hold
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
16022 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
16023 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
16025 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
16030 $as_echo_n "checking assembler supports AES instructions... " >&6; }
16031 if ${libgo_cv_as_x86_aes+:} false; then :
16032 $as_echo_n "(cached) " >&6
16033 else
16035 libgo_cv_as_x86_aes=yes
16036 echo 'aesenc %xmm0, %xmm1' > conftest.s
16037 CFLAGS_hold=$CFLAGS
16038 if test "$libgo_cv_c_unused_arguments" = yes; then
16039 CFLAGS="$CFLAGS -Qunused-arguments"
16041 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
16042 libgo_cv_as_x86_aes=no
16044 CFLAGS=$CFLAGS_hold
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
16048 $as_echo "$libgo_cv_as_x86_aes" >&6; }
16049 if test "x$libgo_cv_as_x86_aes" = xyes; then
16051 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
16056 $as_echo_n "checking whether -static is supported... " >&6; }
16057 if ${libgo_cv_ld_static+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 LDFLAGS_hold=$LDFLAGS
16061 LDFLAGS="$LDFLAGS -static"
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16066 main ()
16070 return 0;
16072 _ACEOF
16073 if ac_fn_c_try_link "$LINENO"; then :
16074 libgo_cv_ld_static=yes
16075 else
16076 libgo_cv_ld_static=no
16078 rm -f core conftest.err conftest.$ac_objext \
16079 conftest$ac_exeext conftest.$ac_ext
16080 LDFLAGS=$LDFLAGS_hold
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
16083 $as_echo "$libgo_cv_ld_static" >&6; }
16084 if test "$libgo_cv_ld_static" = yes; then
16085 HAVE_STATIC_LINK_TRUE=
16086 HAVE_STATIC_LINK_FALSE='#'
16087 else
16088 HAVE_STATIC_LINK_TRUE='#'
16089 HAVE_STATIC_LINK_FALSE=
16093 cat >confcache <<\_ACEOF
16094 # This file is a shell script that caches the results of configure
16095 # tests run on this system so they can be shared between configure
16096 # scripts and configure runs, see configure's option --config-cache.
16097 # It is not useful on other systems. If it contains results you don't
16098 # want to keep, you may remove or edit it.
16100 # config.status only pays attention to the cache file if you give it
16101 # the --recheck option to rerun configure.
16103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16105 # following values.
16107 _ACEOF
16109 # The following way of writing the cache mishandles newlines in values,
16110 # but we know of no workaround that is simple, portable, and efficient.
16111 # So, we kill variables containing newlines.
16112 # Ultrix sh set writes to stderr and can't be redirected directly,
16113 # and sets the high bit in the cache file unless we assign to the vars.
16115 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16116 eval ac_val=\$$ac_var
16117 case $ac_val in #(
16118 *${as_nl}*)
16119 case $ac_var in #(
16120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16122 esac
16123 case $ac_var in #(
16124 _ | IFS | as_nl) ;; #(
16125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16126 *) { eval $ac_var=; unset $ac_var;} ;;
16127 esac ;;
16128 esac
16129 done
16131 (set) 2>&1 |
16132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16133 *${as_nl}ac_space=\ *)
16134 # `set' does not quote correctly, so add quotes: double-quote
16135 # substitution turns \\\\ into \\, and sed turns \\ into \.
16136 sed -n \
16137 "s/'/'\\\\''/g;
16138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16139 ;; #(
16141 # `set' quotes correctly as required by POSIX, so do not add quotes.
16142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16144 esac |
16145 sort
16147 sed '
16148 /^ac_cv_env_/b end
16149 t clear
16150 :clear
16151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16152 t end
16153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16154 :end' >>confcache
16155 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16156 if test -w "$cache_file"; then
16157 if test "x$cache_file" != "x/dev/null"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16159 $as_echo "$as_me: updating cache $cache_file" >&6;}
16160 if test ! -f "$cache_file" || test -h "$cache_file"; then
16161 cat confcache >"$cache_file"
16162 else
16163 case $cache_file in #(
16164 */* | ?:*)
16165 mv -f confcache "$cache_file"$$ &&
16166 mv -f "$cache_file"$$ "$cache_file" ;; #(
16168 mv -f confcache "$cache_file" ;;
16169 esac
16172 else
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16177 rm -f confcache
16179 if test ${multilib} = yes; then
16180 multilib_arg="--enable-multilib"
16181 else
16182 multilib_arg=
16185 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
16188 ac_config_commands="$ac_config_commands default"
16191 cat >confcache <<\_ACEOF
16192 # This file is a shell script that caches the results of configure
16193 # tests run on this system so they can be shared between configure
16194 # scripts and configure runs, see configure's option --config-cache.
16195 # It is not useful on other systems. If it contains results you don't
16196 # want to keep, you may remove or edit it.
16198 # config.status only pays attention to the cache file if you give it
16199 # the --recheck option to rerun configure.
16201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16203 # following values.
16205 _ACEOF
16207 # The following way of writing the cache mishandles newlines in values,
16208 # but we know of no workaround that is simple, portable, and efficient.
16209 # So, we kill variables containing newlines.
16210 # Ultrix sh set writes to stderr and can't be redirected directly,
16211 # and sets the high bit in the cache file unless we assign to the vars.
16213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16214 eval ac_val=\$$ac_var
16215 case $ac_val in #(
16216 *${as_nl}*)
16217 case $ac_var in #(
16218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16220 esac
16221 case $ac_var in #(
16222 _ | IFS | as_nl) ;; #(
16223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16224 *) { eval $ac_var=; unset $ac_var;} ;;
16225 esac ;;
16226 esac
16227 done
16229 (set) 2>&1 |
16230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16231 *${as_nl}ac_space=\ *)
16232 # `set' does not quote correctly, so add quotes: double-quote
16233 # substitution turns \\\\ into \\, and sed turns \\ into \.
16234 sed -n \
16235 "s/'/'\\\\''/g;
16236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16237 ;; #(
16239 # `set' quotes correctly as required by POSIX, so do not add quotes.
16240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16242 esac |
16243 sort
16245 sed '
16246 /^ac_cv_env_/b end
16247 t clear
16248 :clear
16249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16250 t end
16251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16252 :end' >>confcache
16253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16254 if test -w "$cache_file"; then
16255 if test "x$cache_file" != "x/dev/null"; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16257 $as_echo "$as_me: updating cache $cache_file" >&6;}
16258 if test ! -f "$cache_file" || test -h "$cache_file"; then
16259 cat confcache >"$cache_file"
16260 else
16261 case $cache_file in #(
16262 */* | ?:*)
16263 mv -f confcache "$cache_file"$$ &&
16264 mv -f "$cache_file"$$ "$cache_file" ;; #(
16266 mv -f confcache "$cache_file" ;;
16267 esac
16270 else
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16275 rm -f confcache
16277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16278 # Let make expand exec_prefix.
16279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16281 DEFS=-DHAVE_CONFIG_H
16283 ac_libobjs=
16284 ac_ltlibobjs=
16286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16287 # 1. Remove the extension, and $U if already installed.
16288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16291 # will be set to the directory where LIBOBJS objects are built.
16292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16294 done
16295 LIBOBJS=$ac_libobjs
16297 LTLIBOBJS=$ac_ltlibobjs
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16301 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16302 if test -n "$am_sleep_pid"; then
16303 # Hide warnings about reused PIDs.
16304 wait $am_sleep_pid 2>/dev/null
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16307 $as_echo "done" >&6; }
16308 if test -n "$EXEEXT"; then
16309 am__EXEEXT_TRUE=
16310 am__EXEEXT_FALSE='#'
16311 else
16312 am__EXEEXT_TRUE='#'
16313 am__EXEEXT_FALSE=
16316 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16317 as_fn_error $? "conditional \"AMDEP\" was never defined.
16318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16320 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16321 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16324 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16325 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16328 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16329 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16332 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16333 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
16334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16336 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16337 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
16338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16340 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16341 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
16342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16344 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16345 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
16346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16348 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16349 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
16350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16352 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16353 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
16354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16356 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16357 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
16358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16360 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16361 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16364 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16365 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16368 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16369 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
16370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16372 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16373 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16376 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16377 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16381 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16384 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16385 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16389 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16393 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16398 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
16399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16402 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
16403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16405 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16406 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
16407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16409 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16410 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16414 as_fn_error $? "conditional \"HAVE_STATIC_LINK\" was never defined.
16415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 : "${CONFIG_STATUS=./config.status}"
16419 ac_write_fail=0
16420 ac_clean_files_save=$ac_clean_files
16421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16423 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16424 as_write_fail=0
16425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16426 #! $SHELL
16427 # Generated by $as_me.
16428 # Run this file to recreate the current configuration.
16429 # Compiler output produced by configure, useful for debugging
16430 # configure, is in config.log if it exists.
16432 debug=false
16433 ac_cs_recheck=false
16434 ac_cs_silent=false
16436 SHELL=\${CONFIG_SHELL-$SHELL}
16437 export SHELL
16438 _ASEOF
16439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16440 ## -------------------- ##
16441 ## M4sh Initialization. ##
16442 ## -------------------- ##
16444 # Be more Bourne compatible
16445 DUALCASE=1; export DUALCASE # for MKS sh
16446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16447 emulate sh
16448 NULLCMD=:
16449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16450 # is contrary to our usage. Disable this feature.
16451 alias -g '${1+"$@"}'='"$@"'
16452 setopt NO_GLOB_SUBST
16453 else
16454 case `(set -o) 2>/dev/null` in #(
16455 *posix*) :
16456 set -o posix ;; #(
16457 *) :
16459 esac
16463 as_nl='
16465 export as_nl
16466 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16467 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16470 # Prefer a ksh shell builtin over an external printf program on Solaris,
16471 # but without wasting forks for bash or zsh.
16472 if test -z "$BASH_VERSION$ZSH_VERSION" \
16473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16474 as_echo='print -r --'
16475 as_echo_n='print -rn --'
16476 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16477 as_echo='printf %s\n'
16478 as_echo_n='printf %s'
16479 else
16480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16482 as_echo_n='/usr/ucb/echo -n'
16483 else
16484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16485 as_echo_n_body='eval
16486 arg=$1;
16487 case $arg in #(
16488 *"$as_nl"*)
16489 expr "X$arg" : "X\\(.*\\)$as_nl";
16490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16491 esac;
16492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16494 export as_echo_n_body
16495 as_echo_n='sh -c $as_echo_n_body as_echo'
16497 export as_echo_body
16498 as_echo='sh -c $as_echo_body as_echo'
16501 # The user is always right.
16502 if test "${PATH_SEPARATOR+set}" != set; then
16503 PATH_SEPARATOR=:
16504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16506 PATH_SEPARATOR=';'
16511 # IFS
16512 # We need space, tab and new line, in precisely that order. Quoting is
16513 # there to prevent editors from complaining about space-tab.
16514 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16515 # splitting by setting IFS to empty value.)
16516 IFS=" "" $as_nl"
16518 # Find who we are. Look in the path if we contain no directory separator.
16519 as_myself=
16520 case $0 in #((
16521 *[\\/]* ) as_myself=$0 ;;
16522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16523 for as_dir in $PATH
16525 IFS=$as_save_IFS
16526 test -z "$as_dir" && as_dir=.
16527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16528 done
16529 IFS=$as_save_IFS
16532 esac
16533 # We did not find ourselves, most probably we were run as `sh COMMAND'
16534 # in which case we are not to be found in the path.
16535 if test "x$as_myself" = x; then
16536 as_myself=$0
16538 if test ! -f "$as_myself"; then
16539 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16540 exit 1
16543 # Unset variables that we do not need and which cause bugs (e.g. in
16544 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16545 # suppresses any "Segmentation fault" message there. '((' could
16546 # trigger a bug in pdksh 5.2.14.
16547 for as_var in BASH_ENV ENV MAIL MAILPATH
16548 do eval test x\${$as_var+set} = xset \
16549 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16550 done
16551 PS1='$ '
16552 PS2='> '
16553 PS4='+ '
16555 # NLS nuisances.
16556 LC_ALL=C
16557 export LC_ALL
16558 LANGUAGE=C
16559 export LANGUAGE
16561 # CDPATH.
16562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16565 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16566 # ----------------------------------------
16567 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16568 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16569 # script with STATUS, using 1 if that was 0.
16570 as_fn_error ()
16572 as_status=$1; test $as_status -eq 0 && as_status=1
16573 if test "$4"; then
16574 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16575 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16577 $as_echo "$as_me: error: $2" >&2
16578 as_fn_exit $as_status
16579 } # as_fn_error
16582 # as_fn_set_status STATUS
16583 # -----------------------
16584 # Set $? to STATUS, without forking.
16585 as_fn_set_status ()
16587 return $1
16588 } # as_fn_set_status
16590 # as_fn_exit STATUS
16591 # -----------------
16592 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16593 as_fn_exit ()
16595 set +e
16596 as_fn_set_status $1
16597 exit $1
16598 } # as_fn_exit
16600 # as_fn_unset VAR
16601 # ---------------
16602 # Portably unset VAR.
16603 as_fn_unset ()
16605 { eval $1=; unset $1;}
16607 as_unset=as_fn_unset
16608 # as_fn_append VAR VALUE
16609 # ----------------------
16610 # Append the text in VALUE to the end of the definition contained in VAR. Take
16611 # advantage of any shell optimizations that allow amortized linear growth over
16612 # repeated appends, instead of the typical quadratic growth present in naive
16613 # implementations.
16614 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16615 eval 'as_fn_append ()
16617 eval $1+=\$2
16619 else
16620 as_fn_append ()
16622 eval $1=\$$1\$2
16624 fi # as_fn_append
16626 # as_fn_arith ARG...
16627 # ------------------
16628 # Perform arithmetic evaluation on the ARGs, and store the result in the
16629 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16630 # must be portable across $(()) and expr.
16631 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16632 eval 'as_fn_arith ()
16634 as_val=$(( $* ))
16636 else
16637 as_fn_arith ()
16639 as_val=`expr "$@" || test $? -eq 1`
16641 fi # as_fn_arith
16644 if expr a : '\(a\)' >/dev/null 2>&1 &&
16645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16646 as_expr=expr
16647 else
16648 as_expr=false
16651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16652 as_basename=basename
16653 else
16654 as_basename=false
16657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16658 as_dirname=dirname
16659 else
16660 as_dirname=false
16663 as_me=`$as_basename -- "$0" ||
16664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16665 X"$0" : 'X\(//\)$' \| \
16666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16667 $as_echo X/"$0" |
16668 sed '/^.*\/\([^/][^/]*\)\/*$/{
16669 s//\1/
16672 /^X\/\(\/\/\)$/{
16673 s//\1/
16676 /^X\/\(\/\).*/{
16677 s//\1/
16680 s/.*/./; q'`
16682 # Avoid depending upon Character Ranges.
16683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16686 as_cr_digits='0123456789'
16687 as_cr_alnum=$as_cr_Letters$as_cr_digits
16689 ECHO_C= ECHO_N= ECHO_T=
16690 case `echo -n x` in #(((((
16691 -n*)
16692 case `echo 'xy\c'` in
16693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16694 xy) ECHO_C='\c';;
16695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16696 ECHO_T=' ';;
16697 esac;;
16699 ECHO_N='-n';;
16700 esac
16702 rm -f conf$$ conf$$.exe conf$$.file
16703 if test -d conf$$.dir; then
16704 rm -f conf$$.dir/conf$$.file
16705 else
16706 rm -f conf$$.dir
16707 mkdir conf$$.dir 2>/dev/null
16709 if (echo >conf$$.file) 2>/dev/null; then
16710 if ln -s conf$$.file conf$$ 2>/dev/null; then
16711 as_ln_s='ln -s'
16712 # ... but there are two gotchas:
16713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16715 # In both cases, we have to default to `cp -pR'.
16716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16717 as_ln_s='cp -pR'
16718 elif ln conf$$.file conf$$ 2>/dev/null; then
16719 as_ln_s=ln
16720 else
16721 as_ln_s='cp -pR'
16723 else
16724 as_ln_s='cp -pR'
16726 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16727 rmdir conf$$.dir 2>/dev/null
16730 # as_fn_mkdir_p
16731 # -------------
16732 # Create "$as_dir" as a directory, including parents if necessary.
16733 as_fn_mkdir_p ()
16736 case $as_dir in #(
16737 -*) as_dir=./$as_dir;;
16738 esac
16739 test -d "$as_dir" || eval $as_mkdir_p || {
16740 as_dirs=
16741 while :; do
16742 case $as_dir in #(
16743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16744 *) as_qdir=$as_dir;;
16745 esac
16746 as_dirs="'$as_qdir' $as_dirs"
16747 as_dir=`$as_dirname -- "$as_dir" ||
16748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16749 X"$as_dir" : 'X\(//\)[^/]' \| \
16750 X"$as_dir" : 'X\(//\)$' \| \
16751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16752 $as_echo X"$as_dir" |
16753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16754 s//\1/
16757 /^X\(\/\/\)[^/].*/{
16758 s//\1/
16761 /^X\(\/\/\)$/{
16762 s//\1/
16765 /^X\(\/\).*/{
16766 s//\1/
16769 s/.*/./; q'`
16770 test -d "$as_dir" && break
16771 done
16772 test -z "$as_dirs" || eval "mkdir $as_dirs"
16773 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16776 } # as_fn_mkdir_p
16777 if mkdir -p . 2>/dev/null; then
16778 as_mkdir_p='mkdir -p "$as_dir"'
16779 else
16780 test -d ./-p && rmdir ./-p
16781 as_mkdir_p=false
16785 # as_fn_executable_p FILE
16786 # -----------------------
16787 # Test if FILE is an executable regular file.
16788 as_fn_executable_p ()
16790 test -f "$1" && test -x "$1"
16791 } # as_fn_executable_p
16792 as_test_x='test -x'
16793 as_executable_p=as_fn_executable_p
16795 # Sed expression to map a string onto a valid CPP name.
16796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16798 # Sed expression to map a string onto a valid variable name.
16799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16802 exec 6>&1
16803 ## ----------------------------------- ##
16804 ## Main body of $CONFIG_STATUS script. ##
16805 ## ----------------------------------- ##
16806 _ASEOF
16807 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810 # Save the log message, to keep $0 and so on meaningful, and to
16811 # report actual input values of CONFIG_FILES etc. instead of their
16812 # values after options handling.
16813 ac_log="
16814 This file was extended by package-unused $as_me version-unused, which was
16815 generated by GNU Autoconf 2.69. Invocation command line was
16817 CONFIG_FILES = $CONFIG_FILES
16818 CONFIG_HEADERS = $CONFIG_HEADERS
16819 CONFIG_LINKS = $CONFIG_LINKS
16820 CONFIG_COMMANDS = $CONFIG_COMMANDS
16821 $ $0 $@
16823 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16826 _ACEOF
16828 case $ac_config_files in *"
16829 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16830 esac
16832 case $ac_config_headers in *"
16833 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16834 esac
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838 # Files that config.status was made for.
16839 config_files="$ac_config_files"
16840 config_headers="$ac_config_headers"
16841 config_commands="$ac_config_commands"
16843 _ACEOF
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16846 ac_cs_usage="\
16847 \`$as_me' instantiates files and other configuration actions
16848 from templates according to the current configuration. Unless the files
16849 and actions are specified as TAGs, all are instantiated by default.
16851 Usage: $0 [OPTION]... [TAG]...
16853 -h, --help print this help, then exit
16854 -V, --version print version number and configuration settings, then exit
16855 --config print configuration, then exit
16856 -q, --quiet, --silent
16857 do not print progress messages
16858 -d, --debug don't remove temporary files
16859 --recheck update $as_me by reconfiguring in the same conditions
16860 --file=FILE[:TEMPLATE]
16861 instantiate the configuration file FILE
16862 --header=FILE[:TEMPLATE]
16863 instantiate the configuration header FILE
16865 Configuration files:
16866 $config_files
16868 Configuration headers:
16869 $config_headers
16871 Configuration commands:
16872 $config_commands
16874 Report bugs to the package provider."
16876 _ACEOF
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16879 ac_cs_version="\\
16880 package-unused config.status version-unused
16881 configured by $0, generated by GNU Autoconf 2.69,
16882 with options \\"\$ac_cs_config\\"
16884 Copyright (C) 2012 Free Software Foundation, Inc.
16885 This config.status script is free software; the Free Software Foundation
16886 gives unlimited permission to copy, distribute and modify it."
16888 ac_pwd='$ac_pwd'
16889 srcdir='$srcdir'
16890 INSTALL='$INSTALL'
16891 MKDIR_P='$MKDIR_P'
16892 AWK='$AWK'
16893 test -n "\$AWK" || AWK=awk
16894 _ACEOF
16896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16897 # The default lists apply if the user does not specify any file.
16898 ac_need_defaults=:
16899 while test $# != 0
16901 case $1 in
16902 --*=?*)
16903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16905 ac_shift=:
16907 --*=)
16908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16909 ac_optarg=
16910 ac_shift=:
16913 ac_option=$1
16914 ac_optarg=$2
16915 ac_shift=shift
16917 esac
16919 case $ac_option in
16920 # Handling of the options.
16921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16922 ac_cs_recheck=: ;;
16923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16924 $as_echo "$ac_cs_version"; exit ;;
16925 --config | --confi | --conf | --con | --co | --c )
16926 $as_echo "$ac_cs_config"; exit ;;
16927 --debug | --debu | --deb | --de | --d | -d )
16928 debug=: ;;
16929 --file | --fil | --fi | --f )
16930 $ac_shift
16931 case $ac_optarg in
16932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16933 '') as_fn_error $? "missing file argument" ;;
16934 esac
16935 as_fn_append CONFIG_FILES " '$ac_optarg'"
16936 ac_need_defaults=false;;
16937 --header | --heade | --head | --hea )
16938 $ac_shift
16939 case $ac_optarg in
16940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16941 esac
16942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16943 ac_need_defaults=false;;
16944 --he | --h)
16945 # Conflict between --help and --header
16946 as_fn_error $? "ambiguous option: \`$1'
16947 Try \`$0 --help' for more information.";;
16948 --help | --hel | -h )
16949 $as_echo "$ac_cs_usage"; exit ;;
16950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16952 ac_cs_silent=: ;;
16954 # This is an error.
16955 -*) as_fn_error $? "unrecognized option: \`$1'
16956 Try \`$0 --help' for more information." ;;
16958 *) as_fn_append ac_config_targets " $1"
16959 ac_need_defaults=false ;;
16961 esac
16962 shift
16963 done
16965 ac_configure_extra_args=
16967 if $ac_cs_silent; then
16968 exec 6>/dev/null
16969 ac_configure_extra_args="$ac_configure_extra_args --silent"
16972 _ACEOF
16973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16974 if \$ac_cs_recheck; then
16975 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16976 shift
16977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16978 CONFIG_SHELL='$SHELL'
16979 export CONFIG_SHELL
16980 exec "\$@"
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16985 exec 5>>config.log
16987 echo
16988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16989 ## Running $as_me. ##
16990 _ASBOX
16991 $as_echo "$ac_log"
16992 } >&5
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16997 # INIT-COMMANDS
17000 srcdir="$srcdir"
17001 host="$host"
17002 target="$target"
17003 with_multisubdir="$with_multisubdir"
17004 with_multisrctop="$with_multisrctop"
17005 with_target_subdir="$with_target_subdir"
17006 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17007 multi_basedir="$multi_basedir"
17008 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17009 CC="$CC"
17010 CXX="$CXX"
17011 GFORTRAN="$GFORTRAN"
17012 GDC="$GDC"
17013 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17016 # The HP-UX ksh and POSIX shell print the target directory to stdout
17017 # if CDPATH is set.
17018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17020 sed_quote_subst='$sed_quote_subst'
17021 double_quote_subst='$double_quote_subst'
17022 delay_variable_subst='$delay_variable_subst'
17023 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17024 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17025 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17026 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17027 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17028 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17029 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17030 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17031 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17032 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17033 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17035 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17036 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17037 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17038 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17039 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17040 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17041 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17042 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17043 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17044 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17045 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17046 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17047 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17048 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17049 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17050 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17051 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17052 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17053 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17054 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17055 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17056 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17057 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17058 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17059 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17060 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17061 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17062 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17063 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17064 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17065 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17066 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17067 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17068 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17069 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17070 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17071 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"`'
17072 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17073 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17074 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17075 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17076 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17077 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17078 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17079 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17080 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17081 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17082 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17083 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17084 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17085 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17086 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17087 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17088 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17089 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17090 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17091 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17092 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17093 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17094 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17095 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17096 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17097 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17098 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17099 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17100 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17101 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17102 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17103 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17104 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17105 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17106 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17107 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17108 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17109 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17110 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17111 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17112 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17113 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17114 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17115 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17116 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17117 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17118 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17119 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17120 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17121 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17122 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17123 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17124 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17125 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17126 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17127 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17128 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17129 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17130 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17131 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17132 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17133 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17134 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17135 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17136 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17137 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17138 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17139 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17140 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17141 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17142 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17143 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
17144 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
17145 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
17146 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17147 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
17148 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
17149 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
17150 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
17151 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
17152 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
17153 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
17154 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
17155 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
17156 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17157 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17158 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
17159 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
17160 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
17161 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17162 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17163 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
17164 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17165 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
17166 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17167 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17168 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17169 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
17170 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
17171 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
17172 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
17173 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
17174 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
17175 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
17176 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
17177 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
17178 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
17179 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
17180 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
17181 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17182 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17183 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
17184 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
17185 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
17187 LTCC='$LTCC'
17188 LTCFLAGS='$LTCFLAGS'
17189 compiler='$compiler_DEFAULT'
17191 # A function that is used when there is no print builtin or printf.
17192 func_fallback_echo ()
17194 eval 'cat <<_LTECHO_EOF
17196 _LTECHO_EOF'
17199 # Quote evaled strings.
17200 for var in SED \
17201 GREP \
17202 EGREP \
17203 FGREP \
17204 SHELL \
17205 ECHO \
17206 LD \
17207 NM \
17208 LN_S \
17209 lt_SP2NL \
17210 lt_NL2SP \
17211 reload_flag \
17212 OBJDUMP \
17213 deplibs_check_method \
17214 file_magic_cmd \
17215 AR \
17216 AR_FLAGS \
17217 STRIP \
17218 RANLIB \
17219 CC \
17220 CFLAGS \
17221 compiler \
17222 lt_cv_sys_global_symbol_pipe \
17223 lt_cv_sys_global_symbol_to_cdecl \
17224 lt_cv_sys_global_symbol_to_c_name_address \
17225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17226 lt_prog_compiler_no_builtin_flag \
17227 lt_prog_compiler_wl \
17228 lt_prog_compiler_pic \
17229 lt_prog_compiler_static \
17230 lt_cv_prog_compiler_c_o \
17231 need_locks \
17232 DSYMUTIL \
17233 NMEDIT \
17234 LIPO \
17235 OTOOL \
17236 OTOOL64 \
17237 shrext_cmds \
17238 export_dynamic_flag_spec \
17239 whole_archive_flag_spec \
17240 compiler_needs_object \
17241 with_gnu_ld \
17242 allow_undefined_flag \
17243 no_undefined_flag \
17244 hardcode_libdir_flag_spec \
17245 hardcode_libdir_flag_spec_ld \
17246 hardcode_libdir_separator \
17247 fix_srcfile_path \
17248 exclude_expsyms \
17249 include_expsyms \
17250 file_list_spec \
17251 variables_saved_for_relink \
17252 libname_spec \
17253 library_names_spec \
17254 soname_spec \
17255 install_override_mode \
17256 finish_eval \
17257 old_striplib \
17258 striplib \
17259 LD_GO \
17260 reload_flag_GO \
17261 compiler_GO \
17262 lt_prog_compiler_no_builtin_flag_GO \
17263 lt_prog_compiler_wl_GO \
17264 lt_prog_compiler_pic_GO \
17265 lt_prog_compiler_static_GO \
17266 lt_cv_prog_compiler_c_o_GO \
17267 export_dynamic_flag_spec_GO \
17268 whole_archive_flag_spec_GO \
17269 compiler_needs_object_GO \
17270 with_gnu_ld_GO \
17271 allow_undefined_flag_GO \
17272 no_undefined_flag_GO \
17273 hardcode_libdir_flag_spec_GO \
17274 hardcode_libdir_flag_spec_ld_GO \
17275 hardcode_libdir_separator_GO \
17276 fix_srcfile_path_GO \
17277 exclude_expsyms_GO \
17278 include_expsyms_GO \
17279 file_list_spec_GO; do
17280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17281 *[\\\\\\\`\\"\\\$]*)
17282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17287 esac
17288 done
17290 # Double-quote double-evaled strings.
17291 for var in reload_cmds \
17292 old_postinstall_cmds \
17293 old_postuninstall_cmds \
17294 old_archive_cmds \
17295 extract_expsyms_cmds \
17296 old_archive_from_new_cmds \
17297 old_archive_from_expsyms_cmds \
17298 archive_cmds \
17299 archive_expsym_cmds \
17300 module_cmds \
17301 module_expsym_cmds \
17302 export_symbols_cmds \
17303 prelink_cmds \
17304 postinstall_cmds \
17305 postuninstall_cmds \
17306 finish_cmds \
17307 sys_lib_search_path_spec \
17308 sys_lib_dlsearch_path_spec \
17309 reload_cmds_GO \
17310 old_archive_cmds_GO \
17311 old_archive_from_new_cmds_GO \
17312 old_archive_from_expsyms_cmds_GO \
17313 archive_cmds_GO \
17314 archive_expsym_cmds_GO \
17315 module_cmds_GO \
17316 module_expsym_cmds_GO \
17317 export_symbols_cmds_GO \
17318 prelink_cmds_GO; do
17319 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17320 *[\\\\\\\`\\"\\\$]*)
17321 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17324 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17326 esac
17327 done
17329 ac_aux_dir='$ac_aux_dir'
17330 xsi_shell='$xsi_shell'
17331 lt_shell_append='$lt_shell_append'
17333 # See if we are running on zsh, and set the options which allow our
17334 # commands through without removal of \ escapes INIT.
17335 if test -n "\${ZSH_VERSION+set}" ; then
17336 setopt NO_GLOB_SUBST
17340 PACKAGE='$PACKAGE'
17341 VERSION='$VERSION'
17342 TIMESTAMP='$TIMESTAMP'
17343 RM='$RM'
17344 ofile='$ofile'
17351 # Variables needed in config.status (file generation) which aren't already
17352 # passed by autoconf.
17353 SUBDIRS="$SUBDIRS"
17356 _ACEOF
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17360 # Handling of arguments.
17361 for ac_config_target in $ac_config_targets
17363 case $ac_config_target in
17364 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17365 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17366 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17367 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17369 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17370 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17371 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17374 esac
17375 done
17378 # If the user did not use the arguments to specify the items to instantiate,
17379 # then the envvar interface is used. Set only those that are not.
17380 # We use the long form for the default assignment because of an extremely
17381 # bizarre bug on SunOS 4.1.3.
17382 if $ac_need_defaults; then
17383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17388 # Have a temporary directory for convenience. Make it in the build tree
17389 # simply because there is no reason against having it here, and in addition,
17390 # creating and moving files from /tmp can sometimes cause problems.
17391 # Hook for its removal unless debugging.
17392 # Note that there is a small window in which the directory will not be cleaned:
17393 # after its creation but before its name has been assigned to `$tmp'.
17394 $debug ||
17396 tmp= ac_tmp=
17397 trap 'exit_status=$?
17398 : "${ac_tmp:=$tmp}"
17399 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17401 trap 'as_fn_exit 1' 1 2 13 15
17403 # Create a (secure) tmp directory for tmp files.
17406 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17407 test -d "$tmp"
17408 } ||
17410 tmp=./conf$$-$RANDOM
17411 (umask 077 && mkdir "$tmp")
17412 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17413 ac_tmp=$tmp
17415 # Set up the scripts for CONFIG_FILES section.
17416 # No need to generate them if there are no CONFIG_FILES.
17417 # This happens for instance with `./config.status config.h'.
17418 if test -n "$CONFIG_FILES"; then
17421 ac_cr=`echo X | tr X '\015'`
17422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17423 # But we know of no other shell where ac_cr would be empty at this
17424 # point, so we can use a bashism as a fallback.
17425 if test "x$ac_cr" = x; then
17426 eval ac_cr=\$\'\\r\'
17428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17430 ac_cs_awk_cr='\\r'
17431 else
17432 ac_cs_awk_cr=$ac_cr
17435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17436 _ACEOF
17440 echo "cat >conf$$subs.awk <<_ACEOF" &&
17441 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17442 echo "_ACEOF"
17443 } >conf$$subs.sh ||
17444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17446 ac_delim='%!_!# '
17447 for ac_last_try in false false false false false :; do
17448 . ./conf$$subs.sh ||
17449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17451 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17452 if test $ac_delim_n = $ac_delim_num; then
17453 break
17454 elif $ac_last_try; then
17455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17456 else
17457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17459 done
17460 rm -f conf$$subs.sh
17462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17463 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17464 _ACEOF
17465 sed -n '
17467 s/^/S["/; s/!.*/"]=/
17470 s/^[^!]*!//
17471 :repl
17472 t repl
17473 s/'"$ac_delim"'$//
17474 t delim
17477 s/\(.\{148\}\)..*/\1/
17478 t more1
17479 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17482 b repl
17483 :more1
17484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17487 s/.\{148\}//
17488 t nl
17489 :delim
17491 s/\(.\{148\}\)..*/\1/
17492 t more2
17493 s/["\\]/\\&/g; s/^/"/; s/$/"/
17496 :more2
17497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17500 s/.\{148\}//
17501 t delim
17502 ' <conf$$subs.awk | sed '
17503 /^[^""]/{
17505 s/\n//
17507 ' >>$CONFIG_STATUS || ac_write_fail=1
17508 rm -f conf$$subs.awk
17509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17510 _ACAWK
17511 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17512 for (key in S) S_is_set[key] = 1
17513 FS = "\a"
17517 line = $ 0
17518 nfields = split(line, field, "@")
17519 substed = 0
17520 len = length(field[1])
17521 for (i = 2; i < nfields; i++) {
17522 key = field[i]
17523 keylen = length(key)
17524 if (S_is_set[key]) {
17525 value = S[key]
17526 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17527 len += length(value) + length(field[++i])
17528 substed = 1
17529 } else
17530 len += 1 + keylen
17533 print line
17536 _ACAWK
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17539 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17540 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17541 else
17543 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17544 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17545 _ACEOF
17547 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17548 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17549 # trailing colons and then remove the whole line if VPATH becomes empty
17550 # (actually we leave an empty line to preserve line numbers).
17551 if test "x$srcdir" = x.; then
17552 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17554 s///
17555 s/^/:/
17556 s/[ ]*$/:/
17557 s/:\$(srcdir):/:/g
17558 s/:\${srcdir}:/:/g
17559 s/:@srcdir@:/:/g
17560 s/^:*//
17561 s/:*$//
17563 s/\(=[ ]*\).*/\1/
17565 s/\n//
17566 s/^[^=]*=[ ]*$//
17570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571 fi # test -n "$CONFIG_FILES"
17573 # Set up the scripts for CONFIG_HEADERS section.
17574 # No need to generate them if there are no CONFIG_HEADERS.
17575 # This happens for instance with `./config.status Makefile'.
17576 if test -n "$CONFIG_HEADERS"; then
17577 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17578 BEGIN {
17579 _ACEOF
17581 # Transform confdefs.h into an awk script `defines.awk', embedded as
17582 # here-document in config.status, that substitutes the proper values into
17583 # config.h.in to produce config.h.
17585 # Create a delimiter string that does not exist in confdefs.h, to ease
17586 # handling of long lines.
17587 ac_delim='%!_!# '
17588 for ac_last_try in false false :; do
17589 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17590 if test -z "$ac_tt"; then
17591 break
17592 elif $ac_last_try; then
17593 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17594 else
17595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17597 done
17599 # For the awk script, D is an array of macro values keyed by name,
17600 # likewise P contains macro parameters if any. Preserve backslash
17601 # newline sequences.
17603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17604 sed -n '
17605 s/.\{148\}/&'"$ac_delim"'/g
17606 t rset
17607 :rset
17608 s/^[ ]*#[ ]*define[ ][ ]*/ /
17609 t def
17611 :def
17612 s/\\$//
17613 t bsnl
17614 s/["\\]/\\&/g
17615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17616 D["\1"]=" \3"/p
17617 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17619 :bsnl
17620 s/["\\]/\\&/g
17621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17622 D["\1"]=" \3\\\\\\n"\\/p
17623 t cont
17624 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17625 t cont
17627 :cont
17629 s/.\{148\}/&'"$ac_delim"'/g
17630 t clear
17631 :clear
17632 s/\\$//
17633 t bsnlc
17634 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17636 :bsnlc
17637 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17638 b cont
17639 ' <confdefs.h | sed '
17640 s/'"$ac_delim"'/"\\\
17641 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17644 for (key in D) D_is_set[key] = 1
17645 FS = "\a"
17647 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17648 line = \$ 0
17649 split(line, arg, " ")
17650 if (arg[1] == "#") {
17651 defundef = arg[2]
17652 mac1 = arg[3]
17653 } else {
17654 defundef = substr(arg[1], 2)
17655 mac1 = arg[2]
17657 split(mac1, mac2, "(") #)
17658 macro = mac2[1]
17659 prefix = substr(line, 1, index(line, defundef) - 1)
17660 if (D_is_set[macro]) {
17661 # Preserve the white space surrounding the "#".
17662 print prefix "define", macro P[macro] D[macro]
17663 next
17664 } else {
17665 # Replace #undef with comments. This is necessary, for example,
17666 # in the case of _POSIX_SOURCE, which is predefined and required
17667 # on some systems where configure will not decide to define it.
17668 if (defundef == "undef") {
17669 print "/*", prefix defundef, macro, "*/"
17670 next
17674 { print }
17675 _ACAWK
17676 _ACEOF
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17679 fi # test -n "$CONFIG_HEADERS"
17682 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17683 shift
17684 for ac_tag
17686 case $ac_tag in
17687 :[FHLC]) ac_mode=$ac_tag; continue;;
17688 esac
17689 case $ac_mode$ac_tag in
17690 :[FHL]*:*);;
17691 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17692 :[FH]-) ac_tag=-:-;;
17693 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17694 esac
17695 ac_save_IFS=$IFS
17696 IFS=:
17697 set x $ac_tag
17698 IFS=$ac_save_IFS
17699 shift
17700 ac_file=$1
17701 shift
17703 case $ac_mode in
17704 :L) ac_source=$1;;
17705 :[FH])
17706 ac_file_inputs=
17707 for ac_f
17709 case $ac_f in
17710 -) ac_f="$ac_tmp/stdin";;
17711 *) # Look for the file first in the build tree, then in the source tree
17712 # (if the path is not absolute). The absolute path cannot be DOS-style,
17713 # because $ac_f cannot contain `:'.
17714 test -f "$ac_f" ||
17715 case $ac_f in
17716 [\\/$]*) false;;
17717 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17718 esac ||
17719 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17720 esac
17721 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17722 as_fn_append ac_file_inputs " '$ac_f'"
17723 done
17725 # Let's still pretend it is `configure' which instantiates (i.e., don't
17726 # use $as_me), people would be surprised to read:
17727 # /* config.h. Generated by config.status. */
17728 configure_input='Generated from '`
17729 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17730 `' by configure.'
17731 if test x"$ac_file" != x-; then
17732 configure_input="$ac_file. $configure_input"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17734 $as_echo "$as_me: creating $ac_file" >&6;}
17736 # Neutralize special characters interpreted by sed in replacement strings.
17737 case $configure_input in #(
17738 *\&* | *\|* | *\\* )
17739 ac_sed_conf_input=`$as_echo "$configure_input" |
17740 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17741 *) ac_sed_conf_input=$configure_input;;
17742 esac
17744 case $ac_tag in
17745 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17747 esac
17749 esac
17751 ac_dir=`$as_dirname -- "$ac_file" ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753 X"$ac_file" : 'X\(//\)[^/]' \| \
17754 X"$ac_file" : 'X\(//\)$' \| \
17755 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17756 $as_echo X"$ac_file" |
17757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17758 s//\1/
17761 /^X\(\/\/\)[^/].*/{
17762 s//\1/
17765 /^X\(\/\/\)$/{
17766 s//\1/
17769 /^X\(\/\).*/{
17770 s//\1/
17773 s/.*/./; q'`
17774 as_dir="$ac_dir"; as_fn_mkdir_p
17775 ac_builddir=.
17777 case "$ac_dir" in
17778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17781 # A ".." for each directory in $ac_dir_suffix.
17782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17783 case $ac_top_builddir_sub in
17784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17786 esac ;;
17787 esac
17788 ac_abs_top_builddir=$ac_pwd
17789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17790 # for backward compatibility:
17791 ac_top_builddir=$ac_top_build_prefix
17793 case $srcdir in
17794 .) # We are building in place.
17795 ac_srcdir=.
17796 ac_top_srcdir=$ac_top_builddir_sub
17797 ac_abs_top_srcdir=$ac_pwd ;;
17798 [\\/]* | ?:[\\/]* ) # Absolute name.
17799 ac_srcdir=$srcdir$ac_dir_suffix;
17800 ac_top_srcdir=$srcdir
17801 ac_abs_top_srcdir=$srcdir ;;
17802 *) # Relative name.
17803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17804 ac_top_srcdir=$ac_top_build_prefix$srcdir
17805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17806 esac
17807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17810 case $ac_mode in
17813 # CONFIG_FILE
17816 case $INSTALL in
17817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17819 esac
17820 ac_MKDIR_P=$MKDIR_P
17821 case $MKDIR_P in
17822 [\\/$]* | ?:[\\/]* ) ;;
17823 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17824 esac
17825 _ACEOF
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 # If the template does not know about datarootdir, expand it.
17829 # FIXME: This hack should be removed a few years after 2.60.
17830 ac_datarootdir_hack=; ac_datarootdir_seen=
17831 ac_sed_dataroot='
17832 /datarootdir/ {
17836 /@datadir@/p
17837 /@docdir@/p
17838 /@infodir@/p
17839 /@localedir@/p
17840 /@mandir@/p'
17841 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17842 *datarootdir*) ac_datarootdir_seen=yes;;
17843 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17845 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17846 _ACEOF
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848 ac_datarootdir_hack='
17849 s&@datadir@&$datadir&g
17850 s&@docdir@&$docdir&g
17851 s&@infodir@&$infodir&g
17852 s&@localedir@&$localedir&g
17853 s&@mandir@&$mandir&g
17854 s&\\\${datarootdir}&$datarootdir&g' ;;
17855 esac
17856 _ACEOF
17858 # Neutralize VPATH when `$srcdir' = `.'.
17859 # Shell code in configure.ac might set extrasub.
17860 # FIXME: do we really want to maintain this feature?
17861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862 ac_sed_extra="$ac_vpsub
17863 $extrasub
17864 _ACEOF
17865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17868 s|@configure_input@|$ac_sed_conf_input|;t t
17869 s&@top_builddir@&$ac_top_builddir_sub&;t t
17870 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17871 s&@srcdir@&$ac_srcdir&;t t
17872 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17873 s&@top_srcdir@&$ac_top_srcdir&;t t
17874 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17875 s&@builddir@&$ac_builddir&;t t
17876 s&@abs_builddir@&$ac_abs_builddir&;t t
17877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17878 s&@INSTALL@&$ac_INSTALL&;t t
17879 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17880 $ac_datarootdir_hack
17882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17883 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17885 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17886 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17887 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17888 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17890 which seems to be undefined. Please make sure it is defined" >&5
17891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17892 which seems to be undefined. Please make sure it is defined" >&2;}
17894 rm -f "$ac_tmp/stdin"
17895 case $ac_file in
17896 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17897 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17898 esac \
17899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17903 # CONFIG_HEADER
17905 if test x"$ac_file" != x-; then
17907 $as_echo "/* $configure_input */" \
17908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17909 } >"$ac_tmp/config.h" \
17910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17911 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17913 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17914 else
17915 rm -f "$ac_file"
17916 mv "$ac_tmp/config.h" "$ac_file" \
17917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17919 else
17920 $as_echo "/* $configure_input */" \
17921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17922 || as_fn_error $? "could not create -" "$LINENO" 5
17924 # Compute "$ac_file"'s index in $config_headers.
17925 _am_arg="$ac_file"
17926 _am_stamp_count=1
17927 for _am_header in $config_headers :; do
17928 case $_am_header in
17929 $_am_arg | $_am_arg:* )
17930 break ;;
17932 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17933 esac
17934 done
17935 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17936 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17937 X"$_am_arg" : 'X\(//\)[^/]' \| \
17938 X"$_am_arg" : 'X\(//\)$' \| \
17939 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17940 $as_echo X"$_am_arg" |
17941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17942 s//\1/
17945 /^X\(\/\/\)[^/].*/{
17946 s//\1/
17949 /^X\(\/\/\)$/{
17950 s//\1/
17953 /^X\(\/\).*/{
17954 s//\1/
17957 s/.*/./; q'`/stamp-h$_am_stamp_count
17960 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17961 $as_echo "$as_me: executing $ac_file commands" >&6;}
17963 esac
17966 case $ac_file$ac_mode in
17967 "default-1":C)
17968 # Only add multilib support code if we just rebuilt the top-level
17969 # Makefile.
17970 case " $CONFIG_FILES " in
17971 *" Makefile "*)
17972 ac_file=Makefile . ${multi_basedir}/config-ml.in
17974 esac ;;
17975 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17976 # Older Autoconf quotes --file arguments for eval, but not when files
17977 # are listed without --file. Let's play safe and only enable the eval
17978 # if we detect the quoting.
17979 case $CONFIG_FILES in
17980 *\'*) eval set x "$CONFIG_FILES" ;;
17981 *) set x $CONFIG_FILES ;;
17982 esac
17983 shift
17984 for mf
17986 # Strip MF so we end up with the name of the file.
17987 mf=`echo "$mf" | sed -e 's/:.*$//'`
17988 # Check whether this is an Automake generated Makefile or not.
17989 # We used to match only the files named 'Makefile.in', but
17990 # some people rename them; so instead we look at the file content.
17991 # Grep'ing the first line is not enough: some people post-process
17992 # each Makefile.in and add a new line on top of each file to say so.
17993 # Grep'ing the whole file is not good either: AIX grep has a line
17994 # limit of 2048, but all sed's we know have understand at least 4000.
17995 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17996 dirpart=`$as_dirname -- "$mf" ||
17997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17998 X"$mf" : 'X\(//\)[^/]' \| \
17999 X"$mf" : 'X\(//\)$' \| \
18000 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18001 $as_echo X"$mf" |
18002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18003 s//\1/
18006 /^X\(\/\/\)[^/].*/{
18007 s//\1/
18010 /^X\(\/\/\)$/{
18011 s//\1/
18014 /^X\(\/\).*/{
18015 s//\1/
18018 s/.*/./; q'`
18019 else
18020 continue
18022 # Extract the definition of DEPDIR, am__include, and am__quote
18023 # from the Makefile without running 'make'.
18024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18025 test -z "$DEPDIR" && continue
18026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18027 test -z "$am__include" && continue
18028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18029 # Find all dependency output files, they are included files with
18030 # $(DEPDIR) in their names. We invoke sed twice because it is the
18031 # simplest approach to changing $(DEPDIR) to its actual value in the
18032 # expansion.
18033 for file in `sed -n "
18034 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18035 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18036 # Make sure the directory exists.
18037 test -f "$dirpart/$file" && continue
18038 fdir=`$as_dirname -- "$file" ||
18039 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18040 X"$file" : 'X\(//\)[^/]' \| \
18041 X"$file" : 'X\(//\)$' \| \
18042 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18043 $as_echo X"$file" |
18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18045 s//\1/
18048 /^X\(\/\/\)[^/].*/{
18049 s//\1/
18052 /^X\(\/\/\)$/{
18053 s//\1/
18056 /^X\(\/\).*/{
18057 s//\1/
18060 s/.*/./; q'`
18061 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18062 # echo "creating $dirpart/$file"
18063 echo '# dummy' > "$dirpart/$file"
18064 done
18065 done
18068 "libtool":C)
18070 # See if we are running on zsh, and set the options which allow our
18071 # commands through without removal of \ escapes.
18072 if test -n "${ZSH_VERSION+set}" ; then
18073 setopt NO_GLOB_SUBST
18076 cfgfile="${ofile}T"
18077 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18078 $RM "$cfgfile"
18080 cat <<_LT_EOF >> "$cfgfile"
18081 #! $SHELL
18083 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18084 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18085 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18086 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18088 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18089 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18090 # Written by Gordon Matzigkeit, 1996
18092 # This file is part of GNU Libtool.
18094 # GNU Libtool is free software; you can redistribute it and/or
18095 # modify it under the terms of the GNU General Public License as
18096 # published by the Free Software Foundation; either version 2 of
18097 # the License, or (at your option) any later version.
18099 # As a special exception to the GNU General Public License,
18100 # if you distribute this file as part of a program or library that
18101 # is built using GNU Libtool, you may include this file under the
18102 # same distribution terms that you use for the rest of that program.
18104 # GNU Libtool is distributed in the hope that it will be useful,
18105 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18107 # GNU General Public License for more details.
18109 # You should have received a copy of the GNU General Public License
18110 # along with GNU Libtool; see the file COPYING. If not, a copy
18111 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18112 # obtained by writing to the Free Software Foundation, Inc.,
18113 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18116 # The names of the tagged configurations supported by this script.
18117 available_tags="GO "
18119 # ### BEGIN LIBTOOL CONFIG
18121 # A sed program that does not truncate output.
18122 SED=$lt_SED
18124 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18125 Xsed="\$SED -e 1s/^X//"
18127 # A grep program that handles long lines.
18128 GREP=$lt_GREP
18130 # An ERE matcher.
18131 EGREP=$lt_EGREP
18133 # A literal string matcher.
18134 FGREP=$lt_FGREP
18136 # Shell to use when invoking shell scripts.
18137 SHELL=$lt_SHELL
18139 # An echo program that protects backslashes.
18140 ECHO=$lt_ECHO
18142 # Which release of libtool.m4 was used?
18143 macro_version=$macro_version
18144 macro_revision=$macro_revision
18146 # Whether or not to build shared libraries.
18147 build_libtool_libs=$enable_shared
18149 # Whether or not to build static libraries.
18150 build_old_libs=$enable_static
18152 # What type of objects to build.
18153 pic_mode=$pic_mode
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18158 # The host system.
18159 host_alias=$host_alias
18160 host=$host
18161 host_os=$host_os
18163 # The build system.
18164 build_alias=$build_alias
18165 build=$build
18166 build_os=$build_os
18168 # A BSD- or MS-compatible name lister.
18169 NM=$lt_NM
18171 # Whether we need soft or hard links.
18172 LN_S=$lt_LN_S
18174 # What is the maximum length of a command?
18175 max_cmd_len=$max_cmd_len
18177 # Object file suffix (normally "o").
18178 objext=$ac_objext
18180 # Executable file suffix (normally "").
18181 exeext=$exeext
18183 # whether the shell understands "unset".
18184 lt_unset=$lt_unset
18186 # turn spaces into newlines.
18187 SP2NL=$lt_lt_SP2NL
18189 # turn newlines into spaces.
18190 NL2SP=$lt_lt_NL2SP
18192 # An object symbol dumper.
18193 OBJDUMP=$lt_OBJDUMP
18195 # Method to check whether dependent libraries are shared objects.
18196 deplibs_check_method=$lt_deplibs_check_method
18198 # Command to use when deplibs_check_method == "file_magic".
18199 file_magic_cmd=$lt_file_magic_cmd
18201 # The archiver.
18202 AR=$lt_AR
18203 AR_FLAGS=$lt_AR_FLAGS
18205 # A symbol stripping program.
18206 STRIP=$lt_STRIP
18208 # Commands used to install an old-style archive.
18209 RANLIB=$lt_RANLIB
18210 old_postinstall_cmds=$lt_old_postinstall_cmds
18211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18213 # Whether to use a lock for old archive extraction.
18214 lock_old_archive_extraction=$lock_old_archive_extraction
18216 # A C compiler.
18217 LTCC=$lt_CC
18219 # LTCC compiler flags.
18220 LTCFLAGS=$lt_CFLAGS
18222 # Take the output of nm and produce a listing of raw symbols and C names.
18223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18225 # Transform the output of nm in a proper C declaration.
18226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18228 # Transform the output of nm in a C name address pair.
18229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18231 # Transform the output of nm in a C name address pair when lib prefix is needed.
18232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18234 # The name of the directory that contains temporary libtool files.
18235 objdir=$objdir
18237 # Used to examine libraries when file_magic_cmd begins with "file".
18238 MAGIC_CMD=$MAGIC_CMD
18240 # Must we lock files when doing compilation?
18241 need_locks=$lt_need_locks
18243 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18244 DSYMUTIL=$lt_DSYMUTIL
18246 # Tool to change global to local symbols on Mac OS X.
18247 NMEDIT=$lt_NMEDIT
18249 # Tool to manipulate fat objects and archives on Mac OS X.
18250 LIPO=$lt_LIPO
18252 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18253 OTOOL=$lt_OTOOL
18255 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18256 OTOOL64=$lt_OTOOL64
18258 # Old archive suffix (normally "a").
18259 libext=$libext
18261 # Shared library suffix (normally ".so").
18262 shrext_cmds=$lt_shrext_cmds
18264 # The commands to extract the exported symbol list from a shared archive.
18265 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18267 # Variables whose values should be saved in libtool wrapper scripts and
18268 # restored at link time.
18269 variables_saved_for_relink=$lt_variables_saved_for_relink
18271 # Do we need the "lib" prefix for modules?
18272 need_lib_prefix=$need_lib_prefix
18274 # Do we need a version for libraries?
18275 need_version=$need_version
18277 # Library versioning type.
18278 version_type=$version_type
18280 # Shared library runtime path variable.
18281 runpath_var=$runpath_var
18283 # Shared library path variable.
18284 shlibpath_var=$shlibpath_var
18286 # Is shlibpath searched before the hard-coded library search path?
18287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18289 # Format of library name prefix.
18290 libname_spec=$lt_libname_spec
18292 # List of archive names. First name is the real one, the rest are links.
18293 # The last name is the one that the linker finds with -lNAME
18294 library_names_spec=$lt_library_names_spec
18296 # The coded name of the library, if different from the real name.
18297 soname_spec=$lt_soname_spec
18299 # Permission mode override for installation of shared libraries.
18300 install_override_mode=$lt_install_override_mode
18302 # Command to use after installation of a shared archive.
18303 postinstall_cmds=$lt_postinstall_cmds
18305 # Command to use after uninstallation of a shared archive.
18306 postuninstall_cmds=$lt_postuninstall_cmds
18308 # Commands used to finish a libtool library installation in a directory.
18309 finish_cmds=$lt_finish_cmds
18311 # As "finish_cmds", except a single script fragment to be evaled but
18312 # not shown.
18313 finish_eval=$lt_finish_eval
18315 # Whether we should hardcode library paths into libraries.
18316 hardcode_into_libs=$hardcode_into_libs
18318 # Compile-time system search path for libraries.
18319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18321 # Run-time system search path for libraries.
18322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18324 # Whether dlopen is supported.
18325 dlopen_support=$enable_dlopen
18327 # Whether dlopen of programs is supported.
18328 dlopen_self=$enable_dlopen_self
18330 # Whether dlopen of statically linked programs is supported.
18331 dlopen_self_static=$enable_dlopen_self_static
18333 # Commands to strip libraries.
18334 old_striplib=$lt_old_striplib
18335 striplib=$lt_striplib
18338 # The linker used to build libraries.
18339 LD=$lt_LD
18341 # How to create reloadable object files.
18342 reload_flag=$lt_reload_flag
18343 reload_cmds=$lt_reload_cmds
18345 # Commands used to build an old-style archive.
18346 old_archive_cmds=$lt_old_archive_cmds
18348 # A language specific compiler.
18349 CC=$lt_compiler
18351 # Is the compiler the GNU compiler?
18352 with_gcc=$GCC
18354 # Compiler flag to turn off builtin functions.
18355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18357 # How to pass a linker flag through the compiler.
18358 wl=$lt_lt_prog_compiler_wl
18360 # Additional compiler flags for building library objects.
18361 pic_flag=$lt_lt_prog_compiler_pic
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static
18366 # Does compiler simultaneously support -c and -o options?
18367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18369 # Whether or not to add -lc for building shared libraries.
18370 build_libtool_need_lc=$archive_cmds_need_lc
18372 # Whether or not to disallow shared libs when runtime libs are static.
18373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18375 # Compiler flag to allow reflexive dlopens.
18376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18378 # Compiler flag to generate shared objects directly from archives.
18379 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18381 # Whether the compiler copes with passing no objects directly.
18382 compiler_needs_object=$lt_compiler_needs_object
18384 # Create an old-style archive from a shared archive.
18385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18387 # Create a temporary old-style archive to link instead of a shared archive.
18388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18390 # Commands used to build a shared archive.
18391 archive_cmds=$lt_archive_cmds
18392 archive_expsym_cmds=$lt_archive_expsym_cmds
18394 # Commands used to build a loadable module if different from building
18395 # a shared archive.
18396 module_cmds=$lt_module_cmds
18397 module_expsym_cmds=$lt_module_expsym_cmds
18399 # Whether we are building with GNU ld or not.
18400 with_gnu_ld=$lt_with_gnu_ld
18402 # Flag that allows shared libraries with undefined symbols to be built.
18403 allow_undefined_flag=$lt_allow_undefined_flag
18405 # Flag that enforces no undefined symbols.
18406 no_undefined_flag=$lt_no_undefined_flag
18408 # Flag to hardcode \$libdir into a binary during linking.
18409 # This must work even if \$libdir does not exist
18410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18412 # If ld is used when linking, flag to hardcode \$libdir into a binary
18413 # during linking. This must work even if \$libdir does not exist.
18414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18416 # Whether we need a single "-rpath" flag with a separated argument.
18417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary.
18421 hardcode_direct=$hardcode_direct
18423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18424 # DIR into the resulting binary and the resulting library dependency is
18425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18426 # library is relocated.
18427 hardcode_direct_absolute=$hardcode_direct_absolute
18429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_minus_L=$hardcode_minus_L
18433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18434 # into the resulting binary.
18435 hardcode_shlibpath_var=$hardcode_shlibpath_var
18437 # Set to "yes" if building a shared library automatically hardcodes DIR
18438 # into the library and all subsequent libraries and executables linked
18439 # against it.
18440 hardcode_automatic=$hardcode_automatic
18442 # Set to yes if linker adds runtime paths of dependent libraries
18443 # to runtime path list.
18444 inherit_rpath=$inherit_rpath
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs
18449 # Fix the shell variable \$srcfile for the compiler.
18450 fix_srcfile_path=$lt_fix_srcfile_path
18452 # Set to "yes" if exported symbols are required.
18453 always_export_symbols=$always_export_symbols
18455 # The commands to list exported symbols.
18456 export_symbols_cmds=$lt_export_symbols_cmds
18458 # Symbols that should not be listed in the preloaded symbols.
18459 exclude_expsyms=$lt_exclude_expsyms
18461 # Symbols that must always be exported.
18462 include_expsyms=$lt_include_expsyms
18464 # Commands necessary for linking programs (against libraries) with templates.
18465 prelink_cmds=$lt_prelink_cmds
18467 # Specify filename containing input files.
18468 file_list_spec=$lt_file_list_spec
18470 # How to hardcode a shared library path into an executable.
18471 hardcode_action=$hardcode_action
18473 # ### END LIBTOOL CONFIG
18475 _LT_EOF
18477 case $host_os in
18478 aix3*)
18479 cat <<\_LT_EOF >> "$cfgfile"
18480 # AIX sometimes has problems with the GCC collect2 program. For some
18481 # reason, if we set the COLLECT_NAMES environment variable, the problems
18482 # vanish in a puff of smoke.
18483 if test "X${COLLECT_NAMES+set}" != Xset; then
18484 COLLECT_NAMES=
18485 export COLLECT_NAMES
18487 _LT_EOF
18489 esac
18492 ltmain="$ac_aux_dir/ltmain.sh"
18495 # We use sed instead of cat because bash on DJGPP gets confused if
18496 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18497 # text mode, it properly converts lines to CR/LF. This bash problem
18498 # is reportedly fixed, but why not run on old versions too?
18499 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18500 || (rm -f "$cfgfile"; exit 1)
18502 case $xsi_shell in
18503 yes)
18504 cat << \_LT_EOF >> "$cfgfile"
18506 # func_dirname file append nondir_replacement
18507 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18508 # otherwise set result to NONDIR_REPLACEMENT.
18509 func_dirname ()
18511 case ${1} in
18512 */*) func_dirname_result="${1%/*}${2}" ;;
18513 * ) func_dirname_result="${3}" ;;
18514 esac
18517 # func_basename file
18518 func_basename ()
18520 func_basename_result="${1##*/}"
18523 # func_dirname_and_basename file append nondir_replacement
18524 # perform func_basename and func_dirname in a single function
18525 # call:
18526 # dirname: Compute the dirname of FILE. If nonempty,
18527 # add APPEND to the result, otherwise set result
18528 # to NONDIR_REPLACEMENT.
18529 # value returned in "$func_dirname_result"
18530 # basename: Compute filename of FILE.
18531 # value retuned in "$func_basename_result"
18532 # Implementation must be kept synchronized with func_dirname
18533 # and func_basename. For efficiency, we do not delegate to
18534 # those functions but instead duplicate the functionality here.
18535 func_dirname_and_basename ()
18537 case ${1} in
18538 */*) func_dirname_result="${1%/*}${2}" ;;
18539 * ) func_dirname_result="${3}" ;;
18540 esac
18541 func_basename_result="${1##*/}"
18544 # func_stripname prefix suffix name
18545 # strip PREFIX and SUFFIX off of NAME.
18546 # PREFIX and SUFFIX must not contain globbing or regex special
18547 # characters, hashes, percent signs, but SUFFIX may contain a leading
18548 # dot (in which case that matches only a dot).
18549 func_stripname ()
18551 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18552 # positional parameters, so assign one to ordinary parameter first.
18553 func_stripname_result=${3}
18554 func_stripname_result=${func_stripname_result#"${1}"}
18555 func_stripname_result=${func_stripname_result%"${2}"}
18558 # func_opt_split
18559 func_opt_split ()
18561 func_opt_split_opt=${1%%=*}
18562 func_opt_split_arg=${1#*=}
18565 # func_lo2o object
18566 func_lo2o ()
18568 case ${1} in
18569 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18570 *) func_lo2o_result=${1} ;;
18571 esac
18574 # func_xform libobj-or-source
18575 func_xform ()
18577 func_xform_result=${1%.*}.lo
18580 # func_arith arithmetic-term...
18581 func_arith ()
18583 func_arith_result=$(( $* ))
18586 # func_len string
18587 # STRING may not start with a hyphen.
18588 func_len ()
18590 func_len_result=${#1}
18593 _LT_EOF
18595 *) # Bourne compatible functions.
18596 cat << \_LT_EOF >> "$cfgfile"
18598 # func_dirname file append nondir_replacement
18599 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18600 # otherwise set result to NONDIR_REPLACEMENT.
18601 func_dirname ()
18603 # Extract subdirectory from the argument.
18604 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18605 if test "X$func_dirname_result" = "X${1}"; then
18606 func_dirname_result="${3}"
18607 else
18608 func_dirname_result="$func_dirname_result${2}"
18612 # func_basename file
18613 func_basename ()
18615 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18619 # func_stripname prefix suffix name
18620 # strip PREFIX and SUFFIX off of NAME.
18621 # PREFIX and SUFFIX must not contain globbing or regex special
18622 # characters, hashes, percent signs, but SUFFIX may contain a leading
18623 # dot (in which case that matches only a dot).
18624 # func_strip_suffix prefix name
18625 func_stripname ()
18627 case ${2} in
18628 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18629 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18630 esac
18633 # sed scripts:
18634 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18635 my_sed_long_arg='1s/^-[^=]*=//'
18637 # func_opt_split
18638 func_opt_split ()
18640 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18641 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18644 # func_lo2o object
18645 func_lo2o ()
18647 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18650 # func_xform libobj-or-source
18651 func_xform ()
18653 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18656 # func_arith arithmetic-term...
18657 func_arith ()
18659 func_arith_result=`expr "$@"`
18662 # func_len string
18663 # STRING may not start with a hyphen.
18664 func_len ()
18666 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18669 _LT_EOF
18670 esac
18672 case $lt_shell_append in
18673 yes)
18674 cat << \_LT_EOF >> "$cfgfile"
18676 # func_append var value
18677 # Append VALUE to the end of shell variable VAR.
18678 func_append ()
18680 eval "$1+=\$2"
18682 _LT_EOF
18685 cat << \_LT_EOF >> "$cfgfile"
18687 # func_append var value
18688 # Append VALUE to the end of shell variable VAR.
18689 func_append ()
18691 eval "$1=\$$1\$2"
18694 _LT_EOF
18696 esac
18699 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18700 || (rm -f "$cfgfile"; exit 1)
18702 mv -f "$cfgfile" "$ofile" ||
18703 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18704 chmod +x "$ofile"
18707 cat <<_LT_EOF >> "$ofile"
18709 # ### BEGIN LIBTOOL TAG CONFIG: GO
18711 # The linker used to build libraries.
18712 LD=$lt_LD_GO
18714 # How to create reloadable object files.
18715 reload_flag=$lt_reload_flag_GO
18716 reload_cmds=$lt_reload_cmds_GO
18718 # Commands used to build an old-style archive.
18719 old_archive_cmds=$lt_old_archive_cmds_GO
18721 # A language specific compiler.
18722 CC=$lt_compiler_GO
18724 # Is the compiler the GNU compiler?
18725 with_gcc=$GCC_GO
18727 # Compiler flag to turn off builtin functions.
18728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18730 # How to pass a linker flag through the compiler.
18731 wl=$lt_lt_prog_compiler_wl_GO
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic_GO
18736 # Compiler flag to prevent dynamic linking.
18737 link_static_flag=$lt_lt_prog_compiler_static_GO
18739 # Does compiler simultaneously support -c and -o options?
18740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18742 # Whether or not to add -lc for building shared libraries.
18743 build_libtool_need_lc=$archive_cmds_need_lc_GO
18745 # Whether or not to disallow shared libs when runtime libs are static.
18746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18748 # Compiler flag to allow reflexive dlopens.
18749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18751 # Compiler flag to generate shared objects directly from archives.
18752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18754 # Whether the compiler copes with passing no objects directly.
18755 compiler_needs_object=$lt_compiler_needs_object_GO
18757 # Create an old-style archive from a shared archive.
18758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18760 # Create a temporary old-style archive to link instead of a shared archive.
18761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18763 # Commands used to build a shared archive.
18764 archive_cmds=$lt_archive_cmds_GO
18765 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18767 # Commands used to build a loadable module if different from building
18768 # a shared archive.
18769 module_cmds=$lt_module_cmds_GO
18770 module_expsym_cmds=$lt_module_expsym_cmds_GO
18772 # Whether we are building with GNU ld or not.
18773 with_gnu_ld=$lt_with_gnu_ld_GO
18775 # Flag that allows shared libraries with undefined symbols to be built.
18776 allow_undefined_flag=$lt_allow_undefined_flag_GO
18778 # Flag that enforces no undefined symbols.
18779 no_undefined_flag=$lt_no_undefined_flag_GO
18781 # Flag to hardcode \$libdir into a binary during linking.
18782 # This must work even if \$libdir does not exist
18783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18785 # If ld is used when linking, flag to hardcode \$libdir into a binary
18786 # during linking. This must work even if \$libdir does not exist.
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18789 # Whether we need a single "-rpath" flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18792 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18793 # DIR into the resulting binary.
18794 hardcode_direct=$hardcode_direct_GO
18796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18797 # DIR into the resulting binary and the resulting library dependency is
18798 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18799 # library is relocated.
18800 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18802 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18803 # into the resulting binary.
18804 hardcode_minus_L=$hardcode_minus_L_GO
18806 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18807 # into the resulting binary.
18808 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18810 # Set to "yes" if building a shared library automatically hardcodes DIR
18811 # into the library and all subsequent libraries and executables linked
18812 # against it.
18813 hardcode_automatic=$hardcode_automatic_GO
18815 # Set to yes if linker adds runtime paths of dependent libraries
18816 # to runtime path list.
18817 inherit_rpath=$inherit_rpath_GO
18819 # Whether libtool must link a program against all its dependency libraries.
18820 link_all_deplibs=$link_all_deplibs_GO
18822 # Fix the shell variable \$srcfile for the compiler.
18823 fix_srcfile_path=$lt_fix_srcfile_path_GO
18825 # Set to "yes" if exported symbols are required.
18826 always_export_symbols=$always_export_symbols_GO
18828 # The commands to list exported symbols.
18829 export_symbols_cmds=$lt_export_symbols_cmds_GO
18831 # Symbols that should not be listed in the preloaded symbols.
18832 exclude_expsyms=$lt_exclude_expsyms_GO
18834 # Symbols that must always be exported.
18835 include_expsyms=$lt_include_expsyms_GO
18837 # Commands necessary for linking programs (against libraries) with templates.
18838 prelink_cmds=$lt_prelink_cmds_GO
18840 # Specify filename containing input files.
18841 file_list_spec=$lt_file_list_spec_GO
18843 # How to hardcode a shared library path into an executable.
18844 hardcode_action=$hardcode_action_GO
18846 # ### END LIBTOOL TAG CONFIG: GO
18847 _LT_EOF
18850 "default":C) if test -n "$CONFIG_FILES"; then
18851 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18852 # that multilib installs will end up installed in the correct place.
18853 # The testsuite needs it for multilib-aware ABI baseline files.
18854 # To work around this not being passed down from config-ml.in ->
18855 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18856 # append it here. Only modify Makefiles that have just been created.
18858 # Also, get rid of this simulated-VPATH thing that automake does.
18859 cat > vpsed << \_EOF
18860 s!`test -f '$<' || echo '$(srcdir)/'`!!
18861 _EOF
18862 for i in $SUBDIRS; do
18863 case $CONFIG_FILES in
18864 *${i}/Makefile*)
18865 #echo "Adding MULTISUBDIR to $i/Makefile"
18866 sed -f vpsed $i/Makefile > tmp
18867 grep '^MULTISUBDIR =' Makefile >> tmp
18868 mv tmp $i/Makefile
18870 esac
18871 done
18872 rm vpsed
18876 esac
18877 done # for ac_tag
18880 as_fn_exit 0
18881 _ACEOF
18882 ac_clean_files=$ac_clean_files_save
18884 test $ac_write_fail = 0 ||
18885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18888 # configure is writing to config.log, and then calls config.status.
18889 # config.status does its own redirection, appending to config.log.
18890 # Unfortunately, on DOS this fails, as config.log is still kept open
18891 # by configure, so config.status won't be able to write to it; its
18892 # output is simply discarded. So we exec the FD to /dev/null,
18893 # effectively closing config.log, so it can be properly (re)opened and
18894 # appended to by config.status. When coming back to configure, we
18895 # need to make the FD available again.
18896 if test "$no_create" != yes; then
18897 ac_cs_success=:
18898 ac_config_status_args=
18899 test "$silent" = yes &&
18900 ac_config_status_args="$ac_config_status_args --quiet"
18901 exec 5>/dev/null
18902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18903 exec 5>>config.log
18904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18905 # would make configure fail if this is the last instruction.
18906 $ac_cs_success || as_fn_exit 1
18908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}