Fix build on sparc64-linux-gnu.
[official-gcc.git] / libgo / configure
blob50de71759a469da477592c65d433f8db33f522cc
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_STAT_TIMESPEC_FALSE
637 HAVE_STAT_TIMESPEC_TRUE
638 STRUCT_EPOLL_EVENT_FD_OFFSET
639 SIZEOF_STRUCT_EPOLL_EVENT
640 MATH_FLAG
641 STRINGOPS_FLAG
642 HAVE_WAIT4_FALSE
643 HAVE_WAIT4_TRUE
644 HAVE_STRERROR_R_FALSE
645 HAVE_STRERROR_R_TRUE
646 HAVE_SYS_MMAN_H_FALSE
647 HAVE_SYS_MMAN_H_TRUE
648 PTHREAD_LIBS
649 PTHREAD_CFLAGS
650 NET_LIBS
651 MATH_LIBS
652 GOC_IS_LLGO_FALSE
653 GOC_IS_LLGO_TRUE
654 GO_SPLIT_STACK
655 USING_SPLIT_STACK_FALSE
656 USING_SPLIT_STACK_TRUE
657 SPLIT_STACK
658 HWCAP_CFLAGS
659 OSCFLAGS
660 GO_SYSCALL_OS_ARCH_FILE
661 GO_SYSCALL_OS_FILE
662 GO_LIBCALL_OS_ARCH_FILE
663 GO_LIBCALL_OS_FILE
664 ALLGOARCHFAMILY
665 ALLGOARCH
666 GOARCH
667 USE_DEJAGNU
668 ALLGOOS
669 GOOS
670 LIBGO_IS_BSD_FALSE
671 LIBGO_IS_BSD_TRUE
672 LIBGO_IS_AIX_FALSE
673 LIBGO_IS_AIX_TRUE
674 LIBGO_IS_SOLARIS_FALSE
675 LIBGO_IS_SOLARIS_TRUE
676 LIBGO_IS_RTEMS_FALSE
677 LIBGO_IS_RTEMS_TRUE
678 LIBGO_IS_DRAGONFLY_FALSE
679 LIBGO_IS_DRAGONFLY_TRUE
680 LIBGO_IS_OPENBSD_FALSE
681 LIBGO_IS_OPENBSD_TRUE
682 LIBGO_IS_NETBSD_FALSE
683 LIBGO_IS_NETBSD_TRUE
684 LIBGO_IS_LINUX_FALSE
685 LIBGO_IS_LINUX_TRUE
686 LIBGO_IS_IRIX_FALSE
687 LIBGO_IS_IRIX_TRUE
688 LIBGO_IS_FREEBSD_FALSE
689 LIBGO_IS_FREEBSD_TRUE
690 LIBGO_IS_DARWIN_FALSE
691 LIBGO_IS_DARWIN_TRUE
692 go_include
693 LIBATOMIC
694 USE_LIBFFI_FALSE
695 USE_LIBFFI_TRUE
696 LIBFFIINCS
697 LIBFFI
698 nover_glibgo_toolexeclibdir
699 glibgo_toolexeclibdir
700 glibgo_toolexecdir
701 WERROR
702 WARN_FLAGS
703 CC_FOR_BUILD
704 enable_static
705 enable_shared
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
713 OBJDUMP
714 LN_S
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LIBTOOL
719 OBJCOPY
720 RANLIB
722 FGREP
723 EGREP
724 GREP
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 GOFLAGS
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_os
776 target_vendor
777 target_cpu
778 target
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 multi_basedir
788 libtool_VERSION
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_multilib
831 enable_silent_rules
832 enable_dependency_tracking
833 enable_maintainer_mode
834 with_gnu_ld
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 enable_libtool_lock
840 enable_werror
841 enable_version_specific_runtime_libs
842 with_libffi
843 with_libatomic
844 with_system_libunwind
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
850 CPPFLAGS'
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
901 ac_prev=
902 ac_dashdash=
903 for ac_option
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
922 ac_dashdash=yes ;;
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
941 --config-cache | -C)
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 esac
1259 done
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293 done
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1343 /^X\(\/\/\)$/{
1344 s//\1/
1347 /^X\(\/\).*/{
1348 s//\1/
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1356 else
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457 _ACEOF
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of package-unused version-unused:";;
1463 esac
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-multilib build many library versions (default)
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-werror turns on -Werror [default=yes]
1486 --enable-version-specific-runtime-libs
1487 Specify that runtime libraries should be installed
1488 in a compiler-specific directory
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --without-libffi don't use libffi
1497 --without-libatomic don't use libatomic
1498 --with-system-libunwind use installed libunwind
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 GOC Go compiler command
1509 GOFLAGS Go compiler flags
1510 CPP C preprocessor
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to the package provider.
1516 _ACEOF
1517 ac_status=$?
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 package-unused configure version-unused
1579 generated by GNU Autoconf 2.69
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 ac_retval=1
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_c_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_link ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=1
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695 else
1696 eval "$3=no"
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_compile
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_retval=1
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_cpp
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=$ac_status
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_run
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801 #define $2 innocuous_$2
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1808 #ifdef __STDC__
1809 # include <limits.h>
1810 #else
1811 # include <assert.h>
1812 #endif
1814 #undef $2
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1831 main ()
1833 return $2 ();
1835 return 0;
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840 else
1841 eval "$3=no"
1843 rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_func
1853 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856 # the include files in INCLUDES and setting the cache variable VAR
1857 # accordingly.
1858 ac_fn_c_check_header_mongrel ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if eval \${$3+:} false; then :
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 else
1871 # Is the header compilable?
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873 $as_echo_n "checking $2 usability... " >&6; }
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 ac_header_compiler=yes
1881 else
1882 ac_header_compiler=no
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886 $as_echo "$ac_header_compiler" >&6; }
1888 # Is the header present?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890 $as_echo_n "checking $2 presence... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 #include <$2>
1894 _ACEOF
1895 if ac_fn_c_try_cpp "$LINENO"; then :
1896 ac_header_preproc=yes
1897 else
1898 ac_header_preproc=no
1900 rm -f conftest.err conftest.i conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902 $as_echo "$ac_header_preproc" >&6; }
1904 # So? What about this header?
1905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906 yes:no: )
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 no:yes:* )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1916 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1920 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 esac
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 eval "$3=\$ac_header_compiler"
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_header_mongrel
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 main ()
1959 if (sizeof ($2))
1960 return 0;
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 if (sizeof (($2)))
1973 return 0;
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1980 else
1981 eval "$3=yes"
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_type
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 # computed
1999 ac_fn_c_compute_int ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if test "$cross_compiling" = yes; then
2003 # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2011 test_array [0] = 0;
2012 return test_array [0];
2015 return 0;
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_lo=0 ac_mid=0
2020 while :; do
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028 test_array [0] = 0;
2029 return test_array [0];
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid; break
2037 else
2038 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039 if test $ac_lo -le $ac_mid; then
2040 ac_lo= ac_hi=
2041 break
2043 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 main ()
2054 static int test_array [1 - 2 * !(($2) < 0)];
2055 test_array [0] = 0;
2056 return test_array [0];
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=-1 ac_mid=-1
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 test_array [0] = 0;
2073 return test_array [0];
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=$ac_mid; break
2081 else
2082 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2083 if test $ac_mid -le $ac_hi; then
2084 ac_lo= ac_hi=
2085 break
2087 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 done
2091 else
2092 ac_lo= ac_hi=
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 # Binary search between lo and hi bounds.
2098 while test "x$ac_lo" != "x$ac_hi"; do
2099 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107 test_array [0] = 0;
2108 return test_array [0];
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid
2116 else
2117 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 done
2121 case $ac_lo in #((
2122 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2123 '') ac_retval=1 ;;
2124 esac
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2129 static long int longval () { return $2; }
2130 static unsigned long int ulongval () { return $2; }
2131 #include <stdio.h>
2132 #include <stdlib.h>
2134 main ()
2137 FILE *f = fopen ("conftest.val", "w");
2138 if (! f)
2139 return 1;
2140 if (($2) < 0)
2142 long int i = longval ();
2143 if (i != ($2))
2144 return 1;
2145 fprintf (f, "%ld", i);
2147 else
2149 unsigned long int i = ulongval ();
2150 if (i != ($2))
2151 return 1;
2152 fprintf (f, "%lu", i);
2154 /* Do not output a trailing newline, as this causes \r\n confusion
2155 on some platforms. */
2156 return ferror (f) || fclose (f) != 0;
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_run "$LINENO"; then :
2163 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2164 else
2165 ac_retval=1
2167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168 conftest.$ac_objext conftest.beam conftest.$ac_ext
2169 rm -f conftest.val
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
2175 } # ac_fn_c_compute_int
2176 cat >config.log <<_ACEOF
2177 This file contains any messages produced by compilers while
2178 running configure, to aid debugging if configure makes a mistake.
2180 It was created by package-unused $as_me version-unused, which was
2181 generated by GNU Autoconf 2.69. Invocation command line was
2183 $ $0 $@
2185 _ACEOF
2186 exec 5>>config.log
2188 cat <<_ASUNAME
2189 ## --------- ##
2190 ## Platform. ##
2191 ## --------- ##
2193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2205 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210 _ASUNAME
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2218 done
2219 IFS=$as_save_IFS
2221 } >&5
2223 cat >&5 <<_ACEOF
2226 ## ----------- ##
2227 ## Core tests. ##
2228 ## ----------- ##
2230 _ACEOF
2233 # Keep a trace of the command line.
2234 # Strip out --no-create and --no-recursion so they do not pile up.
2235 # Strip out --silent because we don't want to record it for future runs.
2236 # Also quote any args containing shell meta-characters.
2237 # Make two passes to allow for proper duplicate-argument suppression.
2238 ac_configure_args=
2239 ac_configure_args0=
2240 ac_configure_args1=
2241 ac_must_keep_next=false
2242 for ac_pass in 1 2
2244 for ac_arg
2246 case $ac_arg in
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2250 continue ;;
2251 *\'*)
2252 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 esac
2254 case $ac_pass in
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2260 else
2261 case $ac_arg in
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2268 esac
2270 -* ) ac_must_keep_next=true ;;
2271 esac
2273 as_fn_append ac_configure_args " '$ac_arg'"
2275 esac
2276 done
2277 done
2278 { ac_configure_args0=; unset ac_configure_args0;}
2279 { ac_configure_args1=; unset ac_configure_args1;}
2281 # When interrupted or exit'd, cleanup temporary files, and complete
2282 # config.log. We remove comments because anyway the quotes in there
2283 # would cause problems or look ugly.
2284 # WARNING: Use '\'' to represent an apostrophe within the trap.
2285 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286 trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2289 echo
2291 $as_echo "## ---------------- ##
2292 ## Cache variables. ##
2293 ## ---------------- ##"
2294 echo
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in #(
2300 *${as_nl}*)
2301 case $ac_var in #(
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 esac
2305 case $ac_var in #(
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2309 esac ;;
2310 esac
2311 done
2312 (set) 2>&1 |
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2315 sed -n \
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 ;; #(
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 esac |
2323 sort
2325 echo
2327 $as_echo "## ----------------- ##
2328 ## Output variables. ##
2329 ## ----------------- ##"
2330 echo
2331 for ac_var in $ac_subst_vars
2333 eval ac_val=\$$ac_var
2334 case $ac_val in
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 esac
2337 $as_echo "$ac_var='\''$ac_val'\''"
2338 done | sort
2339 echo
2341 if test -n "$ac_subst_files"; then
2342 $as_echo "## ------------------- ##
2343 ## File substitutions. ##
2344 ## ------------------- ##"
2345 echo
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2349 case $ac_val in
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 esac
2352 $as_echo "$ac_var='\''$ac_val'\''"
2353 done | sort
2354 echo
2357 if test -s confdefs.h; then
2358 $as_echo "## ----------- ##
2359 ## confdefs.h. ##
2360 ## ----------- ##"
2361 echo
2362 cat confdefs.h
2363 echo
2365 test "$ac_signal" != 0 &&
2366 $as_echo "$as_me: caught signal $ac_signal"
2367 $as_echo "$as_me: exit $exit_status"
2368 } >&5
2369 rm -f core *.core core.conftest.* &&
2370 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2371 exit $exit_status
2373 for ac_signal in 1 2 13 15; do
2374 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2375 done
2376 ac_signal=0
2378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2379 rm -f -r conftest* confdefs.h
2381 $as_echo "/* confdefs.h */" > confdefs.h
2383 # Predefined preprocessor variables.
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_NAME "$PACKAGE_NAME"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_STRING "$PACKAGE_STRING"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_URL "$PACKAGE_URL"
2407 _ACEOF
2410 # Let the site file select an alternate cache file if it wants to.
2411 # Prefer an explicitly selected file to automatically selected ones.
2412 ac_site_file1=NONE
2413 ac_site_file2=NONE
2414 if test -n "$CONFIG_SITE"; then
2415 # We do not want a PATH search for config.site.
2416 case $CONFIG_SITE in #((
2417 -*) ac_site_file1=./$CONFIG_SITE;;
2418 */*) ac_site_file1=$CONFIG_SITE;;
2419 *) ac_site_file1=./$CONFIG_SITE;;
2420 esac
2421 elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2424 else
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 test "x$ac_site_file" = xNONE && continue
2431 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434 sed 's/^/| /' "$ac_site_file" >&5
2435 . "$ac_site_file" \
2436 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "failed to load site script $ac_site_file
2439 See \`config.log' for more details" "$LINENO" 5; }
2441 done
2443 if test -r "$cache_file"; then
2444 # Some versions of bash will fail to source /dev/null (special files
2445 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2446 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448 $as_echo "$as_me: loading cache $cache_file" >&6;}
2449 case $cache_file in
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2452 esac
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456 $as_echo "$as_me: creating cache $cache_file" >&6;}
2457 >$cache_file
2460 # Check that the precious variables saved in the cache have kept the same
2461 # value.
2462 ac_cache_corrupted=false
2463 for ac_var in $ac_precious_vars; do
2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2465 eval ac_new_set=\$ac_env_${ac_var}_set
2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2467 eval ac_new_val=\$ac_env_${ac_var}_value
2468 case $ac_old_set,$ac_new_set in
2469 set,)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2471 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,set)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2475 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2477 ,);;
2479 if test "x$ac_old_val" != "x$ac_new_val"; then
2480 # differences in whitespace do not lead to failure.
2481 ac_old_val_w=`echo x $ac_old_val`
2482 ac_new_val_w=`echo x $ac_new_val`
2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2486 ac_cache_corrupted=:
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2490 eval $ac_var=\$ac_old_val
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2493 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2496 fi;;
2497 esac
2498 # Pass precious variables to config.status.
2499 if test "$ac_new_set" = set; then
2500 case $ac_new_val in
2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2502 *) ac_arg=$ac_var=$ac_new_val ;;
2503 esac
2504 case " $ac_configure_args " in
2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2507 esac
2509 done
2510 if $ac_cache_corrupted; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2515 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2517 ## -------------------- ##
2518 ## Main body of script. ##
2519 ## -------------------- ##
2521 ac_ext=c
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 ac_config_headers="$ac_config_headers config.h"
2535 libtool_VERSION=13:0:0
2538 # Default to --enable-multilib
2539 # Check whether --enable-multilib was given.
2540 if test "${enable_multilib+set}" = set; then :
2541 enableval=$enable_multilib; case "$enableval" in
2542 yes) multilib=yes ;;
2543 no) multilib=no ;;
2544 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2545 esac
2546 else
2547 multilib=yes
2551 # We may get other options which we leave undocumented:
2552 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2553 # See config-ml.in if you want the gory details.
2555 if test "$srcdir" = "."; then
2556 if test "$with_target_subdir" != "."; then
2557 multi_basedir="$srcdir/$with_multisrctop../.."
2558 else
2559 multi_basedir="$srcdir/$with_multisrctop.."
2561 else
2562 multi_basedir="$srcdir/.."
2566 # Even if the default multilib is not a cross compilation,
2567 # it may be that some of the other multilibs are.
2568 if test $cross_compiling = no && test $multilib = yes \
2569 && test "x${with_multisubdir}" != x ; then
2570 cross_compiling=maybe
2573 ac_config_commands="$ac_config_commands default-1"
2576 ac_aux_dir=
2577 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2591 done
2592 if test -z "$ac_aux_dir"; then
2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2596 # These three variables are undocumented and unsupported,
2597 # and are intended to be withdrawn in a future Autoconf release.
2598 # They can cause serious problems if a builder's source tree is in a directory
2599 # whose full name contains unusual characters.
2600 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2605 # Make sure we can run config.sub.
2606 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2607 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2610 $as_echo_n "checking build system type... " >&6; }
2611 if ${ac_cv_build+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 ac_build_alias=$build_alias
2615 test "x$ac_build_alias" = x &&
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2617 test "x$ac_build_alias" = x &&
2618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2619 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2624 $as_echo "$ac_cv_build" >&6; }
2625 case $ac_cv_build in
2626 *-*-*) ;;
2627 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2628 esac
2629 build=$ac_cv_build
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_build
2632 shift
2633 build_cpu=$1
2634 build_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 build_os=$*
2639 IFS=$ac_save_IFS
2640 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2644 $as_echo_n "checking host system type... " >&6; }
2645 if ${ac_cv_host+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test "x$host_alias" = x; then
2649 ac_cv_host=$ac_cv_build
2650 else
2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2657 $as_echo "$ac_cv_host" >&6; }
2658 case $ac_cv_host in
2659 *-*-*) ;;
2660 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2661 esac
2662 host=$ac_cv_host
2663 ac_save_IFS=$IFS; IFS='-'
2664 set x $ac_cv_host
2665 shift
2666 host_cpu=$1
2667 host_vendor=$2
2668 shift; shift
2669 # Remember, the first character of IFS is used to create $*,
2670 # except with old shells:
2671 host_os=$*
2672 IFS=$ac_save_IFS
2673 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2677 $as_echo_n "checking target system type... " >&6; }
2678 if ${ac_cv_target+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test "x$target_alias" = x; then
2682 ac_cv_target=$ac_cv_host
2683 else
2684 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2690 $as_echo "$ac_cv_target" >&6; }
2691 case $ac_cv_target in
2692 *-*-*) ;;
2693 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2694 esac
2695 target=$ac_cv_target
2696 ac_save_IFS=$IFS; IFS='-'
2697 set x $ac_cv_target
2698 shift
2699 target_cpu=$1
2700 target_vendor=$2
2701 shift; shift
2702 # Remember, the first character of IFS is used to create $*,
2703 # except with old shells:
2704 target_os=$*
2705 IFS=$ac_save_IFS
2706 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2709 # The aliases save the names the user supplied, while $host etc.
2710 # will get canonicalized.
2711 test -n "$target_alias" &&
2712 test "$program_prefix$program_suffix$program_transform_name" = \
2713 NONENONEs,x,x, &&
2714 program_prefix=${target_alias}-
2716 target_alias=${target_alias-$host_alias}
2718 am__api_version='1.15'
2720 # Find a good install program. We prefer a C program (faster),
2721 # so one script is as good as another. But avoid the broken or
2722 # incompatible versions:
2723 # SysV /etc/install, /usr/sbin/install
2724 # SunOS /usr/etc/install
2725 # IRIX /sbin/install
2726 # AIX /bin/install
2727 # AmigaOS /C/install, which installs bootblocks on floppy discs
2728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2731 # OS/2's system install, which has a completely different semantic
2732 # ./install, which can be erroneously created by make from ./install.sh.
2733 # Reject install programs that cannot install multiple files.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2735 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2736 if test -z "$INSTALL"; then
2737 if ${ac_cv_path_install+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 # Account for people who put trailing slashes in PATH elements.
2746 case $as_dir/ in #((
2747 ./ | .// | /[cC]/* | \
2748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2750 /usr/ucb/* ) ;;
2752 # OSF1 and SCO ODT 3.0 have their own names for install.
2753 # Don't use installbsd from OSF since it installs stuff as root
2754 # by default.
2755 for ac_prog in ginstall scoinst install; do
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2758 if test $ac_prog = install &&
2759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760 # AIX install. It has an incompatible calling convention.
2762 elif test $ac_prog = install &&
2763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2764 # program-specific install script used by HP pwplus--don't use.
2766 else
2767 rm -rf conftest.one conftest.two conftest.dir
2768 echo one > conftest.one
2769 echo two > conftest.two
2770 mkdir conftest.dir
2771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2772 test -s conftest.one && test -s conftest.two &&
2773 test -s conftest.dir/conftest.one &&
2774 test -s conftest.dir/conftest.two
2775 then
2776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2777 break 3
2781 done
2782 done
2784 esac
2786 done
2787 IFS=$as_save_IFS
2789 rm -rf conftest.one conftest.two conftest.dir
2792 if test "${ac_cv_path_install+set}" = set; then
2793 INSTALL=$ac_cv_path_install
2794 else
2795 # As a last resort, use the slow shell script. Don't cache a
2796 # value for INSTALL within a source directory, because that will
2797 # break other packages using the cache if that directory is
2798 # removed, or if the value is a relative name.
2799 INSTALL=$ac_install_sh
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2803 $as_echo "$INSTALL" >&6; }
2805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2806 # It thinks the first close brace ends the variable substitution.
2807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2814 $as_echo_n "checking whether build environment is sane... " >&6; }
2815 # Reject unsafe characters in $srcdir or the absolute working directory
2816 # name. Accept space and tab only in the latter.
2817 am_lf='
2819 case `pwd` in
2820 *[\\\"\#\$\&\'\`$am_lf]*)
2821 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2822 esac
2823 case $srcdir in
2824 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2825 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2826 esac
2828 # Do 'set' in a subshell so we don't clobber the current shell's
2829 # arguments. Must try -L first in case configure is actually a
2830 # symlink; some systems play weird games with the mod time of symlinks
2831 # (eg FreeBSD returns the mod time of the symlink's containing
2832 # directory).
2833 if (
2834 am_has_slept=no
2835 for am_try in 1 2; do
2836 echo "timestamp, slept: $am_has_slept" > conftest.file
2837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2838 if test "$*" = "X"; then
2839 # -L didn't work.
2840 set X `ls -t "$srcdir/configure" conftest.file`
2842 if test "$*" != "X $srcdir/configure conftest.file" \
2843 && test "$*" != "X conftest.file $srcdir/configure"; then
2845 # If neither matched, then we have a broken ls. This can happen
2846 # if, for instance, CONFIG_SHELL is bash and it inherits a
2847 # broken ls alias from the environment. This has actually
2848 # happened. Such a system could not be considered "sane".
2849 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2850 alias in your environment" "$LINENO" 5
2852 if test "$2" = conftest.file || test $am_try -eq 2; then
2853 break
2855 # Just in case.
2856 sleep 1
2857 am_has_slept=yes
2858 done
2859 test "$2" = conftest.file
2861 then
2862 # Ok.
2864 else
2865 as_fn_error $? "newly created file is older than distributed files!
2866 Check your system clock" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 # If we didn't sleep, we still need to ensure time stamps of config.status and
2871 # generated files are strictly newer.
2872 am_sleep_pid=
2873 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2874 ( sleep 1 ) &
2875 am_sleep_pid=$!
2878 rm -f conftest.file
2880 test "$program_prefix" != NONE &&
2881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2882 # Use a double $ so make ignores it.
2883 test "$program_suffix" != NONE &&
2884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2885 # Double any \ or $.
2886 # By default was `s,x,x', remove it if useless.
2887 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2888 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890 # Expand $ac_aux_dir to an absolute path.
2891 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2893 if test x"${MISSING+set}" != xset; then
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2899 esac
2901 # Use eval to expand $SHELL
2902 if eval "$MISSING --is-lightweight"; then
2903 am_missing_run="$MISSING "
2904 else
2905 am_missing_run=
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2907 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2910 if test x"${install_sh+set}" != xset; then
2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 install_sh="\${SHELL} $am_aux_dir/install-sh"
2916 esac
2919 # Installed binaries are usually stripped using 'strip' when the user
2920 # run "make install-strip". However 'strip' might not be the right
2921 # tool to use in cross-compilation environments, therefore Automake
2922 # will honor the 'STRIP' environment variable to overrule this program.
2923 if test "$cross_compiling" != no; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}strip; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_STRIP+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$STRIP"; then
2933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 STRIP=$ac_cv_prog_STRIP
2953 if test -n "$STRIP"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2955 $as_echo "$STRIP" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$ac_cv_prog_STRIP"; then
2964 ac_ct_STRIP=$STRIP
2965 # Extract the first word of "strip", so it can be a program name with args.
2966 set dummy strip; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_STRIP"; then
2973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_ac_ct_STRIP="strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2993 if test -n "$ac_ct_STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2995 $as_echo "$ac_ct_STRIP" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3001 if test "x$ac_ct_STRIP" = x; then
3002 STRIP=":"
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 STRIP=$ac_ct_STRIP
3012 else
3013 STRIP="$ac_cv_prog_STRIP"
3017 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3020 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3021 if test -z "$MKDIR_P"; then
3022 if ${ac_cv_path_mkdir+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_prog in mkdir gmkdir; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3034 'mkdir (GNU coreutils) '* | \
3035 'mkdir (coreutils) '* | \
3036 'mkdir (fileutils) '4.1*)
3037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3038 break 3;;
3039 esac
3040 done
3041 done
3042 done
3043 IFS=$as_save_IFS
3047 test -d ./--version && rmdir ./--version
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 MKDIR_P="$ac_install_sh -d"
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3059 $as_echo "$MKDIR_P" >&6; }
3061 for ac_prog in gawk mawk nawk awk
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_AWK+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$AWK"; then
3071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_AWK="$ac_prog"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 AWK=$ac_cv_prog_AWK
3091 if test -n "$AWK"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3093 $as_echo "$AWK" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3100 test -n "$AWK" && break
3101 done
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3104 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3105 set x ${MAKE-make}
3106 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3107 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 cat >conftest.make <<\_ACEOF
3111 SHELL = /bin/sh
3112 all:
3113 @echo '@@@%%%=$(MAKE)=@@@%%%'
3114 _ACEOF
3115 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117 *@@@%%%=?*=@@@%%%*)
3118 eval ac_cv_prog_make_${ac_make}_set=yes;;
3120 eval ac_cv_prog_make_${ac_make}_set=no;;
3121 esac
3122 rm -f conftest.make
3124 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3127 SET_MAKE=
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 SET_MAKE="MAKE=${MAKE-make}"
3134 rm -rf .tst 2>/dev/null
3135 mkdir .tst 2>/dev/null
3136 if test -d .tst; then
3137 am__leading_dot=.
3138 else
3139 am__leading_dot=_
3141 rmdir .tst 2>/dev/null
3143 # Check whether --enable-silent-rules was given.
3144 if test "${enable_silent_rules+set}" = set; then :
3145 enableval=$enable_silent_rules;
3148 case $enable_silent_rules in # (((
3149 yes) AM_DEFAULT_VERBOSITY=0;;
3150 no) AM_DEFAULT_VERBOSITY=1;;
3151 *) AM_DEFAULT_VERBOSITY=1;;
3152 esac
3153 am_make=${MAKE-make}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3155 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3156 if ${am_cv_make_support_nested_variables+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if $as_echo 'TRUE=$(BAR$(V))
3160 BAR0=false
3161 BAR1=true
3163 am__doit:
3164 @$(TRUE)
3165 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3166 am_cv_make_support_nested_variables=yes
3167 else
3168 am_cv_make_support_nested_variables=no
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3172 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3173 if test $am_cv_make_support_nested_variables = yes; then
3174 AM_V='$(V)'
3175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3176 else
3177 AM_V=$AM_DEFAULT_VERBOSITY
3178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3180 AM_BACKSLASH='\'
3182 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
3188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3192 # test whether we have cygpath
3193 if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3202 # Define the identity of the package.
3203 PACKAGE='libgo'
3204 VERSION='version-unused'
3207 # Some tools Automake needs.
3209 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3212 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3215 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3218 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3221 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3223 # For better backward compatibility. To be removed once Automake 1.9.x
3224 # dies out for good. For more background, see:
3225 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3226 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3227 mkdir_p='$(MKDIR_P)'
3229 # We need awk for the "check" target (and possibly the TAP driver). The
3230 # system "awk" is bad on some platforms.
3231 # Always define AMTAR for backward compatibility. Yes, it's still used
3232 # in the wild :-( We should find a proper way to deprecate it ...
3233 AMTAR='$${TAR-tar}'
3236 # We'll loop over all known methods to create a tar archive until one works.
3237 _am_tools='gnutar pax cpio none'
3239 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3246 # POSIX will say in a future version that running "rm -f" with no argument
3247 # is OK; and we want to be able to make that assumption in our Makefile
3248 # recipes. So use an aggressive probe to check that the usage we want is
3249 # actually supported "in the wild" to an acceptable degree.
3250 # See automake bug#10828.
3251 # To make any issue more visible, cause the running configure to be aborted
3252 # by default if the 'rm' program in use doesn't match our expectations; the
3253 # user can still override this though.
3254 if rm -f && rm -fr && rm -rf; then : OK; else
3255 cat >&2 <<'END'
3256 Oops!
3258 Your 'rm' program seems unable to run without file operands specified
3259 on the command line, even when the '-f' option is present. This is contrary
3260 to the behaviour of most rm programs out there, and not conforming with
3261 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3263 Please tell bug-automake@gnu.org about your system, including the value
3264 of your $PATH and any error possibly output before this message. This
3265 can help us improve future automake versions.
3268 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3269 echo 'Configuration will proceed anyway, since you have set the' >&2
3270 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3271 echo >&2
3272 else
3273 cat >&2 <<'END'
3274 Aborting the configuration process, to ensure you take notice of the issue.
3276 You can download and install GNU coreutils to get an 'rm' implementation
3277 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3279 If you want to complete the configuration process using your problematic
3280 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3281 to "yes", and re-run configure.
3284 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3320 done
3321 done
3322 IFS=$as_save_IFS
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$ac_cv_prog_CC"; then
3338 ac_ct_CC=$CC
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3362 IFS=$as_save_IFS
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3375 if test "x$ac_ct_CC" = x; then
3376 CC=""
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384 CC=$ac_ct_CC
3386 else
3387 CC="$ac_cv_prog_CC"
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_CC="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3454 ac_cv_prog_CC="cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$CC" && break
3529 done
3531 if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$ac_ct_CC" && break
3573 done
3575 if test "x$ac_ct_CC" = x; then
3576 CC=""
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CC=$ac_ct_CC
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598 set X $ac_compile
3599 ac_compiler=$2
3600 for ac_option in --version -v -V -qversion; do
3601 { { ac_try="$ac_compiler $ac_option >&5"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 ac_status=$?
3610 if test -s conftest.err; then
3611 sed '10a\
3612 ... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
3616 rm -f conftest.er1 conftest.err
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3619 done
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3629 return 0;
3631 _ACEOF
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3636 # of exeext.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644 ac_rmfiles=
3645 for ac_file in $ac_files
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 esac
3651 done
3652 rm -f $ac_rmfiles
3654 if { { ac_try="$ac_link_default"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3692 break;;
3693 esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3697 else
3698 ac_file=''
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 break;;
3745 * ) break;;
3746 esac
3747 done
3748 else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdio.h>
3765 main ()
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3771 return 0;
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3799 ac_status=$?
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3802 cross_compiling=no
3803 else
3804 if test "$cross_compiling" = maybe; then
3805 cross_compiling=yes
3806 else
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if ${ac_cv_objext+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 main ()
3833 return 0;
3835 _ACEOF
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3845 ac_status=$?
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853 break;;
3854 esac
3855 done
3856 else
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3870 ac_objext=$OBJEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if ${ac_cv_c_compiler_gnu+:} false; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3882 #ifndef __GNUC__
3883 choke me
3884 #endif
3887 return 0;
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_compiler_gnu=yes
3892 else
3893 ac_compiler_gnu=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3902 GCC=yes
3903 else
3904 GCC=
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if ${ac_cv_prog_cc_g+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3915 ac_cv_prog_cc_g=no
3916 CFLAGS="-g"
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3921 main ()
3925 return 0;
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_g=yes
3930 else
3931 CFLAGS=""
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3936 main ()
3940 return 0;
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3945 else
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3947 CFLAGS="-g"
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3952 main ()
3956 return 0;
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960 ac_cv_prog_cc_g=yes
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3975 CFLAGS="-g -O2"
3976 else
3977 CFLAGS="-g"
3979 else
3980 if test "$GCC" = yes; then
3981 CFLAGS="-O2"
3982 else
3983 CFLAGS=
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 struct stat;
3998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3999 struct buf { int x; };
4000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4001 static char *e (p, i)
4002 char **p;
4003 int i;
4005 return p[i];
4007 static char *f (char * (*g) (char **, int), char **p, ...)
4009 char *s;
4010 va_list v;
4011 va_start (v,p);
4012 s = g (p, va_arg (v,int));
4013 va_end (v);
4014 return s;
4017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4018 function prototypes and stuff, but not '\xHH' hex character constants.
4019 These don't provoke an error unfortunately, instead are silently treated
4020 as 'x'. The following induces an error, until -std is added to get
4021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4022 array size at least. It's necessary to write '\x00'==0 to get something
4023 that's true only with -std. */
4024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4027 inside strings and character constants. */
4028 #define FOO(x) 'x'
4029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031 int test (int i, double x);
4032 struct s1 {int (*f) (int a);};
4033 struct s2 {int (*f) (double a);};
4034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4035 int argc;
4036 char **argv;
4038 main ()
4040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 return 0;
4044 _ACEOF
4045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 CC="$ac_save_CC $ac_arg"
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_c89=$ac_arg
4052 rm -f core conftest.err conftest.$ac_objext
4053 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 done
4055 rm -f conftest.$ac_ext
4056 CC=$ac_save_CC
4059 # AC_CACHE_VAL
4060 case "x$ac_cv_prog_cc_c89" in
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4063 $as_echo "none needed" >&6; } ;;
4064 xno)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4066 $as_echo "unsupported" >&6; } ;;
4068 CC="$CC $ac_cv_prog_cc_c89"
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 esac
4072 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4088 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4089 if ${am_cv_prog_cc_c_o+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 # Make sure it works both with $CC and with simple cc.
4104 # Following AC_PROG_CC_C_O, we do the test twice because some
4105 # compilers refuse to overwrite an existing .o file with -o,
4106 # though they will create one.
4107 am_cv_prog_cc_c_o=yes
4108 for am_i in 1 2; do
4109 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4110 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } \
4114 && test -f conftest2.$ac_objext; then
4115 : OK
4116 else
4117 am_cv_prog_cc_c_o=no
4118 break
4120 done
4121 rm -f core conftest*
4122 unset am_i
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4125 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4126 if test "$am_cv_prog_cc_c_o" != yes; then
4127 # Losing compiler, so override with the script.
4128 # FIXME: It is wrong to rewrite CC.
4129 # But if we don't then we get into trouble of one sort or another.
4130 # A longer-term fix would be to have automake use am__CC in this case,
4131 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132 CC="$am_aux_dir/compile $CC"
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 DEPDIR="${am__leading_dot}deps"
4142 ac_config_commands="$ac_config_commands depfiles"
4145 am_make=${MAKE-make}
4146 cat > confinc << 'END'
4147 am__doit:
4148 @echo this is the am__doit target
4149 .PHONY: am__doit
4151 # If we don't find an include directive, just comment out the code.
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4153 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4154 am__include="#"
4155 am__quote=
4156 _am_result=none
4157 # First try GNU make style include.
4158 echo "include confinc" > confmf
4159 # Ignore all kinds of additional output from 'make'.
4160 case `$am_make -s -f confmf 2> /dev/null` in #(
4161 *the\ am__doit\ target*)
4162 am__include=include
4163 am__quote=
4164 _am_result=GNU
4166 esac
4167 # Now try BSD make style include.
4168 if test "$am__include" = "#"; then
4169 echo '.include "confinc"' > confmf
4170 case `$am_make -s -f confmf 2> /dev/null` in #(
4171 *the\ am__doit\ target*)
4172 am__include=.include
4173 am__quote="\""
4174 _am_result=BSD
4176 esac
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4181 $as_echo "$_am_result" >&6; }
4182 rm -f confinc confmf
4184 # Check whether --enable-dependency-tracking was given.
4185 if test "${enable_dependency_tracking+set}" = set; then :
4186 enableval=$enable_dependency_tracking;
4189 if test "x$enable_dependency_tracking" != xno; then
4190 am_depcomp="$ac_aux_dir/depcomp"
4191 AMDEPBACKSLASH='\'
4192 am__nodep='_no'
4194 if test "x$enable_dependency_tracking" != xno; then
4195 AMDEP_TRUE=
4196 AMDEP_FALSE='#'
4197 else
4198 AMDEP_TRUE='#'
4199 AMDEP_FALSE=
4204 depcc="$CC" am_compiler_list=
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4207 $as_echo_n "checking dependency style of $depcc... " >&6; }
4208 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4212 # We make a subdir and do the tests there. Otherwise we can end up
4213 # making bogus files that we don't know about and never remove. For
4214 # instance it was reported that on HP-UX the gcc test will end up
4215 # making a dummy file named 'D' -- because '-MD' means "put the output
4216 # in D".
4217 rm -rf conftest.dir
4218 mkdir conftest.dir
4219 # Copy depcomp to subdir because otherwise we won't find it if we're
4220 # using a relative directory.
4221 cp "$am_depcomp" conftest.dir
4222 cd conftest.dir
4223 # We will build objects and dependencies in a subdirectory because
4224 # it helps to detect inapplicable dependency modes. For instance
4225 # both Tru64's cc and ICC support -MD to output dependencies as a
4226 # side effect of compilation, but ICC will put the dependencies in
4227 # the current directory while Tru64 will put them in the object
4228 # directory.
4229 mkdir sub
4231 am_cv_CC_dependencies_compiler_type=none
4232 if test "$am_compiler_list" = ""; then
4233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4235 am__universal=false
4236 case " $depcc " in #(
4237 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4238 esac
4240 for depmode in $am_compiler_list; do
4241 # Setup a source with many dependencies, because some compilers
4242 # like to wrap large dependency lists on column 80 (with \), and
4243 # we should not choose a depcomp mode which is confused by this.
4245 # We need to recreate these files for each test, as the compiler may
4246 # overwrite some of them when testing with obscure command lines.
4247 # This happens at least with the AIX C compiler.
4248 : > sub/conftest.c
4249 for i in 1 2 3 4 5 6; do
4250 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4251 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4252 # Solaris 10 /bin/sh.
4253 echo '/* dummy */' > sub/conftst$i.h
4254 done
4255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4257 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4258 # mode. It turns out that the SunPro C++ compiler does not properly
4259 # handle '-M -o', and we need to detect this. Also, some Intel
4260 # versions had trouble with output in subdirs.
4261 am__obj=sub/conftest.${OBJEXT-o}
4262 am__minus_obj="-o $am__obj"
4263 case $depmode in
4264 gcc)
4265 # This depmode causes a compiler race in universal mode.
4266 test "$am__universal" = false || continue
4268 nosideeffect)
4269 # After this tag, mechanisms are not by side-effect, so they'll
4270 # only be used when explicitly requested.
4271 if test "x$enable_dependency_tracking" = xyes; then
4272 continue
4273 else
4274 break
4277 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4278 # This compiler won't grok '-c -o', but also, the minuso test has
4279 # not run yet. These depmodes are late enough in the game, and
4280 # so weak that their functioning should not be impacted.
4281 am__obj=conftest.${OBJEXT-o}
4282 am__minus_obj=
4284 none) break ;;
4285 esac
4286 if depmode=$depmode \
4287 source=sub/conftest.c object=$am__obj \
4288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4290 >/dev/null 2>conftest.err &&
4291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295 # icc doesn't choke on unknown options, it will just issue warnings
4296 # or remarks (even with -Werror). So we grep stderr for any message
4297 # that says an option was ignored or not supported.
4298 # When given -MP, icc 7.0 and 7.1 complain thusly:
4299 # icc: Command line warning: ignoring option '-M'; no argument required
4300 # The diagnosis changed in icc 8.0:
4301 # icc: Command line remark: option '-MP' not supported
4302 if (grep 'ignoring option' conftest.err ||
4303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4304 am_cv_CC_dependencies_compiler_type=$depmode
4305 break
4308 done
4310 cd ..
4311 rm -rf conftest.dir
4312 else
4313 am_cv_CC_dependencies_compiler_type=none
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4318 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4322 test "x$enable_dependency_tracking" != xno \
4323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4324 am__fastdepCC_TRUE=
4325 am__fastdepCC_FALSE='#'
4326 else
4327 am__fastdepCC_TRUE='#'
4328 am__fastdepCC_FALSE=
4332 ac_ext=go
4333 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4334 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=yes
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_GOC+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$GOC"; then
4345 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 GOC=$ac_cv_prog_GOC
4365 if test -n "$GOC"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4367 $as_echo "$GOC" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4375 if test -z "$ac_cv_prog_GOC"; then
4376 ac_ct_GOC=$GOC
4377 # Extract the first word of "gccgo", so it can be a program name with args.
4378 set dummy gccgo; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_GOC"; then
4385 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_GOC="gccgo"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4405 if test -n "$ac_ct_GOC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4407 $as_echo "$ac_ct_GOC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4413 if test "x$ac_ct_GOC" = x; then
4414 GOC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 GOC=$ac_ct_GOC
4424 else
4425 GOC="$ac_cv_prog_GOC"
4428 if test -z "$GOC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_GOC+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$GOC"; then
4438 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 GOC=$ac_cv_prog_GOC
4458 if test -n "$GOC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4460 $as_echo "$GOC" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4469 if test -z "$GOC"; then
4470 # Extract the first word of "gccgo", so it can be a program name with args.
4471 set dummy gccgo; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_GOC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$GOC"; then
4478 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4479 else
4480 ac_prog_rejected=no
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4489 ac_prog_rejected=yes
4490 continue
4492 ac_cv_prog_GOC="gccgo"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4500 if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_GOC
4503 shift
4504 if test $# != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set GOC to just the basename; use the full file name.
4508 shift
4509 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4514 GOC=$ac_cv_prog_GOC
4515 if test -n "$GOC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4517 $as_echo "$GOC" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4527 # Provide some information about the compiler.
4528 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4529 set X $ac_compile
4530 ac_compiler=$2
4531 { { ac_try="$ac_compiler --version >&5"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler --version >&5") 2>conftest.err
4539 ac_status=$?
4540 if test -s conftest.err; then
4541 sed '10a\
4542 ... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
4546 rm -f conftest.er1 conftest.err
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4549 GOFLAGS="-g -O2"
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 case ${host} in
4561 *-*-aix*)
4562 # static hash tables crashes on AIX when libgo is built with O2
4563 CFLAGS="$CFLAGS -fno-section-anchors"
4564 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4566 esac
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4571 # Check whether --enable-maintainer-mode was given.
4572 if test "${enable_maintainer_mode+set}" = set; then :
4573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4574 else
4575 USE_MAINTAINER_MODE=no
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4580 if test $USE_MAINTAINER_MODE = yes; then
4581 MAINTAINER_MODE_TRUE=
4582 MAINTAINER_MODE_FALSE='#'
4583 else
4584 MAINTAINER_MODE_TRUE='#'
4585 MAINTAINER_MODE_FALSE=
4588 MAINT=$MAINTAINER_MODE_TRUE
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4593 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4594 if ${ac_cv_path_SED+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4598 for ac_i in 1 2 3 4 5 6 7; do
4599 ac_script="$ac_script$as_nl$ac_script"
4600 done
4601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4602 { ac_script=; unset ac_script;}
4603 if test -z "$SED"; then
4604 ac_path_SED_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in sed gsed; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4614 as_fn_executable_p "$ac_path_SED" || continue
4615 # Check for GNU ac_path_SED and select it if it is found.
4616 # Check for GNU $ac_path_SED
4617 case `"$ac_path_SED" --version 2>&1` in
4618 *GNU*)
4619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo '' >> "conftest.nl"
4629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_SED_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_SED="$ac_path_SED"
4635 ac_path_SED_max=$ac_count
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4643 $ac_path_SED_found && break 3
4644 done
4645 done
4646 done
4647 IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_SED"; then
4649 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4651 else
4652 ac_cv_path_SED=$SED
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4657 $as_echo "$ac_cv_path_SED" >&6; }
4658 SED="$ac_cv_path_SED"
4659 rm -f conftest.sed
4661 test -z "$SED" && SED=sed
4662 Xsed="$SED -e 1s/^X//"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4676 if ${ac_cv_path_GREP+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -z "$GREP"; then
4680 ac_path_GREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in grep ggrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p "$ac_path_GREP" || continue
4691 # Check for GNU ac_path_GREP and select it if it is found.
4692 # Check for GNU $ac_path_GREP
4693 case `"$ac_path_GREP" --version 2>&1` in
4694 *GNU*)
4695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'GREP' >> "conftest.nl"
4705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_GREP="$ac_path_GREP"
4711 ac_path_GREP_max=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4719 $ac_path_GREP_found && break 3
4720 done
4721 done
4722 done
4723 IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_GREP"; then
4725 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4727 else
4728 ac_cv_path_GREP=$GREP
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4733 $as_echo "$ac_cv_path_GREP" >&6; }
4734 GREP="$ac_cv_path_GREP"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4738 $as_echo_n "checking for egrep... " >&6; }
4739 if ${ac_cv_path_EGREP+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4743 then ac_cv_path_EGREP="$GREP -E"
4744 else
4745 if test -z "$EGREP"; then
4746 ac_path_EGREP_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_prog in egrep; do
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4756 as_fn_executable_p "$ac_path_EGREP" || continue
4757 # Check for GNU ac_path_EGREP and select it if it is found.
4758 # Check for GNU $ac_path_EGREP
4759 case `"$ac_path_EGREP" --version 2>&1` in
4760 *GNU*)
4761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4763 ac_count=0
4764 $as_echo_n 0123456789 >"conftest.in"
4765 while :
4767 cat "conftest.in" "conftest.in" >"conftest.tmp"
4768 mv "conftest.tmp" "conftest.in"
4769 cp "conftest.in" "conftest.nl"
4770 $as_echo 'EGREP' >> "conftest.nl"
4771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773 as_fn_arith $ac_count + 1 && ac_count=$as_val
4774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4775 # Best one so far, save it but keep looking for a better one
4776 ac_cv_path_EGREP="$ac_path_EGREP"
4777 ac_path_EGREP_max=$ac_count
4779 # 10*(2^10) chars as input seems more than enough
4780 test $ac_count -gt 10 && break
4781 done
4782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 esac
4785 $ac_path_EGREP_found && break 3
4786 done
4787 done
4788 done
4789 IFS=$as_save_IFS
4790 if test -z "$ac_cv_path_EGREP"; then
4791 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4793 else
4794 ac_cv_path_EGREP=$EGREP
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4800 $as_echo "$ac_cv_path_EGREP" >&6; }
4801 EGREP="$ac_cv_path_EGREP"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4805 $as_echo_n "checking for fgrep... " >&6; }
4806 if ${ac_cv_path_FGREP+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4810 then ac_cv_path_FGREP="$GREP -F"
4811 else
4812 if test -z "$FGREP"; then
4813 ac_path_FGREP_found=false
4814 # Loop through the user's path and test for each of PROGNAME-LIST
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_prog in fgrep; do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4823 as_fn_executable_p "$ac_path_FGREP" || continue
4824 # Check for GNU ac_path_FGREP and select it if it is found.
4825 # Check for GNU $ac_path_FGREP
4826 case `"$ac_path_FGREP" --version 2>&1` in
4827 *GNU*)
4828 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4830 ac_count=0
4831 $as_echo_n 0123456789 >"conftest.in"
4832 while :
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 $as_echo 'FGREP' >> "conftest.nl"
4838 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
4841 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_FGREP="$ac_path_FGREP"
4844 ac_path_FGREP_max=$ac_count
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 esac
4852 $ac_path_FGREP_found && break 3
4853 done
4854 done
4855 done
4856 IFS=$as_save_IFS
4857 if test -z "$ac_cv_path_FGREP"; then
4858 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4860 else
4861 ac_cv_path_FGREP=$FGREP
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4867 $as_echo "$ac_cv_path_FGREP" >&6; }
4868 FGREP="$ac_cv_path_FGREP"
4871 test -z "$GREP" && GREP=grep
4889 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4894 $as_echo_n "checking how to print strings... " >&6; }
4895 # Test print first, because it will be a builtin if present.
4896 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4897 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4898 ECHO='print -r --'
4899 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4900 ECHO='printf %s\n'
4901 else
4902 # Use this function as a fallback that always works.
4903 func_fallback_echo ()
4905 eval 'cat <<_LTECHO_EOF
4907 _LTECHO_EOF'
4909 ECHO='func_fallback_echo'
4912 # func_echo_all arg...
4913 # Invoke $ECHO with all args, space-separated.
4914 func_echo_all ()
4916 $ECHO ""
4919 case "$ECHO" in
4920 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4921 $as_echo "printf" >&6; } ;;
4922 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4923 $as_echo "print -r" >&6; } ;;
4924 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4925 $as_echo "cat" >&6; } ;;
4926 esac
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then :
4945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4946 else
4947 with_gnu_ld=no
4950 ac_prog=ld
4951 if test "$GCC" = yes; then
4952 # Check if gcc -print-prog-name=ld gives a path.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4955 case $host in
4956 *-*-mingw*)
4957 # gcc leaves a trailing carriage return which upsets mingw
4958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961 esac
4962 case $ac_prog in
4963 # Accept absolute paths.
4964 [\\/]* | ?:[\\/]*)
4965 re_direlt='/[^/][^/]*/\.\./'
4966 # Canonicalize the pathname of ld
4967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4970 done
4971 test -z "$LD" && LD="$ac_prog"
4974 # If it fails, then pretend we aren't using GCC.
4975 ac_prog=ld
4978 # If it is relative, then search for the first ld in PATH.
4979 with_gnu_ld=unknown
4981 esac
4982 elif test "$with_gnu_ld" = yes; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4989 if ${lt_cv_path_LD+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -z "$LD"; then
4993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994 for ac_dir in $PATH; do
4995 IFS="$lt_save_ifs"
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998 lt_cv_path_LD="$ac_dir/$ac_prog"
4999 # Check to see if the program is GNU ld. I'd rather use --version,
5000 # but apparently some variants of GNU ld only accept -v.
5001 # Break only if it was the GNU/non-GNU ld that we prefer.
5002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003 *GNU* | *'with BFD'*)
5004 test "$with_gnu_ld" != no && break
5007 test "$with_gnu_ld" != yes && break
5009 esac
5011 done
5012 IFS="$lt_save_ifs"
5013 else
5014 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5018 LD="$lt_cv_path_LD"
5019 if test -n "$LD"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5026 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5029 if ${lt_cv_prog_gnu_ld+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033 case `$LD -v 2>&1 </dev/null` in
5034 *GNU* | *'with BFD'*)
5035 lt_cv_prog_gnu_ld=yes
5038 lt_cv_prog_gnu_ld=no
5040 esac
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044 with_gnu_ld=$lt_cv_prog_gnu_ld
5054 if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_RANLIB+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$RANLIB"; then
5063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 RANLIB=$ac_cv_prog_RANLIB
5083 if test -n "$RANLIB"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5085 $as_echo "$RANLIB" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5093 if test -z "$ac_cv_prog_RANLIB"; then
5094 ac_ct_RANLIB=$RANLIB
5095 # Extract the first word of "ranlib", so it can be a program name with args.
5096 set dummy ranlib; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$ac_ct_RANLIB"; then
5103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_ac_ct_RANLIB="ranlib"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5123 if test -n "$ac_ct_RANLIB"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5125 $as_echo "$ac_ct_RANLIB" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5131 if test "x$ac_ct_RANLIB" = x; then
5132 RANLIB=":"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135 yes:)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140 RANLIB=$ac_ct_RANLIB
5142 else
5143 RANLIB="$ac_cv_prog_RANLIB"
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_OBJCOPY+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$OBJCOPY"; then
5155 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 OBJCOPY=$ac_cv_prog_OBJCOPY
5175 if test -n "$OBJCOPY"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5177 $as_echo "$OBJCOPY" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5185 if test -z "$ac_cv_prog_OBJCOPY"; then
5186 ac_ct_OBJCOPY=$OBJCOPY
5187 # Extract the first word of "objcopy", so it can be a program name with args.
5188 set dummy objcopy; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_OBJCOPY"; then
5195 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5208 done
5209 done
5210 IFS=$as_save_IFS
5214 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5215 if test -n "$ac_ct_OBJCOPY"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5217 $as_echo "$ac_ct_OBJCOPY" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5223 if test "x$ac_ct_OBJCOPY" = x; then
5224 OBJCOPY="missing-objcopy"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 OBJCOPY=$ac_ct_OBJCOPY
5234 else
5235 OBJCOPY="$ac_cv_prog_OBJCOPY"
5239 enable_dlopen=yes
5243 case `pwd` in
5244 *\ * | *\ *)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5246 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5247 esac
5251 macro_version='2.2.7a'
5252 macro_revision='1.3134'
5266 ltmain="$ac_aux_dir/ltmain.sh"
5268 # Backslashify metacharacters that are still active within
5269 # double-quoted strings.
5270 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5272 # Same as above, but do not quote variable references.
5273 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5275 # Sed substitution to delay expansion of an escaped shell variable in a
5276 # double_quote_subst'ed string.
5277 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5279 # Sed substitution to delay expansion of an escaped single quote.
5280 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5282 # Sed substitution to avoid accidental globbing in evaled expressions
5283 no_glob_subst='s/\*/\\\*/g'
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5286 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5287 if ${lt_cv_path_NM+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$NM"; then
5291 # Let the user override the test.
5292 lt_cv_path_NM="$NM"
5293 else
5294 lt_nm_to_check="${ac_tool_prefix}nm"
5295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5296 lt_nm_to_check="$lt_nm_to_check nm"
5298 for lt_tmp_nm in $lt_nm_to_check; do
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5301 IFS="$lt_save_ifs"
5302 test -z "$ac_dir" && ac_dir=.
5303 tmp_nm="$ac_dir/$lt_tmp_nm"
5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305 # Check to see if the nm accepts a BSD-compat flag.
5306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307 # nm: unknown option "B" ignored
5308 # Tru64's nm complains that /dev/null is an invalid object file
5309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310 */dev/null* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5312 break
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316 */dev/null*)
5317 lt_cv_path_NM="$tmp_nm -p"
5318 break
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5324 esac
5326 esac
5328 done
5329 IFS="$lt_save_ifs"
5330 done
5331 : ${lt_cv_path_NM=no}
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5335 $as_echo "$lt_cv_path_NM" >&6; }
5336 if test "$lt_cv_path_NM" != "no"; then
5337 NM="$lt_cv_path_NM"
5338 else
5339 # Didn't find any BSD compatible name lister, look for dumpbin.
5340 if test -n "$DUMPBIN"; then :
5341 # Let the user override the test.
5342 else
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in dumpbin "link -dump"
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_DUMPBIN+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 DUMPBIN=$ac_cv_prog_DUMPBIN
5374 if test -n "$DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5376 $as_echo "$DUMPBIN" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 test -n "$DUMPBIN" && break
5384 done
5386 if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
5388 for ac_prog in dumpbin "link -dump"
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418 if test -n "$ac_ct_DUMPBIN"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5420 $as_echo "$ac_ct_DUMPBIN" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 test -n "$ac_ct_DUMPBIN" && break
5428 done
5430 if test "x$ac_ct_DUMPBIN" = x; then
5431 DUMPBIN=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 DUMPBIN=$ac_ct_DUMPBIN
5443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5444 *COFF*)
5445 DUMPBIN="$DUMPBIN -symbols"
5448 DUMPBIN=:
5450 esac
5453 if test "$DUMPBIN" != ":"; then
5454 NM="$DUMPBIN"
5457 test -z "$NM" && NM=nm
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5465 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5466 if ${lt_cv_nm_interface+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 lt_cv_nm_interface="BSD nm"
5470 echo "int some_variable = 0;" > conftest.$ac_ext
5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5472 (eval "$ac_compile" 2>conftest.err)
5473 cat conftest.err >&5
5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5476 cat conftest.err >&5
5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5478 cat conftest.out >&5
5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5480 lt_cv_nm_interface="MS dumpbin"
5482 rm -f conftest*
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5485 $as_echo "$lt_cv_nm_interface" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5488 $as_echo_n "checking whether ln -s works... " >&6; }
5489 LN_S=$as_ln_s
5490 if test "$LN_S" = "ln -s"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5495 $as_echo "no, using $LN_S" >&6; }
5498 # find the maximum length of command line arguments
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5501 if ${lt_cv_sys_max_cmd_len+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5505 teststring="ABCD"
5507 case $build_os in
5508 msdosdjgpp*)
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5516 gnu*)
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5523 cygwin* | mingw* | cegcc*)
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5534 mint*)
5535 # On MiNT this can take a long time and run out of memory.
5536 lt_cv_sys_max_cmd_len=8192;
5539 amigaos*)
5540 # On AmigaOS with pdksh, this test takes hours, literally.
5541 # So we just punt and use a minimum line length of 8192.
5542 lt_cv_sys_max_cmd_len=8192;
5545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5546 # This has been around since 386BSD, at least. Likely further.
5547 if test -x /sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5549 elif test -x /usr/sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5551 else
5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5554 # And add a safety zone
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5559 interix*)
5560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5561 lt_cv_sys_max_cmd_len=196608
5564 osf*)
5565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5567 # nice to cause kernel panics so lets avoid the loop below.
5568 # First set a reasonable default.
5569 lt_cv_sys_max_cmd_len=16384
5571 if test -x /sbin/sysconfig; then
5572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 esac
5577 sco3.2v5*)
5578 lt_cv_sys_max_cmd_len=102400
5580 sysv5* | sco5v6* | sysv4.2uw2*)
5581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5582 if test -n "$kargmax"; then
5583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5584 else
5585 lt_cv_sys_max_cmd_len=32768
5589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5590 if test -n "$lt_cv_sys_max_cmd_len"; then
5591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593 else
5594 # Make teststring a little bigger before we do anything with it.
5595 # a 1K string should be a reasonable start.
5596 for i in 1 2 3 4 5 6 7 8 ; do
5597 teststring=$teststring$teststring
5598 done
5599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5602 # we can't tell.
5603 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5604 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5605 test $i != 17 # 1/2 MB should be enough
5607 i=`expr $i + 1`
5608 teststring=$teststring$teststring
5609 done
5610 # Only check the string length outside the loop.
5611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5612 teststring=
5613 # Add a significant safety factor because C++ compilers can tack on
5614 # massive amounts of additional arguments before passing them to the
5615 # linker. It appears as though 1/2 is a usable value.
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5619 esac
5623 if test -n $lt_cv_sys_max_cmd_len ; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5625 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5628 $as_echo "none" >&6; }
5630 max_cmd_len=$lt_cv_sys_max_cmd_len
5637 : ${CP="cp -f"}
5638 : ${MV="mv -f"}
5639 : ${RM="rm -f"}
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5642 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5643 # Try some XSI features
5644 xsi_shell=no
5645 ( _lt_dummy="a/b/c"
5646 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5647 = c,a/b,, \
5648 && eval 'test $(( 1 + 1 )) -eq 2 \
5649 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5650 && xsi_shell=yes
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5652 $as_echo "$xsi_shell" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5656 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5657 lt_shell_append=no
5658 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5659 >/dev/null 2>&1 \
5660 && lt_shell_append=yes
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5662 $as_echo "$lt_shell_append" >&6; }
5665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5666 lt_unset=unset
5667 else
5668 lt_unset=false
5675 # test EBCDIC or ASCII
5676 case `echo X|tr X '\101'` in
5677 A) # ASCII based system
5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5679 lt_SP2NL='tr \040 \012'
5680 lt_NL2SP='tr \015\012 \040\040'
5682 *) # EBCDIC based system
5683 lt_SP2NL='tr \100 \n'
5684 lt_NL2SP='tr \r\n \100\100'
5686 esac
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5698 if ${lt_cv_ld_reload_flag+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 lt_cv_ld_reload_flag='-r'
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5704 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5705 reload_flag=$lt_cv_ld_reload_flag
5706 case $reload_flag in
5707 "" | " "*) ;;
5708 *) reload_flag=" $reload_flag" ;;
5709 esac
5710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711 case $host_os in
5712 darwin*)
5713 if test "$GCC" = yes; then
5714 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5715 else
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5719 esac
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_OBJDUMP+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$OBJDUMP"; then
5738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5753 IFS=$as_save_IFS
5757 OBJDUMP=$ac_cv_prog_OBJDUMP
5758 if test -n "$OBJDUMP"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5760 $as_echo "$OBJDUMP" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5768 if test -z "$ac_cv_prog_OBJDUMP"; then
5769 ac_ct_OBJDUMP=$OBJDUMP
5770 # Extract the first word of "objdump", so it can be a program name with args.
5771 set dummy objdump; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 if test -n "$ac_ct_OBJDUMP"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5791 done
5792 done
5793 IFS=$as_save_IFS
5797 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5798 if test -n "$ac_ct_OBJDUMP"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5800 $as_echo "$ac_ct_OBJDUMP" >&6; }
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5806 if test "x$ac_ct_OBJDUMP" = x; then
5807 OBJDUMP="false"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815 OBJDUMP=$ac_ct_OBJDUMP
5817 else
5818 OBJDUMP="$ac_cv_prog_OBJDUMP"
5821 test -z "$OBJDUMP" && OBJDUMP=objdump
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5832 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5833 if ${lt_cv_deplibs_check_method+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 lt_cv_file_magic_cmd='$MAGIC_CMD'
5837 lt_cv_file_magic_test_file=
5838 lt_cv_deplibs_check_method='unknown'
5839 # Need to set the preceding variable on all platforms that support
5840 # interlibrary dependencies.
5841 # 'none' -- dependencies not supported.
5842 # `unknown' -- same as none, but documents that we really don't know.
5843 # 'pass_all' -- all dependencies passed with no checks.
5844 # 'test_compile' -- check by making test program.
5845 # 'file_magic [[regex]]' -- check by looking for files in library path
5846 # which responds to the $file_magic_cmd with a given extended regex.
5847 # If you have `file' or equivalent on your system and you're not sure
5848 # whether `pass_all' will *always* work, you probably want this one.
5850 case $host_os in
5851 aix[4-9]*)
5852 lt_cv_deplibs_check_method=pass_all
5855 beos*)
5856 lt_cv_deplibs_check_method=pass_all
5859 bsdi[45]*)
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5861 lt_cv_file_magic_cmd='/usr/bin/file -L'
5862 lt_cv_file_magic_test_file=/shlib/libc.so
5865 cygwin*)
5866 # func_win32_libid is a shell function defined in ltmain.sh
5867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5868 lt_cv_file_magic_cmd='func_win32_libid'
5871 mingw* | pw32*)
5872 # Base MSYS/MinGW do not provide the 'file' command needed by
5873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5874 # unless we find 'file', for example because we are cross-compiling.
5875 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5876 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 else
5880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5881 lt_cv_file_magic_cmd='$OBJDUMP -f'
5885 cegcc*)
5886 # use the weaker test based on 'objdump'. See mingw*.
5887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5888 lt_cv_file_magic_cmd='$OBJDUMP -f'
5891 darwin* | rhapsody*)
5892 lt_cv_deplibs_check_method=pass_all
5895 freebsd* | dragonfly*)
5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 case $host_cpu in
5898 i*86 )
5899 # Not sure whether the presence of OpenBSD here was a mistake.
5900 # Let's accept both of them until this is cleared up.
5901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5902 lt_cv_file_magic_cmd=/usr/bin/file
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5905 esac
5906 else
5907 lt_cv_deplibs_check_method=pass_all
5911 gnu*)
5912 lt_cv_deplibs_check_method=pass_all
5915 haiku*)
5916 lt_cv_deplibs_check_method=pass_all
5919 hpux10.20* | hpux11*)
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 case $host_cpu in
5922 ia64*)
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5926 hppa*64*)
5927 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]'
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5934 esac
5937 interix[3-9]*)
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5942 irix5* | irix6* | nonstopux*)
5943 case $LD in
5944 *-32|*"-32 ") libmagic=32-bit;;
5945 *-n32|*"-n32 ") libmagic=N32;;
5946 *-64|*"-64 ") libmagic=64-bit;;
5947 *) libmagic=never-match;;
5948 esac
5949 lt_cv_deplibs_check_method=pass_all
5952 # This must be Linux ELF.
5953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5954 lt_cv_deplibs_check_method=pass_all
5957 netbsd*)
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 else
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5965 newos6*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967 lt_cv_file_magic_cmd=/usr/bin/file
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5971 *nto* | *qnx*)
5972 lt_cv_deplibs_check_method=pass_all
5975 openbsd*)
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5983 osf3* | osf4* | osf5*)
5984 lt_cv_deplibs_check_method=pass_all
5987 rdos*)
5988 lt_cv_deplibs_check_method=pass_all
5991 solaris*)
5992 lt_cv_deplibs_check_method=pass_all
5995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996 lt_cv_deplibs_check_method=pass_all
5999 sysv4 | sysv4.3*)
6000 case $host_vendor in
6001 motorola)
6002 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]'
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6005 ncr)
6006 lt_cv_deplibs_check_method=pass_all
6008 sequent)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6012 sni)
6013 lt_cv_file_magic_cmd='/bin/file'
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015 lt_cv_file_magic_test_file=/lib/libc.so
6017 siemens)
6018 lt_cv_deplibs_check_method=pass_all
6021 lt_cv_deplibs_check_method=pass_all
6023 esac
6026 tpf*)
6027 lt_cv_deplibs_check_method=pass_all
6029 esac
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6033 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6034 file_magic_cmd=$lt_cv_file_magic_cmd
6035 deplibs_check_method=$lt_cv_deplibs_check_method
6036 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}ar; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_AR+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$AR"; then
6058 ac_cv_prog_AR="$AR" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_AR="${ac_tool_prefix}ar"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6071 done
6072 done
6073 IFS=$as_save_IFS
6077 AR=$ac_cv_prog_AR
6078 if test -n "$AR"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6080 $as_echo "$AR" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6088 if test -z "$ac_cv_prog_AR"; then
6089 ac_ct_AR=$AR
6090 # Extract the first word of "ar", so it can be a program name with args.
6091 set dummy ar; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$ac_ct_AR"; then
6098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_ac_ct_AR="ar"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6111 done
6112 done
6113 IFS=$as_save_IFS
6117 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6118 if test -n "$ac_ct_AR"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120 $as_echo "$ac_ct_AR" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6126 if test "x$ac_ct_AR" = x; then
6127 AR="false"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 AR=$ac_ct_AR
6137 else
6138 AR="$ac_cv_prog_AR"
6141 test -z "$AR" && AR=ar
6142 test -z "$AR_FLAGS" && AR_FLAGS=cru
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}strip; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_STRIP+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$STRIP"; then
6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6176 done
6177 done
6178 IFS=$as_save_IFS
6182 STRIP=$ac_cv_prog_STRIP
6183 if test -n "$STRIP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6185 $as_echo "$STRIP" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6193 if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196 set dummy strip; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_STRIP="strip"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6216 done
6217 done
6218 IFS=$as_save_IFS
6222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223 if test -n "$ac_ct_STRIP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6225 $as_echo "$ac_ct_STRIP" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6231 if test "x$ac_ct_STRIP" = x; then
6232 STRIP=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 STRIP=$ac_ct_STRIP
6242 else
6243 STRIP="$ac_cv_prog_STRIP"
6246 test -z "$STRIP" && STRIP=:
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_RANLIB+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 RANLIB=$ac_cv_prog_RANLIB
6282 if test -n "$RANLIB"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6284 $as_echo "$RANLIB" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6292 if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295 set dummy ranlib; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_ac_ct_RANLIB="ranlib"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6322 if test -n "$ac_ct_RANLIB"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6324 $as_echo "$ac_ct_RANLIB" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6330 if test "x$ac_ct_RANLIB" = x; then
6331 RANLIB=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 RANLIB=$ac_ct_RANLIB
6341 else
6342 RANLIB="$ac_cv_prog_RANLIB"
6345 test -z "$RANLIB" && RANLIB=:
6352 # Determine commands to create old-style static archives.
6353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6354 old_postinstall_cmds='chmod 644 $oldlib'
6355 old_postuninstall_cmds=
6357 if test -n "$RANLIB"; then
6358 case $host_os in
6359 openbsd*)
6360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6365 esac
6366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6369 case $host_os in
6370 darwin*)
6371 lock_old_archive_extraction=yes ;;
6373 lock_old_archive_extraction=no ;;
6374 esac
6414 # If no C compiler was specified, use CC.
6415 LTCC=${LTCC-"$CC"}
6417 # If no C compiler flags were specified, use CFLAGS.
6418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6420 # Allow CC to be a program name with arguments.
6421 compiler=$CC
6424 # Check for command to grab the raw symbol name followed by C symbol from nm.
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6427 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6431 # These are sane defaults that work on at least a few old systems.
6432 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6434 # Character class describing NM global symbol codes.
6435 symcode='[BCDEGRST]'
6437 # Regexp to match symbols that can be accessed directly from C.
6438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6440 # Define system-specific variables.
6441 case $host_os in
6442 aix*)
6443 symcode='[BCDT]'
6445 cygwin* | mingw* | pw32* | cegcc*)
6446 symcode='[ABCDGISTW]'
6448 hpux*)
6449 if test "$host_cpu" = ia64; then
6450 symcode='[ABCDEGRST]'
6453 irix* | nonstopux*)
6454 symcode='[BCDEGRST]'
6456 osf*)
6457 symcode='[BCDEGQRST]'
6459 solaris*)
6460 symcode='[BDRT]'
6462 sco3.2v5*)
6463 symcode='[DT]'
6465 sysv4.2uw2*)
6466 symcode='[DT]'
6468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469 symcode='[ABDT]'
6471 sysv4)
6472 symcode='[DFNSTU]'
6474 esac
6476 # If we're using GNU nm, then use its standard symbol codes.
6477 case `$NM -V 2>&1` in
6478 *GNU* | *'with BFD'*)
6479 symcode='[ABCDGIRSTW]' ;;
6480 esac
6482 # Transform an extracted symbol line into a proper C declaration.
6483 # Some systems (esp. on ia64) link data and code symbols differently,
6484 # so use this general approach.
6485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6487 # Transform an extracted symbol line into symbol name and symbol address
6488 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6489 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'"
6491 # Handle CRLF in mingw tool chain
6492 opt_cr=
6493 case $build_os in
6494 mingw*)
6495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6497 esac
6499 # Try without a prefix underscore, then with it.
6500 for ac_symprfx in "" "_"; do
6502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6503 symxfrm="\\1 $ac_symprfx\\2 \\2"
6505 # Write the raw and C identifiers.
6506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6507 # Fake it for dumpbin and say T for any non-static function
6508 # and D for any global variable.
6509 # Also find C++ and __fastcall symbols from MSVC++,
6510 # which start with @ or ?.
6511 lt_cv_sys_global_symbol_pipe="$AWK '"\
6512 " {last_section=section; section=\$ 3};"\
6513 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6514 " \$ 0!~/External *\|/{next};"\
6515 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6516 " {if(hide[section]) next};"\
6517 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6518 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6519 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6520 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6521 " ' prfx=^$ac_symprfx"
6522 else
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6526 # Check to see that the pipe works correctly.
6527 pipe_works=no
6529 rm -f conftest*
6530 cat > conftest.$ac_ext <<_LT_EOF
6531 #ifdef __cplusplus
6532 extern "C" {
6533 #endif
6534 char nm_test_var;
6535 void nm_test_func(void);
6536 void nm_test_func(void){}
6537 #ifdef __cplusplus
6539 #endif
6540 int main(){nm_test_var='a';nm_test_func();return(0);}
6541 _LT_EOF
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 # Now try to grab the symbols.
6549 nlist=conftest.nm
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; } && test -s "$nlist"; then
6555 # Try sorting and uniquifying the output.
6556 if sort "$nlist" | uniq > "$nlist"T; then
6557 mv -f "$nlist"T "$nlist"
6558 else
6559 rm -f "$nlist"T
6562 # Make sure that we snagged all the symbols we need.
6563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6565 cat <<_LT_EOF > conftest.$ac_ext
6566 #ifdef __cplusplus
6567 extern "C" {
6568 #endif
6570 _LT_EOF
6571 # Now generate the symbol file.
6572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6574 cat <<_LT_EOF >> conftest.$ac_ext
6576 /* The mapping between symbol names and symbols. */
6577 const struct {
6578 const char *name;
6579 void *address;
6581 lt__PROGRAM__LTX_preloaded_symbols[] =
6583 { "@PROGRAM@", (void *) 0 },
6584 _LT_EOF
6585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6586 cat <<\_LT_EOF >> conftest.$ac_ext
6587 {0, (void *) 0}
6590 /* This works around a problem in FreeBSD linker */
6591 #ifdef FREEBSD_WORKAROUND
6592 static const void *lt_preloaded_setup() {
6593 return lt__PROGRAM__LTX_preloaded_symbols;
6595 #endif
6597 #ifdef __cplusplus
6599 #endif
6600 _LT_EOF
6601 # Now try linking the two files.
6602 mv conftest.$ac_objext conftstm.$ac_objext
6603 lt_save_LIBS="$LIBS"
6604 lt_save_CFLAGS="$CFLAGS"
6605 LIBS="conftstm.$ac_objext"
6606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6612 pipe_works=yes
6614 LIBS="$lt_save_LIBS"
6615 CFLAGS="$lt_save_CFLAGS"
6616 else
6617 echo "cannot find nm_test_func in $nlist" >&5
6619 else
6620 echo "cannot find nm_test_var in $nlist" >&5
6622 else
6623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6625 else
6626 echo "$progname: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 rm -rf conftest* conftst*
6631 # Do not use the global_symbol_pipe unless it works.
6632 if test "$pipe_works" = yes; then
6633 break
6634 else
6635 lt_cv_sys_global_symbol_pipe=
6637 done
6641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642 lt_cv_sys_global_symbol_to_cdecl=
6644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6646 $as_echo "failed" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6649 $as_echo "ok" >&6; }
6674 # Check whether --enable-libtool-lock was given.
6675 if test "${enable_libtool_lock+set}" = set; then :
6676 enableval=$enable_libtool_lock;
6679 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6681 # Some flags need to be propagated to the compiler or linker for good
6682 # libtool support.
6683 case $host in
6684 ia64-*-hpux*)
6685 # Find out which ABI we are using.
6686 echo 'int i;' > conftest.$ac_ext
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 case `/usr/bin/file conftest.$ac_objext` in
6693 *ELF-32*)
6694 HPUX_IA64_MODE="32"
6696 *ELF-64*)
6697 HPUX_IA64_MODE="64"
6699 esac
6701 rm -rf conftest*
6703 *-*-irix6*)
6704 # Find out which ABI we are using.
6705 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 if test "$lt_cv_prog_gnu_ld" = yes; then
6712 case `/usr/bin/file conftest.$ac_objext` in
6713 *32-bit*)
6714 LD="${LD-ld} -melf32bsmip"
6716 *N32*)
6717 LD="${LD-ld} -melf32bmipn32"
6719 *64-bit*)
6720 LD="${LD-ld} -melf64bmip"
6722 esac
6723 else
6724 case `/usr/bin/file conftest.$ac_objext` in
6725 *32-bit*)
6726 LD="${LD-ld} -32"
6728 *N32*)
6729 LD="${LD-ld} -n32"
6731 *64-bit*)
6732 LD="${LD-ld} -64"
6734 esac
6737 rm -rf conftest*
6740 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6741 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6742 # Find out which ABI we are using.
6743 echo 'int i;' > conftest.$ac_ext
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6745 (eval $ac_compile) 2>&5
6746 ac_status=$?
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; }; then
6749 case `/usr/bin/file conftest.o` in
6750 *32-bit*)
6751 case $host in
6752 x86_64-*kfreebsd*-gnu)
6753 LD="${LD-ld} -m elf_i386_fbsd"
6755 x86_64-*linux*)
6756 case `/usr/bin/file conftest.o` in
6757 *x86-64*)
6758 LD="${LD-ld} -m elf32_x86_64"
6761 LD="${LD-ld} -m elf_i386"
6763 esac
6765 powerpc64le-*linux*)
6766 LD="${LD-ld} -m elf32lppclinux"
6768 powerpc64-*linux*)
6769 LD="${LD-ld} -m elf32ppclinux"
6771 s390x-*linux*)
6772 LD="${LD-ld} -m elf_s390"
6774 sparc64-*linux*)
6775 LD="${LD-ld} -m elf32_sparc"
6777 esac
6779 *64-bit*)
6780 case $host in
6781 x86_64-*kfreebsd*-gnu)
6782 LD="${LD-ld} -m elf_x86_64_fbsd"
6784 x86_64-*linux*)
6785 LD="${LD-ld} -m elf_x86_64"
6787 powerpcle-*linux*)
6788 LD="${LD-ld} -m elf64lppc"
6790 powerpc-*linux*)
6791 LD="${LD-ld} -m elf64ppc"
6793 s390*-*linux*|s390*-*tpf*)
6794 LD="${LD-ld} -m elf64_s390"
6796 sparc*-*linux*)
6797 LD="${LD-ld} -m elf64_sparc"
6799 esac
6801 esac
6803 rm -rf conftest*
6806 *-*-sco3.2v5*)
6807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6808 SAVE_CFLAGS="$CFLAGS"
6809 CFLAGS="$CFLAGS -belf"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6811 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6812 if ${lt_cv_cc_needs_belf+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 ac_ext=c
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6825 main ()
6829 return 0;
6831 _ACEOF
6832 if ac_fn_c_try_link "$LINENO"; then :
6833 lt_cv_cc_needs_belf=yes
6834 else
6835 lt_cv_cc_needs_belf=no
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 ac_ext=c
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6850 CFLAGS="$SAVE_CFLAGS"
6853 sparc*-*solaris*)
6854 # Find out which ABI we are using.
6855 echo 'int i;' > conftest.$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 case `/usr/bin/file conftest.o` in
6862 *64-bit*)
6863 case $lt_cv_prog_gnu_ld in
6864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6867 LD="${LD-ld} -64"
6870 esac
6872 esac
6874 rm -rf conftest*
6876 esac
6878 need_locks="$enable_libtool_lock"
6881 case $host_os in
6882 rhapsody* | darwin*)
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$DSYMUTIL"; then
6892 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6912 if test -n "$DSYMUTIL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6914 $as_echo "$DSYMUTIL" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_DSYMUTIL"; then
6923 ac_ct_DSYMUTIL=$DSYMUTIL
6924 # Extract the first word of "dsymutil", so it can be a program name with args.
6925 set dummy dsymutil; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_DSYMUTIL"; then
6932 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6952 if test -n "$ac_ct_DSYMUTIL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6954 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_DSYMUTIL" = x; then
6961 DSYMUTIL=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 DSYMUTIL=$ac_ct_DSYMUTIL
6971 else
6972 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_NMEDIT+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$NMEDIT"; then
6984 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 NMEDIT=$ac_cv_prog_NMEDIT
7004 if test -n "$NMEDIT"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7006 $as_echo "$NMEDIT" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7014 if test -z "$ac_cv_prog_NMEDIT"; then
7015 ac_ct_NMEDIT=$NMEDIT
7016 # Extract the first word of "nmedit", so it can be a program name with args.
7017 set dummy nmedit; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_NMEDIT"; then
7024 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7044 if test -n "$ac_ct_NMEDIT"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7046 $as_echo "$ac_ct_NMEDIT" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7052 if test "x$ac_ct_NMEDIT" = x; then
7053 NMEDIT=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 NMEDIT=$ac_ct_NMEDIT
7063 else
7064 NMEDIT="$ac_cv_prog_NMEDIT"
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7069 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_LIPO+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$LIPO"; then
7076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 LIPO=$ac_cv_prog_LIPO
7096 if test -n "$LIPO"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7098 $as_echo "$LIPO" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7106 if test -z "$ac_cv_prog_LIPO"; then
7107 ac_ct_LIPO=$LIPO
7108 # Extract the first word of "lipo", so it can be a program name with args.
7109 set dummy lipo; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_LIPO"; then
7116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_LIPO="lipo"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7136 if test -n "$ac_ct_LIPO"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7138 $as_echo "$ac_ct_LIPO" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7144 if test "x$ac_ct_LIPO" = x; then
7145 LIPO=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148 yes:)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151 ac_tool_warned=yes ;;
7152 esac
7153 LIPO=$ac_ct_LIPO
7155 else
7156 LIPO="$ac_cv_prog_LIPO"
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}otool; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_OTOOL+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$OTOOL"; then
7168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7187 OTOOL=$ac_cv_prog_OTOOL
7188 if test -n "$OTOOL"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7190 $as_echo "$OTOOL" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7198 if test -z "$ac_cv_prog_OTOOL"; then
7199 ac_ct_OTOOL=$OTOOL
7200 # Extract the first word of "otool", so it can be a program name with args.
7201 set dummy otool; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$ac_ct_OTOOL"; then
7208 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_ac_ct_OTOOL="otool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7227 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7228 if test -n "$ac_ct_OTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7230 $as_echo "$ac_ct_OTOOL" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7236 if test "x$ac_ct_OTOOL" = x; then
7237 OTOOL=":"
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245 OTOOL=$ac_ct_OTOOL
7247 else
7248 OTOOL="$ac_cv_prog_OTOOL"
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_OTOOL64+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$OTOOL64"; then
7260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7273 done
7274 done
7275 IFS=$as_save_IFS
7279 OTOOL64=$ac_cv_prog_OTOOL64
7280 if test -n "$OTOOL64"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7282 $as_echo "$OTOOL64" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7290 if test -z "$ac_cv_prog_OTOOL64"; then
7291 ac_ct_OTOOL64=$OTOOL64
7292 # Extract the first word of "otool64", so it can be a program name with args.
7293 set dummy otool64; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$ac_ct_OTOOL64"; then
7300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_ac_ct_OTOOL64="otool64"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7319 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7320 if test -n "$ac_ct_OTOOL64"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7322 $as_echo "$ac_ct_OTOOL64" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7328 if test "x$ac_ct_OTOOL64" = x; then
7329 OTOOL64=":"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332 yes:)
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335 ac_tool_warned=yes ;;
7336 esac
7337 OTOOL64=$ac_ct_OTOOL64
7339 else
7340 OTOOL64="$ac_cv_prog_OTOOL64"
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7370 $as_echo_n "checking for -single_module linker flag... " >&6; }
7371 if ${lt_cv_apple_cc_single_mod+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 lt_cv_apple_cc_single_mod=no
7375 if test -z "${LT_MULTI_MODULE}"; then
7376 # By default we will add the -single_module flag. You can override
7377 # by either setting the environment variable LT_MULTI_MODULE
7378 # non-empty at configure time, or by adding -multi_module to the
7379 # link flags.
7380 rm -rf libconftest.dylib*
7381 echo "int foo(void){return 1;}" > conftest.c
7382 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7383 -dynamiclib -Wl,-single_module conftest.c" >&5
7384 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7385 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7386 _lt_result=$?
7387 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7388 lt_cv_apple_cc_single_mod=yes
7389 else
7390 cat conftest.err >&5
7392 rm -rf libconftest.dylib*
7393 rm -f conftest.*
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7397 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7399 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7400 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 lt_cv_ld_exported_symbols_list=no
7404 save_LDFLAGS=$LDFLAGS
7405 echo "_main" > conftest.sym
7406 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7411 main ()
7415 return 0;
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"; then :
7419 lt_cv_ld_exported_symbols_list=yes
7420 else
7421 lt_cv_ld_exported_symbols_list=no
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 LDFLAGS="$save_LDFLAGS"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7429 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7431 $as_echo_n "checking for -force_load linker flag... " >&6; }
7432 if ${lt_cv_ld_force_load+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 lt_cv_ld_force_load=no
7436 cat > conftest.c << _LT_EOF
7437 int forced_loaded() { return 2;}
7438 _LT_EOF
7439 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7440 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7441 echo "$AR cru libconftest.a conftest.o" >&5
7442 $AR cru libconftest.a conftest.o 2>&5
7443 cat > conftest.c << _LT_EOF
7444 int main() { return 0;}
7445 _LT_EOF
7446 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7447 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7448 _lt_result=$?
7449 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7450 lt_cv_ld_force_load=yes
7451 else
7452 cat conftest.err >&5
7454 rm -f conftest.err libconftest.a conftest conftest.c
7455 rm -rf conftest.dSYM
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7459 $as_echo "$lt_cv_ld_force_load" >&6; }
7460 case $host_os in
7461 rhapsody* | darwin1.[012])
7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7463 darwin1.*)
7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465 darwin*) # darwin 5.x on
7466 # if running on 10.5 or later, the deployment target defaults
7467 # to the OS version, if on x86, and 10.4, the deployment
7468 # target defaults to 10.4. Don't you love it?
7469 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7470 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7472 10.[012][,.]*)
7473 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7474 10.*)
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7476 esac
7478 esac
7479 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7480 _lt_dar_single_mod='$single_module'
7482 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7483 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7484 else
7485 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7487 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7488 _lt_dsymutil='~$DSYMUTIL $lib || :'
7489 else
7490 _lt_dsymutil=
7493 esac
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7502 # On Suns, sometimes $CPP names a directory.
7503 if test -n "$CPP" && test -d "$CPP"; then
7504 CPP=
7506 if test -z "$CPP"; then
7507 if ${ac_cv_prog_CPP+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 # Double quotes because CPP needs to be expanded
7511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7513 ac_preproc_ok=false
7514 for ac_c_preproc_warn_flag in '' yes
7516 # Use a header file that comes with gcc, so configuring glibc
7517 # with a fresh cross-compiler works.
7518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7519 # <limits.h> exists even on freestanding compilers.
7520 # On the NeXT, cc -E runs the code through the compiler's parser,
7521 # not just through cpp. "Syntax error" is here to catch this case.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #ifdef __STDC__
7525 # include <limits.h>
7526 #else
7527 # include <assert.h>
7528 #endif
7529 Syntax error
7530 _ACEOF
7531 if ac_fn_c_try_cpp "$LINENO"; then :
7533 else
7534 # Broken: fails on valid input.
7535 continue
7537 rm -f conftest.err conftest.i conftest.$ac_ext
7539 # OK, works on sane cases. Now check whether nonexistent headers
7540 # can be detected and how.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <ac_nonexistent.h>
7544 _ACEOF
7545 if ac_fn_c_try_cpp "$LINENO"; then :
7546 # Broken: success on invalid input.
7547 continue
7548 else
7549 # Passes both tests.
7550 ac_preproc_ok=:
7551 break
7553 rm -f conftest.err conftest.i conftest.$ac_ext
7555 done
7556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7557 rm -f conftest.i conftest.err conftest.$ac_ext
7558 if $ac_preproc_ok; then :
7559 break
7562 done
7563 ac_cv_prog_CPP=$CPP
7566 CPP=$ac_cv_prog_CPP
7567 else
7568 ac_cv_prog_CPP=$CPP
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7571 $as_echo "$CPP" >&6; }
7572 ac_preproc_ok=false
7573 for ac_c_preproc_warn_flag in '' yes
7575 # Use a header file that comes with gcc, so configuring glibc
7576 # with a fresh cross-compiler works.
7577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 # <limits.h> exists even on freestanding compilers.
7579 # On the NeXT, cc -E runs the code through the compiler's parser,
7580 # not just through cpp. "Syntax error" is here to catch this case.
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588 Syntax error
7589 _ACEOF
7590 if ac_fn_c_try_cpp "$LINENO"; then :
7592 else
7593 # Broken: fails on valid input.
7594 continue
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7598 # OK, works on sane cases. Now check whether nonexistent headers
7599 # can be detected and how.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <ac_nonexistent.h>
7603 _ACEOF
7604 if ac_fn_c_try_cpp "$LINENO"; then :
7605 # Broken: success on invalid input.
7606 continue
7607 else
7608 # Passes both tests.
7609 ac_preproc_ok=:
7610 break
7612 rm -f conftest.err conftest.i conftest.$ac_ext
7614 done
7615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7616 rm -f conftest.i conftest.err conftest.$ac_ext
7617 if $ac_preproc_ok; then :
7619 else
7620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7623 See \`config.log' for more details" "$LINENO" 5; }
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7634 $as_echo_n "checking for ANSI C header files... " >&6; }
7635 if ${ac_cv_header_stdc+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <stdlib.h>
7641 #include <stdarg.h>
7642 #include <string.h>
7643 #include <float.h>
7646 main ()
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"; then :
7654 ac_cv_header_stdc=yes
7655 else
7656 ac_cv_header_stdc=no
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 if test $ac_cv_header_stdc = yes; then
7661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #include <string.h>
7666 _ACEOF
7667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7668 $EGREP "memchr" >/dev/null 2>&1; then :
7670 else
7671 ac_cv_header_stdc=no
7673 rm -f conftest*
7677 if test $ac_cv_header_stdc = yes; then
7678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <stdlib.h>
7683 _ACEOF
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "free" >/dev/null 2>&1; then :
7687 else
7688 ac_cv_header_stdc=no
7690 rm -f conftest*
7694 if test $ac_cv_header_stdc = yes; then
7695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7696 if test "$cross_compiling" = yes; then :
7698 else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #include <ctype.h>
7702 #include <stdlib.h>
7703 #if ((' ' & 0x0FF) == 0x020)
7704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7706 #else
7707 # define ISLOWER(c) \
7708 (('a' <= (c) && (c) <= 'i') \
7709 || ('j' <= (c) && (c) <= 'r') \
7710 || ('s' <= (c) && (c) <= 'z'))
7711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7712 #endif
7714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7716 main ()
7718 int i;
7719 for (i = 0; i < 256; i++)
7720 if (XOR (islower (i), ISLOWER (i))
7721 || toupper (i) != TOUPPER (i))
7722 return 2;
7723 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_run "$LINENO"; then :
7728 else
7729 ac_cv_header_stdc=no
7731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7732 conftest.$ac_objext conftest.beam conftest.$ac_ext
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7738 $as_echo "$ac_cv_header_stdc" >&6; }
7739 if test $ac_cv_header_stdc = yes; then
7741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7747 inttypes.h stdint.h unistd.h
7748 do :
7749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7753 cat >>confdefs.h <<_ACEOF
7754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7755 _ACEOF
7759 done
7762 for ac_header in dlfcn.h
7763 do :
7764 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7766 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_DLFCN_H 1
7769 _ACEOF
7773 done
7775 if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_GOC+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 if test -n "$GOC"; then
7784 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7797 done
7798 done
7799 IFS=$as_save_IFS
7803 GOC=$ac_cv_prog_GOC
7804 if test -n "$GOC"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7806 $as_echo "$GOC" >&6; }
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7814 if test -z "$ac_cv_prog_GOC"; then
7815 ac_ct_GOC=$GOC
7816 # Extract the first word of "gccgo", so it can be a program name with args.
7817 set dummy gccgo; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$ac_ct_GOC"; then
7824 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_GOC="gccgo"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7837 done
7838 done
7839 IFS=$as_save_IFS
7843 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7844 if test -n "$ac_ct_GOC"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7846 $as_echo "$ac_ct_GOC" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7852 if test "x$ac_ct_GOC" = x; then
7853 GOC=""
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861 GOC=$ac_ct_GOC
7863 else
7864 GOC="$ac_cv_prog_GOC"
7872 # Set options
7877 enable_win32_dll=no
7880 # Check whether --enable-shared was given.
7881 if test "${enable_shared+set}" = set; then :
7882 enableval=$enable_shared; p=${PACKAGE-default}
7883 case $enableval in
7884 yes) enable_shared=yes ;;
7885 no) enable_shared=no ;;
7887 enable_shared=no
7888 # Look at the argument we got. We use all the common list separators.
7889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7890 for pkg in $enableval; do
7891 IFS="$lt_save_ifs"
7892 if test "X$pkg" = "X$p"; then
7893 enable_shared=yes
7895 done
7896 IFS="$lt_save_ifs"
7898 esac
7899 else
7900 enable_shared=yes
7911 # Check whether --enable-static was given.
7912 if test "${enable_static+set}" = set; then :
7913 enableval=$enable_static; p=${PACKAGE-default}
7914 case $enableval in
7915 yes) enable_static=yes ;;
7916 no) enable_static=no ;;
7918 enable_static=no
7919 # Look at the argument we got. We use all the common list separators.
7920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7921 for pkg in $enableval; do
7922 IFS="$lt_save_ifs"
7923 if test "X$pkg" = "X$p"; then
7924 enable_static=yes
7926 done
7927 IFS="$lt_save_ifs"
7929 esac
7930 else
7931 enable_static=yes
7943 # Check whether --with-pic was given.
7944 if test "${with_pic+set}" = set; then :
7945 withval=$with_pic; pic_mode="$withval"
7946 else
7947 pic_mode=default
7951 test -z "$pic_mode" && pic_mode=default
7959 # Check whether --enable-fast-install was given.
7960 if test "${enable_fast_install+set}" = set; then :
7961 enableval=$enable_fast_install; p=${PACKAGE-default}
7962 case $enableval in
7963 yes) enable_fast_install=yes ;;
7964 no) enable_fast_install=no ;;
7966 enable_fast_install=no
7967 # Look at the argument we got. We use all the common list separators.
7968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7969 for pkg in $enableval; do
7970 IFS="$lt_save_ifs"
7971 if test "X$pkg" = "X$p"; then
7972 enable_fast_install=yes
7974 done
7975 IFS="$lt_save_ifs"
7977 esac
7978 else
7979 enable_fast_install=yes
7992 # This can be used to rebuild libtool when needed
7993 LIBTOOL_DEPS="$ltmain"
7995 # Always use our own libtool.
7996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8023 test -z "$LN_S" && LN_S="ln -s"
8038 if test -n "${ZSH_VERSION+set}" ; then
8039 setopt NO_GLOB_SUBST
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043 $as_echo_n "checking for objdir... " >&6; }
8044 if ${lt_cv_objdir+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 rm -f .libs 2>/dev/null
8048 mkdir .libs 2>/dev/null
8049 if test -d .libs; then
8050 lt_cv_objdir=.libs
8051 else
8052 # MS-DOS does not allow filenames that begin with a dot.
8053 lt_cv_objdir=_libs
8055 rmdir .libs 2>/dev/null
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058 $as_echo "$lt_cv_objdir" >&6; }
8059 objdir=$lt_cv_objdir
8065 cat >>confdefs.h <<_ACEOF
8066 #define LT_OBJDIR "$lt_cv_objdir/"
8067 _ACEOF
8072 case $host_os in
8073 aix3*)
8074 # AIX sometimes has problems with the GCC collect2 program. For some
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
8076 # vanish in a puff of smoke.
8077 if test "X${COLLECT_NAMES+set}" != Xset; then
8078 COLLECT_NAMES=
8079 export COLLECT_NAMES
8082 esac
8084 # Global variables:
8085 ofile=libtool
8086 can_build_shared=yes
8088 # All known linkers require a `.a' archive for static linking (except MSVC,
8089 # which needs '.lib').
8090 libext=a
8092 with_gnu_ld="$lt_cv_prog_gnu_ld"
8094 old_CC="$CC"
8095 old_CFLAGS="$CFLAGS"
8097 # Set sane defaults for various variables
8098 test -z "$CC" && CC=cc
8099 test -z "$LTCC" && LTCC=$CC
8100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101 test -z "$LD" && LD=ld
8102 test -z "$ac_objext" && ac_objext=o
8104 for cc_temp in $compiler""; do
8105 case $cc_temp in
8106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108 \-*) ;;
8109 *) break;;
8110 esac
8111 done
8112 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8115 # Only perform the check for file, if the check method requires it
8116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8117 case $deplibs_check_method in
8118 file_magic*)
8119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8122 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 case $MAGIC_CMD in
8126 [\\/*] | ?:[\\/]*)
8127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8130 lt_save_MAGIC_CMD="$MAGIC_CMD"
8131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133 for ac_dir in $ac_dummy; do
8134 IFS="$lt_save_ifs"
8135 test -z "$ac_dir" && ac_dir=.
8136 if test -f $ac_dir/${ac_tool_prefix}file; then
8137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8138 if test -n "$file_magic_test_file"; then
8139 case $deplibs_check_method in
8140 "file_magic "*)
8141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144 $EGREP "$file_magic_regex" > /dev/null; then
8146 else
8147 cat <<_LT_EOF 1>&2
8149 *** Warning: the command libtool uses to detect shared libraries,
8150 *** $file_magic_cmd, produces output that libtool cannot recognize.
8151 *** The result is that libtool may fail to recognize shared libraries
8152 *** as such. This will affect the creation of libtool libraries that
8153 *** depend on shared libraries, but programs linked with such libtool
8154 *** libraries will work regardless of this problem. Nevertheless, you
8155 *** may want to report the problem to your system manager and/or to
8156 *** bug-libtool@gnu.org
8158 _LT_EOF
8159 fi ;;
8160 esac
8162 break
8164 done
8165 IFS="$lt_save_ifs"
8166 MAGIC_CMD="$lt_save_MAGIC_CMD"
8168 esac
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if test -n "$MAGIC_CMD"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8174 $as_echo "$MAGIC_CMD" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8184 if test -z "$lt_cv_path_MAGIC_CMD"; then
8185 if test -n "$ac_tool_prefix"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8187 $as_echo_n "checking for file... " >&6; }
8188 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 case $MAGIC_CMD in
8192 [\\/*] | ?:[\\/]*)
8193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196 lt_save_MAGIC_CMD="$MAGIC_CMD"
8197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199 for ac_dir in $ac_dummy; do
8200 IFS="$lt_save_ifs"
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/file; then
8203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204 if test -n "$file_magic_test_file"; then
8205 case $deplibs_check_method in
8206 "file_magic "*)
8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210 $EGREP "$file_magic_regex" > /dev/null; then
8212 else
8213 cat <<_LT_EOF 1>&2
8215 *** Warning: the command libtool uses to detect shared libraries,
8216 *** $file_magic_cmd, produces output that libtool cannot recognize.
8217 *** The result is that libtool may fail to recognize shared libraries
8218 *** as such. This will affect the creation of libtool libraries that
8219 *** depend on shared libraries, but programs linked with such libtool
8220 *** libraries will work regardless of this problem. Nevertheless, you
8221 *** may want to report the problem to your system manager and/or to
8222 *** bug-libtool@gnu.org
8224 _LT_EOF
8225 fi ;;
8226 esac
8228 break
8230 done
8231 IFS="$lt_save_ifs"
8232 MAGIC_CMD="$lt_save_MAGIC_CMD"
8234 esac
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if test -n "$MAGIC_CMD"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8240 $as_echo "$MAGIC_CMD" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8247 else
8248 MAGIC_CMD=:
8254 esac
8256 # Use C for the default configuration in the libtool script
8258 lt_save_CC="$CC"
8259 ac_ext=c
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266 # Source file extension for C test sources.
8267 ac_ext=c
8269 # Object file extension for compiled C test sources.
8270 objext=o
8271 objext=$objext
8273 # Code to be used in simple compile tests
8274 lt_simple_compile_test_code="int some_variable = 0;"
8276 # Code to be used in simple link tests
8277 lt_simple_link_test_code='int main(){return(0);}'
8285 # If no C compiler was specified, use CC.
8286 LTCC=${LTCC-"$CC"}
8288 # If no C compiler flags were specified, use CFLAGS.
8289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8291 # Allow CC to be a program name with arguments.
8292 compiler=$CC
8294 # Save the default compiler, since it gets overwritten when the other
8295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8296 compiler_DEFAULT=$CC
8298 # save warnings/boilerplate of simple test code
8299 ac_outfile=conftest.$ac_objext
8300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8302 _lt_compiler_boilerplate=`cat conftest.err`
8303 $RM conftest*
8305 ac_outfile=conftest.$ac_objext
8306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8308 _lt_linker_boilerplate=`cat conftest.err`
8309 $RM -r conftest*
8312 ## CAVEAT EMPTOR:
8313 ## There is no encapsulation within the following macros, do not change
8314 ## the running order or otherwise move them around unless you know exactly
8315 ## what you are doing...
8316 if test -n "$compiler"; then
8318 lt_prog_compiler_no_builtin_flag=
8320 if test "$GCC" = yes; then
8321 case $cc_basename in
8322 nvcc*)
8323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8326 esac
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 lt_cv_prog_compiler_rtti_exceptions=no
8334 ac_outfile=conftest.$ac_objext
8335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336 lt_compiler_flag="-fno-rtti -fno-exceptions"
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 # The option is referenced via a variable to avoid confusing sed.
8342 lt_compile=`echo "$ac_compile" | $SED \
8343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345 -e 's:$: $lt_compiler_flag:'`
8346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347 (eval "$lt_compile" 2>conftest.err)
8348 ac_status=$?
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 if (exit $ac_status) && test -s "$ac_outfile"; then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings other than the usual output.
8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_rtti_exceptions=yes
8360 $RM conftest*
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368 else
8379 lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8386 if test "$GCC" = yes; then
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_static='-static'
8390 case $host_os in
8391 aix*)
8392 # All AIX code is PIC.
8393 if test "$host_cpu" = ia64; then
8394 # AIX 5 now supports IA64 processor
8395 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_pic='-fPIC'
8400 amigaos*)
8401 case $host_cpu in
8402 powerpc)
8403 # see comment about AmigaOS4 .so support
8404 lt_prog_compiler_pic='-fPIC'
8406 m68k)
8407 # FIXME: we need at least 68020 code to build shared libraries, but
8408 # adding the `-m68020' flag to GCC prevents building anything better,
8409 # like `-m68040'.
8410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8412 esac
8415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8416 # PIC is the default for these OSes.
8419 mingw* | cygwin* | pw32* | os2* | cegcc*)
8420 # This hack is so that the source file can tell whether it is being
8421 # built for inclusion in a dll (and should export symbols for example).
8422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8423 # (--disable-auto-import) libraries
8424 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 darwin* | rhapsody*)
8428 # PIC is the default on this platform
8429 # Common symbols not allowed in MH_DYLIB files
8430 lt_prog_compiler_pic='-fno-common'
8433 haiku*)
8434 # PIC is the default for Haiku.
8435 # The "-static" flag exists, but is broken.
8436 lt_prog_compiler_static=
8439 hpux*)
8440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8442 # sets the default TLS model and affects inlining.
8443 case $host_cpu in
8444 hppa*64*)
8445 # +Z the default
8448 lt_prog_compiler_pic='-fPIC'
8450 esac
8453 interix[3-9]*)
8454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8455 # Instead, we relocate shared libraries at runtime.
8458 msdosdjgpp*)
8459 # Just because we use GCC doesn't mean we suddenly get shared libraries
8460 # on systems that don't support them.
8461 lt_prog_compiler_can_build_shared=no
8462 enable_shared=no
8465 *nto* | *qnx*)
8466 # QNX uses GNU C++, but need to define -shared option too, otherwise
8467 # it will coredump.
8468 lt_prog_compiler_pic='-fPIC -shared'
8471 sysv4*MP*)
8472 if test -d /usr/nec; then
8473 lt_prog_compiler_pic=-Kconform_pic
8478 lt_prog_compiler_pic='-fPIC'
8480 esac
8482 case $cc_basename in
8483 nvcc*) # Cuda Compiler Driver 2.2
8484 lt_prog_compiler_wl='-Xlinker '
8485 lt_prog_compiler_pic='-Xcompiler -fPIC'
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test "$host_cpu" = ia64; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
8496 else
8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8516 lt_prog_compiler_pic='+Z'
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static='${wl}-a ${wl}archive'
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
8529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8532 ecc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fpic'
8555 lt_prog_compiler_static='-Bstatic'
8557 ccc*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8562 xl* | bgxl* | bgf* | mpixl*)
8563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-qpic'
8566 lt_prog_compiler_static='-qstaticlink'
8569 case `$CC -V 2>&1 | sed 5q` in
8570 *Sun\ F* | *Sun*Fortran*)
8571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_wl=''
8576 *Sun\ C*)
8577 # Sun C 5.9
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl='-Wl,'
8582 esac
8584 esac
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
8655 lt_prog_compiler_can_build_shared=no
8657 esac
8660 case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8668 esac
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670 $as_echo "$lt_prog_compiler_pic" >&6; }
8678 # Check to make sure the PIC flag actually works.
8680 if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8683 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 lt_cv_prog_compiler_pic_works=no
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>conftest.err)
8701 ac_status=$?
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_pic_works=yes
8713 $RM conftest*
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8719 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720 case $lt_prog_compiler_pic in
8721 "" | " "*) ;;
8722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723 esac
8724 else
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_can_build_shared=no
8737 # Check to make sure the static flag actually works.
8739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8742 if ${lt_cv_prog_compiler_static_works+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS="$LDFLAGS"
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8764 $RM -r conftest*
8765 LDFLAGS="$save_LDFLAGS"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8771 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8773 else
8774 lt_prog_compiler_static=
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8785 if ${lt_cv_prog_compiler_c_o+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891 hard_links="nottested"
8892 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895 $as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903 $as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 need_locks=warn
8909 else
8910 need_locks=no
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_flag_spec_ld=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
8962 case $host_os in
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8968 with_gnu_ld=no
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
8975 openbsd*)
8976 with_gnu_ld=no
8978 esac
8980 ld_shlibs=yes
8982 # On some targets, GNU ld is compatible enough with the native linker
8983 # that we're better off using the native interface for both.
8984 lt_use_gnu_ld_interface=no
8985 if test "$with_gnu_ld" = yes; then
8986 case $host_os in
8987 aix*)
8988 # The AIX port of GNU ld has always aspired to compatibility
8989 # with the native linker. However, as the warning in the GNU ld
8990 # block says, versions before 2.19.5* couldn't really create working
8991 # shared libraries, regardless of the interface used.
8992 case `$LD -v 2>&1` in
8993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8995 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8997 lt_use_gnu_ld_interface=yes
8999 esac
9002 lt_use_gnu_ld_interface=yes
9004 esac
9007 if test "$lt_use_gnu_ld_interface" = yes; then
9008 # If archive_cmds runs LD, not CC, wlarc should be empty
9009 wlarc='${wl}'
9011 # Set some defaults for GNU ld with shared library support. These
9012 # are reset later if shared libraries are not supported. Putting them
9013 # here allows them to be overridden if necessary.
9014 runpath_var=LD_RUN_PATH
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 export_dynamic_flag_spec='${wl}--export-dynamic'
9017 # ancient GNU ld didn't support --whole-archive et. al.
9018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9019 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9020 else
9021 whole_archive_flag_spec=
9023 supports_anon_versioning=no
9024 case `$LD -v 2>&1` in
9025 *GNU\ gold*) supports_anon_versioning=yes ;;
9026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9029 *\ 2.11.*) ;; # other 2.11 versions
9030 *) supports_anon_versioning=yes ;;
9031 esac
9033 # See if GNU ld supports shared libraries.
9034 case $host_os in
9035 aix[3-9]*)
9036 # On AIX/PPC, the GNU linker is very broken
9037 if test "$host_cpu" != ia64; then
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9041 *** Warning: the GNU linker, at least up to release 2.19, is reported
9042 *** to be unable to reliably create shared libraries on AIX.
9043 *** Therefore, libtool is disabling shared libraries support. If you
9044 *** really care for shared libraries, you may want to install binutils
9045 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9046 *** You will then need to restart the configuration process.
9048 _LT_EOF
9052 amigaos*)
9053 case $host_cpu in
9054 powerpc)
9055 # see comment about AmigaOS4 .so support
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds=''
9059 m68k)
9060 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)'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_minus_L=yes
9064 esac
9067 beos*)
9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069 allow_undefined_flag=unsupported
9070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9071 # support --undefined. This deserves some investigation. FIXME
9072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 else
9074 ld_shlibs=no
9078 cygwin* | mingw* | pw32* | cegcc*)
9079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9080 # as there is no search path for DLLs.
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 export_dynamic_flag_spec='${wl}--export-all-symbols'
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=no
9085 enable_shared_with_static_runtimes=yes
9086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9090 # If the export-symbols file already is a .def file (1st line
9091 # is EXPORTS), use it as is; otherwise, prepend...
9092 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9093 cp $export_symbols $output_objdir/$soname.def;
9094 else
9095 echo EXPORTS > $output_objdir/$soname.def;
9096 cat $export_symbols >> $output_objdir/$soname.def;
9098 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099 else
9100 ld_shlibs=no
9104 haiku*)
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 link_all_deplibs=yes
9109 interix[3-9]*)
9110 hardcode_direct=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9113 export_dynamic_flag_spec='${wl}-E'
9114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9115 # Instead, shared libraries are loaded at an image base (0x10000000 by
9116 # default) and relocated if they conflict, which is a slow very memory
9117 # consuming and fragmenting process. To avoid this, we pick a random,
9118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9121 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'
9124 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9125 tmp_diet=no
9126 if test "$host_os" = linux-dietlibc; then
9127 case $cc_basename in
9128 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9129 esac
9131 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9132 && test "$tmp_diet" = no
9133 then
9134 tmp_addflag=
9135 tmp_sharedflag='-shared'
9136 case $cc_basename,$host_cpu in
9137 pgcc*) # Portland Group C compiler
9138 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'
9139 tmp_addflag=' $pic_flag'
9141 pgf77* | pgf90* | pgf95* | pgfortran*)
9142 # Portland Group f77 and f90 compilers
9143 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'
9144 tmp_addflag=' $pic_flag -Mnomain' ;;
9145 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9146 tmp_addflag=' -i_dynamic' ;;
9147 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9148 tmp_addflag=' -i_dynamic -nofor_main' ;;
9149 ifc* | ifort*) # Intel Fortran compiler
9150 tmp_addflag=' -nofor_main' ;;
9151 lf95*) # Lahey Fortran 8.1
9152 whole_archive_flag_spec=
9153 tmp_sharedflag='--shared' ;;
9154 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9155 tmp_sharedflag='-qmkshrobj'
9156 tmp_addflag= ;;
9157 nvcc*) # Cuda Compiler Driver 2.2
9158 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'
9159 compiler_needs_object=yes
9161 esac
9162 case `$CC -V 2>&1 | sed 5q` in
9163 *Sun\ C*) # Sun C 5.9
9164 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'
9165 compiler_needs_object=yes
9166 tmp_sharedflag='-G' ;;
9167 *Sun\ F*) # Sun Fortran 8.3
9168 tmp_sharedflag='-G' ;;
9169 esac
9170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172 if test "x$supports_anon_versioning" = xyes; then
9173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9175 echo "local: *; };" >> $output_objdir/$libname.ver~
9176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9179 case $cc_basename in
9180 xlf* | bgf* | bgxlf* | mpixlf*)
9181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9183 hardcode_libdir_flag_spec=
9184 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9185 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9186 if test "x$supports_anon_versioning" = xyes; then
9187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9189 echo "local: *; };" >> $output_objdir/$libname.ver~
9190 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9193 esac
9194 else
9195 ld_shlibs=no
9199 netbsd*)
9200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9201 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9202 wlarc=
9203 else
9204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9209 solaris*)
9210 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9211 ld_shlibs=no
9212 cat <<_LT_EOF 1>&2
9214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9215 *** create shared libraries on Solaris systems. Therefore, libtool
9216 *** is disabling shared libraries support. We urge you to upgrade GNU
9217 *** binutils to release 2.9.1 or newer. Another option is to modify
9218 *** your PATH or compiler configuration so that the native linker is
9219 *** used, and then restart.
9221 _LT_EOF
9222 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9225 else
9226 ld_shlibs=no
9230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9231 case `$LD -v 2>&1` in
9232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9233 ld_shlibs=no
9234 cat <<_LT_EOF 1>&2
9236 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9237 *** reliably create shared libraries on SCO systems. Therefore, libtool
9238 *** is disabling shared libraries support. We urge you to upgrade GNU
9239 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9240 *** your PATH or compiler configuration so that the native linker is
9241 *** used, and then restart.
9243 _LT_EOF
9246 # For security reasons, it is highly recommended that you always
9247 # use absolute paths for naming shared libraries, and exclude the
9248 # DT_RUNPATH tag from executables and libraries. But doing so
9249 # requires that you compile everything twice, which is a pain.
9250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254 else
9255 ld_shlibs=no
9258 esac
9261 sunos4*)
9262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9263 wlarc=
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272 else
9273 ld_shlibs=no
9276 esac
9278 if test "$ld_shlibs" = no; then
9279 runpath_var=
9280 hardcode_libdir_flag_spec=
9281 export_dynamic_flag_spec=
9282 whole_archive_flag_spec=
9284 else
9285 # PORTME fill in a description of your system's linker (not GNU ld)
9286 case $host_os in
9287 aix3*)
9288 allow_undefined_flag=unsupported
9289 always_export_symbols=yes
9290 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'
9291 # Note: this linker hardcodes the directories in LIBPATH if there
9292 # are no directories specified by -L.
9293 hardcode_minus_L=yes
9294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9295 # Neither direct hardcoding nor static linking is supported with a
9296 # broken collect2.
9297 hardcode_direct=unsupported
9301 aix[4-9]*)
9302 if test "$host_cpu" = ia64; then
9303 # On IA64, the linker does run time linking by default, so we don't
9304 # have to do anything special.
9305 aix_use_runtimelinking=no
9306 exp_sym_flag='-Bexport'
9307 no_entry_flag=""
9308 else
9309 # If we're using GNU nm, then we don't want the "-C" option.
9310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9311 # Also, AIX nm treats weak defined symbols like other global
9312 # defined symbols, whereas GNU nm marks them as "W".
9313 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9314 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'
9315 else
9316 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'
9318 aix_use_runtimelinking=no
9320 # Test if we are trying to use run time linking or normal
9321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9322 # need to do runtime linking.
9323 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9324 for ld_flag in $LDFLAGS; do
9325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9326 aix_use_runtimelinking=yes
9327 break
9329 done
9331 esac
9333 exp_sym_flag='-bexport'
9334 no_entry_flag='-bnoentry'
9337 # When large executables or shared objects are built, AIX ld can
9338 # have problems creating the table of contents. If linking a library
9339 # or program results in "error TOC overflow" add -mminimal-toc to
9340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9343 archive_cmds=''
9344 hardcode_direct=yes
9345 hardcode_direct_absolute=yes
9346 hardcode_libdir_separator=':'
9347 link_all_deplibs=yes
9348 file_list_spec='${wl}-f,'
9350 if test "$GCC" = yes; then
9351 case $host_os in aix4.[012]|aix4.[012].*)
9352 # We only want to do this on AIX 4.2 and lower, the check
9353 # below for broken collect2 doesn't work under 4.3+
9354 collect2name=`${CC} -print-prog-name=collect2`
9355 if test -f "$collect2name" &&
9356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9357 then
9358 # We have reworked collect2
9360 else
9361 # We have old collect2
9362 hardcode_direct=unsupported
9363 # It fails to find uninstalled libraries when the uninstalled
9364 # path is not listed in the libpath. Setting hardcode_minus_L
9365 # to unsupported forces relinking
9366 hardcode_minus_L=yes
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_libdir_separator=
9371 esac
9372 shared_flag='-shared'
9373 if test "$aix_use_runtimelinking" = yes; then
9374 shared_flag="$shared_flag "'${wl}-G'
9376 else
9377 # not using gcc
9378 if test "$host_cpu" = ia64; then
9379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9380 # chokes on -Wl,-G. The following line is correct:
9381 shared_flag='-G'
9382 else
9383 if test "$aix_use_runtimelinking" = yes; then
9384 shared_flag='${wl}-G'
9385 else
9386 shared_flag='${wl}-bM:SRE'
9391 export_dynamic_flag_spec='${wl}-bexpall'
9392 # It seems that -bexpall does not export symbols beginning with
9393 # underscore (_), so it is better to generate a list of symbols to export.
9394 always_export_symbols=yes
9395 if test "$aix_use_runtimelinking" = yes; then
9396 # Warning - without using the other runtime loading flags (-brtl),
9397 # -berok will link without error, but may produce a broken library.
9398 allow_undefined_flag='-berok'
9399 # Determine the default libpath from the value encoded in an
9400 # empty executable.
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9405 main ()
9409 return 0;
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9414 lt_aix_libpath_sed='
9415 /Import File Strings/,/^$/ {
9416 /^0/ {
9417 s/^0 *\(.*\)$/\1/
9421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9422 # Check for a 64-bit object if we didn't find anything.
9423 if test -z "$aix_libpath"; then
9424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9432 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"
9433 else
9434 if test "$host_cpu" = ia64; then
9435 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9436 allow_undefined_flag="-z nodefs"
9437 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"
9438 else
9439 # Determine the default libpath from the value encoded in an
9440 # empty executable.
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9445 main ()
9449 return 0;
9451 _ACEOF
9452 if ac_fn_c_try_link "$LINENO"; then :
9454 lt_aix_libpath_sed='
9455 /Import File Strings/,/^$/ {
9456 /^0/ {
9457 s/^0 *\(.*\)$/\1/
9461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462 # Check for a 64-bit object if we didn't find anything.
9463 if test -z "$aix_libpath"; then
9464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9472 # Warning - without using the other run time loading flags,
9473 # -berok will link without error, but may produce a broken library.
9474 no_undefined_flag=' ${wl}-bernotok'
9475 allow_undefined_flag=' ${wl}-berok'
9476 if test "$with_gnu_ld" = yes; then
9477 # We only use this code for GNU lds that support --whole-archive.
9478 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9479 else
9480 # Exported symbols can be pulled into shared objects from archives
9481 whole_archive_flag_spec='$convenience'
9483 archive_cmds_need_lc=yes
9484 # This is similar to how AIX traditionally builds its shared libraries.
9485 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'
9490 amigaos*)
9491 case $host_cpu in
9492 powerpc)
9493 # see comment about AmigaOS4 .so support
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds=''
9497 m68k)
9498 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)'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_minus_L=yes
9502 esac
9505 bsdi[45]*)
9506 export_dynamic_flag_spec=-rdynamic
9509 cygwin* | mingw* | pw32* | cegcc*)
9510 # When not using gcc, we currently assume that we are using
9511 # Microsoft Visual C++.
9512 # hardcode_libdir_flag_spec is actually meaningless, as there is
9513 # no search path for DLLs.
9514 hardcode_libdir_flag_spec=' '
9515 allow_undefined_flag=unsupported
9516 # Tell ltmain to make .lib files, not .a files.
9517 libext=lib
9518 # Tell ltmain to make .dll files, not .so files.
9519 shrext_cmds=".dll"
9520 # FIXME: Setting linknames here is a bad hack.
9521 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9522 # The linker will automatically build a .lib file if we build a DLL.
9523 old_archive_from_new_cmds='true'
9524 # FIXME: Should let the user specify the lib program.
9525 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9526 fix_srcfile_path='`cygpath -w "$srcfile"`'
9527 enable_shared_with_static_runtimes=yes
9530 darwin* | rhapsody*)
9533 archive_cmds_need_lc=no
9534 hardcode_direct=no
9535 hardcode_automatic=yes
9536 hardcode_shlibpath_var=unsupported
9537 if test "$lt_cv_ld_force_load" = "yes"; then
9538 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\"`'
9539 else
9540 whole_archive_flag_spec=''
9542 link_all_deplibs=yes
9543 allow_undefined_flag="$_lt_dar_allow_undefined"
9544 case $cc_basename in
9545 ifort*) _lt_dar_can_shared=yes ;;
9546 *) _lt_dar_can_shared=$GCC ;;
9547 esac
9548 if test "$_lt_dar_can_shared" = "yes"; then
9549 output_verbose_link_cmd=func_echo_all
9550 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9551 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9552 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}"
9553 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}"
9555 else
9556 ld_shlibs=no
9561 dgux*)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_shlibpath_var=no
9567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9568 # support. Future versions do this automatically, but an explicit c++rt0.o
9569 # does not break anything, and helps significantly (at the cost of a little
9570 # extra space).
9571 freebsd2.2*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9579 freebsd2.*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_direct=yes
9582 hardcode_minus_L=yes
9583 hardcode_shlibpath_var=no
9586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9587 freebsd* | dragonfly*)
9588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9594 hpux9*)
9595 if test "$GCC" = yes; then
9596 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'
9597 else
9598 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'
9600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_separator=:
9602 hardcode_direct=yes
9604 # hardcode_minus_L: Not really in the search PATH,
9605 # but as the default location of the library.
9606 hardcode_minus_L=yes
9607 export_dynamic_flag_spec='${wl}-E'
9610 hpux10*)
9611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9613 else
9614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9616 if test "$with_gnu_ld" = no; then
9617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9618 hardcode_libdir_flag_spec_ld='+b $libdir'
9619 hardcode_libdir_separator=:
9620 hardcode_direct=yes
9621 hardcode_direct_absolute=yes
9622 export_dynamic_flag_spec='${wl}-E'
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
9625 hardcode_minus_L=yes
9629 hpux11*)
9630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9631 case $host_cpu in
9632 hppa*64*)
9633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9635 ia64*)
9636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9641 esac
9642 else
9643 case $host_cpu in
9644 hppa*64*)
9645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9647 ia64*)
9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9652 # Older versions of the 11.00 compiler do not understand -b yet
9653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9655 $as_echo_n "checking if $CC understands -b... " >&6; }
9656 if ${lt_cv_prog_compiler__b+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 lt_cv_prog_compiler__b=no
9660 save_LDFLAGS="$LDFLAGS"
9661 LDFLAGS="$LDFLAGS -b"
9662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9664 # The linker can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
9666 if test -s conftest.err; then
9667 # Append any errors to the config.log.
9668 cat conftest.err 1>&5
9669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9671 if diff conftest.exp conftest.er2 >/dev/null; then
9672 lt_cv_prog_compiler__b=yes
9674 else
9675 lt_cv_prog_compiler__b=yes
9678 $RM -r conftest*
9679 LDFLAGS="$save_LDFLAGS"
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9683 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9685 if test x"$lt_cv_prog_compiler__b" = xyes; then
9686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687 else
9688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9692 esac
9694 if test "$with_gnu_ld" = no; then
9695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_separator=:
9698 case $host_cpu in
9699 hppa*64*|ia64*)
9700 hardcode_direct=no
9701 hardcode_shlibpath_var=no
9704 hardcode_direct=yes
9705 hardcode_direct_absolute=yes
9706 export_dynamic_flag_spec='${wl}-E'
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L=yes
9712 esac
9716 irix5* | irix6* | nonstopux*)
9717 if test "$GCC" = yes; then
9718 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'
9719 # Try to use the -exported_symbol ld option, if it does not
9720 # work, assume that -exports_file does not work either and
9721 # implicitly export all symbols.
9722 save_LDFLAGS="$LDFLAGS"
9723 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 int foo(void) {}
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 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'
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 LDFLAGS="$save_LDFLAGS"
9735 else
9736 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'
9737 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'
9739 archive_cmds_need_lc='no'
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 hardcode_libdir_separator=:
9742 inherit_rpath=yes
9743 link_all_deplibs=yes
9746 netbsd*)
9747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9749 else
9750 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9757 newsos6)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes
9760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_shlibpath_var=no
9765 *nto* | *qnx*)
9768 openbsd*)
9769 if test -f /usr/libexec/ld.so; then
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
9772 hardcode_direct_absolute=yes
9773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777 export_dynamic_flag_spec='${wl}-E'
9778 else
9779 case $host_os in
9780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_libdir_flag_spec='-R$libdir'
9785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9788 esac
9790 else
9791 ld_shlibs=no
9795 os2*)
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_minus_L=yes
9798 allow_undefined_flag=unsupported
9799 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'
9800 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9803 osf3*)
9804 if test "$GCC" = yes; then
9805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9806 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'
9807 else
9808 allow_undefined_flag=' -expect_unresolved \*'
9809 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'
9811 archive_cmds_need_lc='no'
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator=:
9816 osf4* | osf5*) # as osf3* with the addition of -msym flag
9817 if test "$GCC" = yes; then
9818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9819 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'
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 else
9822 allow_undefined_flag=' -expect_unresolved \*'
9823 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'
9824 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~
9825 $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'
9827 # Both c and cxx compiler support -rpath directly
9828 hardcode_libdir_flag_spec='-rpath $libdir'
9830 archive_cmds_need_lc='no'
9831 hardcode_libdir_separator=:
9834 solaris*)
9835 no_undefined_flag=' -z defs'
9836 if test "$GCC" = yes; then
9837 wlarc='${wl}'
9838 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9840 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9841 else
9842 case `$CC -V 2>&1` in
9843 *"Compilers 5.0"*)
9844 wlarc=''
9845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9850 wlarc='${wl}'
9851 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9853 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9855 esac
9857 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_shlibpath_var=no
9859 case $host_os in
9860 solaris2.[0-5] | solaris2.[0-5].*) ;;
9862 # The compiler driver will combine and reorder linker options,
9863 # but understands `-z linker_flag'. GCC discards it without `$wl',
9864 # but is careful enough not to reorder.
9865 # Supported since Solaris 2.6 (maybe 2.5.1?)
9866 if test "$GCC" = yes; then
9867 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9868 else
9869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9872 esac
9873 link_all_deplibs=yes
9876 sunos4*)
9877 if test "x$host_vendor" = xsequent; then
9878 # Use $CC to link under sequent, because it throws in some extra .o
9879 # files that make .init and .fini sections work.
9880 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9881 else
9882 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_direct=yes
9886 hardcode_minus_L=yes
9887 hardcode_shlibpath_var=no
9890 sysv4)
9891 case $host_vendor in
9892 sni)
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_direct=yes # is this really true???
9896 siemens)
9897 ## LD is ld it makes a PLAMLIB
9898 ## CC just makes a GrossModule.
9899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9900 reload_cmds='$CC -r -o $output$reload_objs'
9901 hardcode_direct=no
9903 motorola)
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9907 esac
9908 runpath_var='LD_RUN_PATH'
9909 hardcode_shlibpath_var=no
9912 sysv4.3*)
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_shlibpath_var=no
9915 export_dynamic_flag_spec='-Bexport'
9918 sysv4*MP*)
9919 if test -d /usr/nec; then
9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921 hardcode_shlibpath_var=no
9922 runpath_var=LD_RUN_PATH
9923 hardcode_runpath_var=yes
9924 ld_shlibs=yes
9928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9929 no_undefined_flag='${wl}-z,text'
9930 archive_cmds_need_lc=no
9931 hardcode_shlibpath_var=no
9932 runpath_var='LD_RUN_PATH'
9934 if test "$GCC" = yes; then
9935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 else
9938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 sysv5* | sco3.2v5* | sco5v6*)
9944 # Note: We can NOT use -z defs as we might desire, because we do not
9945 # link with -lc, and that would cause any symbols used from libc to
9946 # always be unresolved, which means just about no library would
9947 # ever link correctly. If we're not using GNU ld we use -z text
9948 # though, which does catch some bad symbols but isn't as heavy-handed
9949 # as -z defs.
9950 no_undefined_flag='${wl}-z,text'
9951 allow_undefined_flag='${wl}-z,nodefs'
9952 archive_cmds_need_lc=no
9953 hardcode_shlibpath_var=no
9954 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9955 hardcode_libdir_separator=':'
9956 link_all_deplibs=yes
9957 export_dynamic_flag_spec='${wl}-Bexport'
9958 runpath_var='LD_RUN_PATH'
9960 if test "$GCC" = yes; then
9961 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 else
9964 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9969 uts4*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_libdir_flag_spec='-L$libdir'
9972 hardcode_shlibpath_var=no
9976 ld_shlibs=no
9978 esac
9980 if test x$host_vendor = xsni; then
9981 case $host in
9982 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9983 export_dynamic_flag_spec='${wl}-Blargedynsym'
9985 esac
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9990 $as_echo "$ld_shlibs" >&6; }
9991 test "$ld_shlibs" = no && can_build_shared=no
9993 with_gnu_ld=$with_gnu_ld
10010 # Do we need to explicitly link libc?
10012 case "x$archive_cmds_need_lc" in
10013 x|xyes)
10014 # Assume -lc should be added
10015 archive_cmds_need_lc=yes
10017 if test "$enable_shared" = yes && test "$GCC" = yes; then
10018 case $archive_cmds in
10019 *'~'*)
10020 # FIXME: we may have to deal with multi-command sequences.
10022 '$CC '*)
10023 # Test whether the compiler implicitly links with -lc since on some
10024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10025 # to ld, don't add -lc before -lgcc.
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10027 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10028 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 $RM conftest*
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10035 (eval $ac_compile) 2>&5
10036 ac_status=$?
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; } 2>conftest.err; then
10039 soname=conftest
10040 lib=conftest
10041 libobjs=conftest.$ac_objext
10042 deplibs=
10043 wl=$lt_prog_compiler_wl
10044 pic_flag=$lt_prog_compiler_pic
10045 compiler_flags=-v
10046 linker_flags=-v
10047 verstring=
10048 output_objdir=.
10049 libname=conftest
10050 lt_save_allow_undefined_flag=$allow_undefined_flag
10051 allow_undefined_flag=
10052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10053 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10054 ac_status=$?
10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10056 test $ac_status = 0; }
10057 then
10058 lt_cv_archive_cmds_need_lc=no
10059 else
10060 lt_cv_archive_cmds_need_lc=yes
10062 allow_undefined_flag=$lt_save_allow_undefined_flag
10063 else
10064 cat conftest.err 1>&5
10066 $RM conftest*
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10070 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10071 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10073 esac
10076 esac
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10237 if test "$GCC" = yes; then
10238 case $host_os in
10239 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10240 *) lt_awk_arg="/^libraries:/" ;;
10241 esac
10242 case $host_os in
10243 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10244 *) lt_sed_strip_eq="s,=/,/,g" ;;
10245 esac
10246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10247 case $lt_search_path_spec in
10248 *\;*)
10249 # if the path contains ";" then we assume it to be the separator
10250 # otherwise default to the standard path separator (i.e. ":") - it is
10251 # assumed that no part of a normal pathname contains ";" but that should
10252 # okay in the real world where ";" in dirpaths is itself problematic.
10253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10258 esac
10259 # Ok, now we have the path, separated by spaces, we can step through it
10260 # and add multilib dir if necessary.
10261 lt_tmp_lt_search_path_spec=
10262 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10263 for lt_sys_path in $lt_search_path_spec; do
10264 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10266 else
10267 test -d "$lt_sys_path" && \
10268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10270 done
10271 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10272 BEGIN {RS=" "; FS="/|\n";} {
10273 lt_foo="";
10274 lt_count=0;
10275 for (lt_i = NF; lt_i > 0; lt_i--) {
10276 if ($lt_i != "" && $lt_i != ".") {
10277 if ($lt_i == "..") {
10278 lt_count++;
10279 } else {
10280 if (lt_count == 0) {
10281 lt_foo="/" $lt_i lt_foo;
10282 } else {
10283 lt_count--;
10288 if (lt_foo != "") { lt_freq[lt_foo]++; }
10289 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10291 # AWK program above erroneously prepends '/' to C:/dos/paths
10292 # for these hosts.
10293 case $host_os in
10294 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10295 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10296 esac
10297 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10298 else
10299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10301 library_names_spec=
10302 libname_spec='lib$name'
10303 soname_spec=
10304 shrext_cmds=".so"
10305 postinstall_cmds=
10306 postuninstall_cmds=
10307 finish_cmds=
10308 finish_eval=
10309 shlibpath_var=
10310 shlibpath_overrides_runpath=unknown
10311 version_type=none
10312 dynamic_linker="$host_os ld.so"
10313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10314 need_lib_prefix=unknown
10315 hardcode_into_libs=no
10317 # when you set need_version to no, make sure it does not cause -set_version
10318 # flags to be left without arguments
10319 need_version=unknown
10321 case $host_os in
10322 aix3*)
10323 version_type=linux
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10325 shlibpath_var=LIBPATH
10327 # AIX 3 has no versioning support, so we append a major version to the name.
10328 soname_spec='${libname}${release}${shared_ext}$major'
10331 aix[4-9]*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 hardcode_into_libs=yes
10336 if test "$host_cpu" = ia64; then
10337 # AIX 5 supports IA64
10338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 else
10341 # With GCC up to 2.95.x, collect2 would create an import file
10342 # for dependence libraries. The import file would start with
10343 # the line `#! .'. This would cause the generated library to
10344 # depend on `.', always an invalid library. This was fixed in
10345 # development snapshots of GCC prior to 3.0.
10346 case $host_os in
10347 aix4 | aix4.[01] | aix4.[01].*)
10348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10349 echo ' yes '
10350 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10352 else
10353 can_build_shared=no
10356 esac
10357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10358 # soname into executable. Probably we can add versioning support to
10359 # collect2, so additional links can be useful in future.
10360 if test "$aix_use_runtimelinking" = yes; then
10361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10362 # instead of lib<name>.a to let people know that these are not
10363 # typical AIX shared libraries.
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 else
10366 # We preserve .a as extension for shared libraries through AIX4.2
10367 # and later when we are not doing run time linking.
10368 library_names_spec='${libname}${release}.a $libname.a'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LIBPATH
10375 amigaos*)
10376 case $host_cpu in
10377 powerpc)
10378 # Since July 2007 AmigaOS4 officially supports .so libraries.
10379 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 m68k)
10383 library_names_spec='$libname.ixlibrary $libname.a'
10384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10385 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'
10387 esac
10390 beos*)
10391 library_names_spec='${libname}${shared_ext}'
10392 dynamic_linker="$host_os ld.so"
10393 shlibpath_var=LIBRARY_PATH
10396 bsdi[45]*)
10397 version_type=linux
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10405 # the default ld.so.conf also contains /usr/contrib/lib and
10406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10407 # libtool to hard-code these into programs
10410 cygwin* | mingw* | pw32* | cegcc*)
10411 version_type=windows
10412 shrext_cmds=".dll"
10413 need_version=no
10414 need_lib_prefix=no
10416 case $GCC,$host_os in
10417 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10418 library_names_spec='$libname.dll.a'
10419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10420 postinstall_cmds='base_file=`basename \${file}`~
10421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10422 dldir=$destdir/`dirname \$dlpath`~
10423 test -d \$dldir || mkdir -p \$dldir~
10424 $install_prog $dir/$dlname \$dldir/$dlname~
10425 chmod a+x \$dldir/$dlname~
10426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10430 dlpath=$dir/\$dldll~
10431 $RM \$dlpath'
10432 shlibpath_overrides_runpath=yes
10434 case $host_os in
10435 cygwin*)
10436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10441 mingw* | cegcc*)
10442 # MinGW DLLs use traditional 'lib' prefix
10443 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10445 pw32*)
10446 # pw32 DLLs use 'pw' prefix rather than 'lib'
10447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10449 esac
10453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10455 esac
10456 dynamic_linker='Win32 ld.exe'
10457 # FIXME: first we should search . and the directory the executable is in
10458 shlibpath_var=PATH
10461 darwin* | rhapsody*)
10462 dynamic_linker="$host_os dyld"
10463 version_type=darwin
10464 need_lib_prefix=no
10465 need_version=no
10466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10467 soname_spec='${libname}${release}${major}$shared_ext'
10468 shlibpath_overrides_runpath=yes
10469 shlibpath_var=DYLD_LIBRARY_PATH
10470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10476 dgux*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10485 freebsd* | dragonfly*)
10486 # DragonFly does not have aout. When/if they implement a new
10487 # versioning mechanism, adjust this.
10488 if test -x /usr/bin/objformat; then
10489 objformat=`/usr/bin/objformat`
10490 else
10491 case $host_os in
10492 freebsd[23].*) objformat=aout ;;
10493 *) objformat=elf ;;
10494 esac
10496 version_type=freebsd-$objformat
10497 case $version_type in
10498 freebsd-elf*)
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500 need_version=no
10501 need_lib_prefix=no
10503 freebsd-*)
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10505 need_version=yes
10507 esac
10508 shlibpath_var=LD_LIBRARY_PATH
10509 case $host_os in
10510 freebsd2.*)
10511 shlibpath_overrides_runpath=yes
10513 freebsd3.[01]* | freebsdelf3.[01]*)
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10522 *) # from 4.6 on, and DragonFly
10523 shlibpath_overrides_runpath=yes
10524 hardcode_into_libs=yes
10526 esac
10529 gnu*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 hardcode_into_libs=yes
10539 haiku*)
10540 version_type=linux
10541 need_lib_prefix=no
10542 need_version=no
10543 dynamic_linker="$host_os runtime_loader"
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10549 hardcode_into_libs=yes
10552 hpux9* | hpux10* | hpux11*)
10553 # Give a soname corresponding to the major version so that dld.sl refuses to
10554 # link against other versions.
10555 version_type=sunos
10556 need_lib_prefix=no
10557 need_version=no
10558 case $host_cpu in
10559 ia64*)
10560 shrext_cmds='.so'
10561 hardcode_into_libs=yes
10562 dynamic_linker="$host_os dld.so"
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 if test "X$HPUX_IA64_MODE" = X32; then
10568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10569 else
10570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10574 hppa*64*)
10575 shrext_cmds='.sl'
10576 hardcode_into_libs=yes
10577 dynamic_linker="$host_os dld.sl"
10578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10586 shrext_cmds='.sl'
10587 dynamic_linker="$host_os dld.sl"
10588 shlibpath_var=SHLIB_PATH
10589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10593 esac
10594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10595 postinstall_cmds='chmod 555 $lib'
10596 # or fails outright, so override atomically:
10597 install_override_mode=555
10600 interix[3-9]*)
10601 version_type=linux
10602 need_lib_prefix=no
10603 need_version=no
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10612 irix5* | irix6* | nonstopux*)
10613 case $host_os in
10614 nonstopux*) version_type=nonstopux ;;
10616 if test "$lt_cv_prog_gnu_ld" = yes; then
10617 version_type=linux
10618 else
10619 version_type=irix
10620 fi ;;
10621 esac
10622 need_lib_prefix=no
10623 need_version=no
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 case $host_os in
10627 irix5* | nonstopux*)
10628 libsuff= shlibsuff=
10631 case $LD in # libtool.m4 will add one of these switches to LD
10632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10633 libsuff= shlibsuff= libmagic=32-bit;;
10634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10635 libsuff=32 shlibsuff=N32 libmagic=N32;;
10636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10638 *) libsuff= shlibsuff= libmagic=never-match;;
10639 esac
10641 esac
10642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10646 hardcode_into_libs=yes
10649 # No shared lib support for Linux oldld, aout, or coff.
10650 linux*oldld* | linux*aout* | linux*coff*)
10651 dynamic_linker=no
10654 # This must be Linux ELF.
10655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=no
10665 # Some binutils ld are patched to set DT_RUNPATH
10666 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 lt_cv_shlibpath_overrides_runpath=no
10670 save_LDFLAGS=$LDFLAGS
10671 save_libdir=$libdir
10672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10678 main ()
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10687 lt_cv_shlibpath_overrides_runpath=yes
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LDFLAGS=$save_LDFLAGS
10693 libdir=$save_libdir
10697 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10699 # This implies no fast_install, which is unacceptable.
10700 # Some rework will be needed to allow for fast_install
10701 # before this can be enabled.
10702 hardcode_into_libs=yes
10704 # Append ld.so.conf contents to the search path
10705 if test -f /etc/ld.so.conf; then
10706 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' ' '`
10707 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10710 # We used to test for /lib/ld.so.1 and disable shared libraries on
10711 # powerpc, because MkLinux only supported shared libraries with the
10712 # GNU dynamic linker. Since this was broken with cross compilers,
10713 # most powerpc-linux boxes support dynamic linking these days and
10714 # people can always --disable-shared, the test was removed, and we
10715 # assume the GNU/Linux dynamic linker is in use.
10716 dynamic_linker='GNU/Linux ld.so'
10719 netbsd*)
10720 version_type=sunos
10721 need_lib_prefix=no
10722 need_version=no
10723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10726 dynamic_linker='NetBSD (a.out) ld.so'
10727 else
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 dynamic_linker='NetBSD ld.elf_so'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10734 hardcode_into_libs=yes
10737 newsos6)
10738 version_type=linux
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10744 *nto* | *qnx*)
10745 version_type=qnx
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752 hardcode_into_libs=yes
10753 dynamic_linker='ldqnx.so'
10756 openbsd*)
10757 version_type=sunos
10758 sys_lib_dlsearch_path_spec="/usr/lib"
10759 need_lib_prefix=no
10760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10761 case $host_os in
10762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10763 *) need_version=no ;;
10764 esac
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10769 case $host_os in
10770 openbsd2.[89] | openbsd2.[89].*)
10771 shlibpath_overrides_runpath=no
10774 shlibpath_overrides_runpath=yes
10776 esac
10777 else
10778 shlibpath_overrides_runpath=yes
10782 os2*)
10783 libname_spec='$name'
10784 shrext_cmds=".dll"
10785 need_lib_prefix=no
10786 library_names_spec='$libname${shared_ext} $libname.a'
10787 dynamic_linker='OS/2 ld.exe'
10788 shlibpath_var=LIBPATH
10791 osf3* | osf4* | osf5*)
10792 version_type=osf
10793 need_lib_prefix=no
10794 need_version=no
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10802 rdos*)
10803 dynamic_linker=no
10806 solaris*)
10807 version_type=linux
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=yes
10814 hardcode_into_libs=yes
10815 # ldd complains unless libraries are executable
10816 postinstall_cmds='chmod +x $lib'
10819 sunos4*)
10820 version_type=sunos
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 if test "$with_gnu_ld" = yes; then
10826 need_lib_prefix=no
10828 need_version=yes
10831 sysv4 | sysv4.3*)
10832 version_type=linux
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 case $host_vendor in
10837 sni)
10838 shlibpath_overrides_runpath=no
10839 need_lib_prefix=no
10840 runpath_var=LD_RUN_PATH
10842 siemens)
10843 need_lib_prefix=no
10845 motorola)
10846 need_lib_prefix=no
10847 need_version=no
10848 shlibpath_overrides_runpath=no
10849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10851 esac
10854 sysv4*MP*)
10855 if test -d /usr/nec ;then
10856 version_type=linux
10857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10858 soname_spec='$libname${shared_ext}.$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10864 version_type=freebsd-elf
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 if test "$with_gnu_ld" = yes; then
10873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10874 else
10875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10876 case $host_os in
10877 sco3.2v5*)
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10880 esac
10882 sys_lib_dlsearch_path_spec='/usr/lib'
10885 tpf*)
10886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10887 version_type=linux
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10896 uts4*)
10897 version_type=linux
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10904 dynamic_linker=no
10906 esac
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10908 $as_echo "$dynamic_linker" >&6; }
10909 test "$dynamic_linker" = no && can_build_shared=no
10911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10912 if test "$GCC" = yes; then
10913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10916 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10919 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11016 hardcode_action=
11017 if test -n "$hardcode_libdir_flag_spec" ||
11018 test -n "$runpath_var" ||
11019 test "X$hardcode_automatic" = "Xyes" ; then
11021 # We can hardcode non-existent directories.
11022 if test "$hardcode_direct" != no &&
11023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11024 # have to relink, otherwise we might link with an installed library
11025 # when we should be linking with a yet-to-be-installed one
11026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11027 test "$hardcode_minus_L" != no; then
11028 # Linking always hardcodes the temporary library directory.
11029 hardcode_action=relink
11030 else
11031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11032 hardcode_action=immediate
11034 else
11035 # We cannot hardcode anything, or else we can only hardcode existing
11036 # directories.
11037 hardcode_action=unsupported
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11040 $as_echo "$hardcode_action" >&6; }
11042 if test "$hardcode_action" = relink ||
11043 test "$inherit_rpath" = yes; then
11044 # Fast installation is not supported
11045 enable_fast_install=no
11046 elif test "$shlibpath_overrides_runpath" = yes ||
11047 test "$enable_shared" = no; then
11048 # Fast installation is not necessary
11049 enable_fast_install=needless
11057 if test "x$enable_dlopen" != xyes; then
11058 enable_dlopen=unknown
11059 enable_dlopen_self=unknown
11060 enable_dlopen_self_static=unknown
11061 else
11062 lt_cv_dlopen=no
11063 lt_cv_dlopen_libs=
11065 case $host_os in
11066 beos*)
11067 lt_cv_dlopen="load_add_on"
11068 lt_cv_dlopen_libs=
11069 lt_cv_dlopen_self=yes
11072 mingw* | pw32* | cegcc*)
11073 lt_cv_dlopen="LoadLibrary"
11074 lt_cv_dlopen_libs=
11077 cygwin*)
11078 lt_cv_dlopen="dlopen"
11079 lt_cv_dlopen_libs=
11082 darwin*)
11083 # if libdl is installed we need to link against it
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11086 if ${ac_cv_lib_dl_dlopen+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-ldl $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char dlopen ();
11102 main ()
11104 return dlopen ();
11106 return 0;
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_dl_dlopen=yes
11111 else
11112 ac_cv_lib_dl_dlopen=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11120 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11122 else
11124 lt_cv_dlopen="dyld"
11125 lt_cv_dlopen_libs=
11126 lt_cv_dlopen_self=yes
11133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11134 if test "x$ac_cv_func_shl_load" = xyes; then :
11135 lt_cv_dlopen="shl_load"
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11139 if ${ac_cv_lib_dld_shl_load+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_lib_save_LIBS=$LIBS
11143 LIBS="-ldld $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char shl_load ();
11155 main ()
11157 return shl_load ();
11159 return 0;
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_dld_shl_load=yes
11164 else
11165 ac_cv_lib_dld_shl_load=no
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 LIBS=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11172 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11173 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11175 else
11176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11177 if test "x$ac_cv_func_dlopen" = xyes; then :
11178 lt_cv_dlopen="dlopen"
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11182 if ${ac_cv_lib_dl_dlopen+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 ac_check_lib_save_LIBS=$LIBS
11186 LIBS="-ldl $LIBS"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char dlopen ();
11198 main ()
11200 return dlopen ();
11202 return 0;
11204 _ACEOF
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_dl_dlopen=yes
11207 else
11208 ac_cv_lib_dl_dlopen=no
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11216 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11220 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11221 if ${ac_cv_lib_svld_dlopen+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-lsvld $LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 char dlopen ();
11237 main ()
11239 return dlopen ();
11241 return 0;
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 ac_cv_lib_svld_dlopen=yes
11246 else
11247 ac_cv_lib_svld_dlopen=no
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11254 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11255 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11259 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11260 if ${ac_cv_lib_dld_dld_link+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-ldld $LIBS"
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11268 /* Override any GCC internal prototype to avoid an error.
11269 Use char because int might match the return type of a GCC
11270 builtin and then its argument prototype would still apply. */
11271 #ifdef __cplusplus
11272 extern "C"
11273 #endif
11274 char dld_link ();
11276 main ()
11278 return dld_link ();
11280 return 0;
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284 ac_cv_lib_dld_dld_link=yes
11285 else
11286 ac_cv_lib_dld_dld_link=no
11288 rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11293 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11294 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11314 esac
11316 if test "x$lt_cv_dlopen" != xno; then
11317 enable_dlopen=yes
11318 else
11319 enable_dlopen=no
11322 case $lt_cv_dlopen in
11323 dlopen)
11324 save_CPPFLAGS="$CPPFLAGS"
11325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11327 save_LDFLAGS="$LDFLAGS"
11328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11330 save_LIBS="$LIBS"
11331 LIBS="$lt_cv_dlopen_libs $LIBS"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11334 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11335 if ${lt_cv_dlopen_self+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 if test "$cross_compiling" = yes; then :
11339 lt_cv_dlopen_self=cross
11340 else
11341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11342 lt_status=$lt_dlunknown
11343 cat > conftest.$ac_ext <<_LT_EOF
11344 #line 11344 "configure"
11345 #include "confdefs.h"
11347 #if HAVE_DLFCN_H
11348 #include <dlfcn.h>
11349 #endif
11351 #include <stdio.h>
11353 #ifdef RTLD_GLOBAL
11354 # define LT_DLGLOBAL RTLD_GLOBAL
11355 #else
11356 # ifdef DL_GLOBAL
11357 # define LT_DLGLOBAL DL_GLOBAL
11358 # else
11359 # define LT_DLGLOBAL 0
11360 # endif
11361 #endif
11363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11364 find out it does not work in some platform. */
11365 #ifndef LT_DLLAZY_OR_NOW
11366 # ifdef RTLD_LAZY
11367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11368 # else
11369 # ifdef DL_LAZY
11370 # define LT_DLLAZY_OR_NOW DL_LAZY
11371 # else
11372 # ifdef RTLD_NOW
11373 # define LT_DLLAZY_OR_NOW RTLD_NOW
11374 # else
11375 # ifdef DL_NOW
11376 # define LT_DLLAZY_OR_NOW DL_NOW
11377 # else
11378 # define LT_DLLAZY_OR_NOW 0
11379 # endif
11380 # endif
11381 # endif
11382 # endif
11383 #endif
11385 /* When -fvisbility=hidden is used, assume the code has been annotated
11386 correspondingly for the symbols needed. */
11387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11388 void fnord () __attribute__((visibility("default")));
11389 #endif
11391 void fnord () { int i=42; }
11392 int main ()
11394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11395 int status = $lt_dlunknown;
11397 if (self)
11399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11400 else
11402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11403 else puts (dlerror ());
11405 /* dlclose (self); */
11407 else
11408 puts (dlerror ());
11410 return status;
11412 _LT_EOF
11413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11414 (eval $ac_link) 2>&5
11415 ac_status=$?
11416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11418 (./conftest; exit; ) >&5 2>/dev/null
11419 lt_status=$?
11420 case x$lt_status in
11421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11423 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11424 esac
11425 else :
11426 # compilation failed
11427 lt_cv_dlopen_self=no
11430 rm -fr conftest*
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11435 $as_echo "$lt_cv_dlopen_self" >&6; }
11437 if test "x$lt_cv_dlopen_self" = xyes; then
11438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11440 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11441 if ${lt_cv_dlopen_self_static+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 if test "$cross_compiling" = yes; then :
11445 lt_cv_dlopen_self_static=cross
11446 else
11447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11448 lt_status=$lt_dlunknown
11449 cat > conftest.$ac_ext <<_LT_EOF
11450 #line 11450 "configure"
11451 #include "confdefs.h"
11453 #if HAVE_DLFCN_H
11454 #include <dlfcn.h>
11455 #endif
11457 #include <stdio.h>
11459 #ifdef RTLD_GLOBAL
11460 # define LT_DLGLOBAL RTLD_GLOBAL
11461 #else
11462 # ifdef DL_GLOBAL
11463 # define LT_DLGLOBAL DL_GLOBAL
11464 # else
11465 # define LT_DLGLOBAL 0
11466 # endif
11467 #endif
11469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11470 find out it does not work in some platform. */
11471 #ifndef LT_DLLAZY_OR_NOW
11472 # ifdef RTLD_LAZY
11473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11474 # else
11475 # ifdef DL_LAZY
11476 # define LT_DLLAZY_OR_NOW DL_LAZY
11477 # else
11478 # ifdef RTLD_NOW
11479 # define LT_DLLAZY_OR_NOW RTLD_NOW
11480 # else
11481 # ifdef DL_NOW
11482 # define LT_DLLAZY_OR_NOW DL_NOW
11483 # else
11484 # define LT_DLLAZY_OR_NOW 0
11485 # endif
11486 # endif
11487 # endif
11488 # endif
11489 #endif
11491 /* When -fvisbility=hidden is used, assume the code has been annotated
11492 correspondingly for the symbols needed. */
11493 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11494 void fnord () __attribute__((visibility("default")));
11495 #endif
11497 void fnord () { int i=42; }
11498 int main ()
11500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11501 int status = $lt_dlunknown;
11503 if (self)
11505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11506 else
11508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 else puts (dlerror ());
11511 /* dlclose (self); */
11513 else
11514 puts (dlerror ());
11516 return status;
11518 _LT_EOF
11519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11524 (./conftest; exit; ) >&5 2>/dev/null
11525 lt_status=$?
11526 case x$lt_status in
11527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11529 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11530 esac
11531 else :
11532 # compilation failed
11533 lt_cv_dlopen_self_static=no
11536 rm -fr conftest*
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11541 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11544 CPPFLAGS="$save_CPPFLAGS"
11545 LDFLAGS="$save_LDFLAGS"
11546 LIBS="$save_LIBS"
11548 esac
11550 case $lt_cv_dlopen_self in
11551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11552 *) enable_dlopen_self=unknown ;;
11553 esac
11555 case $lt_cv_dlopen_self_static in
11556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11557 *) enable_dlopen_self_static=unknown ;;
11558 esac
11577 striplib=
11578 old_striplib=
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11580 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11581 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585 $as_echo "yes" >&6; }
11586 else
11587 # FIXME - insert some real tests, host_os isn't really good enough
11588 case $host_os in
11589 darwin*)
11590 if test -n "$STRIP" ; then
11591 striplib="$STRIP -x"
11592 old_striplib="$STRIP -S"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594 $as_echo "yes" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11604 esac
11618 # Report which library types will actually be built
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11620 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11622 $as_echo "$can_build_shared" >&6; }
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11625 $as_echo_n "checking whether to build shared libraries... " >&6; }
11626 test "$can_build_shared" = "no" && enable_shared=no
11628 # On AIX, shared libraries and static libraries use the same namespace, and
11629 # are all built from PIC.
11630 case $host_os in
11631 aix3*)
11632 test "$enable_shared" = yes && enable_static=no
11633 if test -n "$RANLIB"; then
11634 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11635 postinstall_cmds='$RANLIB $lib'
11639 aix[4-9]*)
11640 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11641 test "$enable_shared" = yes && enable_static=no
11644 esac
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11646 $as_echo "$enable_shared" >&6; }
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11649 $as_echo_n "checking whether to build static libraries... " >&6; }
11650 # Make sure either enable_shared or enable_static is yes.
11651 test "$enable_shared" = yes || enable_static=yes
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11653 $as_echo "$enable_static" >&6; }
11659 ac_ext=c
11660 ac_cpp='$CPP $CPPFLAGS'
11661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665 CC="$lt_save_CC"
11679 # Source file extension for Go test sources.
11680 ac_ext=go
11682 # Object file extension for compiled Go test sources.
11683 objext=o
11684 objext_GO=$objext
11686 # Code to be used in simple compile tests
11687 lt_simple_compile_test_code="package main; func main() { }"
11689 # Code to be used in simple link tests
11690 lt_simple_link_test_code='package main; func main() { }'
11692 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11699 # If no C compiler was specified, use CC.
11700 LTCC=${LTCC-"$CC"}
11702 # If no C compiler flags were specified, use CFLAGS.
11703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11705 # Allow CC to be a program name with arguments.
11706 compiler=$CC
11709 # save warnings/boilerplate of simple test code
11710 ac_outfile=conftest.$ac_objext
11711 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11713 _lt_compiler_boilerplate=`cat conftest.err`
11714 $RM conftest*
11716 ac_outfile=conftest.$ac_objext
11717 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11719 _lt_linker_boilerplate=`cat conftest.err`
11720 $RM -r conftest*
11723 # Allow CC to be a program name with arguments.
11724 lt_save_CC="$CC"
11725 lt_save_GCC="$GCC"
11726 GCC=yes
11727 CC=${GOC-"gccgo"}
11728 compiler=$CC
11729 compiler_GO=$CC
11730 LD_GO="$LD"
11731 for cc_temp in $compiler""; do
11732 case $cc_temp in
11733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11735 \-*) ;;
11736 *) break;;
11737 esac
11738 done
11739 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11742 # Go did not exist at the time GCC didn't implicitly link libc in.
11743 archive_cmds_need_lc_GO=no
11745 old_archive_cmds_GO=$old_archive_cmds
11747 ## CAVEAT EMPTOR:
11748 ## There is no encapsulation within the following macros, do not change
11749 ## the running order or otherwise move them around unless you know exactly
11750 ## what you are doing...
11751 if test -n "$compiler"; then
11753 lt_prog_compiler_no_builtin_flag_GO=
11755 if test "$GCC" = yes; then
11756 case $cc_basename in
11757 nvcc*)
11758 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11760 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11761 esac
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11764 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11765 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 lt_cv_prog_compiler_rtti_exceptions=no
11769 ac_outfile=conftest.$ac_objext
11770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11771 lt_compiler_flag="-fno-rtti -fno-exceptions"
11772 # Insert the option either (1) after the last *FLAGS variable, or
11773 # (2) before a word containing "conftest.", or (3) at the end.
11774 # Note that $ac_compile itself does not contain backslashes and begins
11775 # with a dollar sign (not a hyphen), so the echo should work correctly.
11776 # The option is referenced via a variable to avoid confusing sed.
11777 lt_compile=`echo "$ac_compile" | $SED \
11778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11780 -e 's:$: $lt_compiler_flag:'`
11781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11782 (eval "$lt_compile" 2>conftest.err)
11783 ac_status=$?
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 if (exit $ac_status) && test -s "$ac_outfile"; then
11787 # The compiler can only warn and ignore the option if not recognized
11788 # So say no if there are warnings other than the usual output.
11789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11792 lt_cv_prog_compiler_rtti_exceptions=yes
11795 $RM conftest*
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11799 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11801 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11802 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11803 else
11811 lt_prog_compiler_wl_GO=
11812 lt_prog_compiler_pic_GO=
11813 lt_prog_compiler_static_GO=
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11816 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11818 if test "$GCC" = yes; then
11819 lt_prog_compiler_wl_GO='-Wl,'
11820 lt_prog_compiler_static_GO='-static'
11822 case $host_os in
11823 aix*)
11824 # All AIX code is PIC.
11825 if test "$host_cpu" = ia64; then
11826 # AIX 5 now supports IA64 processor
11827 lt_prog_compiler_static_GO='-Bstatic'
11829 lt_prog_compiler_pic_GO='-fPIC'
11832 amigaos*)
11833 case $host_cpu in
11834 powerpc)
11835 # see comment about AmigaOS4 .so support
11836 lt_prog_compiler_pic_GO='-fPIC'
11838 m68k)
11839 # FIXME: we need at least 68020 code to build shared libraries, but
11840 # adding the `-m68020' flag to GCC prevents building anything better,
11841 # like `-m68040'.
11842 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11844 esac
11847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11848 # PIC is the default for these OSes.
11851 mingw* | cygwin* | pw32* | os2* | cegcc*)
11852 # This hack is so that the source file can tell whether it is being
11853 # built for inclusion in a dll (and should export symbols for example).
11854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11855 # (--disable-auto-import) libraries
11856 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11859 darwin* | rhapsody*)
11860 # PIC is the default on this platform
11861 # Common symbols not allowed in MH_DYLIB files
11862 lt_prog_compiler_pic_GO='-fno-common'
11865 haiku*)
11866 # PIC is the default for Haiku.
11867 # The "-static" flag exists, but is broken.
11868 lt_prog_compiler_static_GO=
11871 hpux*)
11872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11874 # sets the default TLS model and affects inlining.
11875 case $host_cpu in
11876 hppa*64*)
11877 # +Z the default
11880 lt_prog_compiler_pic_GO='-fPIC'
11882 esac
11885 interix[3-9]*)
11886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11887 # Instead, we relocate shared libraries at runtime.
11890 msdosdjgpp*)
11891 # Just because we use GCC doesn't mean we suddenly get shared libraries
11892 # on systems that don't support them.
11893 lt_prog_compiler_can_build_shared_GO=no
11894 enable_shared=no
11897 *nto* | *qnx*)
11898 # QNX uses GNU C++, but need to define -shared option too, otherwise
11899 # it will coredump.
11900 lt_prog_compiler_pic_GO='-fPIC -shared'
11903 sysv4*MP*)
11904 if test -d /usr/nec; then
11905 lt_prog_compiler_pic_GO=-Kconform_pic
11910 lt_prog_compiler_pic_GO='-fPIC'
11912 esac
11914 case $cc_basename in
11915 nvcc*) # Cuda Compiler Driver 2.2
11916 lt_prog_compiler_wl_GO='-Xlinker '
11917 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11919 esac
11920 else
11921 # PORTME Check for flag to pass linker flags through the system compiler.
11922 case $host_os in
11923 aix*)
11924 lt_prog_compiler_wl_GO='-Wl,'
11925 if test "$host_cpu" = ia64; then
11926 # AIX 5 now supports IA64 processor
11927 lt_prog_compiler_static_GO='-Bstatic'
11928 else
11929 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11933 mingw* | cygwin* | pw32* | os2* | cegcc*)
11934 # This hack is so that the source file can tell whether it is being
11935 # built for inclusion in a dll (and should export symbols for example).
11936 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11939 hpux9* | hpux10* | hpux11*)
11940 lt_prog_compiler_wl_GO='-Wl,'
11941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11942 # not for PA HP-UX.
11943 case $host_cpu in
11944 hppa*64*|ia64*)
11945 # +Z the default
11948 lt_prog_compiler_pic_GO='+Z'
11950 esac
11951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11952 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11955 irix5* | irix6* | nonstopux*)
11956 lt_prog_compiler_wl_GO='-Wl,'
11957 # PIC (with -KPIC) is the default.
11958 lt_prog_compiler_static_GO='-non_shared'
11961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11962 case $cc_basename in
11963 # old Intel for x86_64 which still supported -KPIC.
11964 ecc*)
11965 lt_prog_compiler_wl_GO='-Wl,'
11966 lt_prog_compiler_pic_GO='-KPIC'
11967 lt_prog_compiler_static_GO='-static'
11969 # icc used to be incompatible with GCC.
11970 # ICC 10 doesn't accept -KPIC any more.
11971 icc* | ifort*)
11972 lt_prog_compiler_wl_GO='-Wl,'
11973 lt_prog_compiler_pic_GO='-fPIC'
11974 lt_prog_compiler_static_GO='-static'
11976 # Lahey Fortran 8.1.
11977 lf95*)
11978 lt_prog_compiler_wl_GO='-Wl,'
11979 lt_prog_compiler_pic_GO='--shared'
11980 lt_prog_compiler_static_GO='--static'
11982 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11983 # Portland Group compilers (*not* the Pentium gcc compiler,
11984 # which looks to be a dead project)
11985 lt_prog_compiler_wl_GO='-Wl,'
11986 lt_prog_compiler_pic_GO='-fpic'
11987 lt_prog_compiler_static_GO='-Bstatic'
11989 ccc*)
11990 lt_prog_compiler_wl_GO='-Wl,'
11991 # All Alpha code is PIC.
11992 lt_prog_compiler_static_GO='-non_shared'
11994 xl* | bgxl* | bgf* | mpixl*)
11995 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11996 lt_prog_compiler_wl_GO='-Wl,'
11997 lt_prog_compiler_pic_GO='-qpic'
11998 lt_prog_compiler_static_GO='-qstaticlink'
12001 case `$CC -V 2>&1 | sed 5q` in
12002 *Sun\ F* | *Sun*Fortran*)
12003 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12004 lt_prog_compiler_pic_GO='-KPIC'
12005 lt_prog_compiler_static_GO='-Bstatic'
12006 lt_prog_compiler_wl_GO=''
12008 *Sun\ C*)
12009 # Sun C 5.9
12010 lt_prog_compiler_pic_GO='-KPIC'
12011 lt_prog_compiler_static_GO='-Bstatic'
12012 lt_prog_compiler_wl_GO='-Wl,'
12014 esac
12016 esac
12019 newsos6)
12020 lt_prog_compiler_pic_GO='-KPIC'
12021 lt_prog_compiler_static_GO='-Bstatic'
12024 *nto* | *qnx*)
12025 # QNX uses GNU C++, but need to define -shared option too, otherwise
12026 # it will coredump.
12027 lt_prog_compiler_pic_GO='-fPIC -shared'
12030 osf3* | osf4* | osf5*)
12031 lt_prog_compiler_wl_GO='-Wl,'
12032 # All OSF/1 code is PIC.
12033 lt_prog_compiler_static_GO='-non_shared'
12036 rdos*)
12037 lt_prog_compiler_static_GO='-non_shared'
12040 solaris*)
12041 lt_prog_compiler_pic_GO='-KPIC'
12042 lt_prog_compiler_static_GO='-Bstatic'
12043 case $cc_basename in
12044 f77* | f90* | f95*)
12045 lt_prog_compiler_wl_GO='-Qoption ld ';;
12047 lt_prog_compiler_wl_GO='-Wl,';;
12048 esac
12051 sunos4*)
12052 lt_prog_compiler_wl_GO='-Qoption ld '
12053 lt_prog_compiler_pic_GO='-PIC'
12054 lt_prog_compiler_static_GO='-Bstatic'
12057 sysv4 | sysv4.2uw2* | sysv4.3*)
12058 lt_prog_compiler_wl_GO='-Wl,'
12059 lt_prog_compiler_pic_GO='-KPIC'
12060 lt_prog_compiler_static_GO='-Bstatic'
12063 sysv4*MP*)
12064 if test -d /usr/nec ;then
12065 lt_prog_compiler_pic_GO='-Kconform_pic'
12066 lt_prog_compiler_static_GO='-Bstatic'
12070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12071 lt_prog_compiler_wl_GO='-Wl,'
12072 lt_prog_compiler_pic_GO='-KPIC'
12073 lt_prog_compiler_static_GO='-Bstatic'
12076 unicos*)
12077 lt_prog_compiler_wl_GO='-Wl,'
12078 lt_prog_compiler_can_build_shared_GO=no
12081 uts4*)
12082 lt_prog_compiler_pic_GO='-pic'
12083 lt_prog_compiler_static_GO='-Bstatic'
12087 lt_prog_compiler_can_build_shared_GO=no
12089 esac
12092 case $host_os in
12093 # For platforms which do not support PIC, -DPIC is meaningless:
12094 *djgpp*)
12095 lt_prog_compiler_pic_GO=
12098 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12100 esac
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12102 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12107 # Check to make sure the PIC flag actually works.
12109 if test -n "$lt_prog_compiler_pic_GO"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12112 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 lt_cv_prog_compiler_pic_works_GO=no
12116 ac_outfile=conftest.$ac_objext
12117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12118 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12119 # Insert the option either (1) after the last *FLAGS variable, or
12120 # (2) before a word containing "conftest.", or (3) at the end.
12121 # Note that $ac_compile itself does not contain backslashes and begins
12122 # with a dollar sign (not a hyphen), so the echo should work correctly.
12123 # The option is referenced via a variable to avoid confusing sed.
12124 lt_compile=`echo "$ac_compile" | $SED \
12125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12127 -e 's:$: $lt_compiler_flag:'`
12128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12129 (eval "$lt_compile" 2>conftest.err)
12130 ac_status=$?
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 if (exit $ac_status) && test -s "$ac_outfile"; then
12134 # The compiler can only warn and ignore the option if not recognized
12135 # So say no if there are warnings other than the usual output.
12136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12139 lt_cv_prog_compiler_pic_works_GO=yes
12142 $RM conftest*
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12146 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12148 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12149 case $lt_prog_compiler_pic_GO in
12150 "" | " "*) ;;
12151 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12152 esac
12153 else
12154 lt_prog_compiler_pic_GO=
12155 lt_prog_compiler_can_build_shared_GO=no
12163 # Check to make sure the static flag actually works.
12165 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12168 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 lt_cv_prog_compiler_static_works_GO=no
12172 save_LDFLAGS="$LDFLAGS"
12173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12176 # The linker can only warn and ignore the option if not recognized
12177 # So say no if there are warnings
12178 if test -s conftest.err; then
12179 # Append any errors to the config.log.
12180 cat conftest.err 1>&5
12181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12183 if diff conftest.exp conftest.er2 >/dev/null; then
12184 lt_cv_prog_compiler_static_works_GO=yes
12186 else
12187 lt_cv_prog_compiler_static_works_GO=yes
12190 $RM -r conftest*
12191 LDFLAGS="$save_LDFLAGS"
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12195 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12197 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12199 else
12200 lt_prog_compiler_static_GO=
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12208 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 lt_cv_prog_compiler_c_o_GO=no
12212 $RM -r conftest 2>/dev/null
12213 mkdir conftest
12214 cd conftest
12215 mkdir out
12216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12218 lt_compiler_flag="-o out/conftest2.$ac_objext"
12219 # Insert the option either (1) after the last *FLAGS variable, or
12220 # (2) before a word containing "conftest.", or (3) at the end.
12221 # Note that $ac_compile itself does not contain backslashes and begins
12222 # with a dollar sign (not a hyphen), so the echo should work correctly.
12223 lt_compile=`echo "$ac_compile" | $SED \
12224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12226 -e 's:$: $lt_compiler_flag:'`
12227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12228 (eval "$lt_compile" 2>out/conftest.err)
12229 ac_status=$?
12230 cat out/conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12233 then
12234 # The compiler can only warn and ignore the option if not recognized
12235 # So say no if there are warnings
12236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12239 lt_cv_prog_compiler_c_o_GO=yes
12242 chmod u+w . 2>&5
12243 $RM conftest*
12244 # SGI C++ compiler will create directory out/ii_files/ for
12245 # template instantiation
12246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12247 $RM out/* && rmdir out
12248 cd ..
12249 $RM -r conftest
12250 $RM conftest*
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12254 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12260 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 lt_cv_prog_compiler_c_o_GO=no
12264 $RM -r conftest 2>/dev/null
12265 mkdir conftest
12266 cd conftest
12267 mkdir out
12268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12270 lt_compiler_flag="-o out/conftest2.$ac_objext"
12271 # Insert the option either (1) after the last *FLAGS variable, or
12272 # (2) before a word containing "conftest.", or (3) at the end.
12273 # Note that $ac_compile itself does not contain backslashes and begins
12274 # with a dollar sign (not a hyphen), so the echo should work correctly.
12275 lt_compile=`echo "$ac_compile" | $SED \
12276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12278 -e 's:$: $lt_compiler_flag:'`
12279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12280 (eval "$lt_compile" 2>out/conftest.err)
12281 ac_status=$?
12282 cat out/conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12285 then
12286 # The compiler can only warn and ignore the option if not recognized
12287 # So say no if there are warnings
12288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12291 lt_cv_prog_compiler_c_o_GO=yes
12294 chmod u+w . 2>&5
12295 $RM conftest*
12296 # SGI C++ compiler will create directory out/ii_files/ for
12297 # template instantiation
12298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12299 $RM out/* && rmdir out
12300 cd ..
12301 $RM -r conftest
12302 $RM conftest*
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12306 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12311 hard_links="nottested"
12312 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12313 # do not overwrite the value of need_locks provided by the user
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12315 $as_echo_n "checking if we can lock with hard links... " >&6; }
12316 hard_links=yes
12317 $RM conftest*
12318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12319 touch conftest.a
12320 ln conftest.a conftest.b 2>&5 || hard_links=no
12321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12323 $as_echo "$hard_links" >&6; }
12324 if test "$hard_links" = no; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12327 need_locks=warn
12329 else
12330 need_locks=no
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12338 runpath_var=
12339 allow_undefined_flag_GO=
12340 always_export_symbols_GO=no
12341 archive_cmds_GO=
12342 archive_expsym_cmds_GO=
12343 compiler_needs_object_GO=no
12344 enable_shared_with_static_runtimes_GO=no
12345 export_dynamic_flag_spec_GO=
12346 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12347 hardcode_automatic_GO=no
12348 hardcode_direct_GO=no
12349 hardcode_direct_absolute_GO=no
12350 hardcode_libdir_flag_spec_GO=
12351 hardcode_libdir_flag_spec_ld_GO=
12352 hardcode_libdir_separator_GO=
12353 hardcode_minus_L_GO=no
12354 hardcode_shlibpath_var_GO=unsupported
12355 inherit_rpath_GO=no
12356 link_all_deplibs_GO=unknown
12357 module_cmds_GO=
12358 module_expsym_cmds_GO=
12359 old_archive_from_new_cmds_GO=
12360 old_archive_from_expsyms_cmds_GO=
12361 thread_safe_flag_spec_GO=
12362 whole_archive_flag_spec_GO=
12363 # include_expsyms should be a list of space-separated symbols to be *always*
12364 # included in the symbol list
12365 include_expsyms_GO=
12366 # exclude_expsyms can be an extended regexp of symbols to exclude
12367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12369 # as well as any symbol that contains `d'.
12370 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12372 # platforms (ab)use it in PIC code, but their linkers get confused if
12373 # the symbol is explicitly referenced. Since portable code cannot
12374 # rely on this symbol name, it's probably fine to never include it in
12375 # preloaded symbol tables.
12376 # Exclude shared library initialization/finalization symbols.
12377 extract_expsyms_cmds=
12379 case $host_os in
12380 cygwin* | mingw* | pw32* | cegcc*)
12381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12382 # When not using gcc, we currently assume that we are using
12383 # Microsoft Visual C++.
12384 if test "$GCC" != yes; then
12385 with_gnu_ld=no
12388 interix*)
12389 # we just hope/assume this is gcc and not c89 (= MSVC++)
12390 with_gnu_ld=yes
12392 openbsd*)
12393 with_gnu_ld=no
12395 esac
12397 ld_shlibs_GO=yes
12399 # On some targets, GNU ld is compatible enough with the native linker
12400 # that we're better off using the native interface for both.
12401 lt_use_gnu_ld_interface=no
12402 if test "$with_gnu_ld" = yes; then
12403 case $host_os in
12404 aix*)
12405 # The AIX port of GNU ld has always aspired to compatibility
12406 # with the native linker. However, as the warning in the GNU ld
12407 # block says, versions before 2.19.5* couldn't really create working
12408 # shared libraries, regardless of the interface used.
12409 case `$LD -v 2>&1` in
12410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12412 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12414 lt_use_gnu_ld_interface=yes
12416 esac
12419 lt_use_gnu_ld_interface=yes
12421 esac
12424 if test "$lt_use_gnu_ld_interface" = yes; then
12425 # If archive_cmds runs LD, not CC, wlarc should be empty
12426 wlarc='${wl}'
12428 # Set some defaults for GNU ld with shared library support. These
12429 # are reset later if shared libraries are not supported. Putting them
12430 # here allows them to be overridden if necessary.
12431 runpath_var=LD_RUN_PATH
12432 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12433 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12434 # ancient GNU ld didn't support --whole-archive et. al.
12435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12436 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12437 else
12438 whole_archive_flag_spec_GO=
12440 supports_anon_versioning=no
12441 case `$LD -v 2>&1` in
12442 *GNU\ gold*) supports_anon_versioning=yes ;;
12443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12446 *\ 2.11.*) ;; # other 2.11 versions
12447 *) supports_anon_versioning=yes ;;
12448 esac
12450 # See if GNU ld supports shared libraries.
12451 case $host_os in
12452 aix[3-9]*)
12453 # On AIX/PPC, the GNU linker is very broken
12454 if test "$host_cpu" != ia64; then
12455 ld_shlibs_GO=no
12456 cat <<_LT_EOF 1>&2
12458 *** Warning: the GNU linker, at least up to release 2.19, is reported
12459 *** to be unable to reliably create shared libraries on AIX.
12460 *** Therefore, libtool is disabling shared libraries support. If you
12461 *** really care for shared libraries, you may want to install binutils
12462 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12463 *** You will then need to restart the configuration process.
12465 _LT_EOF
12469 amigaos*)
12470 case $host_cpu in
12471 powerpc)
12472 # see comment about AmigaOS4 .so support
12473 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 archive_expsym_cmds_GO=''
12476 m68k)
12477 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)'
12478 hardcode_libdir_flag_spec_GO='-L$libdir'
12479 hardcode_minus_L_GO=yes
12481 esac
12484 beos*)
12485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12486 allow_undefined_flag_GO=unsupported
12487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12488 # support --undefined. This deserves some investigation. FIXME
12489 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490 else
12491 ld_shlibs_GO=no
12495 cygwin* | mingw* | pw32* | cegcc*)
12496 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12497 # as there is no search path for DLLs.
12498 hardcode_libdir_flag_spec_GO='-L$libdir'
12499 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12500 allow_undefined_flag_GO=unsupported
12501 always_export_symbols_GO=no
12502 enable_shared_with_static_runtimes_GO=yes
12503 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12505 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12506 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12507 # If the export-symbols file already is a .def file (1st line
12508 # is EXPORTS), use it as is; otherwise, prepend...
12509 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12510 cp $export_symbols $output_objdir/$soname.def;
12511 else
12512 echo EXPORTS > $output_objdir/$soname.def;
12513 cat $export_symbols >> $output_objdir/$soname.def;
12515 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12516 else
12517 ld_shlibs_GO=no
12521 haiku*)
12522 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12523 link_all_deplibs_GO=yes
12526 interix[3-9]*)
12527 hardcode_direct_GO=no
12528 hardcode_shlibpath_var_GO=no
12529 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12530 export_dynamic_flag_spec_GO='${wl}-E'
12531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12532 # Instead, shared libraries are loaded at an image base (0x10000000 by
12533 # default) and relocated if they conflict, which is a slow very memory
12534 # consuming and fragmenting process. To avoid this, we pick a random,
12535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12536 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12537 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'
12538 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'
12541 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12542 tmp_diet=no
12543 if test "$host_os" = linux-dietlibc; then
12544 case $cc_basename in
12545 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12546 esac
12548 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12549 && test "$tmp_diet" = no
12550 then
12551 tmp_addflag=
12552 tmp_sharedflag='-shared'
12553 case $cc_basename,$host_cpu in
12554 pgcc*) # Portland Group C compiler
12555 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'
12556 tmp_addflag=' $pic_flag'
12558 pgf77* | pgf90* | pgf95* | pgfortran*)
12559 # Portland Group f77 and f90 compilers
12560 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'
12561 tmp_addflag=' $pic_flag -Mnomain' ;;
12562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12563 tmp_addflag=' -i_dynamic' ;;
12564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12565 tmp_addflag=' -i_dynamic -nofor_main' ;;
12566 ifc* | ifort*) # Intel Fortran compiler
12567 tmp_addflag=' -nofor_main' ;;
12568 lf95*) # Lahey Fortran 8.1
12569 whole_archive_flag_spec_GO=
12570 tmp_sharedflag='--shared' ;;
12571 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12572 tmp_sharedflag='-qmkshrobj'
12573 tmp_addflag= ;;
12574 nvcc*) # Cuda Compiler Driver 2.2
12575 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'
12576 compiler_needs_object_GO=yes
12578 esac
12579 case `$CC -V 2>&1 | sed 5q` in
12580 *Sun\ C*) # Sun C 5.9
12581 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'
12582 compiler_needs_object_GO=yes
12583 tmp_sharedflag='-G' ;;
12584 *Sun\ F*) # Sun Fortran 8.3
12585 tmp_sharedflag='-G' ;;
12586 esac
12587 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12589 if test "x$supports_anon_versioning" = xyes; then
12590 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12592 echo "local: *; };" >> $output_objdir/$libname.ver~
12593 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12596 case $cc_basename in
12597 xlf* | bgf* | bgxlf* | mpixlf*)
12598 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12599 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12600 hardcode_libdir_flag_spec_GO=
12601 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12602 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12603 if test "x$supports_anon_versioning" = xyes; then
12604 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12606 echo "local: *; };" >> $output_objdir/$libname.ver~
12607 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12610 esac
12611 else
12612 ld_shlibs_GO=no
12616 netbsd*)
12617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12618 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12619 wlarc=
12620 else
12621 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12622 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12626 solaris*)
12627 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12628 ld_shlibs_GO=no
12629 cat <<_LT_EOF 1>&2
12631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12632 *** create shared libraries on Solaris systems. Therefore, libtool
12633 *** is disabling shared libraries support. We urge you to upgrade GNU
12634 *** binutils to release 2.9.1 or newer. Another option is to modify
12635 *** your PATH or compiler configuration so that the native linker is
12636 *** used, and then restart.
12638 _LT_EOF
12639 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12640 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12641 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12642 else
12643 ld_shlibs_GO=no
12647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12648 case `$LD -v 2>&1` in
12649 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12650 ld_shlibs_GO=no
12651 cat <<_LT_EOF 1>&2
12653 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12654 *** reliably create shared libraries on SCO systems. Therefore, libtool
12655 *** is disabling shared libraries support. We urge you to upgrade GNU
12656 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12657 *** your PATH or compiler configuration so that the native linker is
12658 *** used, and then restart.
12660 _LT_EOF
12663 # For security reasons, it is highly recommended that you always
12664 # use absolute paths for naming shared libraries, and exclude the
12665 # DT_RUNPATH tag from executables and libraries. But doing so
12666 # requires that you compile everything twice, which is a pain.
12667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12668 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12669 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12671 else
12672 ld_shlibs_GO=no
12675 esac
12678 sunos4*)
12679 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12680 wlarc=
12681 hardcode_direct_GO=yes
12682 hardcode_shlibpath_var_GO=no
12686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12687 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12689 else
12690 ld_shlibs_GO=no
12693 esac
12695 if test "$ld_shlibs_GO" = no; then
12696 runpath_var=
12697 hardcode_libdir_flag_spec_GO=
12698 export_dynamic_flag_spec_GO=
12699 whole_archive_flag_spec_GO=
12701 else
12702 # PORTME fill in a description of your system's linker (not GNU ld)
12703 case $host_os in
12704 aix3*)
12705 allow_undefined_flag_GO=unsupported
12706 always_export_symbols_GO=yes
12707 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'
12708 # Note: this linker hardcodes the directories in LIBPATH if there
12709 # are no directories specified by -L.
12710 hardcode_minus_L_GO=yes
12711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12712 # Neither direct hardcoding nor static linking is supported with a
12713 # broken collect2.
12714 hardcode_direct_GO=unsupported
12718 aix[4-9]*)
12719 if test "$host_cpu" = ia64; then
12720 # On IA64, the linker does run time linking by default, so we don't
12721 # have to do anything special.
12722 aix_use_runtimelinking=no
12723 exp_sym_flag='-Bexport'
12724 no_entry_flag=""
12725 else
12726 # If we're using GNU nm, then we don't want the "-C" option.
12727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12728 # Also, AIX nm treats weak defined symbols like other global
12729 # defined symbols, whereas GNU nm marks them as "W".
12730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12731 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'
12732 else
12733 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'
12735 aix_use_runtimelinking=no
12737 # Test if we are trying to use run time linking or normal
12738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12739 # need to do runtime linking.
12740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12741 for ld_flag in $LDFLAGS; do
12742 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12743 aix_use_runtimelinking=yes
12744 break
12746 done
12748 esac
12750 exp_sym_flag='-bexport'
12751 no_entry_flag='-bnoentry'
12754 # When large executables or shared objects are built, AIX ld can
12755 # have problems creating the table of contents. If linking a library
12756 # or program results in "error TOC overflow" add -mminimal-toc to
12757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12760 archive_cmds_GO=''
12761 hardcode_direct_GO=yes
12762 hardcode_direct_absolute_GO=yes
12763 hardcode_libdir_separator_GO=':'
12764 link_all_deplibs_GO=yes
12765 file_list_spec_GO='${wl}-f,'
12767 if test "$GCC" = yes; then
12768 case $host_os in aix4.[012]|aix4.[012].*)
12769 # We only want to do this on AIX 4.2 and lower, the check
12770 # below for broken collect2 doesn't work under 4.3+
12771 collect2name=`${CC} -print-prog-name=collect2`
12772 if test -f "$collect2name" &&
12773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12774 then
12775 # We have reworked collect2
12777 else
12778 # We have old collect2
12779 hardcode_direct_GO=unsupported
12780 # It fails to find uninstalled libraries when the uninstalled
12781 # path is not listed in the libpath. Setting hardcode_minus_L
12782 # to unsupported forces relinking
12783 hardcode_minus_L_GO=yes
12784 hardcode_libdir_flag_spec_GO='-L$libdir'
12785 hardcode_libdir_separator_GO=
12788 esac
12789 shared_flag='-shared'
12790 if test "$aix_use_runtimelinking" = yes; then
12791 shared_flag="$shared_flag "'${wl}-G'
12793 else
12794 # not using gcc
12795 if test "$host_cpu" = ia64; then
12796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12797 # chokes on -Wl,-G. The following line is correct:
12798 shared_flag='-G'
12799 else
12800 if test "$aix_use_runtimelinking" = yes; then
12801 shared_flag='${wl}-G'
12802 else
12803 shared_flag='${wl}-bM:SRE'
12808 export_dynamic_flag_spec_GO='${wl}-bexpall'
12809 # It seems that -bexpall does not export symbols beginning with
12810 # underscore (_), so it is better to generate a list of symbols to export.
12811 always_export_symbols_GO=yes
12812 if test "$aix_use_runtimelinking" = yes; then
12813 # Warning - without using the other runtime loading flags (-brtl),
12814 # -berok will link without error, but may produce a broken library.
12815 allow_undefined_flag_GO='-berok'
12816 # Determine the default libpath from the value encoded in an
12817 # empty executable.
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12822 main ()
12826 return 0;
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12831 lt_aix_libpath_sed='
12832 /Import File Strings/,/^$/ {
12833 /^0/ {
12834 s/^0 *\(.*\)$/\1/
12838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12839 # Check for a 64-bit object if we didn't find anything.
12840 if test -z "$aix_libpath"; then
12841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12848 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12849 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"
12850 else
12851 if test "$host_cpu" = ia64; then
12852 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12853 allow_undefined_flag_GO="-z nodefs"
12854 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"
12855 else
12856 # Determine the default libpath from the value encoded in an
12857 # empty executable.
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12862 main ()
12866 return 0;
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12871 lt_aix_libpath_sed='
12872 /Import File Strings/,/^$/ {
12873 /^0/ {
12874 s/^0 *\(.*\)$/\1/
12878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12879 # Check for a 64-bit object if we didn't find anything.
12880 if test -z "$aix_libpath"; then
12881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12888 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12889 # Warning - without using the other run time loading flags,
12890 # -berok will link without error, but may produce a broken library.
12891 no_undefined_flag_GO=' ${wl}-bernotok'
12892 allow_undefined_flag_GO=' ${wl}-berok'
12893 if test "$with_gnu_ld" = yes; then
12894 # We only use this code for GNU lds that support --whole-archive.
12895 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12896 else
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec_GO='$convenience'
12900 archive_cmds_need_lc_GO=yes
12901 # This is similar to how AIX traditionally builds its shared libraries.
12902 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'
12907 amigaos*)
12908 case $host_cpu in
12909 powerpc)
12910 # see comment about AmigaOS4 .so support
12911 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 archive_expsym_cmds_GO=''
12914 m68k)
12915 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)'
12916 hardcode_libdir_flag_spec_GO='-L$libdir'
12917 hardcode_minus_L_GO=yes
12919 esac
12922 bsdi[45]*)
12923 export_dynamic_flag_spec_GO=-rdynamic
12926 cygwin* | mingw* | pw32* | cegcc*)
12927 # When not using gcc, we currently assume that we are using
12928 # Microsoft Visual C++.
12929 # hardcode_libdir_flag_spec is actually meaningless, as there is
12930 # no search path for DLLs.
12931 hardcode_libdir_flag_spec_GO=' '
12932 allow_undefined_flag_GO=unsupported
12933 # Tell ltmain to make .lib files, not .a files.
12934 libext=lib
12935 # Tell ltmain to make .dll files, not .so files.
12936 shrext_cmds=".dll"
12937 # FIXME: Setting linknames here is a bad hack.
12938 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12939 # The linker will automatically build a .lib file if we build a DLL.
12940 old_archive_from_new_cmds_GO='true'
12941 # FIXME: Should let the user specify the lib program.
12942 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12943 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12944 enable_shared_with_static_runtimes_GO=yes
12947 darwin* | rhapsody*)
12950 archive_cmds_need_lc_GO=no
12951 hardcode_direct_GO=no
12952 hardcode_automatic_GO=yes
12953 hardcode_shlibpath_var_GO=unsupported
12954 if test "$lt_cv_ld_force_load" = "yes"; then
12955 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\"`'
12956 else
12957 whole_archive_flag_spec_GO=''
12959 link_all_deplibs_GO=yes
12960 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12961 case $cc_basename in
12962 ifort*) _lt_dar_can_shared=yes ;;
12963 *) _lt_dar_can_shared=$GCC ;;
12964 esac
12965 if test "$_lt_dar_can_shared" = "yes"; then
12966 output_verbose_link_cmd=func_echo_all
12967 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}"
12968 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12969 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}"
12970 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}"
12972 else
12973 ld_shlibs_GO=no
12978 dgux*)
12979 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980 hardcode_libdir_flag_spec_GO='-L$libdir'
12981 hardcode_shlibpath_var_GO=no
12984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12985 # support. Future versions do this automatically, but an explicit c++rt0.o
12986 # does not break anything, and helps significantly (at the cost of a little
12987 # extra space).
12988 freebsd2.2*)
12989 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12990 hardcode_libdir_flag_spec_GO='-R$libdir'
12991 hardcode_direct_GO=yes
12992 hardcode_shlibpath_var_GO=no
12995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12996 freebsd2.*)
12997 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12998 hardcode_direct_GO=yes
12999 hardcode_minus_L_GO=yes
13000 hardcode_shlibpath_var_GO=no
13003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13004 freebsd* | dragonfly*)
13005 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13006 hardcode_libdir_flag_spec_GO='-R$libdir'
13007 hardcode_direct_GO=yes
13008 hardcode_shlibpath_var_GO=no
13011 hpux9*)
13012 if test "$GCC" = yes; then
13013 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'
13014 else
13015 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'
13017 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13018 hardcode_libdir_separator_GO=:
13019 hardcode_direct_GO=yes
13021 # hardcode_minus_L: Not really in the search PATH,
13022 # but as the default location of the library.
13023 hardcode_minus_L_GO=yes
13024 export_dynamic_flag_spec_GO='${wl}-E'
13027 hpux10*)
13028 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13029 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13030 else
13031 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13033 if test "$with_gnu_ld" = no; then
13034 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13035 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13036 hardcode_libdir_separator_GO=:
13037 hardcode_direct_GO=yes
13038 hardcode_direct_absolute_GO=yes
13039 export_dynamic_flag_spec_GO='${wl}-E'
13040 # hardcode_minus_L: Not really in the search PATH,
13041 # but as the default location of the library.
13042 hardcode_minus_L_GO=yes
13046 hpux11*)
13047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13048 case $host_cpu in
13049 hppa*64*)
13050 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13052 ia64*)
13053 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13056 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13058 esac
13059 else
13060 case $host_cpu in
13061 hppa*64*)
13062 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 ia64*)
13065 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13068 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13070 esac
13072 if test "$with_gnu_ld" = no; then
13073 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13074 hardcode_libdir_separator_GO=:
13076 case $host_cpu in
13077 hppa*64*|ia64*)
13078 hardcode_direct_GO=no
13079 hardcode_shlibpath_var_GO=no
13082 hardcode_direct_GO=yes
13083 hardcode_direct_absolute_GO=yes
13084 export_dynamic_flag_spec_GO='${wl}-E'
13086 # hardcode_minus_L: Not really in the search PATH,
13087 # but as the default location of the library.
13088 hardcode_minus_L_GO=yes
13090 esac
13094 irix5* | irix6* | nonstopux*)
13095 if test "$GCC" = yes; then
13096 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'
13097 # Try to use the -exported_symbol ld option, if it does not
13098 # work, assume that -exports_file does not work either and
13099 # implicitly export all symbols.
13100 save_LDFLAGS="$LDFLAGS"
13101 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 int foo(void) {}
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"; then :
13107 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'
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LDFLAGS="$save_LDFLAGS"
13113 else
13114 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'
13115 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'
13117 archive_cmds_need_lc_GO='no'
13118 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13119 hardcode_libdir_separator_GO=:
13120 inherit_rpath_GO=yes
13121 link_all_deplibs_GO=yes
13124 netbsd*)
13125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13126 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13127 else
13128 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13130 hardcode_libdir_flag_spec_GO='-R$libdir'
13131 hardcode_direct_GO=yes
13132 hardcode_shlibpath_var_GO=no
13135 newsos6)
13136 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13137 hardcode_direct_GO=yes
13138 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13139 hardcode_libdir_separator_GO=:
13140 hardcode_shlibpath_var_GO=no
13143 *nto* | *qnx*)
13146 openbsd*)
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_GO=yes
13149 hardcode_shlibpath_var_GO=no
13150 hardcode_direct_absolute_GO=yes
13151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13152 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13154 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13155 export_dynamic_flag_spec_GO='${wl}-E'
13156 else
13157 case $host_os in
13158 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13159 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13160 hardcode_libdir_flag_spec_GO='-R$libdir'
13163 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13164 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13166 esac
13168 else
13169 ld_shlibs_GO=no
13173 os2*)
13174 hardcode_libdir_flag_spec_GO='-L$libdir'
13175 hardcode_minus_L_GO=yes
13176 allow_undefined_flag_GO=unsupported
13177 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'
13178 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13181 osf3*)
13182 if test "$GCC" = yes; then
13183 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13184 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'
13185 else
13186 allow_undefined_flag_GO=' -expect_unresolved \*'
13187 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'
13189 archive_cmds_need_lc_GO='no'
13190 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13191 hardcode_libdir_separator_GO=:
13194 osf4* | osf5*) # as osf3* with the addition of -msym flag
13195 if test "$GCC" = yes; then
13196 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13197 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'
13198 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13199 else
13200 allow_undefined_flag_GO=' -expect_unresolved \*'
13201 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'
13202 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~
13203 $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'
13205 # Both c and cxx compiler support -rpath directly
13206 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13208 archive_cmds_need_lc_GO='no'
13209 hardcode_libdir_separator_GO=:
13212 solaris*)
13213 no_undefined_flag_GO=' -z defs'
13214 if test "$GCC" = yes; then
13215 wlarc='${wl}'
13216 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13218 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13219 else
13220 case `$CC -V 2>&1` in
13221 *"Compilers 5.0"*)
13222 wlarc=''
13223 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13224 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13225 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13228 wlarc='${wl}'
13229 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13230 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13231 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13233 esac
13235 hardcode_libdir_flag_spec_GO='-R$libdir'
13236 hardcode_shlibpath_var_GO=no
13237 case $host_os in
13238 solaris2.[0-5] | solaris2.[0-5].*) ;;
13240 # The compiler driver will combine and reorder linker options,
13241 # but understands `-z linker_flag'. GCC discards it without `$wl',
13242 # but is careful enough not to reorder.
13243 # Supported since Solaris 2.6 (maybe 2.5.1?)
13244 if test "$GCC" = yes; then
13245 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13246 else
13247 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13250 esac
13251 link_all_deplibs_GO=yes
13254 sunos4*)
13255 if test "x$host_vendor" = xsequent; then
13256 # Use $CC to link under sequent, because it throws in some extra .o
13257 # files that make .init and .fini sections work.
13258 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13259 else
13260 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13262 hardcode_libdir_flag_spec_GO='-L$libdir'
13263 hardcode_direct_GO=yes
13264 hardcode_minus_L_GO=yes
13265 hardcode_shlibpath_var_GO=no
13268 sysv4)
13269 case $host_vendor in
13270 sni)
13271 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13272 hardcode_direct_GO=yes # is this really true???
13274 siemens)
13275 ## LD is ld it makes a PLAMLIB
13276 ## CC just makes a GrossModule.
13277 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13278 reload_cmds_GO='$CC -r -o $output$reload_objs'
13279 hardcode_direct_GO=no
13281 motorola)
13282 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13285 esac
13286 runpath_var='LD_RUN_PATH'
13287 hardcode_shlibpath_var_GO=no
13290 sysv4.3*)
13291 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13292 hardcode_shlibpath_var_GO=no
13293 export_dynamic_flag_spec_GO='-Bexport'
13296 sysv4*MP*)
13297 if test -d /usr/nec; then
13298 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_shlibpath_var_GO=no
13300 runpath_var=LD_RUN_PATH
13301 hardcode_runpath_var=yes
13302 ld_shlibs_GO=yes
13306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13307 no_undefined_flag_GO='${wl}-z,text'
13308 archive_cmds_need_lc_GO=no
13309 hardcode_shlibpath_var_GO=no
13310 runpath_var='LD_RUN_PATH'
13312 if test "$GCC" = yes; then
13313 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13314 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315 else
13316 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 sysv5* | sco3.2v5* | sco5v6*)
13322 # Note: We can NOT use -z defs as we might desire, because we do not
13323 # link with -lc, and that would cause any symbols used from libc to
13324 # always be unresolved, which means just about no library would
13325 # ever link correctly. If we're not using GNU ld we use -z text
13326 # though, which does catch some bad symbols but isn't as heavy-handed
13327 # as -z defs.
13328 no_undefined_flag_GO='${wl}-z,text'
13329 allow_undefined_flag_GO='${wl}-z,nodefs'
13330 archive_cmds_need_lc_GO=no
13331 hardcode_shlibpath_var_GO=no
13332 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13333 hardcode_libdir_separator_GO=':'
13334 link_all_deplibs_GO=yes
13335 export_dynamic_flag_spec_GO='${wl}-Bexport'
13336 runpath_var='LD_RUN_PATH'
13338 if test "$GCC" = yes; then
13339 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13340 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13341 else
13342 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13347 uts4*)
13348 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13349 hardcode_libdir_flag_spec_GO='-L$libdir'
13350 hardcode_shlibpath_var_GO=no
13354 ld_shlibs_GO=no
13356 esac
13358 if test x$host_vendor = xsni; then
13359 case $host in
13360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13361 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13363 esac
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13368 $as_echo "$ld_shlibs_GO" >&6; }
13369 test "$ld_shlibs_GO" = no && can_build_shared=no
13371 with_gnu_ld_GO=$with_gnu_ld
13379 # Do we need to explicitly link libc?
13381 case "x$archive_cmds_need_lc_GO" in
13382 x|xyes)
13383 # Assume -lc should be added
13384 archive_cmds_need_lc_GO=yes
13386 if test "$enable_shared" = yes && test "$GCC" = yes; then
13387 case $archive_cmds_GO in
13388 *'~'*)
13389 # FIXME: we may have to deal with multi-command sequences.
13391 '$CC '*)
13392 # Test whether the compiler implicitly links with -lc since on some
13393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13394 # to ld, don't add -lc before -lgcc.
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13396 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13397 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 $RM conftest*
13401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13404 (eval $ac_compile) 2>&5
13405 ac_status=$?
13406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13407 test $ac_status = 0; } 2>conftest.err; then
13408 soname=conftest
13409 lib=conftest
13410 libobjs=conftest.$ac_objext
13411 deplibs=
13412 wl=$lt_prog_compiler_wl_GO
13413 pic_flag=$lt_prog_compiler_pic_GO
13414 compiler_flags=-v
13415 linker_flags=-v
13416 verstring=
13417 output_objdir=.
13418 libname=conftest
13419 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13420 allow_undefined_flag_GO=
13421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13422 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425 test $ac_status = 0; }
13426 then
13427 lt_cv_archive_cmds_need_lc_GO=no
13428 else
13429 lt_cv_archive_cmds_need_lc_GO=yes
13431 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13432 else
13433 cat conftest.err 1>&5
13435 $RM conftest*
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13439 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13440 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13442 esac
13445 esac
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13512 hardcode_action_GO=
13513 if test -n "$hardcode_libdir_flag_spec_GO" ||
13514 test -n "$runpath_var_GO" ||
13515 test "X$hardcode_automatic_GO" = "Xyes" ; then
13517 # We can hardcode non-existent directories.
13518 if test "$hardcode_direct_GO" != no &&
13519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13520 # have to relink, otherwise we might link with an installed library
13521 # when we should be linking with a yet-to-be-installed one
13522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13523 test "$hardcode_minus_L_GO" != no; then
13524 # Linking always hardcodes the temporary library directory.
13525 hardcode_action_GO=relink
13526 else
13527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13528 hardcode_action_GO=immediate
13530 else
13531 # We cannot hardcode anything, or else we can only hardcode existing
13532 # directories.
13533 hardcode_action_GO=unsupported
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13536 $as_echo "$hardcode_action_GO" >&6; }
13538 if test "$hardcode_action_GO" = relink ||
13539 test "$inherit_rpath_GO" = yes; then
13540 # Fast installation is not supported
13541 enable_fast_install=no
13542 elif test "$shlibpath_overrides_runpath" = yes ||
13543 test "$enable_shared" = no; then
13544 # Fast installation is not necessary
13545 enable_fast_install=needless
13556 ac_ext=c
13557 ac_cpp='$CPP $CPPFLAGS'
13558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563 GCC=$lt_save_GCC
13564 CC="$lt_save_CC"
13569 ac_config_commands="$ac_config_commands libtool"
13574 # Only expand once:
13580 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13583 for ac_prog in gawk mawk nawk awk
13585 # Extract the first word of "$ac_prog", so it can be a program name with args.
13586 set dummy $ac_prog; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_prog_AWK+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$AWK"; then
13593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_AWK="$ac_prog"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13612 AWK=$ac_cv_prog_AWK
13613 if test -n "$AWK"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13615 $as_echo "$AWK" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13622 test -n "$AWK" && break
13623 done
13626 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13629 # Check whether --enable-werror was given.
13630 if test "${enable_werror+set}" = set; then :
13631 enableval=$enable_werror;
13634 if test "x$enable_werror" != "xno"; then
13635 WERROR="-Werror"
13639 glibgo_toolexecdir=no
13640 glibgo_toolexeclibdir=no
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13643 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13644 # Check whether --enable-version-specific-runtime-libs was given.
13645 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13646 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13647 yes) version_specific_libs=yes ;;
13648 no) version_specific_libs=no ;;
13649 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13650 esac
13651 else
13652 version_specific_libs=no
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13656 $as_echo "$version_specific_libs" >&6; }
13658 # Version-specific runtime libs processing.
13659 if test $version_specific_libs = yes; then
13660 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13661 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13664 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13665 # Install a library built with a cross compiler in tooldir, not libdir.
13666 if test -n "$with_cross_host" &&
13667 test x"$with_cross_host" != x"no"; then
13668 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13669 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13670 else
13671 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13672 nover_glibgo_toolexeclibdir='${libdir}'
13674 multi_os_directory=`$GOC -print-multi-os-directory`
13675 case $multi_os_directory in
13676 .) ;; # Avoid trailing /.
13677 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13678 esac
13680 if test x"$glibgo_toolexecdir" = x"no"; then
13681 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13682 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13689 # See if the user wants to configure without libffi. Some
13690 # architectures don't support it. FIXME: We should set a default
13691 # based on the host.
13693 # Check whether --with-libffi was given.
13694 if test "${with_libffi+set}" = set; then :
13695 withval=$with_libffi; :
13696 else
13697 with_libffi=${with_libffi_default-yes}
13701 LIBFFI=
13702 LIBFFIINCS=
13703 if test "$with_libffi" != no; then
13705 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13707 LIBFFI=../libffi/libffi_convenience.la
13708 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13712 if test "$with_liffi" != "no"; then
13713 USE_LIBFFI_TRUE=
13714 USE_LIBFFI_FALSE='#'
13715 else
13716 USE_LIBFFI_TRUE='#'
13717 USE_LIBFFI_FALSE=
13721 # See if the user wants to configure without libatomic. This is useful if we are
13722 # on an architecture for which libgo does not need an atomic support library and
13723 # libatomic does not support our C compiler.
13725 # Check whether --with-libatomic was given.
13726 if test "${with_libatomic+set}" = set; then :
13727 withval=$with_libatomic; :
13728 else
13729 with_libatomic=${with_libatomic_default-yes}
13733 LIBATOMIC=
13734 if test "$with_libatomic" != no; then
13735 LIBATOMIC=../libatomic/libatomic_convenience.la
13739 # Used to tell GNU make to include a file without telling automake to
13740 # include it.
13741 go_include="-include"
13744 # All known GOOS values. This is the union of all operating systems
13745 # supported by the gofrontend and all operating systems supported by
13746 # the gc toolchain.
13747 ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13749 is_darwin=no
13750 is_freebsd=no
13751 is_irix=no
13752 is_linux=no
13753 is_netbsd=no
13754 is_openbsd=no
13755 is_dragonfly=no
13756 is_rtems=no
13757 is_solaris=no
13758 is_aix=no
13759 GOOS=unknown
13760 case ${host} in
13761 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13762 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13763 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13764 *-*-linux*) is_linux=yes; GOOS=linux ;;
13765 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13766 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13767 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13768 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13769 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13770 *-*-aix*) is_aix=yes; GOOS=aix ;;
13771 esac
13772 if test $is_darwin = yes; then
13773 LIBGO_IS_DARWIN_TRUE=
13774 LIBGO_IS_DARWIN_FALSE='#'
13775 else
13776 LIBGO_IS_DARWIN_TRUE='#'
13777 LIBGO_IS_DARWIN_FALSE=
13780 if test $is_freebsd = yes; then
13781 LIBGO_IS_FREEBSD_TRUE=
13782 LIBGO_IS_FREEBSD_FALSE='#'
13783 else
13784 LIBGO_IS_FREEBSD_TRUE='#'
13785 LIBGO_IS_FREEBSD_FALSE=
13788 if test $is_irix = yes; then
13789 LIBGO_IS_IRIX_TRUE=
13790 LIBGO_IS_IRIX_FALSE='#'
13791 else
13792 LIBGO_IS_IRIX_TRUE='#'
13793 LIBGO_IS_IRIX_FALSE=
13796 if test $is_linux = yes; then
13797 LIBGO_IS_LINUX_TRUE=
13798 LIBGO_IS_LINUX_FALSE='#'
13799 else
13800 LIBGO_IS_LINUX_TRUE='#'
13801 LIBGO_IS_LINUX_FALSE=
13804 if test $is_netbsd = yes; then
13805 LIBGO_IS_NETBSD_TRUE=
13806 LIBGO_IS_NETBSD_FALSE='#'
13807 else
13808 LIBGO_IS_NETBSD_TRUE='#'
13809 LIBGO_IS_NETBSD_FALSE=
13812 if test $is_openbsd = yes; then
13813 LIBGO_IS_OPENBSD_TRUE=
13814 LIBGO_IS_OPENBSD_FALSE='#'
13815 else
13816 LIBGO_IS_OPENBSD_TRUE='#'
13817 LIBGO_IS_OPENBSD_FALSE=
13820 if test $is_dragonfly = yes; then
13821 LIBGO_IS_DRAGONFLY_TRUE=
13822 LIBGO_IS_DRAGONFLY_FALSE='#'
13823 else
13824 LIBGO_IS_DRAGONFLY_TRUE='#'
13825 LIBGO_IS_DRAGONFLY_FALSE=
13828 if test $is_rtems = yes; then
13829 LIBGO_IS_RTEMS_TRUE=
13830 LIBGO_IS_RTEMS_FALSE='#'
13831 else
13832 LIBGO_IS_RTEMS_TRUE='#'
13833 LIBGO_IS_RTEMS_FALSE=
13836 if test $is_solaris = yes; then
13837 LIBGO_IS_SOLARIS_TRUE=
13838 LIBGO_IS_SOLARIS_FALSE='#'
13839 else
13840 LIBGO_IS_SOLARIS_TRUE='#'
13841 LIBGO_IS_SOLARIS_FALSE=
13844 if test $is_aix = yes; then
13845 LIBGO_IS_AIX_TRUE=
13846 LIBGO_IS_AIX_FALSE='#'
13847 else
13848 LIBGO_IS_AIX_TRUE='#'
13849 LIBGO_IS_AIX_FALSE=
13852 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13853 LIBGO_IS_BSD_TRUE=
13854 LIBGO_IS_BSD_FALSE='#'
13855 else
13856 LIBGO_IS_BSD_TRUE='#'
13857 LIBGO_IS_BSD_FALSE=
13863 USE_DEJAGNU=no
13864 case ${host} in
13865 *-*-rtems*) USE_DEJAGNU=yes ;;
13866 ${build}) ;;
13867 *) USE_DEJAGNU=yes ;;
13868 esac
13871 # All known GOARCH values. This is the union of all architectures
13872 # supported by the gofrontend and all architectures supported by the
13873 # gc toolchain.
13874 # To add a new architecture:
13875 # - add it to this list
13876 # - if appropriate, add an entry to ALLGOARCHFAMILY below
13877 # - add an entry to the case on ${host} below to set GOARCH
13878 # - update goarchList in libgo/go/go/build/syslist.go
13879 # - update goarch.sh to report the values for this architecture
13880 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
13881 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
13882 # - update arch lists in libgo/match.sh
13883 # - update arch lists in libgo/testsuite/gotest
13884 # - update +build lines in several places
13885 # - libgo/go/runtime/lfstack_NNbit.go
13886 # - libgo/go/runtime/hashNN.go
13887 # - libgo/go/runtime/unalignedN.go
13888 # - libgo/go/syscall/endian_XX.go
13889 # - possibly others
13890 # - possibly update files in libgo/go/internal/syscall/unix
13891 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"
13893 # All known GOARCH family values.
13894 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
13896 GOARCH=unknown
13897 case ${host} in
13898 alpha*-*-*)
13899 GOARCH=alpha
13901 aarch64-*-*)
13902 GOARCH=arm64
13904 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13905 GOARCH=arm
13906 case ${host} in
13907 arm*b*-*-*)
13908 GOARCH=armbe
13910 esac
13912 i[34567]86-*-* | x86_64-*-*)
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13916 #ifdef __x86_64__
13917 #error 64-bit
13918 #endif
13920 _ACEOF
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922 GOARCH=386
13923 else
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13927 #ifdef __ILP32__
13928 #error x32
13929 #endif
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 GOARCH=amd64
13934 else
13935 GOARCH=amd64p32
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 ia64-*-*)
13942 GOARCH=ia64
13944 m68k*-*-*)
13945 GOARCH=m68k
13947 mips*-*-*)
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 #if _MIPS_SIM != _ABIO32
13952 #error not o32
13953 #endif
13955 _ACEOF
13956 if ac_fn_c_try_compile "$LINENO"; then :
13957 mips_abi="o32"
13958 else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13962 #if _MIPS_SIM != _ABIN32
13963 #error not n32
13964 #endif
13966 _ACEOF
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 mips_abi="n32"
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13973 #if _MIPS_SIM != _ABI64
13974 #error not n64
13975 #endif
13977 _ACEOF
13978 if ac_fn_c_try_compile "$LINENO"; then :
13979 mips_abi="n64"
13980 else
13981 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
13982 mips_abi="n32"
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 case "$mips_abi" in
13990 "o32") GOARCH=mips ;;
13991 "n32") GOARCH=mips64p32 ;;
13992 "n64") GOARCH=mips64 ;;
13993 esac
13994 case "${host}" in
13995 mips*el-*-*)
13996 GOARCH="${GOARCH}le"
13998 esac
14000 nios2-*-*)
14001 GOARCH=nios2
14003 rs6000*-*-* | powerpc*-*-*)
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14007 #ifdef _ARCH_PPC64
14008 #error 64-bit
14009 #endif
14011 _ACEOF
14012 if ac_fn_c_try_compile "$LINENO"; then :
14013 GOARCH=ppc
14014 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14019 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14020 #error 64be
14021 #endif
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 GOARCH=ppc64le
14026 else
14027 GOARCH=ppc64
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 riscv64-*-*)
14034 GOARCH=riscv64
14036 s390*-*-*)
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14040 #if defined(__s390x__)
14041 #error 64-bit
14042 #endif
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 GOARCH=s390
14047 else
14048 GOARCH=s390x
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 sh3eb*-*-* | sh4eb*-*-*)
14053 GOARCH=shbe
14055 sh3*-*-* | sh4*-*-*)
14056 GOARCH=sh
14058 sparc*-*-*)
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14062 #if defined(__sparcv9) || defined(__arch64__)
14063 #error 64-bit
14064 #endif
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068 GOARCH=sparc
14069 else
14070 GOARCH=sparc64
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 esac
14079 GO_LIBCALL_OS_FILE=
14080 GO_LIBCALL_OS_ARCH_FILE=
14081 GO_SYSCALL_OS_FILE=
14082 GO_SYSCALL_OS_ARCH_FILE=
14083 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14084 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14086 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14087 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14089 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14090 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14092 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14093 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14100 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14101 case "$target" in
14102 mips-sgi-irix6.5*)
14103 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14104 # msghdr in <sys/socket.h>.
14105 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14107 *-*-solaris2.1[01])
14108 # Solaris 10+ needs this so struct msghdr gets the msg_control
14109 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14110 # above doesn't work with C99.
14111 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14113 esac
14117 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14119 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14120 # with a different meaning.
14121 case ${target_os} in
14122 solaris2*)
14123 ac_save_CFLAGS="$CFLAGS"
14124 CFLAGS="$CFLAGS -Wa,-nH"
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14127 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14132 main ()
14134 return 0;
14136 return 0;
14138 _ACEOF
14139 if ac_fn_c_try_compile "$LINENO"; then :
14140 ac_hwcap_flags=yes
14141 else
14142 ac_hwcap_flags=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 if test "$ac_hwcap_flags" = "yes"; then
14146 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14149 $as_echo "$ac_hwcap_flags" >&6; }
14151 CFLAGS="$ac_save_CFLAGS"
14153 esac
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14159 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14160 if ${libgo_cv_c_split_stack_supported+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 CFLAGS_hold=$CFLAGS
14164 CFLAGS="$CFLAGS -fsplit-stack"
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 int i;
14168 _ACEOF
14169 if ac_fn_c_try_compile "$LINENO"; then :
14170 libgo_cv_c_split_stack_supported=yes
14171 else
14172 libgo_cv_c_split_stack_supported=no
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 CFLAGS=$CFLAGS_hold
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14178 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14181 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14182 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185 cat > conftest1.c << EOF
14186 extern void f();
14187 int main() { f(); return 0; }
14189 cat > conftest2.c << EOF
14190 void f() {}
14192 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14193 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14194 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14195 libgo_cv_c_linker_split_non_split=yes
14196 else
14197 libgo_cv_c_linker_split_non_split=no
14199 rm -f conftest1.* conftest2.* conftest
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14202 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14204 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14205 SPLIT_STACK=-fsplit-stack
14207 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14209 else
14210 SPLIT_STACK=
14213 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14214 USING_SPLIT_STACK_TRUE=
14215 USING_SPLIT_STACK_FALSE='#'
14216 else
14217 USING_SPLIT_STACK_TRUE='#'
14218 USING_SPLIT_STACK_FALSE=
14222 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14223 GO_SPLIT_STACK=-fno-split-stack
14224 else
14225 GO_SPLIT_STACK=
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14230 $as_echo_n "checking whether linker supports split stack... " >&6; }
14231 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 libgo_cv_c_linker_supports_split_stack=no
14235 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14236 libgo_cv_c_linker_supports_split_stack=yes
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14240 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14241 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14243 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14248 $as_echo_n "checking whether compiler is llgo... " >&6; }
14249 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 libgo_cv_c_goc_is_llgo=no
14253 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14254 libgo_cv_c_goc_is_llgo=yes
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14258 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14259 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14260 GOC_IS_LLGO_TRUE=
14261 GOC_IS_LLGO_FALSE='#'
14262 else
14263 GOC_IS_LLGO_TRUE='#'
14264 GOC_IS_LLGO_FALSE=
14268 MATH_LIBS=
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14270 $as_echo_n "checking for sqrt in -lm... " >&6; }
14271 if ${ac_cv_lib_m_sqrt+:} false; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 ac_check_lib_save_LIBS=$LIBS
14275 LIBS="-lm $LIBS"
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282 #ifdef __cplusplus
14283 extern "C"
14284 #endif
14285 char sqrt ();
14287 main ()
14289 return sqrt ();
14291 return 0;
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 ac_cv_lib_m_sqrt=yes
14296 else
14297 ac_cv_lib_m_sqrt=no
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 LIBS=$ac_check_lib_save_LIBS
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14304 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14305 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14306 MATH_LIBS=-lm
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14312 $as_echo_n "checking for socket libraries... " >&6; }
14313 if ${libgo_cv_lib_sockets+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 libgo_cv_lib_sockets=
14317 libgo_check_both=no
14318 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14319 if test "x$ac_cv_func_connect" = xyes; then :
14320 libgo_check_socket=no
14321 else
14322 libgo_check_socket=yes
14325 if test "$libgo_check_socket" = "yes"; then
14326 unset ac_cv_func_connect
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14328 $as_echo_n "checking for main in -lsocket... " >&6; }
14329 if ${ac_cv_lib_socket_main+:} false; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-lsocket $LIBS"
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14339 main ()
14341 return main ();
14343 return 0;
14345 _ACEOF
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_lib_socket_main=yes
14348 else
14349 ac_cv_lib_socket_main=no
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14356 $as_echo "$ac_cv_lib_socket_main" >&6; }
14357 if test "x$ac_cv_lib_socket_main" = xyes; then :
14358 libgo_cv_lib_sockets="-lsocket"
14359 else
14360 libgo_check_both=yes
14364 if test "$libgo_check_both" = "yes"; then
14365 libgo_old_libs=$LIBS
14366 LIBS="$LIBS -lsocket -lnsl"
14367 unset ac_cv_func_accept
14368 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14369 if test "x$ac_cv_func_accept" = xyes; then :
14370 libgo_check_nsl=no
14371 libgo_cv_lib_sockets="-lsocket -lnsl"
14374 unset ac_cv_func_accept
14375 LIBS=$libgo_old_libs
14377 unset ac_cv_func_gethostbyname
14378 libgo_old_libs="$LIBS"
14379 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14380 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14382 else
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14384 $as_echo_n "checking for main in -lnsl... " >&6; }
14385 if ${ac_cv_lib_nsl_main+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 ac_check_lib_save_LIBS=$LIBS
14389 LIBS="-lnsl $LIBS"
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14395 main ()
14397 return main ();
14399 return 0;
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"; then :
14403 ac_cv_lib_nsl_main=yes
14404 else
14405 ac_cv_lib_nsl_main=no
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14412 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14413 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14414 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14419 unset ac_cv_func_gethostbyname
14420 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14421 if test "x$ac_cv_func_sendfile" = xyes; then :
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14425 $as_echo_n "checking for main in -lsendfile... " >&6; }
14426 if ${ac_cv_lib_sendfile_main+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lsendfile $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14436 main ()
14438 return main ();
14440 return 0;
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444 ac_cv_lib_sendfile_main=yes
14445 else
14446 ac_cv_lib_sendfile_main=no
14448 rm -f core conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14450 LIBS=$ac_check_lib_save_LIBS
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14453 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14454 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14455 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14460 LIBS=$libgo_old_libs
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14464 $as_echo "$libgo_cv_lib_sockets" >&6; }
14465 NET_LIBS="$libgo_cv_lib_sockets"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14469 $as_echo_n "checking whether -pthread is supported... " >&6; }
14470 if ${libgo_cv_lib_pthread+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 CFLAGS_hold=$CFLAGS
14474 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477 int i;
14478 _ACEOF
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480 libgo_cv_lib_pthread=yes
14481 else
14482 libgo_cv_lib_pthread=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 CFLAGS=$CFLAGS_hold
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14488 $as_echo "$libgo_cv_lib_pthread" >&6; }
14489 PTHREAD_CFLAGS=
14490 if test "$libgo_cv_lib_pthread" = yes; then
14491 # RISC-V apparently adds -latomic when using -pthread.
14492 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14496 PTHREAD_LIBS=
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14498 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14499 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lpthread $LIBS"
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510 #ifdef __cplusplus
14511 extern "C"
14512 #endif
14513 char pthread_create ();
14515 main ()
14517 return pthread_create ();
14519 return 0;
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 ac_cv_lib_pthread_pthread_create=yes
14524 else
14525 ac_cv_lib_pthread_pthread_create=no
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14532 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14533 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14534 PTHREAD_LIBS=-lpthread
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14540 $as_echo_n "checking for library containing sched_yield... " >&6; }
14541 if ${ac_cv_search_sched_yield+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 ac_func_search_save_LIBS=$LIBS
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14548 /* Override any GCC internal prototype to avoid an error.
14549 Use char because int might match the return type of a GCC
14550 builtin and then its argument prototype would still apply. */
14551 #ifdef __cplusplus
14552 extern "C"
14553 #endif
14554 char sched_yield ();
14556 main ()
14558 return sched_yield ();
14560 return 0;
14562 _ACEOF
14563 for ac_lib in '' rt; do
14564 if test -z "$ac_lib"; then
14565 ac_res="none required"
14566 else
14567 ac_res=-l$ac_lib
14568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_search_sched_yield=$ac_res
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext
14575 if ${ac_cv_search_sched_yield+:} false; then :
14576 break
14578 done
14579 if ${ac_cv_search_sched_yield+:} false; then :
14581 else
14582 ac_cv_search_sched_yield=no
14584 rm conftest.$ac_ext
14585 LIBS=$ac_func_search_save_LIBS
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14588 $as_echo "$ac_cv_search_sched_yield" >&6; }
14589 ac_res=$ac_cv_search_sched_yield
14590 if test "$ac_res" != no; then :
14591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14596 $as_echo_n "checking for library containing nanosleep... " >&6; }
14597 if ${ac_cv_search_nanosleep+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 ac_func_search_save_LIBS=$LIBS
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14604 /* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char nanosleep ();
14612 main ()
14614 return nanosleep ();
14616 return 0;
14618 _ACEOF
14619 for ac_lib in '' rt; do
14620 if test -z "$ac_lib"; then
14621 ac_res="none required"
14622 else
14623 ac_res=-l$ac_lib
14624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14626 if ac_fn_c_try_link "$LINENO"; then :
14627 ac_cv_search_nanosleep=$ac_res
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext
14631 if ${ac_cv_search_nanosleep+:} false; then :
14632 break
14634 done
14635 if ${ac_cv_search_nanosleep+:} false; then :
14637 else
14638 ac_cv_search_nanosleep=no
14640 rm conftest.$ac_ext
14641 LIBS=$ac_func_search_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14644 $as_echo "$ac_cv_search_nanosleep" >&6; }
14645 ac_res=$ac_cv_search_nanosleep
14646 if test "$ac_res" != no; then :
14647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14652 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14653 if ${ac_cv_search_clock_gettime+:} false; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 ac_func_search_save_LIBS=$LIBS
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14660 /* Override any GCC internal prototype to avoid an error.
14661 Use char because int might match the return type of a GCC
14662 builtin and then its argument prototype would still apply. */
14663 #ifdef __cplusplus
14664 extern "C"
14665 #endif
14666 char clock_gettime ();
14668 main ()
14670 return clock_gettime ();
14672 return 0;
14674 _ACEOF
14675 for ac_lib in '' rt; do
14676 if test -z "$ac_lib"; then
14677 ac_res="none required"
14678 else
14679 ac_res=-l$ac_lib
14680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_search_clock_gettime=$ac_res
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext
14687 if ${ac_cv_search_clock_gettime+:} false; then :
14688 break
14690 done
14691 if ${ac_cv_search_clock_gettime+:} false; then :
14693 else
14694 ac_cv_search_clock_gettime=no
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14700 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14701 ac_res=$ac_cv_search_clock_gettime
14702 if test "$ac_res" != no; then :
14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14709 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14710 if ${ac_cv_c_bigendian+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 ac_cv_c_bigendian=unknown
14714 # See if we're dealing with a universal compiler.
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717 #ifndef __APPLE_CC__
14718 not a universal capable compiler
14719 #endif
14720 typedef int dummy;
14722 _ACEOF
14723 if ac_fn_c_try_compile "$LINENO"; then :
14725 # Check for potential -arch flags. It is not universal unless
14726 # there are at least two -arch flags with different values.
14727 ac_arch=
14728 ac_prev=
14729 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14730 if test -n "$ac_prev"; then
14731 case $ac_word in
14732 i?86 | x86_64 | ppc | ppc64)
14733 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14734 ac_arch=$ac_word
14735 else
14736 ac_cv_c_bigendian=universal
14737 break
14740 esac
14741 ac_prev=
14742 elif test "x$ac_word" = "x-arch"; then
14743 ac_prev=arch
14745 done
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 if test $ac_cv_c_bigendian = unknown; then
14749 # See if sys/param.h defines the BYTE_ORDER macro.
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <sys/types.h>
14753 #include <sys/param.h>
14756 main ()
14758 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14759 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14760 && LITTLE_ENDIAN)
14761 bogus endian macros
14762 #endif
14765 return 0;
14767 _ACEOF
14768 if ac_fn_c_try_compile "$LINENO"; then :
14769 # It does; now see whether it defined to BIG_ENDIAN or not.
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 #include <sys/types.h>
14773 #include <sys/param.h>
14776 main ()
14778 #if BYTE_ORDER != BIG_ENDIAN
14779 not big endian
14780 #endif
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_compile "$LINENO"; then :
14787 ac_cv_c_bigendian=yes
14788 else
14789 ac_cv_c_bigendian=no
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 if test $ac_cv_c_bigendian = unknown; then
14796 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 #include <limits.h>
14802 main ()
14804 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14805 bogus endian macros
14806 #endif
14809 return 0;
14811 _ACEOF
14812 if ac_fn_c_try_compile "$LINENO"; then :
14813 # It does; now see whether it defined to _BIG_ENDIAN or not.
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 #include <limits.h>
14819 main ()
14821 #ifndef _BIG_ENDIAN
14822 not big endian
14823 #endif
14826 return 0;
14828 _ACEOF
14829 if ac_fn_c_try_compile "$LINENO"; then :
14830 ac_cv_c_bigendian=yes
14831 else
14832 ac_cv_c_bigendian=no
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 if test $ac_cv_c_bigendian = unknown; then
14839 # Compile a test program.
14840 if test "$cross_compiling" = yes; then :
14841 # Try to guess by grepping values from an object file.
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 short int ascii_mm[] =
14845 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14846 short int ascii_ii[] =
14847 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14848 int use_ascii (int i) {
14849 return ascii_mm[i] + ascii_ii[i];
14851 short int ebcdic_ii[] =
14852 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14853 short int ebcdic_mm[] =
14854 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14855 int use_ebcdic (int i) {
14856 return ebcdic_mm[i] + ebcdic_ii[i];
14858 extern int foo;
14861 main ()
14863 return use_ascii (foo) == use_ebcdic (foo);
14865 return 0;
14867 _ACEOF
14868 if ac_fn_c_try_compile "$LINENO"; then :
14869 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14870 ac_cv_c_bigendian=yes
14872 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14873 if test "$ac_cv_c_bigendian" = unknown; then
14874 ac_cv_c_bigendian=no
14875 else
14876 # finding both strings is unlikely to happen, but who knows?
14877 ac_cv_c_bigendian=unknown
14881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 else
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 $ac_includes_default
14887 main ()
14890 /* Are we little or big endian? From Harbison&Steele. */
14891 union
14893 long int l;
14894 char c[sizeof (long int)];
14895 } u;
14896 u.l = 1;
14897 return u.c[sizeof (long int) - 1] == 1;
14900 return 0;
14902 _ACEOF
14903 if ac_fn_c_try_run "$LINENO"; then :
14904 ac_cv_c_bigendian=no
14905 else
14906 ac_cv_c_bigendian=yes
14908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909 conftest.$ac_objext conftest.beam conftest.$ac_ext
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14915 $as_echo "$ac_cv_c_bigendian" >&6; }
14916 case $ac_cv_c_bigendian in #(
14917 yes)
14918 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14919 ;; #(
14921 ;; #(
14922 universal)
14924 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14926 ;; #(
14928 as_fn_error $? "unknown endianness
14929 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14930 esac
14935 # Check whether --with-system-libunwind was given.
14936 if test "${with_system_libunwind+set}" = set; then :
14937 withval=$with_system_libunwind;
14940 # If system-libunwind was not specifically set, pick a default setting.
14941 if test x$with_system_libunwind = x; then
14942 case ${target} in
14943 ia64-*-hpux*) with_system_libunwind=yes ;;
14944 *) with_system_libunwind=no ;;
14945 esac
14947 # Based on system-libunwind and target, do we have ipinfo?
14948 if test x$with_system_libunwind = xyes; then
14949 case ${target} in
14950 ia64-*-*) have_unwind_getipinfo=no ;;
14951 *) have_unwind_getipinfo=yes ;;
14952 esac
14953 else
14954 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14956 case ${target} in
14957 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14958 *) have_unwind_getipinfo=yes ;;
14959 esac
14963 if test x$have_unwind_getipinfo = xyes; then
14965 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14970 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.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
14971 do :
14972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14975 cat >>confdefs.h <<_ACEOF
14976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14977 _ACEOF
14981 done
14984 for ac_header in netinet/icmp6.h
14985 do :
14986 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14989 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
14990 cat >>confdefs.h <<_ACEOF
14991 #define HAVE_NETINET_ICMP6_H 1
14992 _ACEOF
14996 done
14999 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
15000 do :
15001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15003 #include <sys/socket.h>
15004 #endif
15007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15008 cat >>confdefs.h <<_ACEOF
15009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010 _ACEOF
15014 done
15017 if test "$ac_cv_header_sys_mman_h" = yes; then
15018 HAVE_SYS_MMAN_H_TRUE=
15019 HAVE_SYS_MMAN_H_FALSE='#'
15020 else
15021 HAVE_SYS_MMAN_H_TRUE='#'
15022 HAVE_SYS_MMAN_H_FALSE=
15026 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15027 do :
15028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15030 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15031 cat >>confdefs.h <<_ACEOF
15032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15033 _ACEOF
15036 done
15038 if test "$ac_cv_func_strerror_r" = yes; then
15039 HAVE_STRERROR_R_TRUE=
15040 HAVE_STRERROR_R_FALSE='#'
15041 else
15042 HAVE_STRERROR_R_TRUE='#'
15043 HAVE_STRERROR_R_FALSE=
15046 if test "$ac_cv_func_wait4" = yes; then
15047 HAVE_WAIT4_TRUE=
15048 HAVE_WAIT4_FALSE='#'
15049 else
15050 HAVE_WAIT4_TRUE='#'
15051 HAVE_WAIT4_FALSE=
15055 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
15056 do :
15057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15058 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15059 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15060 cat >>confdefs.h <<_ACEOF
15061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15062 _ACEOF
15065 done
15067 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15068 if test "x$ac_cv_type_off_t" = xyes; then :
15070 else
15072 cat >>confdefs.h <<_ACEOF
15073 #define off_t long int
15074 _ACEOF
15078 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15079 if test "x$ac_cv_type_loff_t" = xyes; then :
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_LOFF_T 1
15083 _ACEOF
15089 LIBS_hold="$LIBS"
15090 LIBS="$LIBS -lm"
15091 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15092 do :
15093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15096 cat >>confdefs.h <<_ACEOF
15097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15098 _ACEOF
15101 done
15103 LIBS="$LIBS_hold"
15105 CFLAGS_hold="$CFLAGS"
15106 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15107 LIBS_hold="$LIBS"
15108 LIBS="$LIBS $PTHREAD_LIBS"
15109 for ac_func in sem_timedwait
15110 do :
15111 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15112 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_SEM_TIMEDWAIT 1
15115 _ACEOF
15118 done
15120 CFLAGS="$CFLAGS_hold"
15121 LIBS="$LIBS_hold"
15123 LIBS_hold="$LIBS"
15124 LIBS="$LIBS $MATH_LIBS"
15125 for ac_func in matherr
15126 do :
15127 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15128 if test "x$ac_cv_func_matherr" = xyes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_MATHERR 1
15131 _ACEOF
15134 done
15136 LIBS="$LIBS_hold"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
15139 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
15140 if ${libgo_cv_func___sync_bool_compare_and_swap_4+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15146 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15147 uint32 i;
15148 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15152 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15153 else
15154 libgo_cv_func___sync_bool_compare_and_swap_4=no
15156 rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15160 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15161 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
15163 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15168 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15169 if ${libgo_cv_func___sync_bool_compare_and_swap_8+:} false; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15175 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15176 uint64 i;
15177 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15179 _ACEOF
15180 if ac_fn_c_try_link "$LINENO"; then :
15181 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15182 else
15183 libgo_cv_func___sync_bool_compare_and_swap_8=no
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15189 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15190 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15192 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15197 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15198 if ${libgo_cv_func___sync_fetch_and_add_4+:} false; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15204 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15205 uint32 i;
15206 int main() { return __sync_fetch_and_add (&i, 1); }
15208 _ACEOF
15209 if ac_fn_c_try_link "$LINENO"; then :
15210 libgo_cv_func___sync_fetch_and_add_4=yes
15211 else
15212 libgo_cv_func___sync_fetch_and_add_4=no
15214 rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15218 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15219 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15221 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15226 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15227 if ${libgo_cv_func___sync_add_and_fetch_8+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15233 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15234 uint64 i;
15235 int main() { return __sync_add_and_fetch (&i, 1); }
15237 _ACEOF
15238 if ac_fn_c_try_link "$LINENO"; then :
15239 libgo_cv_func___sync_add_and_fetch_8=yes
15240 else
15241 libgo_cv_func___sync_add_and_fetch_8=no
15243 rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15247 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15248 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15250 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15255 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15256 if ${libgo_cv_c_stringops+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 CFLAGS_hold=$CFLAGS
15260 CFLAGS="$CFLAGS -minline-all-stringops"
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 int i;
15264 _ACEOF
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 libgo_cv_c_stringops=yes
15267 else
15268 libgo_cv_c_stringops=no
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 CFLAGS=$CFLAGS_hold
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15274 $as_echo "$libgo_cv_c_stringops" >&6; }
15275 STRINGOPS_FLAG=
15276 if test "$libgo_cv_c_stringops" = yes; then
15277 STRINGOPS_FLAG=-minline-all-stringops
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15282 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15283 if ${libgo_cv_c_fancymath+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 CFLAGS_hold=$CFLAGS
15287 CFLAGS="$CFLAGS -mfancy-math-387"
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 int i;
15291 _ACEOF
15292 if ac_fn_c_try_compile "$LINENO"; then :
15293 libgo_cv_c_fancymath=yes
15294 else
15295 libgo_cv_c_fancymath=no
15297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298 CFLAGS=$CFLAGS_hold
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15301 $as_echo "$libgo_cv_c_fancymath" >&6; }
15302 MATH_FLAG=
15303 if test "$libgo_cv_c_fancymath" = yes; then
15304 MATH_FLAG="-mfancy-math-387"
15306 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15309 CFLAGS_hold=$CFLAGS
15310 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15311 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15312 if test "x$ac_cv_type_off64_t" = xyes; then :
15314 cat >>confdefs.h <<_ACEOF
15315 #define HAVE_OFF64_T 1
15316 _ACEOF
15321 CFLAGS=$CFLAGS_hold
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15324 $as_echo_n "checking epoll_event size... " >&6; }
15325 if ${libgo_cv_c_epoll_event_size+:} false; then :
15326 $as_echo_n "(cached) " >&6
15327 else
15328 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15330 else
15331 libgo_cv_c_epoll_event_size=0
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15336 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15337 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15341 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15342 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15346 #include <sys/epoll.h>"; then :
15348 else
15349 libgo_cv_c_epoll_event_fd_offset=0
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15354 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15355 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h. */
15360 #include <sys/stat.h>
15362 _ACEOF
15363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15364 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15365 have_stat_timespec=yes
15366 else
15367 have_stat_timespec=no
15369 rm -f conftest*
15371 if test $have_stat_timespec = yes; then
15372 HAVE_STAT_TIMESPEC_TRUE=
15373 HAVE_STAT_TIMESPEC_FALSE='#'
15374 else
15375 HAVE_STAT_TIMESPEC_TRUE='#'
15376 HAVE_STAT_TIMESPEC_FALSE=
15380 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15382 if test "x$ac_cv_type_struct_exception" = xyes; then :
15383 libgo_has_struct_exception=yes
15384 else
15385 libgo_has_struct_exception=no
15388 if test "$libgo_has_struct_exception" = "yes"; then
15390 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15395 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15396 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 CFLAGS_hold="$CFLAGS"
15400 CFLAGS="$PTHREAD_CFLAGS"
15401 LIBS_hold="$LIBS"
15402 LIBS="$LIBS $PTHREAD_LIBS"
15403 # The cast to long int works around a bug in the HP C Compiler
15404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15406 # This bug is HP SR number 8606223364.
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15408 $as_echo_n "checking size of void *... " >&6; }
15409 if ${ac_cv_sizeof_void_p+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15414 else
15415 if test "$ac_cv_type_void_p" = yes; then
15416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15418 as_fn_error 77 "cannot compute sizeof (void *)
15419 See \`config.log' for more details" "$LINENO" 5; }
15420 else
15421 ac_cv_sizeof_void_p=0
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15427 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15431 cat >>confdefs.h <<_ACEOF
15432 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15433 _ACEOF
15436 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15437 if test "$cross_compiling" = yes; then :
15438 case "$target:$ptr_type_size" in
15439 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15440 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15442 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15443 esac
15445 else
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15449 #include <pthread.h>
15450 #include <stdlib.h>
15451 #include <ucontext.h>
15452 #include <unistd.h>
15454 __thread int tls;
15456 static char stack[10 * 1024 * 1024];
15457 static ucontext_t c;
15459 /* Called via makecontext/setcontext. */
15461 static void
15462 cfn (void)
15464 exit (tls);
15467 /* Called via pthread_create. */
15469 static void *
15470 tfn (void *dummy)
15472 /* The thread should still see this value after calling
15473 setcontext. */
15474 tls = 0;
15476 setcontext (&c);
15478 /* The call to setcontext should not return. */
15479 abort ();
15483 main ()
15485 pthread_t tid;
15487 /* The thread should not see this value. */
15488 tls = 1;
15490 if (getcontext (&c) < 0)
15491 abort ();
15493 c.uc_stack.ss_sp = stack;
15494 #ifdef MAKECONTEXT_STACK_TOP
15495 c.uc_stack.ss_sp += sizeof stack;
15496 #endif
15497 c.uc_stack.ss_flags = 0;
15498 c.uc_stack.ss_size = sizeof stack;
15499 c.uc_link = NULL;
15500 makecontext (&c, cfn, 0);
15502 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15503 abort ();
15505 if (pthread_join (tid, NULL) != 0)
15506 abort ();
15508 /* The thread should have called exit. */
15509 abort ();
15512 _ACEOF
15513 if ac_fn_c_try_run "$LINENO"; then :
15514 libgo_cv_lib_setcontext_clobbers_tls=no
15515 else
15516 libgo_cv_lib_setcontext_clobbers_tls=yes
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15522 CFLAGS="$CFLAGS_hold"
15523 LIBS="$LIBS_hold"
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15527 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15528 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15530 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15535 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15536 if ${libgo_cv_ro_eh_frame+:} false; then :
15537 $as_echo_n "(cached) " >&6
15538 else
15540 libgo_cv_ro_eh_frame=no
15541 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15542 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15543 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15544 libgo_cv_ro_eh_frame=yes
15545 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15546 | grep -v '#write' > /dev/null; then
15547 libgo_cv_ro_eh_frame=yes
15550 rm -f conftest.*
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15554 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15555 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15557 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15559 else
15561 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15566 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15567 if ${libgo_cv_c_unused_arguments+:} false; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 CFLAGS_hold=$CFLAGS
15571 CFLAGS="$CFLAGS -Qunused-arguments"
15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h. */
15574 int i;
15575 _ACEOF
15576 if ac_fn_c_try_compile "$LINENO"; then :
15577 libgo_cv_c_unused_arguments=yes
15578 else
15579 libgo_cv_c_unused_arguments=no
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 CFLAGS=$CFLAGS_hold
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15585 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15588 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15589 if ${libgo_cv_as_comdat_gnu+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15593 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15594 CFLAGS_hold=$CFLAGS
15595 if test "$libgo_cv_c_unused_arguments" = yes; then
15596 CFLAGS="$CFLAGS -Qunused-arguments"
15598 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15599 libgo_cv_as_comdat_gnu=yes
15600 else
15601 libgo_cv_as_comdat_gnu=no
15603 CFLAGS=$CFLAGS_hold
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15607 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15608 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15610 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15615 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15616 if ${libgo_cv_as_x86_pcrel+:} false; then :
15617 $as_echo_n "(cached) " >&6
15618 else
15620 libgo_cv_as_x86_pcrel=yes
15621 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15622 CFLAGS_hold=$CFLAGS
15623 if test "$libgo_cv_c_unused_arguments" = yes; then
15624 CFLAGS="$CFLAGS -Qunused-arguments"
15626 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15627 libgo_cv_as_x86_pcrel=no
15629 CFLAGS=$CFLAGS_hold
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15633 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15634 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15636 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15641 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15642 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
15643 $as_echo_n "(cached) " >&6
15644 else
15646 libgo_cv_as_x86_64_unwind_section_type=yes
15647 echo '.section .eh_frame,"a",@unwind' > conftest.s
15648 CFLAGS_hold=$CFLAGS
15649 if test "$libgo_cv_c_unused_arguments" = yes; then
15650 CFLAGS="$CFLAGS -Qunused-arguments"
15652 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15653 libgo_cv_as_x86_64_unwind_section_type=no
15655 CFLAGS=$CFLAGS_hold
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15659 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15660 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15662 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15667 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15668 if ${libgo_cv_as_x86_aes+:} false; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15672 libgo_cv_as_x86_aes=yes
15673 echo 'aesenc %xmm0, %xmm1' > conftest.s
15674 CFLAGS_hold=$CFLAGS
15675 if test "$libgo_cv_c_unused_arguments" = yes; then
15676 CFLAGS="$CFLAGS -Qunused-arguments"
15678 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15679 libgo_cv_as_x86_aes=no
15681 CFLAGS=$CFLAGS_hold
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15685 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15686 if test "x$libgo_cv_as_x86_aes" = xyes; then
15688 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15692 cat >confcache <<\_ACEOF
15693 # This file is a shell script that caches the results of configure
15694 # tests run on this system so they can be shared between configure
15695 # scripts and configure runs, see configure's option --config-cache.
15696 # It is not useful on other systems. If it contains results you don't
15697 # want to keep, you may remove or edit it.
15699 # config.status only pays attention to the cache file if you give it
15700 # the --recheck option to rerun configure.
15702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15704 # following values.
15706 _ACEOF
15708 # The following way of writing the cache mishandles newlines in values,
15709 # but we know of no workaround that is simple, portable, and efficient.
15710 # So, we kill variables containing newlines.
15711 # Ultrix sh set writes to stderr and can't be redirected directly,
15712 # and sets the high bit in the cache file unless we assign to the vars.
15714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15715 eval ac_val=\$$ac_var
15716 case $ac_val in #(
15717 *${as_nl}*)
15718 case $ac_var in #(
15719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15721 esac
15722 case $ac_var in #(
15723 _ | IFS | as_nl) ;; #(
15724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15725 *) { eval $ac_var=; unset $ac_var;} ;;
15726 esac ;;
15727 esac
15728 done
15730 (set) 2>&1 |
15731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15732 *${as_nl}ac_space=\ *)
15733 # `set' does not quote correctly, so add quotes: double-quote
15734 # substitution turns \\\\ into \\, and sed turns \\ into \.
15735 sed -n \
15736 "s/'/'\\\\''/g;
15737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15738 ;; #(
15740 # `set' quotes correctly as required by POSIX, so do not add quotes.
15741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15743 esac |
15744 sort
15746 sed '
15747 /^ac_cv_env_/b end
15748 t clear
15749 :clear
15750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15751 t end
15752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15753 :end' >>confcache
15754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15755 if test -w "$cache_file"; then
15756 if test "x$cache_file" != "x/dev/null"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15758 $as_echo "$as_me: updating cache $cache_file" >&6;}
15759 if test ! -f "$cache_file" || test -h "$cache_file"; then
15760 cat confcache >"$cache_file"
15761 else
15762 case $cache_file in #(
15763 */* | ?:*)
15764 mv -f confcache "$cache_file"$$ &&
15765 mv -f "$cache_file"$$ "$cache_file" ;; #(
15767 mv -f confcache "$cache_file" ;;
15768 esac
15771 else
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15773 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15776 rm -f confcache
15778 if test ${multilib} = yes; then
15779 multilib_arg="--enable-multilib"
15780 else
15781 multilib_arg=
15784 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15787 ac_config_commands="$ac_config_commands default"
15790 cat >confcache <<\_ACEOF
15791 # This file is a shell script that caches the results of configure
15792 # tests run on this system so they can be shared between configure
15793 # scripts and configure runs, see configure's option --config-cache.
15794 # It is not useful on other systems. If it contains results you don't
15795 # want to keep, you may remove or edit it.
15797 # config.status only pays attention to the cache file if you give it
15798 # the --recheck option to rerun configure.
15800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15802 # following values.
15804 _ACEOF
15806 # The following way of writing the cache mishandles newlines in values,
15807 # but we know of no workaround that is simple, portable, and efficient.
15808 # So, we kill variables containing newlines.
15809 # Ultrix sh set writes to stderr and can't be redirected directly,
15810 # and sets the high bit in the cache file unless we assign to the vars.
15812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15813 eval ac_val=\$$ac_var
15814 case $ac_val in #(
15815 *${as_nl}*)
15816 case $ac_var in #(
15817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15819 esac
15820 case $ac_var in #(
15821 _ | IFS | as_nl) ;; #(
15822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15823 *) { eval $ac_var=; unset $ac_var;} ;;
15824 esac ;;
15825 esac
15826 done
15828 (set) 2>&1 |
15829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15830 *${as_nl}ac_space=\ *)
15831 # `set' does not quote correctly, so add quotes: double-quote
15832 # substitution turns \\\\ into \\, and sed turns \\ into \.
15833 sed -n \
15834 "s/'/'\\\\''/g;
15835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15836 ;; #(
15838 # `set' quotes correctly as required by POSIX, so do not add quotes.
15839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15841 esac |
15842 sort
15844 sed '
15845 /^ac_cv_env_/b end
15846 t clear
15847 :clear
15848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15849 t end
15850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15851 :end' >>confcache
15852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15853 if test -w "$cache_file"; then
15854 if test "x$cache_file" != "x/dev/null"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15856 $as_echo "$as_me: updating cache $cache_file" >&6;}
15857 if test ! -f "$cache_file" || test -h "$cache_file"; then
15858 cat confcache >"$cache_file"
15859 else
15860 case $cache_file in #(
15861 */* | ?:*)
15862 mv -f confcache "$cache_file"$$ &&
15863 mv -f "$cache_file"$$ "$cache_file" ;; #(
15865 mv -f confcache "$cache_file" ;;
15866 esac
15869 else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15874 rm -f confcache
15876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15877 # Let make expand exec_prefix.
15878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15880 DEFS=-DHAVE_CONFIG_H
15882 ac_libobjs=
15883 ac_ltlibobjs=
15885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15886 # 1. Remove the extension, and $U if already installed.
15887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15890 # will be set to the directory where LIBOBJS objects are built.
15891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15893 done
15894 LIBOBJS=$ac_libobjs
15896 LTLIBOBJS=$ac_ltlibobjs
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15900 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15901 if test -n "$am_sleep_pid"; then
15902 # Hide warnings about reused PIDs.
15903 wait $am_sleep_pid 2>/dev/null
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15906 $as_echo "done" >&6; }
15907 if test -n "$EXEEXT"; then
15908 am__EXEEXT_TRUE=
15909 am__EXEEXT_FALSE='#'
15910 else
15911 am__EXEEXT_TRUE='#'
15912 am__EXEEXT_FALSE=
15915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15916 as_fn_error $? "conditional \"AMDEP\" was never defined.
15917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15920 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15923 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15924 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15927 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15928 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
15929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15931 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15932 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
15933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15935 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15936 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15939 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15940 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
15941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15943 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15944 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
15945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15947 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15948 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
15949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15951 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15952 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15955 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15956 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15959 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15960 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
15961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15963 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15964 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15967 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
15968 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
15969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15971 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15972 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
15973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15975 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15976 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
15977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15979 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15980 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
15981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15984 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15985 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15988 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15989 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15992 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15993 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15996 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15997 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001 : "${CONFIG_STATUS=./config.status}"
16002 ac_write_fail=0
16003 ac_clean_files_save=$ac_clean_files
16004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16006 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16007 as_write_fail=0
16008 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16009 #! $SHELL
16010 # Generated by $as_me.
16011 # Run this file to recreate the current configuration.
16012 # Compiler output produced by configure, useful for debugging
16013 # configure, is in config.log if it exists.
16015 debug=false
16016 ac_cs_recheck=false
16017 ac_cs_silent=false
16019 SHELL=\${CONFIG_SHELL-$SHELL}
16020 export SHELL
16021 _ASEOF
16022 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16023 ## -------------------- ##
16024 ## M4sh Initialization. ##
16025 ## -------------------- ##
16027 # Be more Bourne compatible
16028 DUALCASE=1; export DUALCASE # for MKS sh
16029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16030 emulate sh
16031 NULLCMD=:
16032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16033 # is contrary to our usage. Disable this feature.
16034 alias -g '${1+"$@"}'='"$@"'
16035 setopt NO_GLOB_SUBST
16036 else
16037 case `(set -o) 2>/dev/null` in #(
16038 *posix*) :
16039 set -o posix ;; #(
16040 *) :
16042 esac
16046 as_nl='
16048 export as_nl
16049 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16050 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16053 # Prefer a ksh shell builtin over an external printf program on Solaris,
16054 # but without wasting forks for bash or zsh.
16055 if test -z "$BASH_VERSION$ZSH_VERSION" \
16056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16057 as_echo='print -r --'
16058 as_echo_n='print -rn --'
16059 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16060 as_echo='printf %s\n'
16061 as_echo_n='printf %s'
16062 else
16063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16065 as_echo_n='/usr/ucb/echo -n'
16066 else
16067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16068 as_echo_n_body='eval
16069 arg=$1;
16070 case $arg in #(
16071 *"$as_nl"*)
16072 expr "X$arg" : "X\\(.*\\)$as_nl";
16073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16074 esac;
16075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16077 export as_echo_n_body
16078 as_echo_n='sh -c $as_echo_n_body as_echo'
16080 export as_echo_body
16081 as_echo='sh -c $as_echo_body as_echo'
16084 # The user is always right.
16085 if test "${PATH_SEPARATOR+set}" != set; then
16086 PATH_SEPARATOR=:
16087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16089 PATH_SEPARATOR=';'
16094 # IFS
16095 # We need space, tab and new line, in precisely that order. Quoting is
16096 # there to prevent editors from complaining about space-tab.
16097 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16098 # splitting by setting IFS to empty value.)
16099 IFS=" "" $as_nl"
16101 # Find who we are. Look in the path if we contain no directory separator.
16102 as_myself=
16103 case $0 in #((
16104 *[\\/]* ) as_myself=$0 ;;
16105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16111 done
16112 IFS=$as_save_IFS
16115 esac
16116 # We did not find ourselves, most probably we were run as `sh COMMAND'
16117 # in which case we are not to be found in the path.
16118 if test "x$as_myself" = x; then
16119 as_myself=$0
16121 if test ! -f "$as_myself"; then
16122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16123 exit 1
16126 # Unset variables that we do not need and which cause bugs (e.g. in
16127 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16128 # suppresses any "Segmentation fault" message there. '((' could
16129 # trigger a bug in pdksh 5.2.14.
16130 for as_var in BASH_ENV ENV MAIL MAILPATH
16131 do eval test x\${$as_var+set} = xset \
16132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16133 done
16134 PS1='$ '
16135 PS2='> '
16136 PS4='+ '
16138 # NLS nuisances.
16139 LC_ALL=C
16140 export LC_ALL
16141 LANGUAGE=C
16142 export LANGUAGE
16144 # CDPATH.
16145 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16148 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16149 # ----------------------------------------
16150 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16151 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16152 # script with STATUS, using 1 if that was 0.
16153 as_fn_error ()
16155 as_status=$1; test $as_status -eq 0 && as_status=1
16156 if test "$4"; then
16157 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16160 $as_echo "$as_me: error: $2" >&2
16161 as_fn_exit $as_status
16162 } # as_fn_error
16165 # as_fn_set_status STATUS
16166 # -----------------------
16167 # Set $? to STATUS, without forking.
16168 as_fn_set_status ()
16170 return $1
16171 } # as_fn_set_status
16173 # as_fn_exit STATUS
16174 # -----------------
16175 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16176 as_fn_exit ()
16178 set +e
16179 as_fn_set_status $1
16180 exit $1
16181 } # as_fn_exit
16183 # as_fn_unset VAR
16184 # ---------------
16185 # Portably unset VAR.
16186 as_fn_unset ()
16188 { eval $1=; unset $1;}
16190 as_unset=as_fn_unset
16191 # as_fn_append VAR VALUE
16192 # ----------------------
16193 # Append the text in VALUE to the end of the definition contained in VAR. Take
16194 # advantage of any shell optimizations that allow amortized linear growth over
16195 # repeated appends, instead of the typical quadratic growth present in naive
16196 # implementations.
16197 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16198 eval 'as_fn_append ()
16200 eval $1+=\$2
16202 else
16203 as_fn_append ()
16205 eval $1=\$$1\$2
16207 fi # as_fn_append
16209 # as_fn_arith ARG...
16210 # ------------------
16211 # Perform arithmetic evaluation on the ARGs, and store the result in the
16212 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16213 # must be portable across $(()) and expr.
16214 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16215 eval 'as_fn_arith ()
16217 as_val=$(( $* ))
16219 else
16220 as_fn_arith ()
16222 as_val=`expr "$@" || test $? -eq 1`
16224 fi # as_fn_arith
16227 if expr a : '\(a\)' >/dev/null 2>&1 &&
16228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16229 as_expr=expr
16230 else
16231 as_expr=false
16234 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16235 as_basename=basename
16236 else
16237 as_basename=false
16240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16241 as_dirname=dirname
16242 else
16243 as_dirname=false
16246 as_me=`$as_basename -- "$0" ||
16247 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16248 X"$0" : 'X\(//\)$' \| \
16249 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16250 $as_echo X/"$0" |
16251 sed '/^.*\/\([^/][^/]*\)\/*$/{
16252 s//\1/
16255 /^X\/\(\/\/\)$/{
16256 s//\1/
16259 /^X\/\(\/\).*/{
16260 s//\1/
16263 s/.*/./; q'`
16265 # Avoid depending upon Character Ranges.
16266 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16267 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16268 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16269 as_cr_digits='0123456789'
16270 as_cr_alnum=$as_cr_Letters$as_cr_digits
16272 ECHO_C= ECHO_N= ECHO_T=
16273 case `echo -n x` in #(((((
16274 -n*)
16275 case `echo 'xy\c'` in
16276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16277 xy) ECHO_C='\c';;
16278 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16279 ECHO_T=' ';;
16280 esac;;
16282 ECHO_N='-n';;
16283 esac
16285 rm -f conf$$ conf$$.exe conf$$.file
16286 if test -d conf$$.dir; then
16287 rm -f conf$$.dir/conf$$.file
16288 else
16289 rm -f conf$$.dir
16290 mkdir conf$$.dir 2>/dev/null
16292 if (echo >conf$$.file) 2>/dev/null; then
16293 if ln -s conf$$.file conf$$ 2>/dev/null; then
16294 as_ln_s='ln -s'
16295 # ... but there are two gotchas:
16296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16298 # In both cases, we have to default to `cp -pR'.
16299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16300 as_ln_s='cp -pR'
16301 elif ln conf$$.file conf$$ 2>/dev/null; then
16302 as_ln_s=ln
16303 else
16304 as_ln_s='cp -pR'
16306 else
16307 as_ln_s='cp -pR'
16309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16310 rmdir conf$$.dir 2>/dev/null
16313 # as_fn_mkdir_p
16314 # -------------
16315 # Create "$as_dir" as a directory, including parents if necessary.
16316 as_fn_mkdir_p ()
16319 case $as_dir in #(
16320 -*) as_dir=./$as_dir;;
16321 esac
16322 test -d "$as_dir" || eval $as_mkdir_p || {
16323 as_dirs=
16324 while :; do
16325 case $as_dir in #(
16326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16327 *) as_qdir=$as_dir;;
16328 esac
16329 as_dirs="'$as_qdir' $as_dirs"
16330 as_dir=`$as_dirname -- "$as_dir" ||
16331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16332 X"$as_dir" : 'X\(//\)[^/]' \| \
16333 X"$as_dir" : 'X\(//\)$' \| \
16334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16335 $as_echo X"$as_dir" |
16336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16337 s//\1/
16340 /^X\(\/\/\)[^/].*/{
16341 s//\1/
16344 /^X\(\/\/\)$/{
16345 s//\1/
16348 /^X\(\/\).*/{
16349 s//\1/
16352 s/.*/./; q'`
16353 test -d "$as_dir" && break
16354 done
16355 test -z "$as_dirs" || eval "mkdir $as_dirs"
16356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16359 } # as_fn_mkdir_p
16360 if mkdir -p . 2>/dev/null; then
16361 as_mkdir_p='mkdir -p "$as_dir"'
16362 else
16363 test -d ./-p && rmdir ./-p
16364 as_mkdir_p=false
16368 # as_fn_executable_p FILE
16369 # -----------------------
16370 # Test if FILE is an executable regular file.
16371 as_fn_executable_p ()
16373 test -f "$1" && test -x "$1"
16374 } # as_fn_executable_p
16375 as_test_x='test -x'
16376 as_executable_p=as_fn_executable_p
16378 # Sed expression to map a string onto a valid CPP name.
16379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16381 # Sed expression to map a string onto a valid variable name.
16382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16385 exec 6>&1
16386 ## ----------------------------------- ##
16387 ## Main body of $CONFIG_STATUS script. ##
16388 ## ----------------------------------- ##
16389 _ASEOF
16390 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16393 # Save the log message, to keep $0 and so on meaningful, and to
16394 # report actual input values of CONFIG_FILES etc. instead of their
16395 # values after options handling.
16396 ac_log="
16397 This file was extended by package-unused $as_me version-unused, which was
16398 generated by GNU Autoconf 2.69. Invocation command line was
16400 CONFIG_FILES = $CONFIG_FILES
16401 CONFIG_HEADERS = $CONFIG_HEADERS
16402 CONFIG_LINKS = $CONFIG_LINKS
16403 CONFIG_COMMANDS = $CONFIG_COMMANDS
16404 $ $0 $@
16406 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16409 _ACEOF
16411 case $ac_config_files in *"
16412 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16413 esac
16415 case $ac_config_headers in *"
16416 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16417 esac
16420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421 # Files that config.status was made for.
16422 config_files="$ac_config_files"
16423 config_headers="$ac_config_headers"
16424 config_commands="$ac_config_commands"
16426 _ACEOF
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 ac_cs_usage="\
16430 \`$as_me' instantiates files and other configuration actions
16431 from templates according to the current configuration. Unless the files
16432 and actions are specified as TAGs, all are instantiated by default.
16434 Usage: $0 [OPTION]... [TAG]...
16436 -h, --help print this help, then exit
16437 -V, --version print version number and configuration settings, then exit
16438 --config print configuration, then exit
16439 -q, --quiet, --silent
16440 do not print progress messages
16441 -d, --debug don't remove temporary files
16442 --recheck update $as_me by reconfiguring in the same conditions
16443 --file=FILE[:TEMPLATE]
16444 instantiate the configuration file FILE
16445 --header=FILE[:TEMPLATE]
16446 instantiate the configuration header FILE
16448 Configuration files:
16449 $config_files
16451 Configuration headers:
16452 $config_headers
16454 Configuration commands:
16455 $config_commands
16457 Report bugs to the package provider."
16459 _ACEOF
16460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16461 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16462 ac_cs_version="\\
16463 package-unused config.status version-unused
16464 configured by $0, generated by GNU Autoconf 2.69,
16465 with options \\"\$ac_cs_config\\"
16467 Copyright (C) 2012 Free Software Foundation, Inc.
16468 This config.status script is free software; the Free Software Foundation
16469 gives unlimited permission to copy, distribute and modify it."
16471 ac_pwd='$ac_pwd'
16472 srcdir='$srcdir'
16473 INSTALL='$INSTALL'
16474 MKDIR_P='$MKDIR_P'
16475 AWK='$AWK'
16476 test -n "\$AWK" || AWK=awk
16477 _ACEOF
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480 # The default lists apply if the user does not specify any file.
16481 ac_need_defaults=:
16482 while test $# != 0
16484 case $1 in
16485 --*=?*)
16486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16488 ac_shift=:
16490 --*=)
16491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16492 ac_optarg=
16493 ac_shift=:
16496 ac_option=$1
16497 ac_optarg=$2
16498 ac_shift=shift
16500 esac
16502 case $ac_option in
16503 # Handling of the options.
16504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16505 ac_cs_recheck=: ;;
16506 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16507 $as_echo "$ac_cs_version"; exit ;;
16508 --config | --confi | --conf | --con | --co | --c )
16509 $as_echo "$ac_cs_config"; exit ;;
16510 --debug | --debu | --deb | --de | --d | -d )
16511 debug=: ;;
16512 --file | --fil | --fi | --f )
16513 $ac_shift
16514 case $ac_optarg in
16515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16516 '') as_fn_error $? "missing file argument" ;;
16517 esac
16518 as_fn_append CONFIG_FILES " '$ac_optarg'"
16519 ac_need_defaults=false;;
16520 --header | --heade | --head | --hea )
16521 $ac_shift
16522 case $ac_optarg in
16523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16524 esac
16525 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16526 ac_need_defaults=false;;
16527 --he | --h)
16528 # Conflict between --help and --header
16529 as_fn_error $? "ambiguous option: \`$1'
16530 Try \`$0 --help' for more information.";;
16531 --help | --hel | -h )
16532 $as_echo "$ac_cs_usage"; exit ;;
16533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16535 ac_cs_silent=: ;;
16537 # This is an error.
16538 -*) as_fn_error $? "unrecognized option: \`$1'
16539 Try \`$0 --help' for more information." ;;
16541 *) as_fn_append ac_config_targets " $1"
16542 ac_need_defaults=false ;;
16544 esac
16545 shift
16546 done
16548 ac_configure_extra_args=
16550 if $ac_cs_silent; then
16551 exec 6>/dev/null
16552 ac_configure_extra_args="$ac_configure_extra_args --silent"
16555 _ACEOF
16556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16557 if \$ac_cs_recheck; then
16558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16559 shift
16560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16561 CONFIG_SHELL='$SHELL'
16562 export CONFIG_SHELL
16563 exec "\$@"
16566 _ACEOF
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568 exec 5>>config.log
16570 echo
16571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16572 ## Running $as_me. ##
16573 _ASBOX
16574 $as_echo "$ac_log"
16575 } >&5
16577 _ACEOF
16578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16580 # INIT-COMMANDS
16583 srcdir="$srcdir"
16584 host="$host"
16585 target="$target"
16586 with_multisubdir="$with_multisubdir"
16587 with_multisrctop="$with_multisrctop"
16588 with_target_subdir="$with_target_subdir"
16589 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16590 multi_basedir="$multi_basedir"
16591 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16592 CC="$CC"
16593 CXX="$CXX"
16594 GFORTRAN="$GFORTRAN"
16595 GDC="$GDC"
16596 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16599 # The HP-UX ksh and POSIX shell print the target directory to stdout
16600 # if CDPATH is set.
16601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16603 sed_quote_subst='$sed_quote_subst'
16604 double_quote_subst='$double_quote_subst'
16605 delay_variable_subst='$delay_variable_subst'
16606 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16607 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16608 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16609 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16610 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16611 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16612 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16613 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16614 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16615 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16616 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16617 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16618 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16619 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16620 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16621 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16622 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16623 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16624 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16625 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16626 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16627 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16628 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16629 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16630 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16631 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16632 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16633 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16639 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16640 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16641 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16642 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16643 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16644 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16645 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16646 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16647 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16648 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16649 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16650 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16651 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16652 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16653 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16654 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"`'
16655 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16656 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16657 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16658 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16659 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16660 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16661 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16662 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16663 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16664 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16665 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16666 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16667 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16668 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16669 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16670 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16671 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16672 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16673 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16674 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16675 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16676 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16677 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16678 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16679 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16680 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16681 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16682 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16683 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16684 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16685 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16686 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16687 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16688 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16689 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16690 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16691 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16692 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16693 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16694 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16695 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16696 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16697 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16698 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16699 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16700 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16701 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16702 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16703 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16704 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16705 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16706 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16707 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16708 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16709 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16710 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16711 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16712 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16713 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16714 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16715 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16716 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16717 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16718 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16719 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16720 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16721 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16722 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16723 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16724 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16725 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16726 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16727 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16728 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16729 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16730 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16731 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16732 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16733 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16734 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16735 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16736 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16737 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16738 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16739 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16740 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16741 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16742 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16743 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16744 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16745 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16746 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16747 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16748 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16749 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16750 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16751 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16752 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16753 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16754 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16755 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16756 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16757 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16758 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16759 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16760 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16761 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16762 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16763 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16764 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16765 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16766 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16767 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16768 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16770 LTCC='$LTCC'
16771 LTCFLAGS='$LTCFLAGS'
16772 compiler='$compiler_DEFAULT'
16774 # A function that is used when there is no print builtin or printf.
16775 func_fallback_echo ()
16777 eval 'cat <<_LTECHO_EOF
16779 _LTECHO_EOF'
16782 # Quote evaled strings.
16783 for var in SED \
16784 GREP \
16785 EGREP \
16786 FGREP \
16787 SHELL \
16788 ECHO \
16789 LD \
16790 NM \
16791 LN_S \
16792 lt_SP2NL \
16793 lt_NL2SP \
16794 reload_flag \
16795 OBJDUMP \
16796 deplibs_check_method \
16797 file_magic_cmd \
16798 AR \
16799 AR_FLAGS \
16800 STRIP \
16801 RANLIB \
16802 CC \
16803 CFLAGS \
16804 compiler \
16805 lt_cv_sys_global_symbol_pipe \
16806 lt_cv_sys_global_symbol_to_cdecl \
16807 lt_cv_sys_global_symbol_to_c_name_address \
16808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16809 lt_prog_compiler_no_builtin_flag \
16810 lt_prog_compiler_wl \
16811 lt_prog_compiler_pic \
16812 lt_prog_compiler_static \
16813 lt_cv_prog_compiler_c_o \
16814 need_locks \
16815 DSYMUTIL \
16816 NMEDIT \
16817 LIPO \
16818 OTOOL \
16819 OTOOL64 \
16820 shrext_cmds \
16821 export_dynamic_flag_spec \
16822 whole_archive_flag_spec \
16823 compiler_needs_object \
16824 with_gnu_ld \
16825 allow_undefined_flag \
16826 no_undefined_flag \
16827 hardcode_libdir_flag_spec \
16828 hardcode_libdir_flag_spec_ld \
16829 hardcode_libdir_separator \
16830 fix_srcfile_path \
16831 exclude_expsyms \
16832 include_expsyms \
16833 file_list_spec \
16834 variables_saved_for_relink \
16835 libname_spec \
16836 library_names_spec \
16837 soname_spec \
16838 install_override_mode \
16839 finish_eval \
16840 old_striplib \
16841 striplib \
16842 LD_GO \
16843 reload_flag_GO \
16844 compiler_GO \
16845 lt_prog_compiler_no_builtin_flag_GO \
16846 lt_prog_compiler_wl_GO \
16847 lt_prog_compiler_pic_GO \
16848 lt_prog_compiler_static_GO \
16849 lt_cv_prog_compiler_c_o_GO \
16850 export_dynamic_flag_spec_GO \
16851 whole_archive_flag_spec_GO \
16852 compiler_needs_object_GO \
16853 with_gnu_ld_GO \
16854 allow_undefined_flag_GO \
16855 no_undefined_flag_GO \
16856 hardcode_libdir_flag_spec_GO \
16857 hardcode_libdir_flag_spec_ld_GO \
16858 hardcode_libdir_separator_GO \
16859 fix_srcfile_path_GO \
16860 exclude_expsyms_GO \
16861 include_expsyms_GO \
16862 file_list_spec_GO; do
16863 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16864 *[\\\\\\\`\\"\\\$]*)
16865 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16868 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16870 esac
16871 done
16873 # Double-quote double-evaled strings.
16874 for var in reload_cmds \
16875 old_postinstall_cmds \
16876 old_postuninstall_cmds \
16877 old_archive_cmds \
16878 extract_expsyms_cmds \
16879 old_archive_from_new_cmds \
16880 old_archive_from_expsyms_cmds \
16881 archive_cmds \
16882 archive_expsym_cmds \
16883 module_cmds \
16884 module_expsym_cmds \
16885 export_symbols_cmds \
16886 prelink_cmds \
16887 postinstall_cmds \
16888 postuninstall_cmds \
16889 finish_cmds \
16890 sys_lib_search_path_spec \
16891 sys_lib_dlsearch_path_spec \
16892 reload_cmds_GO \
16893 old_archive_cmds_GO \
16894 old_archive_from_new_cmds_GO \
16895 old_archive_from_expsyms_cmds_GO \
16896 archive_cmds_GO \
16897 archive_expsym_cmds_GO \
16898 module_cmds_GO \
16899 module_expsym_cmds_GO \
16900 export_symbols_cmds_GO \
16901 prelink_cmds_GO; do
16902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16903 *[\\\\\\\`\\"\\\$]*)
16904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16909 esac
16910 done
16912 ac_aux_dir='$ac_aux_dir'
16913 xsi_shell='$xsi_shell'
16914 lt_shell_append='$lt_shell_append'
16916 # See if we are running on zsh, and set the options which allow our
16917 # commands through without removal of \ escapes INIT.
16918 if test -n "\${ZSH_VERSION+set}" ; then
16919 setopt NO_GLOB_SUBST
16923 PACKAGE='$PACKAGE'
16924 VERSION='$VERSION'
16925 TIMESTAMP='$TIMESTAMP'
16926 RM='$RM'
16927 ofile='$ofile'
16934 # Variables needed in config.status (file generation) which aren't already
16935 # passed by autoconf.
16936 SUBDIRS="$SUBDIRS"
16939 _ACEOF
16941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943 # Handling of arguments.
16944 for ac_config_target in $ac_config_targets
16946 case $ac_config_target in
16947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16948 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16949 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16950 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16952 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16953 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16956 esac
16957 done
16960 # If the user did not use the arguments to specify the items to instantiate,
16961 # then the envvar interface is used. Set only those that are not.
16962 # We use the long form for the default assignment because of an extremely
16963 # bizarre bug on SunOS 4.1.3.
16964 if $ac_need_defaults; then
16965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16970 # Have a temporary directory for convenience. Make it in the build tree
16971 # simply because there is no reason against having it here, and in addition,
16972 # creating and moving files from /tmp can sometimes cause problems.
16973 # Hook for its removal unless debugging.
16974 # Note that there is a small window in which the directory will not be cleaned:
16975 # after its creation but before its name has been assigned to `$tmp'.
16976 $debug ||
16978 tmp= ac_tmp=
16979 trap 'exit_status=$?
16980 : "${ac_tmp:=$tmp}"
16981 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16983 trap 'as_fn_exit 1' 1 2 13 15
16985 # Create a (secure) tmp directory for tmp files.
16988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16989 test -d "$tmp"
16990 } ||
16992 tmp=./conf$$-$RANDOM
16993 (umask 077 && mkdir "$tmp")
16994 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16995 ac_tmp=$tmp
16997 # Set up the scripts for CONFIG_FILES section.
16998 # No need to generate them if there are no CONFIG_FILES.
16999 # This happens for instance with `./config.status config.h'.
17000 if test -n "$CONFIG_FILES"; then
17003 ac_cr=`echo X | tr X '\015'`
17004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17005 # But we know of no other shell where ac_cr would be empty at this
17006 # point, so we can use a bashism as a fallback.
17007 if test "x$ac_cr" = x; then
17008 eval ac_cr=\$\'\\r\'
17010 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17012 ac_cs_awk_cr='\\r'
17013 else
17014 ac_cs_awk_cr=$ac_cr
17017 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17018 _ACEOF
17022 echo "cat >conf$$subs.awk <<_ACEOF" &&
17023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17024 echo "_ACEOF"
17025 } >conf$$subs.sh ||
17026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17028 ac_delim='%!_!# '
17029 for ac_last_try in false false false false false :; do
17030 . ./conf$$subs.sh ||
17031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17034 if test $ac_delim_n = $ac_delim_num; then
17035 break
17036 elif $ac_last_try; then
17037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17038 else
17039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17041 done
17042 rm -f conf$$subs.sh
17044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17046 _ACEOF
17047 sed -n '
17049 s/^/S["/; s/!.*/"]=/
17052 s/^[^!]*!//
17053 :repl
17054 t repl
17055 s/'"$ac_delim"'$//
17056 t delim
17059 s/\(.\{148\}\)..*/\1/
17060 t more1
17061 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17064 b repl
17065 :more1
17066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17069 s/.\{148\}//
17070 t nl
17071 :delim
17073 s/\(.\{148\}\)..*/\1/
17074 t more2
17075 s/["\\]/\\&/g; s/^/"/; s/$/"/
17078 :more2
17079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17082 s/.\{148\}//
17083 t delim
17084 ' <conf$$subs.awk | sed '
17085 /^[^""]/{
17087 s/\n//
17089 ' >>$CONFIG_STATUS || ac_write_fail=1
17090 rm -f conf$$subs.awk
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 _ACAWK
17093 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17094 for (key in S) S_is_set[key] = 1
17095 FS = "\a"
17099 line = $ 0
17100 nfields = split(line, field, "@")
17101 substed = 0
17102 len = length(field[1])
17103 for (i = 2; i < nfields; i++) {
17104 key = field[i]
17105 keylen = length(key)
17106 if (S_is_set[key]) {
17107 value = S[key]
17108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17109 len += length(value) + length(field[++i])
17110 substed = 1
17111 } else
17112 len += 1 + keylen
17115 print line
17118 _ACAWK
17119 _ACEOF
17120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17122 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17123 else
17125 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17126 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17127 _ACEOF
17129 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17130 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17131 # trailing colons and then remove the whole line if VPATH becomes empty
17132 # (actually we leave an empty line to preserve line numbers).
17133 if test "x$srcdir" = x.; then
17134 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17136 s///
17137 s/^/:/
17138 s/[ ]*$/:/
17139 s/:\$(srcdir):/:/g
17140 s/:\${srcdir}:/:/g
17141 s/:@srcdir@:/:/g
17142 s/^:*//
17143 s/:*$//
17145 s/\(=[ ]*\).*/\1/
17147 s/\n//
17148 s/^[^=]*=[ ]*$//
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 fi # test -n "$CONFIG_FILES"
17155 # Set up the scripts for CONFIG_HEADERS section.
17156 # No need to generate them if there are no CONFIG_HEADERS.
17157 # This happens for instance with `./config.status Makefile'.
17158 if test -n "$CONFIG_HEADERS"; then
17159 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17160 BEGIN {
17161 _ACEOF
17163 # Transform confdefs.h into an awk script `defines.awk', embedded as
17164 # here-document in config.status, that substitutes the proper values into
17165 # config.h.in to produce config.h.
17167 # Create a delimiter string that does not exist in confdefs.h, to ease
17168 # handling of long lines.
17169 ac_delim='%!_!# '
17170 for ac_last_try in false false :; do
17171 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17172 if test -z "$ac_tt"; then
17173 break
17174 elif $ac_last_try; then
17175 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17176 else
17177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17179 done
17181 # For the awk script, D is an array of macro values keyed by name,
17182 # likewise P contains macro parameters if any. Preserve backslash
17183 # newline sequences.
17185 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17186 sed -n '
17187 s/.\{148\}/&'"$ac_delim"'/g
17188 t rset
17189 :rset
17190 s/^[ ]*#[ ]*define[ ][ ]*/ /
17191 t def
17193 :def
17194 s/\\$//
17195 t bsnl
17196 s/["\\]/\\&/g
17197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17198 D["\1"]=" \3"/p
17199 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17201 :bsnl
17202 s/["\\]/\\&/g
17203 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17204 D["\1"]=" \3\\\\\\n"\\/p
17205 t cont
17206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17207 t cont
17209 :cont
17211 s/.\{148\}/&'"$ac_delim"'/g
17212 t clear
17213 :clear
17214 s/\\$//
17215 t bsnlc
17216 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17218 :bsnlc
17219 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17220 b cont
17221 ' <confdefs.h | sed '
17222 s/'"$ac_delim"'/"\\\
17223 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17226 for (key in D) D_is_set[key] = 1
17227 FS = "\a"
17229 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17230 line = \$ 0
17231 split(line, arg, " ")
17232 if (arg[1] == "#") {
17233 defundef = arg[2]
17234 mac1 = arg[3]
17235 } else {
17236 defundef = substr(arg[1], 2)
17237 mac1 = arg[2]
17239 split(mac1, mac2, "(") #)
17240 macro = mac2[1]
17241 prefix = substr(line, 1, index(line, defundef) - 1)
17242 if (D_is_set[macro]) {
17243 # Preserve the white space surrounding the "#".
17244 print prefix "define", macro P[macro] D[macro]
17245 next
17246 } else {
17247 # Replace #undef with comments. This is necessary, for example,
17248 # in the case of _POSIX_SOURCE, which is predefined and required
17249 # on some systems where configure will not decide to define it.
17250 if (defundef == "undef") {
17251 print "/*", prefix defundef, macro, "*/"
17252 next
17256 { print }
17257 _ACAWK
17258 _ACEOF
17259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17260 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17261 fi # test -n "$CONFIG_HEADERS"
17264 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17265 shift
17266 for ac_tag
17268 case $ac_tag in
17269 :[FHLC]) ac_mode=$ac_tag; continue;;
17270 esac
17271 case $ac_mode$ac_tag in
17272 :[FHL]*:*);;
17273 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17274 :[FH]-) ac_tag=-:-;;
17275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17276 esac
17277 ac_save_IFS=$IFS
17278 IFS=:
17279 set x $ac_tag
17280 IFS=$ac_save_IFS
17281 shift
17282 ac_file=$1
17283 shift
17285 case $ac_mode in
17286 :L) ac_source=$1;;
17287 :[FH])
17288 ac_file_inputs=
17289 for ac_f
17291 case $ac_f in
17292 -) ac_f="$ac_tmp/stdin";;
17293 *) # Look for the file first in the build tree, then in the source tree
17294 # (if the path is not absolute). The absolute path cannot be DOS-style,
17295 # because $ac_f cannot contain `:'.
17296 test -f "$ac_f" ||
17297 case $ac_f in
17298 [\\/$]*) false;;
17299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17300 esac ||
17301 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17302 esac
17303 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17304 as_fn_append ac_file_inputs " '$ac_f'"
17305 done
17307 # Let's still pretend it is `configure' which instantiates (i.e., don't
17308 # use $as_me), people would be surprised to read:
17309 # /* config.h. Generated by config.status. */
17310 configure_input='Generated from '`
17311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17312 `' by configure.'
17313 if test x"$ac_file" != x-; then
17314 configure_input="$ac_file. $configure_input"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17316 $as_echo "$as_me: creating $ac_file" >&6;}
17318 # Neutralize special characters interpreted by sed in replacement strings.
17319 case $configure_input in #(
17320 *\&* | *\|* | *\\* )
17321 ac_sed_conf_input=`$as_echo "$configure_input" |
17322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17323 *) ac_sed_conf_input=$configure_input;;
17324 esac
17326 case $ac_tag in
17327 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17329 esac
17331 esac
17333 ac_dir=`$as_dirname -- "$ac_file" ||
17334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17335 X"$ac_file" : 'X\(//\)[^/]' \| \
17336 X"$ac_file" : 'X\(//\)$' \| \
17337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17338 $as_echo X"$ac_file" |
17339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17340 s//\1/
17343 /^X\(\/\/\)[^/].*/{
17344 s//\1/
17347 /^X\(\/\/\)$/{
17348 s//\1/
17351 /^X\(\/\).*/{
17352 s//\1/
17355 s/.*/./; q'`
17356 as_dir="$ac_dir"; as_fn_mkdir_p
17357 ac_builddir=.
17359 case "$ac_dir" in
17360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17363 # A ".." for each directory in $ac_dir_suffix.
17364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17365 case $ac_top_builddir_sub in
17366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17368 esac ;;
17369 esac
17370 ac_abs_top_builddir=$ac_pwd
17371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17372 # for backward compatibility:
17373 ac_top_builddir=$ac_top_build_prefix
17375 case $srcdir in
17376 .) # We are building in place.
17377 ac_srcdir=.
17378 ac_top_srcdir=$ac_top_builddir_sub
17379 ac_abs_top_srcdir=$ac_pwd ;;
17380 [\\/]* | ?:[\\/]* ) # Absolute name.
17381 ac_srcdir=$srcdir$ac_dir_suffix;
17382 ac_top_srcdir=$srcdir
17383 ac_abs_top_srcdir=$srcdir ;;
17384 *) # Relative name.
17385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17386 ac_top_srcdir=$ac_top_build_prefix$srcdir
17387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17388 esac
17389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17392 case $ac_mode in
17395 # CONFIG_FILE
17398 case $INSTALL in
17399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17401 esac
17402 ac_MKDIR_P=$MKDIR_P
17403 case $MKDIR_P in
17404 [\\/$]* | ?:[\\/]* ) ;;
17405 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17406 esac
17407 _ACEOF
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410 # If the template does not know about datarootdir, expand it.
17411 # FIXME: This hack should be removed a few years after 2.60.
17412 ac_datarootdir_hack=; ac_datarootdir_seen=
17413 ac_sed_dataroot='
17414 /datarootdir/ {
17418 /@datadir@/p
17419 /@docdir@/p
17420 /@infodir@/p
17421 /@localedir@/p
17422 /@mandir@/p'
17423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17424 *datarootdir*) ac_datarootdir_seen=yes;;
17425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17428 _ACEOF
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 ac_datarootdir_hack='
17431 s&@datadir@&$datadir&g
17432 s&@docdir@&$docdir&g
17433 s&@infodir@&$infodir&g
17434 s&@localedir@&$localedir&g
17435 s&@mandir@&$mandir&g
17436 s&\\\${datarootdir}&$datarootdir&g' ;;
17437 esac
17438 _ACEOF
17440 # Neutralize VPATH when `$srcdir' = `.'.
17441 # Shell code in configure.ac might set extrasub.
17442 # FIXME: do we really want to maintain this feature?
17443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17444 ac_sed_extra="$ac_vpsub
17445 $extrasub
17446 _ACEOF
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17450 s|@configure_input@|$ac_sed_conf_input|;t t
17451 s&@top_builddir@&$ac_top_builddir_sub&;t t
17452 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17453 s&@srcdir@&$ac_srcdir&;t t
17454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17455 s&@top_srcdir@&$ac_top_srcdir&;t t
17456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17457 s&@builddir@&$ac_builddir&;t t
17458 s&@abs_builddir@&$ac_abs_builddir&;t t
17459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17460 s&@INSTALL@&$ac_INSTALL&;t t
17461 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17462 $ac_datarootdir_hack
17464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17465 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17467 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17468 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17469 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17470 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17472 which seems to be undefined. Please make sure it is defined" >&5
17473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17474 which seems to be undefined. Please make sure it is defined" >&2;}
17476 rm -f "$ac_tmp/stdin"
17477 case $ac_file in
17478 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17479 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17480 esac \
17481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17485 # CONFIG_HEADER
17487 if test x"$ac_file" != x-; then
17489 $as_echo "/* $configure_input */" \
17490 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17491 } >"$ac_tmp/config.h" \
17492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17493 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17496 else
17497 rm -f "$ac_file"
17498 mv "$ac_tmp/config.h" "$ac_file" \
17499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17501 else
17502 $as_echo "/* $configure_input */" \
17503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17504 || as_fn_error $? "could not create -" "$LINENO" 5
17506 # Compute "$ac_file"'s index in $config_headers.
17507 _am_arg="$ac_file"
17508 _am_stamp_count=1
17509 for _am_header in $config_headers :; do
17510 case $_am_header in
17511 $_am_arg | $_am_arg:* )
17512 break ;;
17514 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17515 esac
17516 done
17517 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17518 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17519 X"$_am_arg" : 'X\(//\)[^/]' \| \
17520 X"$_am_arg" : 'X\(//\)$' \| \
17521 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17522 $as_echo X"$_am_arg" |
17523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17524 s//\1/
17527 /^X\(\/\/\)[^/].*/{
17528 s//\1/
17531 /^X\(\/\/\)$/{
17532 s//\1/
17535 /^X\(\/\).*/{
17536 s//\1/
17539 s/.*/./; q'`/stamp-h$_am_stamp_count
17542 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17543 $as_echo "$as_me: executing $ac_file commands" >&6;}
17545 esac
17548 case $ac_file$ac_mode in
17549 "default-1":C)
17550 # Only add multilib support code if we just rebuilt the top-level
17551 # Makefile.
17552 case " $CONFIG_FILES " in
17553 *" Makefile "*)
17554 ac_file=Makefile . ${multi_basedir}/config-ml.in
17556 esac ;;
17557 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17558 # Older Autoconf quotes --file arguments for eval, but not when files
17559 # are listed without --file. Let's play safe and only enable the eval
17560 # if we detect the quoting.
17561 case $CONFIG_FILES in
17562 *\'*) eval set x "$CONFIG_FILES" ;;
17563 *) set x $CONFIG_FILES ;;
17564 esac
17565 shift
17566 for mf
17568 # Strip MF so we end up with the name of the file.
17569 mf=`echo "$mf" | sed -e 's/:.*$//'`
17570 # Check whether this is an Automake generated Makefile or not.
17571 # We used to match only the files named 'Makefile.in', but
17572 # some people rename them; so instead we look at the file content.
17573 # Grep'ing the first line is not enough: some people post-process
17574 # each Makefile.in and add a new line on top of each file to say so.
17575 # Grep'ing the whole file is not good either: AIX grep has a line
17576 # limit of 2048, but all sed's we know have understand at least 4000.
17577 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17578 dirpart=`$as_dirname -- "$mf" ||
17579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17580 X"$mf" : 'X\(//\)[^/]' \| \
17581 X"$mf" : 'X\(//\)$' \| \
17582 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17583 $as_echo X"$mf" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17585 s//\1/
17588 /^X\(\/\/\)[^/].*/{
17589 s//\1/
17592 /^X\(\/\/\)$/{
17593 s//\1/
17596 /^X\(\/\).*/{
17597 s//\1/
17600 s/.*/./; q'`
17601 else
17602 continue
17604 # Extract the definition of DEPDIR, am__include, and am__quote
17605 # from the Makefile without running 'make'.
17606 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17607 test -z "$DEPDIR" && continue
17608 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17609 test -z "$am__include" && continue
17610 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17611 # Find all dependency output files, they are included files with
17612 # $(DEPDIR) in their names. We invoke sed twice because it is the
17613 # simplest approach to changing $(DEPDIR) to its actual value in the
17614 # expansion.
17615 for file in `sed -n "
17616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17618 # Make sure the directory exists.
17619 test -f "$dirpart/$file" && continue
17620 fdir=`$as_dirname -- "$file" ||
17621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17622 X"$file" : 'X\(//\)[^/]' \| \
17623 X"$file" : 'X\(//\)$' \| \
17624 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17625 $as_echo X"$file" |
17626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17627 s//\1/
17630 /^X\(\/\/\)[^/].*/{
17631 s//\1/
17634 /^X\(\/\/\)$/{
17635 s//\1/
17638 /^X\(\/\).*/{
17639 s//\1/
17642 s/.*/./; q'`
17643 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17644 # echo "creating $dirpart/$file"
17645 echo '# dummy' > "$dirpart/$file"
17646 done
17647 done
17650 "libtool":C)
17652 # See if we are running on zsh, and set the options which allow our
17653 # commands through without removal of \ escapes.
17654 if test -n "${ZSH_VERSION+set}" ; then
17655 setopt NO_GLOB_SUBST
17658 cfgfile="${ofile}T"
17659 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17660 $RM "$cfgfile"
17662 cat <<_LT_EOF >> "$cfgfile"
17663 #! $SHELL
17665 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17666 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17671 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17672 # Written by Gordon Matzigkeit, 1996
17674 # This file is part of GNU Libtool.
17676 # GNU Libtool is free software; you can redistribute it and/or
17677 # modify it under the terms of the GNU General Public License as
17678 # published by the Free Software Foundation; either version 2 of
17679 # the License, or (at your option) any later version.
17681 # As a special exception to the GNU General Public License,
17682 # if you distribute this file as part of a program or library that
17683 # is built using GNU Libtool, you may include this file under the
17684 # same distribution terms that you use for the rest of that program.
17686 # GNU Libtool is distributed in the hope that it will be useful,
17687 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17689 # GNU General Public License for more details.
17691 # You should have received a copy of the GNU General Public License
17692 # along with GNU Libtool; see the file COPYING. If not, a copy
17693 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17694 # obtained by writing to the Free Software Foundation, Inc.,
17695 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17698 # The names of the tagged configurations supported by this script.
17699 available_tags="GO "
17701 # ### BEGIN LIBTOOL CONFIG
17703 # A sed program that does not truncate output.
17704 SED=$lt_SED
17706 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17707 Xsed="\$SED -e 1s/^X//"
17709 # A grep program that handles long lines.
17710 GREP=$lt_GREP
17712 # An ERE matcher.
17713 EGREP=$lt_EGREP
17715 # A literal string matcher.
17716 FGREP=$lt_FGREP
17718 # Shell to use when invoking shell scripts.
17719 SHELL=$lt_SHELL
17721 # An echo program that protects backslashes.
17722 ECHO=$lt_ECHO
17724 # Which release of libtool.m4 was used?
17725 macro_version=$macro_version
17726 macro_revision=$macro_revision
17728 # Whether or not to build shared libraries.
17729 build_libtool_libs=$enable_shared
17731 # Whether or not to build static libraries.
17732 build_old_libs=$enable_static
17734 # What type of objects to build.
17735 pic_mode=$pic_mode
17737 # Whether or not to optimize for fast installation.
17738 fast_install=$enable_fast_install
17740 # The host system.
17741 host_alias=$host_alias
17742 host=$host
17743 host_os=$host_os
17745 # The build system.
17746 build_alias=$build_alias
17747 build=$build
17748 build_os=$build_os
17750 # A BSD- or MS-compatible name lister.
17751 NM=$lt_NM
17753 # Whether we need soft or hard links.
17754 LN_S=$lt_LN_S
17756 # What is the maximum length of a command?
17757 max_cmd_len=$max_cmd_len
17759 # Object file suffix (normally "o").
17760 objext=$ac_objext
17762 # Executable file suffix (normally "").
17763 exeext=$exeext
17765 # whether the shell understands "unset".
17766 lt_unset=$lt_unset
17768 # turn spaces into newlines.
17769 SP2NL=$lt_lt_SP2NL
17771 # turn newlines into spaces.
17772 NL2SP=$lt_lt_NL2SP
17774 # An object symbol dumper.
17775 OBJDUMP=$lt_OBJDUMP
17777 # Method to check whether dependent libraries are shared objects.
17778 deplibs_check_method=$lt_deplibs_check_method
17780 # Command to use when deplibs_check_method == "file_magic".
17781 file_magic_cmd=$lt_file_magic_cmd
17783 # The archiver.
17784 AR=$lt_AR
17785 AR_FLAGS=$lt_AR_FLAGS
17787 # A symbol stripping program.
17788 STRIP=$lt_STRIP
17790 # Commands used to install an old-style archive.
17791 RANLIB=$lt_RANLIB
17792 old_postinstall_cmds=$lt_old_postinstall_cmds
17793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17795 # Whether to use a lock for old archive extraction.
17796 lock_old_archive_extraction=$lock_old_archive_extraction
17798 # A C compiler.
17799 LTCC=$lt_CC
17801 # LTCC compiler flags.
17802 LTCFLAGS=$lt_CFLAGS
17804 # Take the output of nm and produce a listing of raw symbols and C names.
17805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17807 # Transform the output of nm in a proper C declaration.
17808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17810 # Transform the output of nm in a C name address pair.
17811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17813 # Transform the output of nm in a C name address pair when lib prefix is needed.
17814 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17816 # The name of the directory that contains temporary libtool files.
17817 objdir=$objdir
17819 # Used to examine libraries when file_magic_cmd begins with "file".
17820 MAGIC_CMD=$MAGIC_CMD
17822 # Must we lock files when doing compilation?
17823 need_locks=$lt_need_locks
17825 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17826 DSYMUTIL=$lt_DSYMUTIL
17828 # Tool to change global to local symbols on Mac OS X.
17829 NMEDIT=$lt_NMEDIT
17831 # Tool to manipulate fat objects and archives on Mac OS X.
17832 LIPO=$lt_LIPO
17834 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17835 OTOOL=$lt_OTOOL
17837 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17838 OTOOL64=$lt_OTOOL64
17840 # Old archive suffix (normally "a").
17841 libext=$libext
17843 # Shared library suffix (normally ".so").
17844 shrext_cmds=$lt_shrext_cmds
17846 # The commands to extract the exported symbol list from a shared archive.
17847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17849 # Variables whose values should be saved in libtool wrapper scripts and
17850 # restored at link time.
17851 variables_saved_for_relink=$lt_variables_saved_for_relink
17853 # Do we need the "lib" prefix for modules?
17854 need_lib_prefix=$need_lib_prefix
17856 # Do we need a version for libraries?
17857 need_version=$need_version
17859 # Library versioning type.
17860 version_type=$version_type
17862 # Shared library runtime path variable.
17863 runpath_var=$runpath_var
17865 # Shared library path variable.
17866 shlibpath_var=$shlibpath_var
17868 # Is shlibpath searched before the hard-coded library search path?
17869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17871 # Format of library name prefix.
17872 libname_spec=$lt_libname_spec
17874 # List of archive names. First name is the real one, the rest are links.
17875 # The last name is the one that the linker finds with -lNAME
17876 library_names_spec=$lt_library_names_spec
17878 # The coded name of the library, if different from the real name.
17879 soname_spec=$lt_soname_spec
17881 # Permission mode override for installation of shared libraries.
17882 install_override_mode=$lt_install_override_mode
17884 # Command to use after installation of a shared archive.
17885 postinstall_cmds=$lt_postinstall_cmds
17887 # Command to use after uninstallation of a shared archive.
17888 postuninstall_cmds=$lt_postuninstall_cmds
17890 # Commands used to finish a libtool library installation in a directory.
17891 finish_cmds=$lt_finish_cmds
17893 # As "finish_cmds", except a single script fragment to be evaled but
17894 # not shown.
17895 finish_eval=$lt_finish_eval
17897 # Whether we should hardcode library paths into libraries.
17898 hardcode_into_libs=$hardcode_into_libs
17900 # Compile-time system search path for libraries.
17901 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17903 # Run-time system search path for libraries.
17904 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17906 # Whether dlopen is supported.
17907 dlopen_support=$enable_dlopen
17909 # Whether dlopen of programs is supported.
17910 dlopen_self=$enable_dlopen_self
17912 # Whether dlopen of statically linked programs is supported.
17913 dlopen_self_static=$enable_dlopen_self_static
17915 # Commands to strip libraries.
17916 old_striplib=$lt_old_striplib
17917 striplib=$lt_striplib
17920 # The linker used to build libraries.
17921 LD=$lt_LD
17923 # How to create reloadable object files.
17924 reload_flag=$lt_reload_flag
17925 reload_cmds=$lt_reload_cmds
17927 # Commands used to build an old-style archive.
17928 old_archive_cmds=$lt_old_archive_cmds
17930 # A language specific compiler.
17931 CC=$lt_compiler
17933 # Is the compiler the GNU compiler?
17934 with_gcc=$GCC
17936 # Compiler flag to turn off builtin functions.
17937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17939 # How to pass a linker flag through the compiler.
17940 wl=$lt_lt_prog_compiler_wl
17942 # Additional compiler flags for building library objects.
17943 pic_flag=$lt_lt_prog_compiler_pic
17945 # Compiler flag to prevent dynamic linking.
17946 link_static_flag=$lt_lt_prog_compiler_static
17948 # Does compiler simultaneously support -c and -o options?
17949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17951 # Whether or not to add -lc for building shared libraries.
17952 build_libtool_need_lc=$archive_cmds_need_lc
17954 # Whether or not to disallow shared libs when runtime libs are static.
17955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17957 # Compiler flag to allow reflexive dlopens.
17958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17960 # Compiler flag to generate shared objects directly from archives.
17961 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17963 # Whether the compiler copes with passing no objects directly.
17964 compiler_needs_object=$lt_compiler_needs_object
17966 # Create an old-style archive from a shared archive.
17967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17969 # Create a temporary old-style archive to link instead of a shared archive.
17970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17972 # Commands used to build a shared archive.
17973 archive_cmds=$lt_archive_cmds
17974 archive_expsym_cmds=$lt_archive_expsym_cmds
17976 # Commands used to build a loadable module if different from building
17977 # a shared archive.
17978 module_cmds=$lt_module_cmds
17979 module_expsym_cmds=$lt_module_expsym_cmds
17981 # Whether we are building with GNU ld or not.
17982 with_gnu_ld=$lt_with_gnu_ld
17984 # Flag that allows shared libraries with undefined symbols to be built.
17985 allow_undefined_flag=$lt_allow_undefined_flag
17987 # Flag that enforces no undefined symbols.
17988 no_undefined_flag=$lt_no_undefined_flag
17990 # Flag to hardcode \$libdir into a binary during linking.
17991 # This must work even if \$libdir does not exist
17992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17994 # If ld is used when linking, flag to hardcode \$libdir into a binary
17995 # during linking. This must work even if \$libdir does not exist.
17996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17998 # Whether we need a single "-rpath" flag with a separated argument.
17999 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18001 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18002 # DIR into the resulting binary.
18003 hardcode_direct=$hardcode_direct
18005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18006 # DIR into the resulting binary and the resulting library dependency is
18007 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18008 # library is relocated.
18009 hardcode_direct_absolute=$hardcode_direct_absolute
18011 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18012 # into the resulting binary.
18013 hardcode_minus_L=$hardcode_minus_L
18015 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18016 # into the resulting binary.
18017 hardcode_shlibpath_var=$hardcode_shlibpath_var
18019 # Set to "yes" if building a shared library automatically hardcodes DIR
18020 # into the library and all subsequent libraries and executables linked
18021 # against it.
18022 hardcode_automatic=$hardcode_automatic
18024 # Set to yes if linker adds runtime paths of dependent libraries
18025 # to runtime path list.
18026 inherit_rpath=$inherit_rpath
18028 # Whether libtool must link a program against all its dependency libraries.
18029 link_all_deplibs=$link_all_deplibs
18031 # Fix the shell variable \$srcfile for the compiler.
18032 fix_srcfile_path=$lt_fix_srcfile_path
18034 # Set to "yes" if exported symbols are required.
18035 always_export_symbols=$always_export_symbols
18037 # The commands to list exported symbols.
18038 export_symbols_cmds=$lt_export_symbols_cmds
18040 # Symbols that should not be listed in the preloaded symbols.
18041 exclude_expsyms=$lt_exclude_expsyms
18043 # Symbols that must always be exported.
18044 include_expsyms=$lt_include_expsyms
18046 # Commands necessary for linking programs (against libraries) with templates.
18047 prelink_cmds=$lt_prelink_cmds
18049 # Specify filename containing input files.
18050 file_list_spec=$lt_file_list_spec
18052 # How to hardcode a shared library path into an executable.
18053 hardcode_action=$hardcode_action
18055 # ### END LIBTOOL CONFIG
18057 _LT_EOF
18059 case $host_os in
18060 aix3*)
18061 cat <<\_LT_EOF >> "$cfgfile"
18062 # AIX sometimes has problems with the GCC collect2 program. For some
18063 # reason, if we set the COLLECT_NAMES environment variable, the problems
18064 # vanish in a puff of smoke.
18065 if test "X${COLLECT_NAMES+set}" != Xset; then
18066 COLLECT_NAMES=
18067 export COLLECT_NAMES
18069 _LT_EOF
18071 esac
18074 ltmain="$ac_aux_dir/ltmain.sh"
18077 # We use sed instead of cat because bash on DJGPP gets confused if
18078 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18079 # text mode, it properly converts lines to CR/LF. This bash problem
18080 # is reportedly fixed, but why not run on old versions too?
18081 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18082 || (rm -f "$cfgfile"; exit 1)
18084 case $xsi_shell in
18085 yes)
18086 cat << \_LT_EOF >> "$cfgfile"
18088 # func_dirname file append nondir_replacement
18089 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18090 # otherwise set result to NONDIR_REPLACEMENT.
18091 func_dirname ()
18093 case ${1} in
18094 */*) func_dirname_result="${1%/*}${2}" ;;
18095 * ) func_dirname_result="${3}" ;;
18096 esac
18099 # func_basename file
18100 func_basename ()
18102 func_basename_result="${1##*/}"
18105 # func_dirname_and_basename file append nondir_replacement
18106 # perform func_basename and func_dirname in a single function
18107 # call:
18108 # dirname: Compute the dirname of FILE. If nonempty,
18109 # add APPEND to the result, otherwise set result
18110 # to NONDIR_REPLACEMENT.
18111 # value returned in "$func_dirname_result"
18112 # basename: Compute filename of FILE.
18113 # value retuned in "$func_basename_result"
18114 # Implementation must be kept synchronized with func_dirname
18115 # and func_basename. For efficiency, we do not delegate to
18116 # those functions but instead duplicate the functionality here.
18117 func_dirname_and_basename ()
18119 case ${1} in
18120 */*) func_dirname_result="${1%/*}${2}" ;;
18121 * ) func_dirname_result="${3}" ;;
18122 esac
18123 func_basename_result="${1##*/}"
18126 # func_stripname prefix suffix name
18127 # strip PREFIX and SUFFIX off of NAME.
18128 # PREFIX and SUFFIX must not contain globbing or regex special
18129 # characters, hashes, percent signs, but SUFFIX may contain a leading
18130 # dot (in which case that matches only a dot).
18131 func_stripname ()
18133 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18134 # positional parameters, so assign one to ordinary parameter first.
18135 func_stripname_result=${3}
18136 func_stripname_result=${func_stripname_result#"${1}"}
18137 func_stripname_result=${func_stripname_result%"${2}"}
18140 # func_opt_split
18141 func_opt_split ()
18143 func_opt_split_opt=${1%%=*}
18144 func_opt_split_arg=${1#*=}
18147 # func_lo2o object
18148 func_lo2o ()
18150 case ${1} in
18151 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18152 *) func_lo2o_result=${1} ;;
18153 esac
18156 # func_xform libobj-or-source
18157 func_xform ()
18159 func_xform_result=${1%.*}.lo
18162 # func_arith arithmetic-term...
18163 func_arith ()
18165 func_arith_result=$(( $* ))
18168 # func_len string
18169 # STRING may not start with a hyphen.
18170 func_len ()
18172 func_len_result=${#1}
18175 _LT_EOF
18177 *) # Bourne compatible functions.
18178 cat << \_LT_EOF >> "$cfgfile"
18180 # func_dirname file append nondir_replacement
18181 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18182 # otherwise set result to NONDIR_REPLACEMENT.
18183 func_dirname ()
18185 # Extract subdirectory from the argument.
18186 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18187 if test "X$func_dirname_result" = "X${1}"; then
18188 func_dirname_result="${3}"
18189 else
18190 func_dirname_result="$func_dirname_result${2}"
18194 # func_basename file
18195 func_basename ()
18197 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18201 # func_stripname prefix suffix name
18202 # strip PREFIX and SUFFIX off of NAME.
18203 # PREFIX and SUFFIX must not contain globbing or regex special
18204 # characters, hashes, percent signs, but SUFFIX may contain a leading
18205 # dot (in which case that matches only a dot).
18206 # func_strip_suffix prefix name
18207 func_stripname ()
18209 case ${2} in
18210 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18211 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18212 esac
18215 # sed scripts:
18216 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18217 my_sed_long_arg='1s/^-[^=]*=//'
18219 # func_opt_split
18220 func_opt_split ()
18222 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18223 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18226 # func_lo2o object
18227 func_lo2o ()
18229 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18232 # func_xform libobj-or-source
18233 func_xform ()
18235 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18238 # func_arith arithmetic-term...
18239 func_arith ()
18241 func_arith_result=`expr "$@"`
18244 # func_len string
18245 # STRING may not start with a hyphen.
18246 func_len ()
18248 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18251 _LT_EOF
18252 esac
18254 case $lt_shell_append in
18255 yes)
18256 cat << \_LT_EOF >> "$cfgfile"
18258 # func_append var value
18259 # Append VALUE to the end of shell variable VAR.
18260 func_append ()
18262 eval "$1+=\$2"
18264 _LT_EOF
18267 cat << \_LT_EOF >> "$cfgfile"
18269 # func_append var value
18270 # Append VALUE to the end of shell variable VAR.
18271 func_append ()
18273 eval "$1=\$$1\$2"
18276 _LT_EOF
18278 esac
18281 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18282 || (rm -f "$cfgfile"; exit 1)
18284 mv -f "$cfgfile" "$ofile" ||
18285 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18286 chmod +x "$ofile"
18289 cat <<_LT_EOF >> "$ofile"
18291 # ### BEGIN LIBTOOL TAG CONFIG: GO
18293 # The linker used to build libraries.
18294 LD=$lt_LD_GO
18296 # How to create reloadable object files.
18297 reload_flag=$lt_reload_flag_GO
18298 reload_cmds=$lt_reload_cmds_GO
18300 # Commands used to build an old-style archive.
18301 old_archive_cmds=$lt_old_archive_cmds_GO
18303 # A language specific compiler.
18304 CC=$lt_compiler_GO
18306 # Is the compiler the GNU compiler?
18307 with_gcc=$GCC_GO
18309 # Compiler flag to turn off builtin functions.
18310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18312 # How to pass a linker flag through the compiler.
18313 wl=$lt_lt_prog_compiler_wl_GO
18315 # Additional compiler flags for building library objects.
18316 pic_flag=$lt_lt_prog_compiler_pic_GO
18318 # Compiler flag to prevent dynamic linking.
18319 link_static_flag=$lt_lt_prog_compiler_static_GO
18321 # Does compiler simultaneously support -c and -o options?
18322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18324 # Whether or not to add -lc for building shared libraries.
18325 build_libtool_need_lc=$archive_cmds_need_lc_GO
18327 # Whether or not to disallow shared libs when runtime libs are static.
18328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18330 # Compiler flag to allow reflexive dlopens.
18331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18333 # Compiler flag to generate shared objects directly from archives.
18334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18336 # Whether the compiler copes with passing no objects directly.
18337 compiler_needs_object=$lt_compiler_needs_object_GO
18339 # Create an old-style archive from a shared archive.
18340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18342 # Create a temporary old-style archive to link instead of a shared archive.
18343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18345 # Commands used to build a shared archive.
18346 archive_cmds=$lt_archive_cmds_GO
18347 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18349 # Commands used to build a loadable module if different from building
18350 # a shared archive.
18351 module_cmds=$lt_module_cmds_GO
18352 module_expsym_cmds=$lt_module_expsym_cmds_GO
18354 # Whether we are building with GNU ld or not.
18355 with_gnu_ld=$lt_with_gnu_ld_GO
18357 # Flag that allows shared libraries with undefined symbols to be built.
18358 allow_undefined_flag=$lt_allow_undefined_flag_GO
18360 # Flag that enforces no undefined symbols.
18361 no_undefined_flag=$lt_no_undefined_flag_GO
18363 # Flag to hardcode \$libdir into a binary during linking.
18364 # This must work even if \$libdir does not exist
18365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18367 # If ld is used when linking, flag to hardcode \$libdir into a binary
18368 # during linking. This must work even if \$libdir does not exist.
18369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18371 # Whether we need a single "-rpath" flag with a separated argument.
18372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18374 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18375 # DIR into the resulting binary.
18376 hardcode_direct=$hardcode_direct_GO
18378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18379 # DIR into the resulting binary and the resulting library dependency is
18380 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18381 # library is relocated.
18382 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18384 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18385 # into the resulting binary.
18386 hardcode_minus_L=$hardcode_minus_L_GO
18388 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18389 # into the resulting binary.
18390 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18392 # Set to "yes" if building a shared library automatically hardcodes DIR
18393 # into the library and all subsequent libraries and executables linked
18394 # against it.
18395 hardcode_automatic=$hardcode_automatic_GO
18397 # Set to yes if linker adds runtime paths of dependent libraries
18398 # to runtime path list.
18399 inherit_rpath=$inherit_rpath_GO
18401 # Whether libtool must link a program against all its dependency libraries.
18402 link_all_deplibs=$link_all_deplibs_GO
18404 # Fix the shell variable \$srcfile for the compiler.
18405 fix_srcfile_path=$lt_fix_srcfile_path_GO
18407 # Set to "yes" if exported symbols are required.
18408 always_export_symbols=$always_export_symbols_GO
18410 # The commands to list exported symbols.
18411 export_symbols_cmds=$lt_export_symbols_cmds_GO
18413 # Symbols that should not be listed in the preloaded symbols.
18414 exclude_expsyms=$lt_exclude_expsyms_GO
18416 # Symbols that must always be exported.
18417 include_expsyms=$lt_include_expsyms_GO
18419 # Commands necessary for linking programs (against libraries) with templates.
18420 prelink_cmds=$lt_prelink_cmds_GO
18422 # Specify filename containing input files.
18423 file_list_spec=$lt_file_list_spec_GO
18425 # How to hardcode a shared library path into an executable.
18426 hardcode_action=$hardcode_action_GO
18428 # ### END LIBTOOL TAG CONFIG: GO
18429 _LT_EOF
18432 "default":C) if test -n "$CONFIG_FILES"; then
18433 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18434 # that multilib installs will end up installed in the correct place.
18435 # The testsuite needs it for multilib-aware ABI baseline files.
18436 # To work around this not being passed down from config-ml.in ->
18437 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18438 # append it here. Only modify Makefiles that have just been created.
18440 # Also, get rid of this simulated-VPATH thing that automake does.
18441 cat > vpsed << \_EOF
18442 s!`test -f '$<' || echo '$(srcdir)/'`!!
18443 _EOF
18444 for i in $SUBDIRS; do
18445 case $CONFIG_FILES in
18446 *${i}/Makefile*)
18447 #echo "Adding MULTISUBDIR to $i/Makefile"
18448 sed -f vpsed $i/Makefile > tmp
18449 grep '^MULTISUBDIR =' Makefile >> tmp
18450 mv tmp $i/Makefile
18452 esac
18453 done
18454 rm vpsed
18458 esac
18459 done # for ac_tag
18462 as_fn_exit 0
18463 _ACEOF
18464 ac_clean_files=$ac_clean_files_save
18466 test $ac_write_fail = 0 ||
18467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18470 # configure is writing to config.log, and then calls config.status.
18471 # config.status does its own redirection, appending to config.log.
18472 # Unfortunately, on DOS this fails, as config.log is still kept open
18473 # by configure, so config.status won't be able to write to it; its
18474 # output is simply discarded. So we exec the FD to /dev/null,
18475 # effectively closing config.log, so it can be properly (re)opened and
18476 # appended to by config.status. When coming back to configure, we
18477 # need to make the FD available again.
18478 if test "$no_create" != yes; then
18479 ac_cs_success=:
18480 ac_config_status_args=
18481 test "$silent" = yes &&
18482 ac_config_status_args="$ac_config_status_args --quiet"
18483 exec 5>/dev/null
18484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18485 exec 5>>config.log
18486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18487 # would make configure fail if this is the last instruction.
18488 $ac_cs_success || as_fn_exit 1
18490 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18492 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}