[ARM/AArch64][testsuite] Add vmull_lane tests.
[official-gcc.git] / libgo / configure
blob377179d2c3ceac9514ce548e20ddb60425e9abbb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 GOC_IS_LLGO_FALSE
620 GOC_IS_LLGO_TRUE
621 USING_SPLIT_STACK_FALSE
622 USING_SPLIT_STACK_TRUE
623 SPLIT_STACK
624 OSCFLAGS
625 GO_SYSCALL_OS_ARCH_FILE
626 GO_SYSCALL_OS_FILE
627 GO_LIBCALL_OS_ARCH_FILE
628 GO_LIBCALL_OS_FILE
629 GOARCH
630 LIBGO_IS_X86_64_FALSE
631 LIBGO_IS_X86_64_TRUE
632 LIBGO_IS_SPARC64_FALSE
633 LIBGO_IS_SPARC64_TRUE
634 LIBGO_IS_SPARC_FALSE
635 LIBGO_IS_SPARC_TRUE
636 LIBGO_IS_S390X_FALSE
637 LIBGO_IS_S390X_TRUE
638 LIBGO_IS_S390_FALSE
639 LIBGO_IS_S390_TRUE
640 LIBGO_IS_PPC64LE_FALSE
641 LIBGO_IS_PPC64LE_TRUE
642 LIBGO_IS_PPC64_FALSE
643 LIBGO_IS_PPC64_TRUE
644 LIBGO_IS_PPC_FALSE
645 LIBGO_IS_PPC_TRUE
646 LIBGO_IS_MIPSO64_FALSE
647 LIBGO_IS_MIPSO64_TRUE
648 LIBGO_IS_MIPSN64_FALSE
649 LIBGO_IS_MIPSN64_TRUE
650 LIBGO_IS_MIPSN32_FALSE
651 LIBGO_IS_MIPSN32_TRUE
652 LIBGO_IS_MIPSO32_FALSE
653 LIBGO_IS_MIPSO32_TRUE
654 LIBGO_IS_MIPS_FALSE
655 LIBGO_IS_MIPS_TRUE
656 LIBGO_IS_M68K_FALSE
657 LIBGO_IS_M68K_TRUE
658 LIBGO_IS_ARM64_FALSE
659 LIBGO_IS_ARM64_TRUE
660 LIBGO_IS_ARM_FALSE
661 LIBGO_IS_ARM_TRUE
662 LIBGO_IS_ALPHA_FALSE
663 LIBGO_IS_ALPHA_TRUE
664 LIBGO_IS_386_FALSE
665 LIBGO_IS_386_TRUE
666 USE_DEJAGNU
667 GOOS
668 LIBGO_IS_SOLARIS_FALSE
669 LIBGO_IS_SOLARIS_TRUE
670 LIBGO_IS_RTEMS_FALSE
671 LIBGO_IS_RTEMS_TRUE
672 LIBGO_IS_DRAGONFLY_FALSE
673 LIBGO_IS_DRAGONFLY_TRUE
674 LIBGO_IS_OPENBSD_FALSE
675 LIBGO_IS_OPENBSD_TRUE
676 LIBGO_IS_NETBSD_FALSE
677 LIBGO_IS_NETBSD_TRUE
678 LIBGO_IS_LINUX_FALSE
679 LIBGO_IS_LINUX_TRUE
680 LIBGO_IS_IRIX_FALSE
681 LIBGO_IS_IRIX_TRUE
682 LIBGO_IS_FREEBSD_FALSE
683 LIBGO_IS_FREEBSD_TRUE
684 LIBGO_IS_DARWIN_FALSE
685 LIBGO_IS_DARWIN_TRUE
686 go_include
687 LIBATOMIC
688 LIBFFIINCS
689 LIBFFI
690 nover_glibgo_toolexeclibdir
691 glibgo_toolexeclibdir
692 glibgo_toolexecdir
693 WERROR
694 WARN_FLAGS
695 CC_FOR_BUILD
696 enable_static
697 enable_shared
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
705 OBJDUMP
706 LN_S
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LIBTOOL
711 OBJCOPY
712 RANLIB
714 FGREP
715 EGREP
716 GREP
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 GOCFLAGS
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 target_os
763 target_vendor
764 target_cpu
765 target
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 multi_basedir
775 libtool_VERSION
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_multilib
818 enable_dependency_tracking
819 enable_maintainer_mode
820 with_gnu_ld
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 enable_libtool_lock
826 enable_werror
827 enable_version_specific_runtime_libs
828 with_libffi
829 with_libatomic
830 with_system_libunwind
831 enable_sjlj_exceptions
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CPPFLAGS'
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
888 ac_prev=
889 ac_dashdash=
890 for ac_option
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
908 ac_dashdash=yes ;;
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
927 --config-cache | -C)
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1434 cat <<\_ACEOF
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of package-unused version-unused:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-multilib build many library versions (default)
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-maintainer-mode enable make rules and dependencies not useful
1462 (and sometimes confusing) to the casual installer
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-werror turns on -Werror [default=yes]
1469 --enable-version-specific-runtime-libs
1470 Specify that runtime libraries should be installed
1471 in a compiler-specific directory
1472 --enable-sjlj-exceptions
1473 force use of builtin_setjmp for exceptions
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --without-libffi don't use libffi
1482 --without-libatomic don't use libatomic
1483 --with-system-libunwind use installed libunwind
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 GOC Go compiler command
1494 GOCFLAGS Go compiler flags
1495 CPP C preprocessor
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to the package provider.
1501 _ACEOF
1502 ac_status=$?
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 package-unused configure version-unused
1564 generated by GNU Autoconf 2.64
1566 Copyright (C) 2009 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1659 } # ac_fn_c_try_link
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1727 } # ac_fn_c_try_cpp
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1769 } # ac_fn_c_try_run
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1799 #undef $2
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1816 main ()
1818 return $2 ();
1820 return 0;
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_c_check_func
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1866 else
1867 ac_header_compiler=no
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1882 else
1883 ac_header_preproc=no
1885 rm -f conftest.err conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 yes:no: )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 no:yes:* )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=\$ac_header_compiler"
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923 } # ac_fn_c_check_header_mongrel
1925 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1926 # -------------------------------------------
1927 # Tests whether TYPE exists after having included INCLUDES, setting cache
1928 # variable VAR accordingly.
1929 ac_fn_c_check_type ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 eval "$3=no"
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 main ()
1944 if (sizeof ($2))
1945 return 0;
1947 return 0;
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 if (sizeof (($2)))
1958 return 0;
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1965 else
1966 eval "$3=yes"
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 } # ac_fn_c_check_type
1979 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1980 # --------------------------------------------
1981 # Tries to find the compile-time value of EXPR in a program that includes
1982 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1983 # computed
1984 ac_fn_c_compute_int ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if test "$cross_compiling" = yes; then
1988 # Depending upon the size, compute the lo and hi bounds.
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 static int test_array [1 - 2 * !(($2) >= 0)];
1996 test_array [0] = 0
1999 return 0;
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_lo=0 ac_mid=0
2004 while :; do
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 main ()
2011 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012 test_array [0] = 0
2015 return 0;
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=$ac_mid; break
2020 else
2021 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2022 if test $ac_lo -le $ac_mid; then
2023 ac_lo= ac_hi=
2024 break
2026 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) < 0)];
2038 test_array [0] = 0
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_hi=-1 ac_mid=-1
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=$ac_mid; break
2062 else
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 else
2073 ac_lo= ac_hi=
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 # Binary search between lo and hi bounds.
2079 while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid
2096 else
2097 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 done
2101 case $ac_lo in #((
2102 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2103 '') ac_retval=1 ;;
2104 esac
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2109 static long int longval () { return $2; }
2110 static unsigned long int ulongval () { return $2; }
2111 #include <stdio.h>
2112 #include <stdlib.h>
2114 main ()
2117 FILE *f = fopen ("conftest.val", "w");
2118 if (! f)
2119 return 1;
2120 if (($2) < 0)
2122 long int i = longval ();
2123 if (i != ($2))
2124 return 1;
2125 fprintf (f, "%ld", i);
2127 else
2129 unsigned long int i = ulongval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%lu", i);
2134 /* Do not output a trailing newline, as this causes \r\n confusion
2135 on some platforms. */
2136 return ferror (f) || fclose (f) != 0;
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_run "$LINENO"; then :
2143 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2144 else
2145 ac_retval=1
2147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2148 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149 rm -f conftest.val
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 return $ac_retval
2155 } # ac_fn_c_compute_int
2156 cat >config.log <<_ACEOF
2157 This file contains any messages produced by compilers while
2158 running configure, to aid debugging if configure makes a mistake.
2160 It was created by package-unused $as_me version-unused, which was
2161 generated by GNU Autoconf 2.64. Invocation command line was
2163 $ $0 $@
2165 _ACEOF
2166 exec 5>>config.log
2168 cat <<_ASUNAME
2169 ## --------- ##
2170 ## Platform. ##
2171 ## --------- ##
2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2182 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2190 _ASUNAME
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199 IFS=$as_save_IFS
2201 } >&5
2203 cat >&5 <<_ACEOF
2206 ## ----------- ##
2207 ## Core tests. ##
2208 ## ----------- ##
2210 _ACEOF
2213 # Keep a trace of the command line.
2214 # Strip out --no-create and --no-recursion so they do not pile up.
2215 # Strip out --silent because we don't want to record it for future runs.
2216 # Also quote any args containing shell meta-characters.
2217 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_configure_args=
2219 ac_configure_args0=
2220 ac_configure_args1=
2221 ac_must_keep_next=false
2222 for ac_pass in 1 2
2224 for ac_arg
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2253 as_fn_append ac_configure_args " '$ac_arg'"
2255 esac
2256 done
2257 done
2258 { ac_configure_args0=; unset ac_configure_args0;}
2259 { ac_configure_args1=; unset ac_configure_args1;}
2261 # When interrupted or exit'd, cleanup temporary files, and complete
2262 # config.log. We remove comments because anyway the quotes in there
2263 # would cause problems or look ugly.
2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266 trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2269 echo
2271 cat <<\_ASBOX
2272 ## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##
2275 _ASBOX
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
2294 (set) 2>&1 |
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2297 sed -n \
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 esac |
2305 sort
2307 echo
2309 cat <<\_ASBOX
2310 ## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##
2313 _ASBOX
2314 echo
2315 for ac_var in $ac_subst_vars
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2325 if test -n "$ac_subst_files"; then
2326 cat <<\_ASBOX
2327 ## ------------------- ##
2328 ## File substitutions. ##
2329 ## ------------------- ##
2330 _ASBOX
2331 echo
2332 for ac_var in $ac_subst_files
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2343 if test -s confdefs.h; then
2344 cat <<\_ASBOX
2345 ## ----------- ##
2346 ## confdefs.h. ##
2347 ## ----------- ##
2348 _ASBOX
2349 echo
2350 cat confdefs.h
2351 echo
2353 test "$ac_signal" != 0 &&
2354 $as_echo "$as_me: caught signal $ac_signal"
2355 $as_echo "$as_me: exit $exit_status"
2356 } >&5
2357 rm -f core *.core core.conftest.* &&
2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 exit $exit_status
2361 for ac_signal in 1 2 13 15; do
2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 done
2364 ac_signal=0
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2369 $as_echo "/* confdefs.h */" > confdefs.h
2371 # Predefined preprocessor variables.
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_URL "$PACKAGE_URL"
2395 _ACEOF
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer an explicitly selected file to automatically selected ones.
2400 ac_site_file1=NONE
2401 ac_site_file2=NONE
2402 if test -n "$CONFIG_SITE"; then
2403 ac_site_file1=$CONFIG_SITE
2404 elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2407 else
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413 test "x$ac_site_file" = xNONE && continue
2414 if test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2418 . "$ac_site_file"
2420 done
2422 if test -r "$cache_file"; then
2423 # Some versions of bash will fail to source /dev/null (special
2424 # files actually), so we avoid doing that.
2425 if test -f "$cache_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2427 $as_echo "$as_me: loading cache $cache_file" >&6;}
2428 case $cache_file in
2429 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2430 *) . "./$cache_file";;
2431 esac
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2435 $as_echo "$as_me: creating cache $cache_file" >&6;}
2436 >$cache_file
2439 # Check that the precious variables saved in the cache have kept the same
2440 # value.
2441 ac_cache_corrupted=false
2442 for ac_var in $ac_precious_vars; do
2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444 eval ac_new_set=\$ac_env_${ac_var}_set
2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446 eval ac_new_val=\$ac_env_${ac_var}_value
2447 case $ac_old_set,$ac_new_set in
2448 set,)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,set)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,);;
2458 if test "x$ac_old_val" != "x$ac_new_val"; then
2459 # differences in whitespace do not lead to failure.
2460 ac_old_val_w=`echo x $ac_old_val`
2461 ac_new_val_w=`echo x $ac_new_val`
2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465 ac_cache_corrupted=:
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469 eval $ac_var=\$ac_old_val
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2472 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2474 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2475 fi;;
2476 esac
2477 # Pass precious variables to config.status.
2478 if test "$ac_new_set" = set; then
2479 case $ac_new_val in
2480 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481 *) ac_arg=$ac_var=$ac_new_val ;;
2482 esac
2483 case " $ac_configure_args " in
2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 esac
2488 done
2489 if $ac_cache_corrupted; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2494 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496 ## -------------------- ##
2497 ## Main body of script. ##
2498 ## -------------------- ##
2500 ac_ext=c
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 ac_config_headers="$ac_config_headers config.h"
2514 libtool_VERSION=7:0:0
2517 # Default to --enable-multilib
2518 # Check whether --enable-multilib was given.
2519 if test "${enable_multilib+set}" = set; then :
2520 enableval=$enable_multilib; case "$enableval" in
2521 yes) multilib=yes ;;
2522 no) multilib=no ;;
2523 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2524 esac
2525 else
2526 multilib=yes
2530 # We may get other options which we leave undocumented:
2531 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2532 # See config-ml.in if you want the gory details.
2534 if test "$srcdir" = "."; then
2535 if test "$with_target_subdir" != "."; then
2536 multi_basedir="$srcdir/$with_multisrctop../.."
2537 else
2538 multi_basedir="$srcdir/$with_multisrctop.."
2540 else
2541 multi_basedir="$srcdir/.."
2545 # Even if the default multilib is not a cross compilation,
2546 # it may be that some of the other multilibs are.
2547 if test $cross_compiling = no && test $multilib = yes \
2548 && test "x${with_multisubdir}" != x ; then
2549 cross_compiling=maybe
2552 ac_config_commands="$ac_config_commands default-1"
2555 ac_aux_dir=
2556 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2557 for ac_t in install-sh install.sh shtool; do
2558 if test -f "$ac_dir/$ac_t"; then
2559 ac_aux_dir=$ac_dir
2560 ac_install_sh="$ac_aux_dir/$ac_t -c"
2561 break 2
2563 done
2564 done
2565 if test -z "$ac_aux_dir"; then
2566 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2569 # These three variables are undocumented and unsupported,
2570 # and are intended to be withdrawn in a future Autoconf release.
2571 # They can cause serious problems if a builder's source tree is in a directory
2572 # whose full name contains unusual characters.
2573 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2574 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2575 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2578 # Make sure we can run config.sub.
2579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2580 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2583 $as_echo_n "checking build system type... " >&6; }
2584 if test "${ac_cv_build+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 ac_build_alias=$build_alias
2588 test "x$ac_build_alias" = x &&
2589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2590 test "x$ac_build_alias" = x &&
2591 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2593 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2597 $as_echo "$ac_cv_build" >&6; }
2598 case $ac_cv_build in
2599 *-*-*) ;;
2600 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2601 esac
2602 build=$ac_cv_build
2603 ac_save_IFS=$IFS; IFS='-'
2604 set x $ac_cv_build
2605 shift
2606 build_cpu=$1
2607 build_vendor=$2
2608 shift; shift
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2611 build_os=$*
2612 IFS=$ac_save_IFS
2613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2617 $as_echo_n "checking host system type... " >&6; }
2618 if test "${ac_cv_host+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test "x$host_alias" = x; then
2622 ac_cv_host=$ac_cv_build
2623 else
2624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2625 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2630 $as_echo "$ac_cv_host" >&6; }
2631 case $ac_cv_host in
2632 *-*-*) ;;
2633 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2634 esac
2635 host=$ac_cv_host
2636 ac_save_IFS=$IFS; IFS='-'
2637 set x $ac_cv_host
2638 shift
2639 host_cpu=$1
2640 host_vendor=$2
2641 shift; shift
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2644 host_os=$*
2645 IFS=$ac_save_IFS
2646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2650 $as_echo_n "checking target system type... " >&6; }
2651 if test "${ac_cv_target+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test "x$target_alias" = x; then
2655 ac_cv_target=$ac_cv_host
2656 else
2657 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2658 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2663 $as_echo "$ac_cv_target" >&6; }
2664 case $ac_cv_target in
2665 *-*-*) ;;
2666 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2667 esac
2668 target=$ac_cv_target
2669 ac_save_IFS=$IFS; IFS='-'
2670 set x $ac_cv_target
2671 shift
2672 target_cpu=$1
2673 target_vendor=$2
2674 shift; shift
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2677 target_os=$*
2678 IFS=$ac_save_IFS
2679 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2682 # The aliases save the names the user supplied, while $host etc.
2683 # will get canonicalized.
2684 test -n "$target_alias" &&
2685 test "$program_prefix$program_suffix$program_transform_name" = \
2686 NONENONEs,x,x, &&
2687 program_prefix=${target_alias}-
2689 target_alias=${target_alias-$host_alias}
2691 am__api_version='1.11'
2693 # Find a good install program. We prefer a C program (faster),
2694 # so one script is as good as another. But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2699 # AIX /bin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # OS/2's system install, which has a completely different semantic
2705 # ./install, which can be erroneously created by make from ./install.sh.
2706 # Reject install programs that cannot install multiple files.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2709 if test -z "$INSTALL"; then
2710 if test "${ac_cv_path_install+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 # Account for people who put trailing slashes in PATH elements.
2719 case $as_dir/ in #((
2720 ./ | .// | /[cC]/* | \
2721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2723 /usr/ucb/* ) ;;
2725 # OSF1 and SCO ODT 3.0 have their own names for install.
2726 # Don't use installbsd from OSF since it installs stuff as root
2727 # by default.
2728 for ac_prog in ginstall scoinst install; do
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2731 if test $ac_prog = install &&
2732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # AIX install. It has an incompatible calling convention.
2735 elif test $ac_prog = install &&
2736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # program-specific install script used by HP pwplus--don't use.
2739 else
2740 rm -rf conftest.one conftest.two conftest.dir
2741 echo one > conftest.one
2742 echo two > conftest.two
2743 mkdir conftest.dir
2744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745 test -s conftest.one && test -s conftest.two &&
2746 test -s conftest.dir/conftest.one &&
2747 test -s conftest.dir/conftest.two
2748 then
2749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750 break 3
2754 done
2755 done
2757 esac
2759 done
2760 IFS=$as_save_IFS
2762 rm -rf conftest.one conftest.two conftest.dir
2765 if test "${ac_cv_path_install+set}" = set; then
2766 INSTALL=$ac_cv_path_install
2767 else
2768 # As a last resort, use the slow shell script. Don't cache a
2769 # value for INSTALL within a source directory, because that will
2770 # break other packages using the cache if that directory is
2771 # removed, or if the value is a relative name.
2772 INSTALL=$ac_install_sh
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776 $as_echo "$INSTALL" >&6; }
2778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779 # It thinks the first close brace ends the variable substitution.
2780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787 $as_echo_n "checking whether build environment is sane... " >&6; }
2788 # Just in case
2789 sleep 1
2790 echo timestamp > conftest.file
2791 # Reject unsafe characters in $srcdir or the absolute working directory
2792 # name. Accept space and tab only in the latter.
2793 am_lf='
2795 case `pwd` in
2796 *[\\\"\#\$\&\'\`$am_lf]*)
2797 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2798 esac
2799 case $srcdir in
2800 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2801 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2802 esac
2804 # Do `set' in a subshell so we don't clobber the current shell's
2805 # arguments. Must try -L first in case configure is actually a
2806 # symlink; some systems play weird games with the mod time of symlinks
2807 # (eg FreeBSD returns the mod time of the symlink's containing
2808 # directory).
2809 if (
2810 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811 if test "$*" = "X"; then
2812 # -L didn't work.
2813 set X `ls -t "$srcdir/configure" conftest.file`
2815 rm -f conftest.file
2816 if test "$*" != "X $srcdir/configure conftest.file" \
2817 && test "$*" != "X conftest.file $srcdir/configure"; then
2819 # If neither matched, then we have a broken ls. This can happen
2820 # if, for instance, CONFIG_SHELL is bash and it inherits a
2821 # broken ls alias from the environment. This has actually
2822 # happened. Such a system could not be considered "sane".
2823 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2824 alias in your environment" "$LINENO" 5
2827 test "$2" = conftest.file
2829 then
2830 # Ok.
2832 else
2833 as_fn_error "newly created file is older than distributed files!
2834 Check your system clock" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837 $as_echo "yes" >&6; }
2838 test "$program_prefix" != NONE &&
2839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2840 # Use a double $ so make ignores it.
2841 test "$program_suffix" != NONE &&
2842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2843 # Double any \ or $.
2844 # By default was `s,x,x', remove it if useless.
2845 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2846 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2848 # expand $ac_aux_dir to an absolute path
2849 am_aux_dir=`cd $ac_aux_dir && pwd`
2851 if test x"${MISSING+set}" != xset; then
2852 case $am_aux_dir in
2853 *\ * | *\ *)
2854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2857 esac
2859 # Use eval to expand $SHELL
2860 if eval "$MISSING --run true"; then
2861 am_missing_run="$MISSING --run "
2862 else
2863 am_missing_run=
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2865 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2868 if test x"${install_sh}" != xset; then
2869 case $am_aux_dir in
2870 *\ * | *\ *)
2871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2873 install_sh="\${SHELL} $am_aux_dir/install-sh"
2874 esac
2877 # Installed binaries are usually stripped using `strip' when the user
2878 # run `make install-strip'. However `strip' might not be the right
2879 # tool to use in cross-compilation environments, therefore Automake
2880 # will honor the `STRIP' environment variable to overrule this program.
2881 if test "$cross_compiling" != no; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}strip; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_STRIP+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$STRIP"; then
2891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 STRIP=$ac_cv_prog_STRIP
2911 if test -n "$STRIP"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2913 $as_echo "$STRIP" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2921 if test -z "$ac_cv_prog_STRIP"; then
2922 ac_ct_STRIP=$STRIP
2923 # Extract the first word of "strip", so it can be a program name with args.
2924 set dummy strip; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_STRIP"; then
2931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_STRIP="strip"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2951 if test -n "$ac_ct_STRIP"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2953 $as_echo "$ac_ct_STRIP" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2959 if test "x$ac_ct_STRIP" = x; then
2960 STRIP=":"
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 STRIP=$ac_ct_STRIP
2970 else
2971 STRIP="$ac_cv_prog_STRIP"
2975 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2978 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2979 if test -z "$MKDIR_P"; then
2980 if test "${ac_cv_path_mkdir+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_prog in mkdir gmkdir; do
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2992 'mkdir (GNU coreutils) '* | \
2993 'mkdir (coreutils) '* | \
2994 'mkdir (fileutils) '4.1*)
2995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2996 break 3;;
2997 esac
2998 done
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 if test "${ac_cv_path_mkdir+set}" = set; then
3006 MKDIR_P="$ac_cv_path_mkdir -p"
3007 else
3008 # As a last resort, use the slow shell script. Don't cache a
3009 # value for MKDIR_P within a source directory, because that will
3010 # break other packages using the cache if that directory is
3011 # removed, or if the value is a relative name.
3012 test -d ./--version && rmdir ./--version
3013 MKDIR_P="$ac_install_sh -d"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3017 $as_echo "$MKDIR_P" >&6; }
3019 mkdir_p="$MKDIR_P"
3020 case $mkdir_p in
3021 [\\/$]* | ?:[\\/]*) ;;
3022 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3023 esac
3025 for ac_prog in gawk mawk nawk awk
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_AWK+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$AWK"; then
3035 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_AWK="$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3048 done
3049 done
3050 IFS=$as_save_IFS
3054 AWK=$ac_cv_prog_AWK
3055 if test -n "$AWK"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3057 $as_echo "$AWK" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3064 test -n "$AWK" && break
3065 done
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3068 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3069 set x ${MAKE-make}
3070 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3071 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 cat >conftest.make <<\_ACEOF
3075 SHELL = /bin/sh
3076 all:
3077 @echo '@@@%%%=$(MAKE)=@@@%%%'
3078 _ACEOF
3079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3080 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3081 *@@@%%%=?*=@@@%%%*)
3082 eval ac_cv_prog_make_${ac_make}_set=yes;;
3084 eval ac_cv_prog_make_${ac_make}_set=no;;
3085 esac
3086 rm -f conftest.make
3088 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3091 SET_MAKE=
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 SET_MAKE="MAKE=${MAKE-make}"
3098 rm -rf .tst 2>/dev/null
3099 mkdir .tst 2>/dev/null
3100 if test -d .tst; then
3101 am__leading_dot=.
3102 else
3103 am__leading_dot=_
3105 rmdir .tst 2>/dev/null
3107 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3108 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3109 # is not polluted with repeated "-I."
3110 am__isrc=' -I$(srcdir)'
3111 # test to see if srcdir already configured
3112 if test -f $srcdir/config.status; then
3113 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3117 # test whether we have cygpath
3118 if test -z "$CYGPATH_W"; then
3119 if (cygpath --version) >/dev/null 2>/dev/null; then
3120 CYGPATH_W='cygpath -w'
3121 else
3122 CYGPATH_W=echo
3127 # Define the identity of the package.
3128 PACKAGE='libgo'
3129 VERSION='version-unused'
3132 # Some tools Automake needs.
3134 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3137 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3140 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3143 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3146 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148 # We need awk for the "check" target. The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3209 if test -z "$ac_cv_prog_CC"; then
3210 ac_ct_CC=$CC
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212 set dummy gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_ac_ct_CC="gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239 if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241 $as_echo "$ac_ct_CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 CC=$ac_ct_CC
3258 else
3259 CC="$ac_cv_prog_CC"
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_CC+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3303 if test -z "$CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305 set dummy cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 ac_prog_rejected=no
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323 ac_prog_rejected=yes
3324 continue
3326 ac_cv_prog_CC="cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 done
3332 IFS=$as_save_IFS
3334 if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3337 shift
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3342 shift
3343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3359 if test -z "$CC"; then
3360 if test -n "$ac_tool_prefix"; then
3361 for ac_prog in cl.exe
3363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3400 test -n "$CC" && break
3401 done
3403 if test -z "$CC"; then
3404 ac_ct_CC=$CC
3405 for ac_prog in cl.exe
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_ac_ct_CC="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3430 IFS=$as_save_IFS
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 test -n "$ac_ct_CC" && break
3445 done
3447 if test "x$ac_ct_CC" = x; then
3448 CC=""
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 CC=$ac_ct_CC
3463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error "no acceptable C compiler found in \$PATH
3466 See \`config.log' for more details." "$LINENO" 5; }
3468 # Provide some information about the compiler.
3469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470 set X $ac_compile
3471 ac_compiler=$2
3472 for ac_option in --version -v -V -qversion; do
3473 { { ac_try="$ac_compiler $ac_option >&5"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 ac_status=$?
3482 if test -s conftest.err; then
3483 sed '10a\
3484 ... rest of stderr output deleted ...
3485 10q' conftest.err >conftest.er1
3486 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }
3491 done
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 main ()
3501 return 0;
3503 _ACEOF
3504 ac_clean_files_save=$ac_clean_files
3505 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3506 # Try to create an executable without -o first, disregard a.out.
3507 # It will help us diagnose broken compilers, and finding out an intuition
3508 # of exeext.
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3510 $as_echo_n "checking for C compiler default output file name... " >&6; }
3511 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513 # The possible output files:
3514 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516 ac_rmfiles=
3517 for ac_file in $ac_files
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3522 esac
3523 done
3524 rm -f $ac_rmfiles
3526 if { { ac_try="$ac_link_default"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link_default") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3538 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3539 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3540 # so that the user can short-circuit this test for compilers unknown to
3541 # Autoconf.
3542 for ac_file in $ac_files ''
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 [ab].out )
3549 # We found the default executable, but exeext='' is most
3550 # certainly right.
3551 break;;
3552 *.* )
3553 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 then :; else
3555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 # We set ac_cv_exeext here because the later test for it is not
3558 # safe: cross compilers may not add the suffix if given an `-o'
3559 # argument, so we may need to know it at that point already.
3560 # Even if this section looks crufty: it has the advantage of
3561 # actually working.
3562 break;;
3564 break;;
3565 esac
3566 done
3567 test "$ac_cv_exeext" = no && ac_cv_exeext=
3569 else
3570 ac_file=''
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then :
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { as_fn_set_status 77
3581 as_fn_error "C compiler cannot create executables
3582 See \`config.log' for more details." "$LINENO" 5; }; }
3584 ac_exeext=$ac_cv_exeext
3586 # Check that the compiler produces executables we can run. If not, either
3587 # the compiler is broken, or we cross compile.
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3589 $as_echo_n "checking whether the C compiler works... " >&6; }
3590 # If not cross compiling, check that we can run a simple program.
3591 if test "$cross_compiling" != yes; then
3592 if { ac_try='./$ac_file'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3603 cross_compiling=no
3604 else
3605 if test "$cross_compiling" = maybe; then
3606 cross_compiling=yes
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error "cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details." "$LINENO" 5; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3617 $as_echo "yes" >&6; }
3619 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3620 ac_clean_files=$ac_clean_files_save
3621 # Check that the compiler produces executables we can run. If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3626 $as_echo "$cross_compiling" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3629 $as_echo_n "checking for suffix of executables... " >&6; }
3630 if { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; then :
3641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3642 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3643 # work properly (i.e., refer to `conftest.exe'), while it won't with
3644 # `rm'.
3645 for ac_file in conftest.exe conftest conftest.*; do
3646 test -f "$ac_file" || continue
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650 break;;
3651 * ) break;;
3652 esac
3653 done
3654 else
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error "cannot compute suffix of executables: cannot compile and link
3658 See \`config.log' for more details." "$LINENO" 5; }
3660 rm -f conftest$ac_cv_exeext
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3662 $as_echo "$ac_cv_exeext" >&6; }
3664 rm -f conftest.$ac_ext
3665 EXEEXT=$ac_cv_exeext
3666 ac_exeext=$EXEEXT
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668 $as_echo_n "checking for suffix of object files... " >&6; }
3669 if test "${ac_cv_objext+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3676 main ()
3680 return 0;
3682 _ACEOF
3683 rm -f conftest.o conftest.obj
3684 if { { ac_try="$ac_compile"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_compile") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 for ac_file in conftest.o conftest.obj conftest.*; do
3696 test -f "$ac_file" || continue;
3697 case $ac_file in
3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 break;;
3701 esac
3702 done
3703 else
3704 $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details." "$LINENO" 5; }
3712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 $as_echo "$ac_cv_objext" >&6; }
3716 OBJEXT=$ac_cv_objext
3717 ac_objext=$OBJEXT
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3727 main ()
3729 #ifndef __GNUC__
3730 choke me
3731 #endif
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_compiler_gnu=yes
3739 else
3740 ac_compiler_gnu=no
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 if test $ac_compiler_gnu = yes; then
3749 GCC=yes
3750 else
3751 GCC=
3753 ac_test_CFLAGS=${CFLAGS+set}
3754 ac_save_CFLAGS=$CFLAGS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757 if test "${ac_cv_prog_cc_g+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_save_c_werror_flag=$ac_c_werror_flag
3761 ac_c_werror_flag=yes
3762 ac_cv_prog_cc_g=no
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777 else
3778 CFLAGS=""
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3783 main ()
3787 return 0;
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3792 else
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3794 CFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 main ()
3803 return 0;
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_g=yes
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdarg.h>
3843 #include <stdio.h>
3844 #include <sys/types.h>
3845 #include <sys/stat.h>
3846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3847 struct buf { int x; };
3848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849 static char *e (p, i)
3850 char **p;
3851 int i;
3853 return p[i];
3855 static char *f (char * (*g) (char **, int), char **p, ...)
3857 char *s;
3858 va_list v;
3859 va_start (v,p);
3860 s = g (p, va_arg (v,int));
3861 va_end (v);
3862 return s;
3865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3866 function prototypes and stuff, but not '\xHH' hex character constants.
3867 These don't provoke an error unfortunately, instead are silently treated
3868 as 'x'. The following induces an error, until -std is added to get
3869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3870 array size at least. It's necessary to write '\x00'==0 to get something
3871 that's true only with -std. */
3872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875 inside strings and character constants. */
3876 #define FOO(x) 'x'
3877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883 int argc;
3884 char **argv;
3886 main ()
3888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 return 0;
3892 _ACEOF
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c89=$ac_arg
3900 rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c89" != "xno" && break
3902 done
3903 rm -f conftest.$ac_ext
3904 CC=$ac_save_CC
3907 # AC_CACHE_VAL
3908 case "x$ac_cv_prog_cc_c89" in
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3912 xno)
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3916 CC="$CC $ac_cv_prog_cc_c89"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919 esac
3920 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 DEPDIR="${am__leading_dot}deps"
3931 ac_config_commands="$ac_config_commands depfiles"
3934 am_make=${MAKE-make}
3935 cat > confinc << 'END'
3936 am__doit:
3937 @echo this is the am__doit target
3938 .PHONY: am__doit
3940 # If we don't find an include directive, just comment out the code.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3942 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3943 am__include="#"
3944 am__quote=
3945 _am_result=none
3946 # First try GNU make style include.
3947 echo "include confinc" > confmf
3948 # Ignore all kinds of additional output from `make'.
3949 case `$am_make -s -f confmf 2> /dev/null` in #(
3950 *the\ am__doit\ target*)
3951 am__include=include
3952 am__quote=
3953 _am_result=GNU
3955 esac
3956 # Now try BSD make style include.
3957 if test "$am__include" = "#"; then
3958 echo '.include "confinc"' > confmf
3959 case `$am_make -s -f confmf 2> /dev/null` in #(
3960 *the\ am__doit\ target*)
3961 am__include=.include
3962 am__quote="\""
3963 _am_result=BSD
3965 esac
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3970 $as_echo "$_am_result" >&6; }
3971 rm -f confinc confmf
3973 # Check whether --enable-dependency-tracking was given.
3974 if test "${enable_dependency_tracking+set}" = set; then :
3975 enableval=$enable_dependency_tracking;
3978 if test "x$enable_dependency_tracking" != xno; then
3979 am_depcomp="$ac_aux_dir/depcomp"
3980 AMDEPBACKSLASH='\'
3982 if test "x$enable_dependency_tracking" != xno; then
3983 AMDEP_TRUE=
3984 AMDEP_FALSE='#'
3985 else
3986 AMDEP_TRUE='#'
3987 AMDEP_FALSE=
3992 depcc="$CC" am_compiler_list=
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995 $as_echo_n "checking dependency style of $depcc... " >&6; }
3996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000 # We make a subdir and do the tests there. Otherwise we can end up
4001 # making bogus files that we don't know about and never remove. For
4002 # instance it was reported that on HP-UX the gcc test will end up
4003 # making a dummy file named `D' -- because `-MD' means `put the output
4004 # in D'.
4005 mkdir conftest.dir
4006 # Copy depcomp to subdir because otherwise we won't find it if we're
4007 # using a relative directory.
4008 cp "$am_depcomp" conftest.dir
4009 cd conftest.dir
4010 # We will build objects and dependencies in a subdirectory because
4011 # it helps to detect inapplicable dependency modes. For instance
4012 # both Tru64's cc and ICC support -MD to output dependencies as a
4013 # side effect of compilation, but ICC will put the dependencies in
4014 # the current directory while Tru64 will put them in the object
4015 # directory.
4016 mkdir sub
4018 am_cv_CC_dependencies_compiler_type=none
4019 if test "$am_compiler_list" = ""; then
4020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4022 am__universal=false
4023 case " $depcc " in #(
4024 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4025 esac
4027 for depmode in $am_compiler_list; do
4028 # Setup a source with many dependencies, because some compilers
4029 # like to wrap large dependency lists on column 80 (with \), and
4030 # we should not choose a depcomp mode which is confused by this.
4032 # We need to recreate these files for each test, as the compiler may
4033 # overwrite some of them when testing with obscure command lines.
4034 # This happens at least with the AIX C compiler.
4035 : > sub/conftest.c
4036 for i in 1 2 3 4 5 6; do
4037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4039 # Solaris 8's {/usr,}/bin/sh.
4040 touch sub/conftst$i.h
4041 done
4042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045 # mode. It turns out that the SunPro C++ compiler does not properly
4046 # handle `-M -o', and we need to detect this. Also, some Intel
4047 # versions had trouble with output in subdirs
4048 am__obj=sub/conftest.${OBJEXT-o}
4049 am__minus_obj="-o $am__obj"
4050 case $depmode in
4051 gcc)
4052 # This depmode causes a compiler race in universal mode.
4053 test "$am__universal" = false || continue
4055 nosideeffect)
4056 # after this tag, mechanisms are not by side-effect, so they'll
4057 # only be used when explicitly requested
4058 if test "x$enable_dependency_tracking" = xyes; then
4059 continue
4060 else
4061 break
4064 msvisualcpp | msvcmsys)
4065 # This compiler won't grok `-c -o', but also, the minuso test has
4066 # not run yet. These depmodes are late enough in the game, and
4067 # so weak that their functioning should not be impacted.
4068 am__obj=conftest.${OBJEXT-o}
4069 am__minus_obj=
4071 none) break ;;
4072 esac
4073 if depmode=$depmode \
4074 source=sub/conftest.c object=$am__obj \
4075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4077 >/dev/null 2>conftest.err &&
4078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4082 # icc doesn't choke on unknown options, it will just issue warnings
4083 # or remarks (even with -Werror). So we grep stderr for any message
4084 # that says an option was ignored or not supported.
4085 # When given -MP, icc 7.0 and 7.1 complain thusly:
4086 # icc: Command line warning: ignoring option '-M'; no argument required
4087 # The diagnosis changed in icc 8.0:
4088 # icc: Command line remark: option '-MP' not supported
4089 if (grep 'ignoring option' conftest.err ||
4090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4091 am_cv_CC_dependencies_compiler_type=$depmode
4092 break
4095 done
4097 cd ..
4098 rm -rf conftest.dir
4099 else
4100 am_cv_CC_dependencies_compiler_type=none
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109 test "x$enable_dependency_tracking" != xno \
4110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4111 am__fastdepCC_TRUE=
4112 am__fastdepCC_FALSE='#'
4113 else
4114 am__fastdepCC_TRUE='#'
4115 am__fastdepCC_FALSE=
4119 ac_ext=go
4120 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4121 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compile_gnu=yes
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_GOC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$GOC"; then
4132 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4147 IFS=$as_save_IFS
4151 GOC=$ac_cv_prog_GOC
4152 if test -n "$GOC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4154 $as_echo "$GOC" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4162 if test -z "$ac_cv_prog_GOC"; then
4163 ac_ct_GOC=$GOC
4164 # Extract the first word of "gccgo", so it can be a program name with args.
4165 set dummy gccgo; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$ac_ct_GOC"; then
4172 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_ac_ct_GOC="gccgo"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4192 if test -n "$ac_ct_GOC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4194 $as_echo "$ac_ct_GOC" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4200 if test "x$ac_ct_GOC" = x; then
4201 GOC=""
4202 else
4203 case $cross_compiling:$ac_tool_warned in
4204 yes:)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207 ac_tool_warned=yes ;;
4208 esac
4209 GOC=$ac_ct_GOC
4211 else
4212 GOC="$ac_cv_prog_GOC"
4215 if test -z "$GOC"; then
4216 if test -n "$ac_tool_prefix"; then
4217 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if test "${ac_cv_prog_GOC+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -n "$GOC"; then
4225 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 GOC=$ac_cv_prog_GOC
4245 if test -n "$GOC"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4247 $as_echo "$GOC" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4256 if test -z "$GOC"; then
4257 # Extract the first word of "gccgo", so it can be a program name with args.
4258 set dummy gccgo; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if test "${ac_cv_prog_GOC+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$GOC"; then
4265 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4266 else
4267 ac_prog_rejected=no
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4276 ac_prog_rejected=yes
4277 continue
4279 ac_cv_prog_GOC="gccgo"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4287 if test $ac_prog_rejected = yes; then
4288 # We found a bogon in the path, so make sure we never use it.
4289 set dummy $ac_cv_prog_GOC
4290 shift
4291 if test $# != 0; then
4292 # We chose a different compiler from the bogus one.
4293 # However, it has the same basename, so the bogon will be chosen
4294 # first if we set GOC to just the basename; use the full file name.
4295 shift
4296 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4301 GOC=$ac_cv_prog_GOC
4302 if test -n "$GOC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4304 $as_echo "$GOC" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4316 set X $ac_compile
4317 ac_compiler=$2
4318 { { ac_try="$ac_compiler --version >&5"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler --version >&5") 2>conftest.err
4326 ac_status=$?
4327 if test -s conftest.err; then
4328 sed '10a\
4329 ... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
4332 rm -f conftest.er1 conftest.err
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4336 GOCFLAGS="-g -O2"
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4349 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4350 # Check whether --enable-maintainer-mode was given.
4351 if test "${enable_maintainer_mode+set}" = set; then :
4352 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4353 else
4354 USE_MAINTAINER_MODE=no
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4358 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4359 if test $USE_MAINTAINER_MODE = yes; then
4360 MAINTAINER_MODE_TRUE=
4361 MAINTAINER_MODE_FALSE='#'
4362 else
4363 MAINTAINER_MODE_TRUE='#'
4364 MAINTAINER_MODE_FALSE=
4367 MAINT=$MAINTAINER_MODE_TRUE
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4372 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4373 if test "${ac_cv_path_SED+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4377 for ac_i in 1 2 3 4 5 6 7; do
4378 ac_script="$ac_script$as_nl$ac_script"
4379 done
4380 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4381 { ac_script=; unset ac_script;}
4382 if test -z "$SED"; then
4383 ac_path_SED_found=false
4384 # Loop through the user's path and test for each of PROGNAME-LIST
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_prog in sed gsed; do
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4393 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4394 # Check for GNU ac_path_SED and select it if it is found.
4395 # Check for GNU $ac_path_SED
4396 case `"$ac_path_SED" --version 2>&1` in
4397 *GNU*)
4398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4400 ac_count=0
4401 $as_echo_n 0123456789 >"conftest.in"
4402 while :
4404 cat "conftest.in" "conftest.in" >"conftest.tmp"
4405 mv "conftest.tmp" "conftest.in"
4406 cp "conftest.in" "conftest.nl"
4407 $as_echo '' >> "conftest.nl"
4408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410 as_fn_arith $ac_count + 1 && ac_count=$as_val
4411 if test $ac_count -gt ${ac_path_SED_max-0}; then
4412 # Best one so far, save it but keep looking for a better one
4413 ac_cv_path_SED="$ac_path_SED"
4414 ac_path_SED_max=$ac_count
4416 # 10*(2^10) chars as input seems more than enough
4417 test $ac_count -gt 10 && break
4418 done
4419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 esac
4422 $ac_path_SED_found && break 3
4423 done
4424 done
4425 done
4426 IFS=$as_save_IFS
4427 if test -z "$ac_cv_path_SED"; then
4428 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4430 else
4431 ac_cv_path_SED=$SED
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4436 $as_echo "$ac_cv_path_SED" >&6; }
4437 SED="$ac_cv_path_SED"
4438 rm -f conftest.sed
4440 test -z "$SED" && SED=sed
4441 Xsed="$SED -e 1s/^X//"
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4455 if test "${ac_cv_path_GREP+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -z "$GREP"; then
4459 ac_path_GREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in grep ggrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4470 # Check for GNU ac_path_GREP and select it if it is found.
4471 # Check for GNU $ac_path_GREP
4472 case `"$ac_path_GREP" --version 2>&1` in
4473 *GNU*)
4474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4476 ac_count=0
4477 $as_echo_n 0123456789 >"conftest.in"
4478 while :
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'GREP' >> "conftest.nl"
4484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_GREP="$ac_path_GREP"
4490 ac_path_GREP_max=$ac_count
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4494 done
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 esac
4498 $ac_path_GREP_found && break 3
4499 done
4500 done
4501 done
4502 IFS=$as_save_IFS
4503 if test -z "$ac_cv_path_GREP"; then
4504 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 else
4507 ac_cv_path_GREP=$GREP
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4512 $as_echo "$ac_cv_path_GREP" >&6; }
4513 GREP="$ac_cv_path_GREP"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4517 $as_echo_n "checking for egrep... " >&6; }
4518 if test "${ac_cv_path_EGREP+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4522 then ac_cv_path_EGREP="$GREP -E"
4523 else
4524 if test -z "$EGREP"; then
4525 ac_path_EGREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in egrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4535 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4536 # Check for GNU ac_path_EGREP and select it if it is found.
4537 # Check for GNU $ac_path_EGREP
4538 case `"$ac_path_EGREP" --version 2>&1` in
4539 *GNU*)
4540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4542 ac_count=0
4543 $as_echo_n 0123456789 >"conftest.in"
4544 while :
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'EGREP' >> "conftest.nl"
4550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_EGREP="$ac_path_EGREP"
4556 ac_path_EGREP_max=$ac_count
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4560 done
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562 esac
4564 $ac_path_EGREP_found && break 3
4565 done
4566 done
4567 done
4568 IFS=$as_save_IFS
4569 if test -z "$ac_cv_path_EGREP"; then
4570 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4572 else
4573 ac_cv_path_EGREP=$EGREP
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4579 $as_echo "$ac_cv_path_EGREP" >&6; }
4580 EGREP="$ac_cv_path_EGREP"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4584 $as_echo_n "checking for fgrep... " >&6; }
4585 if test "${ac_cv_path_FGREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4589 then ac_cv_path_FGREP="$GREP -F"
4590 else
4591 if test -z "$FGREP"; then
4592 ac_path_FGREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in fgrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4602 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4603 # Check for GNU ac_path_FGREP and select it if it is found.
4604 # Check for GNU $ac_path_FGREP
4605 case `"$ac_path_FGREP" --version 2>&1` in
4606 *GNU*)
4607 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4609 ac_count=0
4610 $as_echo_n 0123456789 >"conftest.in"
4611 while :
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'FGREP' >> "conftest.nl"
4617 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_FGREP="$ac_path_FGREP"
4623 ac_path_FGREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4627 done
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4631 $ac_path_FGREP_found && break 3
4632 done
4633 done
4634 done
4635 IFS=$as_save_IFS
4636 if test -z "$ac_cv_path_FGREP"; then
4637 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 else
4640 ac_cv_path_FGREP=$FGREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4646 $as_echo "$ac_cv_path_FGREP" >&6; }
4647 FGREP="$ac_cv_path_FGREP"
4650 test -z "$GREP" && GREP=grep
4668 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4670 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4673 $as_echo_n "checking how to print strings... " >&6; }
4674 # Test print first, because it will be a builtin if present.
4675 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4676 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4677 ECHO='print -r --'
4678 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4679 ECHO='printf %s\n'
4680 else
4681 # Use this function as a fallback that always works.
4682 func_fallback_echo ()
4684 eval 'cat <<_LTECHO_EOF
4686 _LTECHO_EOF'
4688 ECHO='func_fallback_echo'
4691 # func_echo_all arg...
4692 # Invoke $ECHO with all args, space-separated.
4693 func_echo_all ()
4695 $ECHO ""
4698 case "$ECHO" in
4699 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4700 $as_echo "printf" >&6; } ;;
4701 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4702 $as_echo "print -r" >&6; } ;;
4703 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4704 $as_echo "cat" >&6; } ;;
4705 esac
4722 # Check whether --with-gnu-ld was given.
4723 if test "${with_gnu_ld+set}" = set; then :
4724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4725 else
4726 with_gnu_ld=no
4729 ac_prog=ld
4730 if test "$GCC" = yes; then
4731 # Check if gcc -print-prog-name=ld gives a path.
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4733 $as_echo_n "checking for ld used by $CC... " >&6; }
4734 case $host in
4735 *-*-mingw*)
4736 # gcc leaves a trailing carriage return which upsets mingw
4737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4740 esac
4741 case $ac_prog in
4742 # Accept absolute paths.
4743 [\\/]* | ?:[\\/]*)
4744 re_direlt='/[^/][^/]*/\.\./'
4745 # Canonicalize the pathname of ld
4746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4749 done
4750 test -z "$LD" && LD="$ac_prog"
4753 # If it fails, then pretend we aren't using GCC.
4754 ac_prog=ld
4757 # If it is relative, then search for the first ld in PATH.
4758 with_gnu_ld=unknown
4760 esac
4761 elif test "$with_gnu_ld" = yes; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4763 $as_echo_n "checking for GNU ld... " >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4766 $as_echo_n "checking for non-GNU ld... " >&6; }
4768 if test "${lt_cv_path_LD+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -z "$LD"; then
4772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4773 for ac_dir in $PATH; do
4774 IFS="$lt_save_ifs"
4775 test -z "$ac_dir" && ac_dir=.
4776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4777 lt_cv_path_LD="$ac_dir/$ac_prog"
4778 # Check to see if the program is GNU ld. I'd rather use --version,
4779 # but apparently some variants of GNU ld only accept -v.
4780 # Break only if it was the GNU/non-GNU ld that we prefer.
4781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4782 *GNU* | *'with BFD'*)
4783 test "$with_gnu_ld" != no && break
4786 test "$with_gnu_ld" != yes && break
4788 esac
4790 done
4791 IFS="$lt_save_ifs"
4792 else
4793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4797 LD="$lt_cv_path_LD"
4798 if test -n "$LD"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4800 $as_echo "$LD" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4812 case `$LD -v 2>&1 </dev/null` in
4813 *GNU* | *'with BFD'*)
4814 lt_cv_prog_gnu_ld=yes
4817 lt_cv_prog_gnu_ld=no
4819 esac
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4823 with_gnu_ld=$lt_cv_prog_gnu_ld
4833 if test -n "$ac_tool_prefix"; then
4834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$RANLIB"; then
4842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4855 done
4856 done
4857 IFS=$as_save_IFS
4861 RANLIB=$ac_cv_prog_RANLIB
4862 if test -n "$RANLIB"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4864 $as_echo "$RANLIB" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4872 if test -z "$ac_cv_prog_RANLIB"; then
4873 ac_ct_RANLIB=$RANLIB
4874 # Extract the first word of "ranlib", so it can be a program name with args.
4875 set dummy ranlib; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$ac_ct_RANLIB"; then
4882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_ac_ct_RANLIB="ranlib"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4902 if test -n "$ac_ct_RANLIB"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4904 $as_echo "$ac_ct_RANLIB" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4910 if test "x$ac_ct_RANLIB" = x; then
4911 RANLIB=":"
4912 else
4913 case $cross_compiling:$ac_tool_warned in
4914 yes:)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917 ac_tool_warned=yes ;;
4918 esac
4919 RANLIB=$ac_ct_RANLIB
4921 else
4922 RANLIB="$ac_cv_prog_RANLIB"
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$OBJCOPY"; then
4934 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 OBJCOPY=$ac_cv_prog_OBJCOPY
4954 if test -n "$OBJCOPY"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4956 $as_echo "$OBJCOPY" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4964 if test -z "$ac_cv_prog_OBJCOPY"; then
4965 ac_ct_OBJCOPY=$OBJCOPY
4966 # Extract the first word of "objcopy", so it can be a program name with args.
4967 set dummy objcopy; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$ac_ct_OBJCOPY"; then
4974 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4994 if test -n "$ac_ct_OBJCOPY"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4996 $as_echo "$ac_ct_OBJCOPY" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5002 if test "x$ac_ct_OBJCOPY" = x; then
5003 OBJCOPY="missing-objcopy"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011 OBJCOPY=$ac_ct_OBJCOPY
5013 else
5014 OBJCOPY="$ac_cv_prog_OBJCOPY"
5018 enable_dlopen=yes
5022 case `pwd` in
5023 *\ * | *\ *)
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5025 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5026 esac
5030 macro_version='2.2.7a'
5031 macro_revision='1.3134'
5045 ltmain="$ac_aux_dir/ltmain.sh"
5047 # Backslashify metacharacters that are still active within
5048 # double-quoted strings.
5049 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5051 # Same as above, but do not quote variable references.
5052 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5054 # Sed substitution to delay expansion of an escaped shell variable in a
5055 # double_quote_subst'ed string.
5056 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5058 # Sed substitution to delay expansion of an escaped single quote.
5059 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5061 # Sed substitution to avoid accidental globbing in evaled expressions
5062 no_glob_subst='s/\*/\\\*/g'
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066 if test "${lt_cv_path_NM+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$NM"; then
5070 # Let the user override the test.
5071 lt_cv_path_NM="$NM"
5072 else
5073 lt_nm_to_check="${ac_tool_prefix}nm"
5074 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075 lt_nm_to_check="$lt_nm_to_check nm"
5077 for lt_tmp_nm in $lt_nm_to_check; do
5078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5080 IFS="$lt_save_ifs"
5081 test -z "$ac_dir" && ac_dir=.
5082 tmp_nm="$ac_dir/$lt_tmp_nm"
5083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084 # Check to see if the nm accepts a BSD-compat flag.
5085 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086 # nm: unknown option "B" ignored
5087 # Tru64's nm complains that /dev/null is an invalid object file
5088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089 */dev/null* | *'Invalid file or object type'*)
5090 lt_cv_path_NM="$tmp_nm -B"
5091 break
5094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5095 */dev/null*)
5096 lt_cv_path_NM="$tmp_nm -p"
5097 break
5100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101 continue # so that we can try to find one that supports BSD flags
5103 esac
5105 esac
5107 done
5108 IFS="$lt_save_ifs"
5109 done
5110 : ${lt_cv_path_NM=no}
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114 $as_echo "$lt_cv_path_NM" >&6; }
5115 if test "$lt_cv_path_NM" != "no"; then
5116 NM="$lt_cv_path_NM"
5117 else
5118 # Didn't find any BSD compatible name lister, look for dumpbin.
5119 if test -n "$DUMPBIN"; then :
5120 # Let the user override the test.
5121 else
5122 if test -n "$ac_tool_prefix"; then
5123 for ac_prog in dumpbin "link -dump"
5125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$DUMPBIN"; then
5133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 DUMPBIN=$ac_cv_prog_DUMPBIN
5153 if test -n "$DUMPBIN"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5155 $as_echo "$DUMPBIN" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$DUMPBIN" && break
5163 done
5165 if test -z "$DUMPBIN"; then
5166 ac_ct_DUMPBIN=$DUMPBIN
5167 for ac_prog in dumpbin "link -dump"
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_DUMPBIN"; then
5177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5197 if test -n "$ac_ct_DUMPBIN"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5199 $as_echo "$ac_ct_DUMPBIN" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 test -n "$ac_ct_DUMPBIN" && break
5207 done
5209 if test "x$ac_ct_DUMPBIN" = x; then
5210 DUMPBIN=":"
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213 yes:)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5217 esac
5218 DUMPBIN=$ac_ct_DUMPBIN
5222 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5223 *COFF*)
5224 DUMPBIN="$DUMPBIN -symbols"
5227 DUMPBIN=:
5229 esac
5232 if test "$DUMPBIN" != ":"; then
5233 NM="$DUMPBIN"
5236 test -z "$NM" && NM=nm
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5245 if test "${lt_cv_nm_interface+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 lt_cv_nm_interface="BSD nm"
5249 echo "int some_variable = 0;" > conftest.$ac_ext
5250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5251 (eval "$ac_compile" 2>conftest.err)
5252 cat conftest.err >&5
5253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5257 cat conftest.out >&5
5258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5259 lt_cv_nm_interface="MS dumpbin"
5261 rm -f conftest*
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5264 $as_echo "$lt_cv_nm_interface" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5267 $as_echo_n "checking whether ln -s works... " >&6; }
5268 LN_S=$as_ln_s
5269 if test "$LN_S" = "ln -s"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271 $as_echo "yes" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5274 $as_echo "no, using $LN_S" >&6; }
5277 # find the maximum length of command line arguments
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5279 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5280 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5284 teststring="ABCD"
5286 case $build_os in
5287 msdosdjgpp*)
5288 # On DJGPP, this test can blow up pretty badly due to problems in libc
5289 # (any single argument exceeding 2000 bytes causes a buffer overrun
5290 # during glob expansion). Even if it were fixed, the result of this
5291 # check would be larger than it should be.
5292 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5295 gnu*)
5296 # Under GNU Hurd, this test is not required because there is
5297 # no limit to the length of command line arguments.
5298 # Libtool will interpret -1 as no limit whatsoever
5299 lt_cv_sys_max_cmd_len=-1;
5302 cygwin* | mingw* | cegcc*)
5303 # On Win9x/ME, this test blows up -- it succeeds, but takes
5304 # about 5 minutes as the teststring grows exponentially.
5305 # Worse, since 9x/ME are not pre-emptively multitasking,
5306 # you end up with a "frozen" computer, even though with patience
5307 # the test eventually succeeds (with a max line length of 256k).
5308 # Instead, let's just punt: use the minimum linelength reported by
5309 # all of the supported platforms: 8192 (on NT/2K/XP).
5310 lt_cv_sys_max_cmd_len=8192;
5313 mint*)
5314 # On MiNT this can take a long time and run out of memory.
5315 lt_cv_sys_max_cmd_len=8192;
5318 amigaos*)
5319 # On AmigaOS with pdksh, this test takes hours, literally.
5320 # So we just punt and use a minimum line length of 8192.
5321 lt_cv_sys_max_cmd_len=8192;
5324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5325 # This has been around since 386BSD, at least. Likely further.
5326 if test -x /sbin/sysctl; then
5327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5328 elif test -x /usr/sbin/sysctl; then
5329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5330 else
5331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5333 # And add a safety zone
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338 interix*)
5339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5340 lt_cv_sys_max_cmd_len=196608
5343 osf*)
5344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5346 # nice to cause kernel panics so lets avoid the loop below.
5347 # First set a reasonable default.
5348 lt_cv_sys_max_cmd_len=16384
5350 if test -x /sbin/sysconfig; then
5351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5353 esac
5356 sco3.2v5*)
5357 lt_cv_sys_max_cmd_len=102400
5359 sysv5* | sco5v6* | sysv4.2uw2*)
5360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5361 if test -n "$kargmax"; then
5362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5363 else
5364 lt_cv_sys_max_cmd_len=32768
5368 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5369 if test -n "$lt_cv_sys_max_cmd_len"; then
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372 else
5373 # Make teststring a little bigger before we do anything with it.
5374 # a 1K string should be a reasonable start.
5375 for i in 1 2 3 4 5 6 7 8 ; do
5376 teststring=$teststring$teststring
5377 done
5378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5379 # If test is not a shell built-in, we'll probably end up computing a
5380 # maximum length that is only half of the actual maximum length, but
5381 # we can't tell.
5382 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5383 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5384 test $i != 17 # 1/2 MB should be enough
5386 i=`expr $i + 1`
5387 teststring=$teststring$teststring
5388 done
5389 # Only check the string length outside the loop.
5390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5391 teststring=
5392 # Add a significant safety factor because C++ compilers can tack on
5393 # massive amounts of additional arguments before passing them to the
5394 # linker. It appears as though 1/2 is a usable value.
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5398 esac
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5404 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5407 $as_echo "none" >&6; }
5409 max_cmd_len=$lt_cv_sys_max_cmd_len
5416 : ${CP="cp -f"}
5417 : ${MV="mv -f"}
5418 : ${RM="rm -f"}
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5421 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5422 # Try some XSI features
5423 xsi_shell=no
5424 ( _lt_dummy="a/b/c"
5425 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5426 = c,a/b,, \
5427 && eval 'test $(( 1 + 1 )) -eq 2 \
5428 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5429 && xsi_shell=yes
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5431 $as_echo "$xsi_shell" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5435 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5436 lt_shell_append=no
5437 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5438 >/dev/null 2>&1 \
5439 && lt_shell_append=yes
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5441 $as_echo "$lt_shell_append" >&6; }
5444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445 lt_unset=unset
5446 else
5447 lt_unset=false
5454 # test EBCDIC or ASCII
5455 case `echo X|tr X '\101'` in
5456 A) # ASCII based system
5457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5458 lt_SP2NL='tr \040 \012'
5459 lt_NL2SP='tr \015\012 \040\040'
5461 *) # EBCDIC based system
5462 lt_SP2NL='tr \100 \n'
5463 lt_NL2SP='tr \r\n \100\100'
5465 esac
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5476 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5477 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 lt_cv_ld_reload_flag='-r'
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5483 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5484 reload_flag=$lt_cv_ld_reload_flag
5485 case $reload_flag in
5486 "" | " "*) ;;
5487 *) reload_flag=" $reload_flag" ;;
5488 esac
5489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490 case $host_os in
5491 darwin*)
5492 if test "$GCC" = yes; then
5493 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5494 else
5495 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5498 esac
5508 if test -n "$ac_tool_prefix"; then
5509 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5510 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$OBJDUMP"; then
5517 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5536 OBJDUMP=$ac_cv_prog_OBJDUMP
5537 if test -n "$OBJDUMP"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5539 $as_echo "$OBJDUMP" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5547 if test -z "$ac_cv_prog_OBJDUMP"; then
5548 ac_ct_OBJDUMP=$OBJDUMP
5549 # Extract the first word of "objdump", so it can be a program name with args.
5550 set dummy objdump; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$ac_ct_OBJDUMP"; then
5557 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5570 done
5571 done
5572 IFS=$as_save_IFS
5576 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5577 if test -n "$ac_ct_OBJDUMP"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5579 $as_echo "$ac_ct_OBJDUMP" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5585 if test "x$ac_ct_OBJDUMP" = x; then
5586 OBJDUMP="false"
5587 else
5588 case $cross_compiling:$ac_tool_warned in
5589 yes:)
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5593 esac
5594 OBJDUMP=$ac_ct_OBJDUMP
5596 else
5597 OBJDUMP="$ac_cv_prog_OBJDUMP"
5600 test -z "$OBJDUMP" && OBJDUMP=objdump
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5611 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5612 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 lt_cv_file_magic_cmd='$MAGIC_CMD'
5616 lt_cv_file_magic_test_file=
5617 lt_cv_deplibs_check_method='unknown'
5618 # Need to set the preceding variable on all platforms that support
5619 # interlibrary dependencies.
5620 # 'none' -- dependencies not supported.
5621 # `unknown' -- same as none, but documents that we really don't know.
5622 # 'pass_all' -- all dependencies passed with no checks.
5623 # 'test_compile' -- check by making test program.
5624 # 'file_magic [[regex]]' -- check by looking for files in library path
5625 # which responds to the $file_magic_cmd with a given extended regex.
5626 # If you have `file' or equivalent on your system and you're not sure
5627 # whether `pass_all' will *always* work, you probably want this one.
5629 case $host_os in
5630 aix[4-9]*)
5631 lt_cv_deplibs_check_method=pass_all
5634 beos*)
5635 lt_cv_deplibs_check_method=pass_all
5638 bsdi[45]*)
5639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5640 lt_cv_file_magic_cmd='/usr/bin/file -L'
5641 lt_cv_file_magic_test_file=/shlib/libc.so
5644 cygwin*)
5645 # func_win32_libid is a shell function defined in ltmain.sh
5646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5647 lt_cv_file_magic_cmd='func_win32_libid'
5650 mingw* | pw32*)
5651 # Base MSYS/MinGW do not provide the 'file' command needed by
5652 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5653 # unless we find 'file', for example because we are cross-compiling.
5654 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5655 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5656 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5657 lt_cv_file_magic_cmd='func_win32_libid'
5658 else
5659 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5660 lt_cv_file_magic_cmd='$OBJDUMP -f'
5664 cegcc*)
5665 # use the weaker test based on 'objdump'. See mingw*.
5666 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5667 lt_cv_file_magic_cmd='$OBJDUMP -f'
5670 darwin* | rhapsody*)
5671 lt_cv_deplibs_check_method=pass_all
5674 freebsd* | dragonfly*)
5675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5676 case $host_cpu in
5677 i*86 )
5678 # Not sure whether the presence of OpenBSD here was a mistake.
5679 # Let's accept both of them until this is cleared up.
5680 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5681 lt_cv_file_magic_cmd=/usr/bin/file
5682 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5684 esac
5685 else
5686 lt_cv_deplibs_check_method=pass_all
5690 gnu*)
5691 lt_cv_deplibs_check_method=pass_all
5694 haiku*)
5695 lt_cv_deplibs_check_method=pass_all
5698 hpux10.20* | hpux11*)
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 case $host_cpu in
5701 ia64*)
5702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5703 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5705 hppa*64*)
5706 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]'
5707 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5711 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5713 esac
5716 interix[3-9]*)
5717 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5721 irix5* | irix6* | nonstopux*)
5722 case $LD in
5723 *-32|*"-32 ") libmagic=32-bit;;
5724 *-n32|*"-n32 ") libmagic=N32;;
5725 *-64|*"-64 ") libmagic=64-bit;;
5726 *) libmagic=never-match;;
5727 esac
5728 lt_cv_deplibs_check_method=pass_all
5731 # This must be Linux ELF.
5732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5733 lt_cv_deplibs_check_method=pass_all
5736 netbsd*)
5737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739 else
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5744 newos6*)
5745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5750 *nto* | *qnx*)
5751 lt_cv_deplibs_check_method=pass_all
5754 openbsd*)
5755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5757 else
5758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5762 osf3* | osf4* | osf5*)
5763 lt_cv_deplibs_check_method=pass_all
5766 rdos*)
5767 lt_cv_deplibs_check_method=pass_all
5770 solaris*)
5771 lt_cv_deplibs_check_method=pass_all
5774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5775 lt_cv_deplibs_check_method=pass_all
5778 sysv4 | sysv4.3*)
5779 case $host_vendor in
5780 motorola)
5781 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]'
5782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5784 ncr)
5785 lt_cv_deplibs_check_method=pass_all
5787 sequent)
5788 lt_cv_file_magic_cmd='/bin/file'
5789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5791 sni)
5792 lt_cv_file_magic_cmd='/bin/file'
5793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5794 lt_cv_file_magic_test_file=/lib/libc.so
5796 siemens)
5797 lt_cv_deplibs_check_method=pass_all
5800 lt_cv_deplibs_check_method=pass_all
5802 esac
5805 tpf*)
5806 lt_cv_deplibs_check_method=pass_all
5808 esac
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5812 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5813 file_magic_cmd=$lt_cv_file_magic_cmd
5814 deplibs_check_method=$lt_cv_deplibs_check_method
5815 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ar; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_AR+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -n "$AR"; then
5837 ac_cv_prog_AR="$AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_AR="${ac_tool_prefix}ar"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5850 done
5851 done
5852 IFS=$as_save_IFS
5856 AR=$ac_cv_prog_AR
5857 if test -n "$AR"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5859 $as_echo "$AR" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5867 if test -z "$ac_cv_prog_AR"; then
5868 ac_ct_AR=$AR
5869 # Extract the first word of "ar", so it can be a program name with args.
5870 set dummy ar; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$ac_ct_AR"; then
5877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_ac_ct_AR="ar"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5890 done
5891 done
5892 IFS=$as_save_IFS
5896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5897 if test -n "$ac_ct_AR"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5899 $as_echo "$ac_ct_AR" >&6; }
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5905 if test "x$ac_ct_AR" = x; then
5906 AR="false"
5907 else
5908 case $cross_compiling:$ac_tool_warned in
5909 yes:)
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5913 esac
5914 AR=$ac_ct_AR
5916 else
5917 AR="$ac_cv_prog_AR"
5920 test -z "$AR" && AR=ar
5921 test -z "$AR_FLAGS" && AR_FLAGS=cru
5933 if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}strip; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_STRIP+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$STRIP"; then
5942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 STRIP=$ac_cv_prog_STRIP
5962 if test -n "$STRIP"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5964 $as_echo "$STRIP" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5972 if test -z "$ac_cv_prog_STRIP"; then
5973 ac_ct_STRIP=$STRIP
5974 # Extract the first word of "strip", so it can be a program name with args.
5975 set dummy strip; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$ac_ct_STRIP"; then
5982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_ac_ct_STRIP="strip"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5995 done
5996 done
5997 IFS=$as_save_IFS
6001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6002 if test -n "$ac_ct_STRIP"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6004 $as_echo "$ac_ct_STRIP" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6010 if test "x$ac_ct_STRIP" = x; then
6011 STRIP=":"
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014 yes:)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017 ac_tool_warned=yes ;;
6018 esac
6019 STRIP=$ac_ct_STRIP
6021 else
6022 STRIP="$ac_cv_prog_STRIP"
6025 test -z "$STRIP" && STRIP=:
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$RANLIB"; then
6041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 RANLIB=$ac_cv_prog_RANLIB
6061 if test -n "$RANLIB"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6063 $as_echo "$RANLIB" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6071 if test -z "$ac_cv_prog_RANLIB"; then
6072 ac_ct_RANLIB=$RANLIB
6073 # Extract the first word of "ranlib", so it can be a program name with args.
6074 set dummy ranlib; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$ac_ct_RANLIB"; then
6081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_RANLIB="ranlib"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6094 done
6095 done
6096 IFS=$as_save_IFS
6100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101 if test -n "$ac_ct_RANLIB"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6103 $as_echo "$ac_ct_RANLIB" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6109 if test "x$ac_ct_RANLIB" = x; then
6110 RANLIB=":"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118 RANLIB=$ac_ct_RANLIB
6120 else
6121 RANLIB="$ac_cv_prog_RANLIB"
6124 test -z "$RANLIB" && RANLIB=:
6131 # Determine commands to create old-style static archives.
6132 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6133 old_postinstall_cmds='chmod 644 $oldlib'
6134 old_postuninstall_cmds=
6136 if test -n "$RANLIB"; then
6137 case $host_os in
6138 openbsd*)
6139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6144 esac
6145 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6148 case $host_os in
6149 darwin*)
6150 lock_old_archive_extraction=yes ;;
6152 lock_old_archive_extraction=no ;;
6153 esac
6193 # If no C compiler was specified, use CC.
6194 LTCC=${LTCC-"$CC"}
6196 # If no C compiler flags were specified, use CFLAGS.
6197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6199 # Allow CC to be a program name with arguments.
6200 compiler=$CC
6203 # Check for command to grab the raw symbol name followed by C symbol from nm.
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6205 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6206 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6210 # These are sane defaults that work on at least a few old systems.
6211 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6213 # Character class describing NM global symbol codes.
6214 symcode='[BCDEGRST]'
6216 # Regexp to match symbols that can be accessed directly from C.
6217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6219 # Define system-specific variables.
6220 case $host_os in
6221 aix*)
6222 symcode='[BCDT]'
6224 cygwin* | mingw* | pw32* | cegcc*)
6225 symcode='[ABCDGISTW]'
6227 hpux*)
6228 if test "$host_cpu" = ia64; then
6229 symcode='[ABCDEGRST]'
6232 irix* | nonstopux*)
6233 symcode='[BCDEGRST]'
6235 osf*)
6236 symcode='[BCDEGQRST]'
6238 solaris*)
6239 symcode='[BDRT]'
6241 sco3.2v5*)
6242 symcode='[DT]'
6244 sysv4.2uw2*)
6245 symcode='[DT]'
6247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6248 symcode='[ABDT]'
6250 sysv4)
6251 symcode='[DFNSTU]'
6253 esac
6255 # If we're using GNU nm, then use its standard symbol codes.
6256 case `$NM -V 2>&1` in
6257 *GNU* | *'with BFD'*)
6258 symcode='[ABCDGIRSTW]' ;;
6259 esac
6261 # Transform an extracted symbol line into a proper C declaration.
6262 # Some systems (esp. on ia64) link data and code symbols differently,
6263 # so use this general approach.
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6266 # Transform an extracted symbol line into symbol name and symbol address
6267 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6268 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'"
6270 # Handle CRLF in mingw tool chain
6271 opt_cr=
6272 case $build_os in
6273 mingw*)
6274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6276 esac
6278 # Try without a prefix underscore, then with it.
6279 for ac_symprfx in "" "_"; do
6281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6282 symxfrm="\\1 $ac_symprfx\\2 \\2"
6284 # Write the raw and C identifiers.
6285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6286 # Fake it for dumpbin and say T for any non-static function
6287 # and D for any global variable.
6288 # Also find C++ and __fastcall symbols from MSVC++,
6289 # which start with @ or ?.
6290 lt_cv_sys_global_symbol_pipe="$AWK '"\
6291 " {last_section=section; section=\$ 3};"\
6292 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6293 " \$ 0!~/External *\|/{next};"\
6294 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6295 " {if(hide[section]) next};"\
6296 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6297 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6298 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6299 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6300 " ' prfx=^$ac_symprfx"
6301 else
6302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6305 # Check to see that the pipe works correctly.
6306 pipe_works=no
6308 rm -f conftest*
6309 cat > conftest.$ac_ext <<_LT_EOF
6310 #ifdef __cplusplus
6311 extern "C" {
6312 #endif
6313 char nm_test_var;
6314 void nm_test_func(void);
6315 void nm_test_func(void){}
6316 #ifdef __cplusplus
6318 #endif
6319 int main(){nm_test_var='a';nm_test_func();return(0);}
6320 _LT_EOF
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 # Now try to grab the symbols.
6328 nlist=conftest.nm
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6330 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; } && test -s "$nlist"; then
6334 # Try sorting and uniquifying the output.
6335 if sort "$nlist" | uniq > "$nlist"T; then
6336 mv -f "$nlist"T "$nlist"
6337 else
6338 rm -f "$nlist"T
6341 # Make sure that we snagged all the symbols we need.
6342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6344 cat <<_LT_EOF > conftest.$ac_ext
6345 #ifdef __cplusplus
6346 extern "C" {
6347 #endif
6349 _LT_EOF
6350 # Now generate the symbol file.
6351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6353 cat <<_LT_EOF >> conftest.$ac_ext
6355 /* The mapping between symbol names and symbols. */
6356 const struct {
6357 const char *name;
6358 void *address;
6360 lt__PROGRAM__LTX_preloaded_symbols[] =
6362 { "@PROGRAM@", (void *) 0 },
6363 _LT_EOF
6364 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6365 cat <<\_LT_EOF >> conftest.$ac_ext
6366 {0, (void *) 0}
6369 /* This works around a problem in FreeBSD linker */
6370 #ifdef FREEBSD_WORKAROUND
6371 static const void *lt_preloaded_setup() {
6372 return lt__PROGRAM__LTX_preloaded_symbols;
6374 #endif
6376 #ifdef __cplusplus
6378 #endif
6379 _LT_EOF
6380 # Now try linking the two files.
6381 mv conftest.$ac_objext conftstm.$ac_objext
6382 lt_save_LIBS="$LIBS"
6383 lt_save_CFLAGS="$CFLAGS"
6384 LIBS="conftstm.$ac_objext"
6385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6387 (eval $ac_link) 2>&5
6388 ac_status=$?
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6391 pipe_works=yes
6393 LIBS="$lt_save_LIBS"
6394 CFLAGS="$lt_save_CFLAGS"
6395 else
6396 echo "cannot find nm_test_func in $nlist" >&5
6398 else
6399 echo "cannot find nm_test_var in $nlist" >&5
6401 else
6402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6404 else
6405 echo "$progname: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 rm -rf conftest* conftst*
6410 # Do not use the global_symbol_pipe unless it works.
6411 if test "$pipe_works" = yes; then
6412 break
6413 else
6414 lt_cv_sys_global_symbol_pipe=
6416 done
6420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 lt_cv_sys_global_symbol_to_cdecl=
6423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6425 $as_echo "failed" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6428 $as_echo "ok" >&6; }
6453 # Check whether --enable-libtool-lock was given.
6454 if test "${enable_libtool_lock+set}" = set; then :
6455 enableval=$enable_libtool_lock;
6458 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6460 # Some flags need to be propagated to the compiler or linker for good
6461 # libtool support.
6462 case $host in
6463 ia64-*-hpux*)
6464 # Find out which ABI we are using.
6465 echo 'int i;' > conftest.$ac_ext
6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467 (eval $ac_compile) 2>&5
6468 ac_status=$?
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; then
6471 case `/usr/bin/file conftest.$ac_objext` in
6472 *ELF-32*)
6473 HPUX_IA64_MODE="32"
6475 *ELF-64*)
6476 HPUX_IA64_MODE="64"
6478 esac
6480 rm -rf conftest*
6482 *-*-irix6*)
6483 # Find out which ABI we are using.
6484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; }; then
6490 if test "$lt_cv_prog_gnu_ld" = yes; then
6491 case `/usr/bin/file conftest.$ac_objext` in
6492 *32-bit*)
6493 LD="${LD-ld} -melf32bsmip"
6495 *N32*)
6496 LD="${LD-ld} -melf32bmipn32"
6498 *64-bit*)
6499 LD="${LD-ld} -melf64bmip"
6501 esac
6502 else
6503 case `/usr/bin/file conftest.$ac_objext` in
6504 *32-bit*)
6505 LD="${LD-ld} -32"
6507 *N32*)
6508 LD="${LD-ld} -n32"
6510 *64-bit*)
6511 LD="${LD-ld} -64"
6513 esac
6516 rm -rf conftest*
6519 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6520 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6521 # Find out which ABI we are using.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.o` in
6529 *32-bit*)
6530 case $host in
6531 x86_64-*kfreebsd*-gnu)
6532 LD="${LD-ld} -m elf_i386_fbsd"
6534 x86_64-*linux*)
6535 case `/usr/bin/file conftest.o` in
6536 *x86-64*)
6537 LD="${LD-ld} -m elf32_x86_64"
6540 LD="${LD-ld} -m elf_i386"
6542 esac
6544 powerpc64le-*linux*)
6545 LD="${LD-ld} -m elf32lppclinux"
6547 powerpc64-*linux*)
6548 LD="${LD-ld} -m elf32ppclinux"
6550 s390x-*linux*)
6551 LD="${LD-ld} -m elf_s390"
6553 sparc64-*linux*)
6554 LD="${LD-ld} -m elf32_sparc"
6556 esac
6558 *64-bit*)
6559 case $host in
6560 x86_64-*kfreebsd*-gnu)
6561 LD="${LD-ld} -m elf_x86_64_fbsd"
6563 x86_64-*linux*)
6564 LD="${LD-ld} -m elf_x86_64"
6566 powerpcle-*linux*)
6567 LD="${LD-ld} -m elf64lppc"
6569 powerpc-*linux*)
6570 LD="${LD-ld} -m elf64ppc"
6572 s390*-*linux*|s390*-*tpf*)
6573 LD="${LD-ld} -m elf64_s390"
6575 sparc*-*linux*)
6576 LD="${LD-ld} -m elf64_sparc"
6578 esac
6580 esac
6582 rm -rf conftest*
6585 *-*-sco3.2v5*)
6586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6587 SAVE_CFLAGS="$CFLAGS"
6588 CFLAGS="$CFLAGS -belf"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6590 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6591 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6604 main ()
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 lt_cv_cc_needs_belf=yes
6613 else
6614 lt_cv_cc_needs_belf=no
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 ac_ext=c
6619 ac_cpp='$CPP $CPPFLAGS'
6620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6626 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6627 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6629 CFLAGS="$SAVE_CFLAGS"
6632 sparc*-*solaris*)
6633 # Find out which ABI we are using.
6634 echo 'int i;' > conftest.$ac_ext
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }; then
6640 case `/usr/bin/file conftest.o` in
6641 *64-bit*)
6642 case $lt_cv_prog_gnu_ld in
6643 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6646 LD="${LD-ld} -64"
6649 esac
6651 esac
6653 rm -rf conftest*
6655 esac
6657 need_locks="$enable_libtool_lock"
6660 case $host_os in
6661 rhapsody* | darwin*)
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$DSYMUTIL"; then
6671 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6686 IFS=$as_save_IFS
6690 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6691 if test -n "$DSYMUTIL"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6693 $as_echo "$DSYMUTIL" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6701 if test -z "$ac_cv_prog_DSYMUTIL"; then
6702 ac_ct_DSYMUTIL=$DSYMUTIL
6703 # Extract the first word of "dsymutil", so it can be a program name with args.
6704 set dummy dsymutil; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$ac_ct_DSYMUTIL"; then
6711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6724 done
6725 done
6726 IFS=$as_save_IFS
6730 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6731 if test -n "$ac_ct_DSYMUTIL"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6733 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6739 if test "x$ac_ct_DSYMUTIL" = x; then
6740 DSYMUTIL=":"
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743 yes:)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748 DSYMUTIL=$ac_ct_DSYMUTIL
6750 else
6751 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$NMEDIT"; then
6763 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6776 done
6777 done
6778 IFS=$as_save_IFS
6782 NMEDIT=$ac_cv_prog_NMEDIT
6783 if test -n "$NMEDIT"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6785 $as_echo "$NMEDIT" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6793 if test -z "$ac_cv_prog_NMEDIT"; then
6794 ac_ct_NMEDIT=$NMEDIT
6795 # Extract the first word of "nmedit", so it can be a program name with args.
6796 set dummy nmedit; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$ac_ct_NMEDIT"; then
6803 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6818 IFS=$as_save_IFS
6822 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6823 if test -n "$ac_ct_NMEDIT"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6825 $as_echo "$ac_ct_NMEDIT" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6831 if test "x$ac_ct_NMEDIT" = x; then
6832 NMEDIT=":"
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840 NMEDIT=$ac_ct_NMEDIT
6842 else
6843 NMEDIT="$ac_cv_prog_NMEDIT"
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_LIPO+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$LIPO"; then
6855 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6874 LIPO=$ac_cv_prog_LIPO
6875 if test -n "$LIPO"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6877 $as_echo "$LIPO" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6885 if test -z "$ac_cv_prog_LIPO"; then
6886 ac_ct_LIPO=$LIPO
6887 # Extract the first word of "lipo", so it can be a program name with args.
6888 set dummy lipo; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$ac_ct_LIPO"; then
6895 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_ac_ct_LIPO="lipo"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6908 done
6909 done
6910 IFS=$as_save_IFS
6914 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6915 if test -n "$ac_ct_LIPO"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6917 $as_echo "$ac_ct_LIPO" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6923 if test "x$ac_ct_LIPO" = x; then
6924 LIPO=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932 LIPO=$ac_ct_LIPO
6934 else
6935 LIPO="$ac_cv_prog_LIPO"
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}otool; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$OTOOL"; then
6947 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 OTOOL=$ac_cv_prog_OTOOL
6967 if test -n "$OTOOL"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6969 $as_echo "$OTOOL" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_OTOOL"; then
6978 ac_ct_OTOOL=$OTOOL
6979 # Extract the first word of "otool", so it can be a program name with args.
6980 set dummy otool; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_OTOOL"; then
6987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_OTOOL="otool"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7007 if test -n "$ac_ct_OTOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7009 $as_echo "$ac_ct_OTOOL" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_OTOOL" = x; then
7016 OTOOL=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 OTOOL=$ac_ct_OTOOL
7026 else
7027 OTOOL="$ac_cv_prog_OTOOL"
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$OTOOL64"; then
7039 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7052 done
7053 done
7054 IFS=$as_save_IFS
7058 OTOOL64=$ac_cv_prog_OTOOL64
7059 if test -n "$OTOOL64"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7061 $as_echo "$OTOOL64" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7069 if test -z "$ac_cv_prog_OTOOL64"; then
7070 ac_ct_OTOOL64=$OTOOL64
7071 # Extract the first word of "otool64", so it can be a program name with args.
7072 set dummy otool64; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -n "$ac_ct_OTOOL64"; then
7079 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_ac_ct_OTOOL64="otool64"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7098 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7099 if test -n "$ac_ct_OTOOL64"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7101 $as_echo "$ac_ct_OTOOL64" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7107 if test "x$ac_ct_OTOOL64" = x; then
7108 OTOOL64=":"
7109 else
7110 case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned=yes ;;
7115 esac
7116 OTOOL64=$ac_ct_OTOOL64
7118 else
7119 OTOOL64="$ac_cv_prog_OTOOL64"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7149 $as_echo_n "checking for -single_module linker flag... " >&6; }
7150 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 lt_cv_apple_cc_single_mod=no
7154 if test -z "${LT_MULTI_MODULE}"; then
7155 # By default we will add the -single_module flag. You can override
7156 # by either setting the environment variable LT_MULTI_MODULE
7157 # non-empty at configure time, or by adding -multi_module to the
7158 # link flags.
7159 rm -rf libconftest.dylib*
7160 echo "int foo(void){return 1;}" > conftest.c
7161 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7162 -dynamiclib -Wl,-single_module conftest.c" >&5
7163 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7164 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7165 _lt_result=$?
7166 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7167 lt_cv_apple_cc_single_mod=yes
7168 else
7169 cat conftest.err >&5
7171 rm -rf libconftest.dylib*
7172 rm -f conftest.*
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7176 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7178 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7179 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 lt_cv_ld_exported_symbols_list=no
7183 save_LDFLAGS=$LDFLAGS
7184 echo "_main" > conftest.sym
7185 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7190 main ()
7194 return 0;
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 lt_cv_ld_exported_symbols_list=yes
7199 else
7200 lt_cv_ld_exported_symbols_list=no
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LDFLAGS="$save_LDFLAGS"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7208 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7210 $as_echo_n "checking for -force_load linker flag... " >&6; }
7211 if test "${lt_cv_ld_force_load+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 lt_cv_ld_force_load=no
7215 cat > conftest.c << _LT_EOF
7216 int forced_loaded() { return 2;}
7217 _LT_EOF
7218 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7219 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7220 echo "$AR cru libconftest.a conftest.o" >&5
7221 $AR cru libconftest.a conftest.o 2>&5
7222 cat > conftest.c << _LT_EOF
7223 int main() { return 0;}
7224 _LT_EOF
7225 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7226 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7227 _lt_result=$?
7228 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7229 lt_cv_ld_force_load=yes
7230 else
7231 cat conftest.err >&5
7233 rm -f conftest.err libconftest.a conftest conftest.c
7234 rm -rf conftest.dSYM
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7238 $as_echo "$lt_cv_ld_force_load" >&6; }
7239 case $host_os in
7240 rhapsody* | darwin1.[012])
7241 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7242 darwin1.*)
7243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7244 darwin*) # darwin 5.x on
7245 # if running on 10.5 or later, the deployment target defaults
7246 # to the OS version, if on x86, and 10.4, the deployment
7247 # target defaults to 10.4. Don't you love it?
7248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7249 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7251 10.[012][,.]*)
7252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7253 10.*)
7254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7255 esac
7257 esac
7258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7259 _lt_dar_single_mod='$single_module'
7261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7262 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7263 else
7264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7266 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7267 _lt_dsymutil='~$DSYMUTIL $lib || :'
7268 else
7269 _lt_dsymutil=
7272 esac
7274 ac_ext=c
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7280 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7281 # On Suns, sometimes $CPP names a directory.
7282 if test -n "$CPP" && test -d "$CPP"; then
7283 CPP=
7285 if test -z "$CPP"; then
7286 if test "${ac_cv_prog_CPP+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 # Double quotes because CPP needs to be expanded
7290 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7292 ac_preproc_ok=false
7293 for ac_c_preproc_warn_flag in '' yes
7295 # Use a header file that comes with gcc, so configuring glibc
7296 # with a fresh cross-compiler works.
7297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7298 # <limits.h> exists even on freestanding compilers.
7299 # On the NeXT, cc -E runs the code through the compiler's parser,
7300 # not just through cpp. "Syntax error" is here to catch this case.
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #ifdef __STDC__
7304 # include <limits.h>
7305 #else
7306 # include <assert.h>
7307 #endif
7308 Syntax error
7309 _ACEOF
7310 if ac_fn_c_try_cpp "$LINENO"; then :
7312 else
7313 # Broken: fails on valid input.
7314 continue
7316 rm -f conftest.err conftest.$ac_ext
7318 # OK, works on sane cases. Now check whether nonexistent headers
7319 # can be detected and how.
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <ac_nonexistent.h>
7323 _ACEOF
7324 if ac_fn_c_try_cpp "$LINENO"; then :
7325 # Broken: success on invalid input.
7326 continue
7327 else
7328 # Passes both tests.
7329 ac_preproc_ok=:
7330 break
7332 rm -f conftest.err conftest.$ac_ext
7334 done
7335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7336 rm -f conftest.err conftest.$ac_ext
7337 if $ac_preproc_ok; then :
7338 break
7341 done
7342 ac_cv_prog_CPP=$CPP
7345 CPP=$ac_cv_prog_CPP
7346 else
7347 ac_cv_prog_CPP=$CPP
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7350 $as_echo "$CPP" >&6; }
7351 ac_preproc_ok=false
7352 for ac_c_preproc_warn_flag in '' yes
7354 # Use a header file that comes with gcc, so configuring glibc
7355 # with a fresh cross-compiler works.
7356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7357 # <limits.h> exists even on freestanding compilers.
7358 # On the NeXT, cc -E runs the code through the compiler's parser,
7359 # not just through cpp. "Syntax error" is here to catch this case.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 #ifdef __STDC__
7363 # include <limits.h>
7364 #else
7365 # include <assert.h>
7366 #endif
7367 Syntax error
7368 _ACEOF
7369 if ac_fn_c_try_cpp "$LINENO"; then :
7371 else
7372 # Broken: fails on valid input.
7373 continue
7375 rm -f conftest.err conftest.$ac_ext
7377 # OK, works on sane cases. Now check whether nonexistent headers
7378 # can be detected and how.
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 #include <ac_nonexistent.h>
7382 _ACEOF
7383 if ac_fn_c_try_cpp "$LINENO"; then :
7384 # Broken: success on invalid input.
7385 continue
7386 else
7387 # Passes both tests.
7388 ac_preproc_ok=:
7389 break
7391 rm -f conftest.err conftest.$ac_ext
7393 done
7394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7395 rm -f conftest.err conftest.$ac_ext
7396 if $ac_preproc_ok; then :
7398 else
7399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7401 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7402 See \`config.log' for more details." "$LINENO" 5; }
7405 ac_ext=c
7406 ac_cpp='$CPP $CPPFLAGS'
7407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7413 $as_echo_n "checking for ANSI C header files... " >&6; }
7414 if test "${ac_cv_header_stdc+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 #include <stdlib.h>
7420 #include <stdarg.h>
7421 #include <string.h>
7422 #include <float.h>
7425 main ()
7429 return 0;
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_header_stdc=yes
7434 else
7435 ac_cv_header_stdc=no
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 if test $ac_cv_header_stdc = yes; then
7440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <string.h>
7445 _ACEOF
7446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7447 $EGREP "memchr" >/dev/null 2>&1; then :
7449 else
7450 ac_cv_header_stdc=no
7452 rm -f conftest*
7456 if test $ac_cv_header_stdc = yes; then
7457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <stdlib.h>
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "free" >/dev/null 2>&1; then :
7466 else
7467 ac_cv_header_stdc=no
7469 rm -f conftest*
7473 if test $ac_cv_header_stdc = yes; then
7474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7475 if test "$cross_compiling" = yes; then :
7477 else
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #include <ctype.h>
7481 #include <stdlib.h>
7482 #if ((' ' & 0x0FF) == 0x020)
7483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7485 #else
7486 # define ISLOWER(c) \
7487 (('a' <= (c) && (c) <= 'i') \
7488 || ('j' <= (c) && (c) <= 'r') \
7489 || ('s' <= (c) && (c) <= 'z'))
7490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7491 #endif
7493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7495 main ()
7497 int i;
7498 for (i = 0; i < 256; i++)
7499 if (XOR (islower (i), ISLOWER (i))
7500 || toupper (i) != TOUPPER (i))
7501 return 2;
7502 return 0;
7504 _ACEOF
7505 if ac_fn_c_try_run "$LINENO"; then :
7507 else
7508 ac_cv_header_stdc=no
7510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7511 conftest.$ac_objext conftest.beam conftest.$ac_ext
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7517 $as_echo "$ac_cv_header_stdc" >&6; }
7518 if test $ac_cv_header_stdc = yes; then
7520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7526 inttypes.h stdint.h unistd.h
7527 do :
7528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7531 eval as_val=\$$as_ac_Header
7532 if test "x$as_val" = x""yes; then :
7533 cat >>confdefs.h <<_ACEOF
7534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535 _ACEOF
7539 done
7542 for ac_header in dlfcn.h
7543 do :
7544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7546 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7547 cat >>confdefs.h <<_ACEOF
7548 #define HAVE_DLFCN_H 1
7549 _ACEOF
7553 done
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if test "${ac_cv_prog_GOC+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$GOC"; then
7564 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7577 done
7578 done
7579 IFS=$as_save_IFS
7583 GOC=$ac_cv_prog_GOC
7584 if test -n "$GOC"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7586 $as_echo "$GOC" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7594 if test -z "$ac_cv_prog_GOC"; then
7595 ac_ct_GOC=$GOC
7596 # Extract the first word of "gccgo", so it can be a program name with args.
7597 set dummy gccgo; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$ac_ct_GOC"; then
7604 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_ac_ct_GOC="gccgo"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7617 done
7618 done
7619 IFS=$as_save_IFS
7623 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7624 if test -n "$ac_ct_GOC"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7626 $as_echo "$ac_ct_GOC" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$ac_ct_GOC" = x; then
7633 GOC=""
7634 else
7635 case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641 GOC=$ac_ct_GOC
7643 else
7644 GOC="$ac_cv_prog_GOC"
7652 # Set options
7657 enable_win32_dll=no
7660 # Check whether --enable-shared was given.
7661 if test "${enable_shared+set}" = set; then :
7662 enableval=$enable_shared; p=${PACKAGE-default}
7663 case $enableval in
7664 yes) enable_shared=yes ;;
7665 no) enable_shared=no ;;
7667 enable_shared=no
7668 # Look at the argument we got. We use all the common list separators.
7669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7670 for pkg in $enableval; do
7671 IFS="$lt_save_ifs"
7672 if test "X$pkg" = "X$p"; then
7673 enable_shared=yes
7675 done
7676 IFS="$lt_save_ifs"
7678 esac
7679 else
7680 enable_shared=yes
7691 # Check whether --enable-static was given.
7692 if test "${enable_static+set}" = set; then :
7693 enableval=$enable_static; p=${PACKAGE-default}
7694 case $enableval in
7695 yes) enable_static=yes ;;
7696 no) enable_static=no ;;
7698 enable_static=no
7699 # Look at the argument we got. We use all the common list separators.
7700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701 for pkg in $enableval; do
7702 IFS="$lt_save_ifs"
7703 if test "X$pkg" = "X$p"; then
7704 enable_static=yes
7706 done
7707 IFS="$lt_save_ifs"
7709 esac
7710 else
7711 enable_static=yes
7723 # Check whether --with-pic was given.
7724 if test "${with_pic+set}" = set; then :
7725 withval=$with_pic; pic_mode="$withval"
7726 else
7727 pic_mode=default
7731 test -z "$pic_mode" && pic_mode=default
7739 # Check whether --enable-fast-install was given.
7740 if test "${enable_fast_install+set}" = set; then :
7741 enableval=$enable_fast_install; p=${PACKAGE-default}
7742 case $enableval in
7743 yes) enable_fast_install=yes ;;
7744 no) enable_fast_install=no ;;
7746 enable_fast_install=no
7747 # Look at the argument we got. We use all the common list separators.
7748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7749 for pkg in $enableval; do
7750 IFS="$lt_save_ifs"
7751 if test "X$pkg" = "X$p"; then
7752 enable_fast_install=yes
7754 done
7755 IFS="$lt_save_ifs"
7757 esac
7758 else
7759 enable_fast_install=yes
7772 # This can be used to rebuild libtool when needed
7773 LIBTOOL_DEPS="$ltmain"
7775 # Always use our own libtool.
7776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7803 test -z "$LN_S" && LN_S="ln -s"
7818 if test -n "${ZSH_VERSION+set}" ; then
7819 setopt NO_GLOB_SUBST
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7823 $as_echo_n "checking for objdir... " >&6; }
7824 if test "${lt_cv_objdir+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 rm -f .libs 2>/dev/null
7828 mkdir .libs 2>/dev/null
7829 if test -d .libs; then
7830 lt_cv_objdir=.libs
7831 else
7832 # MS-DOS does not allow filenames that begin with a dot.
7833 lt_cv_objdir=_libs
7835 rmdir .libs 2>/dev/null
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7838 $as_echo "$lt_cv_objdir" >&6; }
7839 objdir=$lt_cv_objdir
7845 cat >>confdefs.h <<_ACEOF
7846 #define LT_OBJDIR "$lt_cv_objdir/"
7847 _ACEOF
7852 case $host_os in
7853 aix3*)
7854 # AIX sometimes has problems with the GCC collect2 program. For some
7855 # reason, if we set the COLLECT_NAMES environment variable, the problems
7856 # vanish in a puff of smoke.
7857 if test "X${COLLECT_NAMES+set}" != Xset; then
7858 COLLECT_NAMES=
7859 export COLLECT_NAMES
7862 esac
7864 # Global variables:
7865 ofile=libtool
7866 can_build_shared=yes
7868 # All known linkers require a `.a' archive for static linking (except MSVC,
7869 # which needs '.lib').
7870 libext=a
7872 with_gnu_ld="$lt_cv_prog_gnu_ld"
7874 old_CC="$CC"
7875 old_CFLAGS="$CFLAGS"
7877 # Set sane defaults for various variables
7878 test -z "$CC" && CC=cc
7879 test -z "$LTCC" && LTCC=$CC
7880 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7881 test -z "$LD" && LD=ld
7882 test -z "$ac_objext" && ac_objext=o
7884 for cc_temp in $compiler""; do
7885 case $cc_temp in
7886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7888 \-*) ;;
7889 *) break;;
7890 esac
7891 done
7892 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7895 # Only perform the check for file, if the check method requires it
7896 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7897 case $deplibs_check_method in
7898 file_magic*)
7899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7901 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7902 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 case $MAGIC_CMD in
7906 [\\/*] | ?:[\\/]*)
7907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7910 lt_save_MAGIC_CMD="$MAGIC_CMD"
7911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7913 for ac_dir in $ac_dummy; do
7914 IFS="$lt_save_ifs"
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/${ac_tool_prefix}file; then
7917 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7918 if test -n "$file_magic_test_file"; then
7919 case $deplibs_check_method in
7920 "file_magic "*)
7921 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7924 $EGREP "$file_magic_regex" > /dev/null; then
7926 else
7927 cat <<_LT_EOF 1>&2
7929 *** Warning: the command libtool uses to detect shared libraries,
7930 *** $file_magic_cmd, produces output that libtool cannot recognize.
7931 *** The result is that libtool may fail to recognize shared libraries
7932 *** as such. This will affect the creation of libtool libraries that
7933 *** depend on shared libraries, but programs linked with such libtool
7934 *** libraries will work regardless of this problem. Nevertheless, you
7935 *** may want to report the problem to your system manager and/or to
7936 *** bug-libtool@gnu.org
7938 _LT_EOF
7939 fi ;;
7940 esac
7942 break
7944 done
7945 IFS="$lt_save_ifs"
7946 MAGIC_CMD="$lt_save_MAGIC_CMD"
7948 esac
7951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952 if test -n "$MAGIC_CMD"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7954 $as_echo "$MAGIC_CMD" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7964 if test -z "$lt_cv_path_MAGIC_CMD"; then
7965 if test -n "$ac_tool_prefix"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7967 $as_echo_n "checking for file... " >&6; }
7968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 case $MAGIC_CMD in
7972 [\\/*] | ?:[\\/]*)
7973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976 lt_save_MAGIC_CMD="$MAGIC_CMD"
7977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir in $ac_dummy; do
7980 IFS="$lt_save_ifs"
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/file; then
7983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7986 "file_magic "*)
7987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990 $EGREP "$file_magic_regex" > /dev/null; then
7992 else
7993 cat <<_LT_EOF 1>&2
7995 *** Warning: the command libtool uses to detect shared libraries,
7996 *** $file_magic_cmd, produces output that libtool cannot recognize.
7997 *** The result is that libtool may fail to recognize shared libraries
7998 *** as such. This will affect the creation of libtool libraries that
7999 *** depend on shared libraries, but programs linked with such libtool
8000 *** libraries will work regardless of this problem. Nevertheless, you
8001 *** may want to report the problem to your system manager and/or to
8002 *** bug-libtool@gnu.org
8004 _LT_EOF
8005 fi ;;
8006 esac
8008 break
8010 done
8011 IFS="$lt_save_ifs"
8012 MAGIC_CMD="$lt_save_MAGIC_CMD"
8014 esac
8017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018 if test -n "$MAGIC_CMD"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8020 $as_echo "$MAGIC_CMD" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 else
8028 MAGIC_CMD=:
8034 esac
8036 # Use C for the default configuration in the libtool script
8038 lt_save_CC="$CC"
8039 ac_ext=c
8040 ac_cpp='$CPP $CPPFLAGS'
8041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 # Source file extension for C test sources.
8047 ac_ext=c
8049 # Object file extension for compiled C test sources.
8050 objext=o
8051 objext=$objext
8053 # Code to be used in simple compile tests
8054 lt_simple_compile_test_code="int some_variable = 0;"
8056 # Code to be used in simple link tests
8057 lt_simple_link_test_code='int main(){return(0);}'
8065 # If no C compiler was specified, use CC.
8066 LTCC=${LTCC-"$CC"}
8068 # If no C compiler flags were specified, use CFLAGS.
8069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8071 # Allow CC to be a program name with arguments.
8072 compiler=$CC
8074 # Save the default compiler, since it gets overwritten when the other
8075 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8076 compiler_DEFAULT=$CC
8078 # save warnings/boilerplate of simple test code
8079 ac_outfile=conftest.$ac_objext
8080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8082 _lt_compiler_boilerplate=`cat conftest.err`
8083 $RM conftest*
8085 ac_outfile=conftest.$ac_objext
8086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088 _lt_linker_boilerplate=`cat conftest.err`
8089 $RM -r conftest*
8092 ## CAVEAT EMPTOR:
8093 ## There is no encapsulation within the following macros, do not change
8094 ## the running order or otherwise move them around unless you know exactly
8095 ## what you are doing...
8096 if test -n "$compiler"; then
8098 lt_prog_compiler_no_builtin_flag=
8100 if test "$GCC" = yes; then
8101 case $cc_basename in
8102 nvcc*)
8103 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8106 esac
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 lt_cv_prog_compiler_rtti_exceptions=no
8114 ac_outfile=conftest.$ac_objext
8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8116 lt_compiler_flag="-fno-rtti -fno-exceptions"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 # The option is referenced via a variable to avoid confusing sed.
8122 lt_compile=`echo "$ac_compile" | $SED \
8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8125 -e 's:$: $lt_compiler_flag:'`
8126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8127 (eval "$lt_compile" 2>conftest.err)
8128 ac_status=$?
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 if (exit $ac_status) && test -s "$ac_outfile"; then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings other than the usual output.
8134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_rtti_exceptions=yes
8140 $RM conftest*
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8148 else
8159 lt_prog_compiler_wl=
8160 lt_prog_compiler_pic=
8161 lt_prog_compiler_static=
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8164 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8166 if test "$GCC" = yes; then
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_static='-static'
8170 case $host_os in
8171 aix*)
8172 # All AIX code is PIC.
8173 if test "$host_cpu" = ia64; then
8174 # AIX 5 now supports IA64 processor
8175 lt_prog_compiler_static='-Bstatic'
8177 lt_prog_compiler_pic='-fPIC'
8180 amigaos*)
8181 case $host_cpu in
8182 powerpc)
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic='-fPIC'
8186 m68k)
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8189 # like `-m68040'.
8190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8192 esac
8195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8196 # PIC is the default for these OSes.
8199 mingw* | cygwin* | pw32* | os2* | cegcc*)
8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8207 darwin* | rhapsody*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic='-fno-common'
8213 haiku*)
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static=
8219 hpux*)
8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
8223 case $host_cpu in
8224 hppa*64*)
8225 # +Z the default
8228 lt_prog_compiler_pic='-fPIC'
8230 esac
8233 interix[3-9]*)
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8238 msdosdjgpp*)
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared=no
8242 enable_shared=no
8245 *nto* | *qnx*)
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8247 # it will coredump.
8248 lt_prog_compiler_pic='-fPIC -shared'
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 lt_prog_compiler_pic=-Kconform_pic
8258 lt_prog_compiler_pic='-fPIC'
8260 esac
8262 case $cc_basename in
8263 nvcc*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl='-Xlinker '
8265 lt_prog_compiler_pic='-Xcompiler -fPIC'
8267 esac
8268 else
8269 # PORTME Check for flag to pass linker flags through the system compiler.
8270 case $host_os in
8271 aix*)
8272 lt_prog_compiler_wl='-Wl,'
8273 if test "$host_cpu" = ia64; then
8274 # AIX 5 now supports IA64 processor
8275 lt_prog_compiler_static='-Bstatic'
8276 else
8277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8281 mingw* | cygwin* | pw32* | os2* | cegcc*)
8282 # This hack is so that the source file can tell whether it is being
8283 # built for inclusion in a dll (and should export symbols for example).
8284 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 hpux9* | hpux10* | hpux11*)
8288 lt_prog_compiler_wl='-Wl,'
8289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8290 # not for PA HP-UX.
8291 case $host_cpu in
8292 hppa*64*|ia64*)
8293 # +Z the default
8296 lt_prog_compiler_pic='+Z'
8298 esac
8299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8300 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 irix5* | irix6* | nonstopux*)
8304 lt_prog_compiler_wl='-Wl,'
8305 # PIC (with -KPIC) is the default.
8306 lt_prog_compiler_static='-non_shared'
8309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8310 case $cc_basename in
8311 # old Intel for x86_64 which still supported -KPIC.
8312 ecc*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-KPIC'
8315 lt_prog_compiler_static='-static'
8317 # icc used to be incompatible with GCC.
8318 # ICC 10 doesn't accept -KPIC any more.
8319 icc* | ifort*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fPIC'
8322 lt_prog_compiler_static='-static'
8324 # Lahey Fortran 8.1.
8325 lf95*)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='--shared'
8328 lt_prog_compiler_static='--static'
8330 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8331 # Portland Group compilers (*not* the Pentium gcc compiler,
8332 # which looks to be a dead project)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='-fpic'
8335 lt_prog_compiler_static='-Bstatic'
8337 ccc*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # All Alpha code is PIC.
8340 lt_prog_compiler_static='-non_shared'
8342 xl* | bgxl* | bgf* | mpixl*)
8343 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-qpic'
8346 lt_prog_compiler_static='-qstaticlink'
8349 case `$CC -V 2>&1 | sed 5q` in
8350 *Sun\ F* | *Sun*Fortran*)
8351 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8354 lt_prog_compiler_wl=''
8356 *Sun\ C*)
8357 # Sun C 5.9
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8360 lt_prog_compiler_wl='-Wl,'
8362 esac
8364 esac
8367 newsos6)
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8372 *nto* | *qnx*)
8373 # QNX uses GNU C++, but need to define -shared option too, otherwise
8374 # it will coredump.
8375 lt_prog_compiler_pic='-fPIC -shared'
8378 osf3* | osf4* | osf5*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # All OSF/1 code is PIC.
8381 lt_prog_compiler_static='-non_shared'
8384 rdos*)
8385 lt_prog_compiler_static='-non_shared'
8388 solaris*)
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 case $cc_basename in
8392 f77* | f90* | f95*)
8393 lt_prog_compiler_wl='-Qoption ld ';;
8395 lt_prog_compiler_wl='-Wl,';;
8396 esac
8399 sunos4*)
8400 lt_prog_compiler_wl='-Qoption ld '
8401 lt_prog_compiler_pic='-PIC'
8402 lt_prog_compiler_static='-Bstatic'
8405 sysv4 | sysv4.2uw2* | sysv4.3*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8411 sysv4*MP*)
8412 if test -d /usr/nec ;then
8413 lt_prog_compiler_pic='-Kconform_pic'
8414 lt_prog_compiler_static='-Bstatic'
8418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_pic='-KPIC'
8421 lt_prog_compiler_static='-Bstatic'
8424 unicos*)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_can_build_shared=no
8429 uts4*)
8430 lt_prog_compiler_pic='-pic'
8431 lt_prog_compiler_static='-Bstatic'
8435 lt_prog_compiler_can_build_shared=no
8437 esac
8440 case $host_os in
8441 # For platforms which do not support PIC, -DPIC is meaningless:
8442 *djgpp*)
8443 lt_prog_compiler_pic=
8446 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8448 esac
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8450 $as_echo "$lt_prog_compiler_pic" >&6; }
8458 # Check to make sure the PIC flag actually works.
8460 if test -n "$lt_prog_compiler_pic"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8463 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_prog_compiler_pic_works=no
8467 ac_outfile=conftest.$ac_objext
8468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8470 # Insert the option either (1) after the last *FLAGS variable, or
8471 # (2) before a word containing "conftest.", or (3) at the end.
8472 # Note that $ac_compile itself does not contain backslashes and begins
8473 # with a dollar sign (not a hyphen), so the echo should work correctly.
8474 # The option is referenced via a variable to avoid confusing sed.
8475 lt_compile=`echo "$ac_compile" | $SED \
8476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478 -e 's:$: $lt_compiler_flag:'`
8479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8480 (eval "$lt_compile" 2>conftest.err)
8481 ac_status=$?
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 if (exit $ac_status) && test -s "$ac_outfile"; then
8485 # The compiler can only warn and ignore the option if not recognized
8486 # So say no if there are warnings other than the usual output.
8487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8490 lt_cv_prog_compiler_pic_works=yes
8493 $RM conftest*
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8497 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8499 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8500 case $lt_prog_compiler_pic in
8501 "" | " "*) ;;
8502 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8503 esac
8504 else
8505 lt_prog_compiler_pic=
8506 lt_prog_compiler_can_build_shared=no
8517 # Check to make sure the static flag actually works.
8519 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8521 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8522 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 lt_cv_prog_compiler_static_works=no
8526 save_LDFLAGS="$LDFLAGS"
8527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8530 # The linker can only warn and ignore the option if not recognized
8531 # So say no if there are warnings
8532 if test -s conftest.err; then
8533 # Append any errors to the config.log.
8534 cat conftest.err 1>&5
8535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8537 if diff conftest.exp conftest.er2 >/dev/null; then
8538 lt_cv_prog_compiler_static_works=yes
8540 else
8541 lt_cv_prog_compiler_static_works=yes
8544 $RM -r conftest*
8545 LDFLAGS="$save_LDFLAGS"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8549 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8551 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8553 else
8554 lt_prog_compiler_static=
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8565 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 lt_cv_prog_compiler_c_o=no
8569 $RM -r conftest 2>/dev/null
8570 mkdir conftest
8571 cd conftest
8572 mkdir out
8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575 lt_compiler_flag="-o out/conftest2.$ac_objext"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 lt_compile=`echo "$ac_compile" | $SED \
8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583 -e 's:$: $lt_compiler_flag:'`
8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585 (eval "$lt_compile" 2>out/conftest.err)
8586 ac_status=$?
8587 cat out/conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8590 then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings
8593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_c_o=yes
8599 chmod u+w . 2>&5
8600 $RM conftest*
8601 # SGI C++ compiler will create directory out/ii_files/ for
8602 # template instantiation
8603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8604 $RM out/* && rmdir out
8605 cd ..
8606 $RM -r conftest
8607 $RM conftest*
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8611 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8619 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8620 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 lt_cv_prog_compiler_c_o=no
8624 $RM -r conftest 2>/dev/null
8625 mkdir conftest
8626 cd conftest
8627 mkdir out
8628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630 lt_compiler_flag="-o out/conftest2.$ac_objext"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 lt_compile=`echo "$ac_compile" | $SED \
8636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8638 -e 's:$: $lt_compiler_flag:'`
8639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8640 (eval "$lt_compile" 2>out/conftest.err)
8641 ac_status=$?
8642 cat out/conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8645 then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_c_o=yes
8654 chmod u+w . 2>&5
8655 $RM conftest*
8656 # SGI C++ compiler will create directory out/ii_files/ for
8657 # template instantiation
8658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8659 $RM out/* && rmdir out
8660 cd ..
8661 $RM -r conftest
8662 $RM conftest*
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8666 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8671 hard_links="nottested"
8672 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8673 # do not overwrite the value of need_locks provided by the user
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8675 $as_echo_n "checking if we can lock with hard links... " >&6; }
8676 hard_links=yes
8677 $RM conftest*
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 touch conftest.a
8680 ln conftest.a conftest.b 2>&5 || hard_links=no
8681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8683 $as_echo "$hard_links" >&6; }
8684 if test "$hard_links" = no; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8686 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8687 need_locks=warn
8689 else
8690 need_locks=no
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8701 runpath_var=
8702 allow_undefined_flag=
8703 always_export_symbols=no
8704 archive_cmds=
8705 archive_expsym_cmds=
8706 compiler_needs_object=no
8707 enable_shared_with_static_runtimes=no
8708 export_dynamic_flag_spec=
8709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8710 hardcode_automatic=no
8711 hardcode_direct=no
8712 hardcode_direct_absolute=no
8713 hardcode_libdir_flag_spec=
8714 hardcode_libdir_flag_spec_ld=
8715 hardcode_libdir_separator=
8716 hardcode_minus_L=no
8717 hardcode_shlibpath_var=unsupported
8718 inherit_rpath=no
8719 link_all_deplibs=unknown
8720 module_cmds=
8721 module_expsym_cmds=
8722 old_archive_from_new_cmds=
8723 old_archive_from_expsyms_cmds=
8724 thread_safe_flag_spec=
8725 whole_archive_flag_spec=
8726 # include_expsyms should be a list of space-separated symbols to be *always*
8727 # included in the symbol list
8728 include_expsyms=
8729 # exclude_expsyms can be an extended regexp of symbols to exclude
8730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8732 # as well as any symbol that contains `d'.
8733 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8735 # platforms (ab)use it in PIC code, but their linkers get confused if
8736 # the symbol is explicitly referenced. Since portable code cannot
8737 # rely on this symbol name, it's probably fine to never include it in
8738 # preloaded symbol tables.
8739 # Exclude shared library initialization/finalization symbols.
8740 extract_expsyms_cmds=
8742 case $host_os in
8743 cygwin* | mingw* | pw32* | cegcc*)
8744 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8745 # When not using gcc, we currently assume that we are using
8746 # Microsoft Visual C++.
8747 if test "$GCC" != yes; then
8748 with_gnu_ld=no
8751 interix*)
8752 # we just hope/assume this is gcc and not c89 (= MSVC++)
8753 with_gnu_ld=yes
8755 openbsd*)
8756 with_gnu_ld=no
8758 esac
8760 ld_shlibs=yes
8762 # On some targets, GNU ld is compatible enough with the native linker
8763 # that we're better off using the native interface for both.
8764 lt_use_gnu_ld_interface=no
8765 if test "$with_gnu_ld" = yes; then
8766 case $host_os in
8767 aix*)
8768 # The AIX port of GNU ld has always aspired to compatibility
8769 # with the native linker. However, as the warning in the GNU ld
8770 # block says, versions before 2.19.5* couldn't really create working
8771 # shared libraries, regardless of the interface used.
8772 case `$LD -v 2>&1` in
8773 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8774 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8775 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8777 lt_use_gnu_ld_interface=yes
8779 esac
8782 lt_use_gnu_ld_interface=yes
8784 esac
8787 if test "$lt_use_gnu_ld_interface" = yes; then
8788 # If archive_cmds runs LD, not CC, wlarc should be empty
8789 wlarc='${wl}'
8791 # Set some defaults for GNU ld with shared library support. These
8792 # are reset later if shared libraries are not supported. Putting them
8793 # here allows them to be overridden if necessary.
8794 runpath_var=LD_RUN_PATH
8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796 export_dynamic_flag_spec='${wl}--export-dynamic'
8797 # ancient GNU ld didn't support --whole-archive et. al.
8798 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8800 else
8801 whole_archive_flag_spec=
8803 supports_anon_versioning=no
8804 case `$LD -v 2>&1` in
8805 *GNU\ gold*) supports_anon_versioning=yes ;;
8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8809 *\ 2.11.*) ;; # other 2.11 versions
8810 *) supports_anon_versioning=yes ;;
8811 esac
8813 # See if GNU ld supports shared libraries.
8814 case $host_os in
8815 aix[3-9]*)
8816 # On AIX/PPC, the GNU linker is very broken
8817 if test "$host_cpu" != ia64; then
8818 ld_shlibs=no
8819 cat <<_LT_EOF 1>&2
8821 *** Warning: the GNU linker, at least up to release 2.19, is reported
8822 *** to be unable to reliably create shared libraries on AIX.
8823 *** Therefore, libtool is disabling shared libraries support. If you
8824 *** really care for shared libraries, you may want to install binutils
8825 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8826 *** You will then need to restart the configuration process.
8828 _LT_EOF
8832 amigaos*)
8833 case $host_cpu in
8834 powerpc)
8835 # see comment about AmigaOS4 .so support
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds=''
8839 m68k)
8840 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)'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_minus_L=yes
8844 esac
8847 beos*)
8848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 allow_undefined_flag=unsupported
8850 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8851 # support --undefined. This deserves some investigation. FIXME
8852 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 else
8854 ld_shlibs=no
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8860 # as there is no search path for DLLs.
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 export_dynamic_flag_spec='${wl}--export-all-symbols'
8863 allow_undefined_flag=unsupported
8864 always_export_symbols=no
8865 enable_shared_with_static_runtimes=yes
8866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870 # If the export-symbols file already is a .def file (1st line
8871 # is EXPORTS), use it as is; otherwise, prepend...
8872 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8873 cp $export_symbols $output_objdir/$soname.def;
8874 else
8875 echo EXPORTS > $output_objdir/$soname.def;
8876 cat $export_symbols >> $output_objdir/$soname.def;
8878 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879 else
8880 ld_shlibs=no
8884 haiku*)
8885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886 link_all_deplibs=yes
8889 interix[3-9]*)
8890 hardcode_direct=no
8891 hardcode_shlibpath_var=no
8892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8893 export_dynamic_flag_spec='${wl}-E'
8894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8895 # Instead, shared libraries are loaded at an image base (0x10000000 by
8896 # default) and relocated if they conflict, which is a slow very memory
8897 # consuming and fragmenting process. To avoid this, we pick a random,
8898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8901 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'
8904 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8905 tmp_diet=no
8906 if test "$host_os" = linux-dietlibc; then
8907 case $cc_basename in
8908 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8909 esac
8911 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8912 && test "$tmp_diet" = no
8913 then
8914 tmp_addflag=
8915 tmp_sharedflag='-shared'
8916 case $cc_basename,$host_cpu in
8917 pgcc*) # Portland Group C compiler
8918 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'
8919 tmp_addflag=' $pic_flag'
8921 pgf77* | pgf90* | pgf95* | pgfortran*)
8922 # Portland Group f77 and f90 compilers
8923 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'
8924 tmp_addflag=' $pic_flag -Mnomain' ;;
8925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8926 tmp_addflag=' -i_dynamic' ;;
8927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8928 tmp_addflag=' -i_dynamic -nofor_main' ;;
8929 ifc* | ifort*) # Intel Fortran compiler
8930 tmp_addflag=' -nofor_main' ;;
8931 lf95*) # Lahey Fortran 8.1
8932 whole_archive_flag_spec=
8933 tmp_sharedflag='--shared' ;;
8934 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8935 tmp_sharedflag='-qmkshrobj'
8936 tmp_addflag= ;;
8937 nvcc*) # Cuda Compiler Driver 2.2
8938 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'
8939 compiler_needs_object=yes
8941 esac
8942 case `$CC -V 2>&1 | sed 5q` in
8943 *Sun\ C*) # Sun C 5.9
8944 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'
8945 compiler_needs_object=yes
8946 tmp_sharedflag='-G' ;;
8947 *Sun\ F*) # Sun Fortran 8.3
8948 tmp_sharedflag='-G' ;;
8949 esac
8950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 if test "x$supports_anon_versioning" = xyes; then
8953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955 echo "local: *; };" >> $output_objdir/$libname.ver~
8956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8959 case $cc_basename in
8960 xlf* | bgf* | bgxlf* | mpixlf*)
8961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8963 hardcode_libdir_flag_spec=
8964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8966 if test "x$supports_anon_versioning" = xyes; then
8967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8969 echo "local: *; };" >> $output_objdir/$libname.ver~
8970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8973 esac
8974 else
8975 ld_shlibs=no
8979 netbsd*)
8980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8982 wlarc=
8983 else
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 solaris*)
8990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8991 ld_shlibs=no
8992 cat <<_LT_EOF 1>&2
8994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8995 *** create shared libraries on Solaris systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.9.1 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9001 _LT_EOF
9002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 else
9006 ld_shlibs=no
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9011 case `$LD -v 2>&1` in
9012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9013 ld_shlibs=no
9014 cat <<_LT_EOF 1>&2
9016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9017 *** reliably create shared libraries on SCO systems. Therefore, libtool
9018 *** is disabling shared libraries support. We urge you to upgrade GNU
9019 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9020 *** your PATH or compiler configuration so that the native linker is
9021 *** used, and then restart.
9023 _LT_EOF
9026 # For security reasons, it is highly recommended that you always
9027 # use absolute paths for naming shared libraries, and exclude the
9028 # DT_RUNPATH tag from executables and libraries. But doing so
9029 # requires that you compile everything twice, which is a pain.
9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9038 esac
9041 sunos4*)
9042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043 wlarc=
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 else
9053 ld_shlibs=no
9056 esac
9058 if test "$ld_shlibs" = no; then
9059 runpath_var=
9060 hardcode_libdir_flag_spec=
9061 export_dynamic_flag_spec=
9062 whole_archive_flag_spec=
9064 else
9065 # PORTME fill in a description of your system's linker (not GNU ld)
9066 case $host_os in
9067 aix3*)
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=yes
9070 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'
9071 # Note: this linker hardcodes the directories in LIBPATH if there
9072 # are no directories specified by -L.
9073 hardcode_minus_L=yes
9074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9075 # Neither direct hardcoding nor static linking is supported with a
9076 # broken collect2.
9077 hardcode_direct=unsupported
9081 aix[4-9]*)
9082 if test "$host_cpu" = ia64; then
9083 # On IA64, the linker does run time linking by default, so we don't
9084 # have to do anything special.
9085 aix_use_runtimelinking=no
9086 exp_sym_flag='-Bexport'
9087 no_entry_flag=""
9088 else
9089 # If we're using GNU nm, then we don't want the "-C" option.
9090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9091 # Also, AIX nm treats weak defined symbols like other global
9092 # defined symbols, whereas GNU nm marks them as "W".
9093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9094 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'
9095 else
9096 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'
9098 aix_use_runtimelinking=no
9100 # Test if we are trying to use run time linking or normal
9101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9102 # need to do runtime linking.
9103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9104 for ld_flag in $LDFLAGS; do
9105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9106 aix_use_runtimelinking=yes
9107 break
9109 done
9111 esac
9113 exp_sym_flag='-bexport'
9114 no_entry_flag='-bnoentry'
9117 # When large executables or shared objects are built, AIX ld can
9118 # have problems creating the table of contents. If linking a library
9119 # or program results in "error TOC overflow" add -mminimal-toc to
9120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9123 archive_cmds=''
9124 hardcode_direct=yes
9125 hardcode_direct_absolute=yes
9126 hardcode_libdir_separator=':'
9127 link_all_deplibs=yes
9128 file_list_spec='${wl}-f,'
9130 if test "$GCC" = yes; then
9131 case $host_os in aix4.[012]|aix4.[012].*)
9132 # We only want to do this on AIX 4.2 and lower, the check
9133 # below for broken collect2 doesn't work under 4.3+
9134 collect2name=`${CC} -print-prog-name=collect2`
9135 if test -f "$collect2name" &&
9136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9137 then
9138 # We have reworked collect2
9140 else
9141 # We have old collect2
9142 hardcode_direct=unsupported
9143 # It fails to find uninstalled libraries when the uninstalled
9144 # path is not listed in the libpath. Setting hardcode_minus_L
9145 # to unsupported forces relinking
9146 hardcode_minus_L=yes
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_libdir_separator=
9151 esac
9152 shared_flag='-shared'
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag="$shared_flag "'${wl}-G'
9156 else
9157 # not using gcc
9158 if test "$host_cpu" = ia64; then
9159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9160 # chokes on -Wl,-G. The following line is correct:
9161 shared_flag='-G'
9162 else
9163 if test "$aix_use_runtimelinking" = yes; then
9164 shared_flag='${wl}-G'
9165 else
9166 shared_flag='${wl}-bM:SRE'
9171 export_dynamic_flag_spec='${wl}-bexpall'
9172 # It seems that -bexpall does not export symbols beginning with
9173 # underscore (_), so it is better to generate a list of symbols to export.
9174 always_export_symbols=yes
9175 if test "$aix_use_runtimelinking" = yes; then
9176 # Warning - without using the other runtime loading flags (-brtl),
9177 # -berok will link without error, but may produce a broken library.
9178 allow_undefined_flag='-berok'
9179 # Determine the default libpath from the value encoded in an
9180 # empty executable.
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9185 main ()
9189 return 0;
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"; then :
9194 lt_aix_libpath_sed='
9195 /Import File Strings/,/^$/ {
9196 /^0/ {
9197 s/^0 *\(.*\)$/\1/
9201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$aix_libpath"; then
9204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9212 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"
9213 else
9214 if test "$host_cpu" = ia64; then
9215 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9216 allow_undefined_flag="-z nodefs"
9217 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"
9218 else
9219 # Determine the default libpath from the value encoded in an
9220 # empty executable.
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9225 main ()
9229 return 0;
9231 _ACEOF
9232 if ac_fn_c_try_link "$LINENO"; then :
9234 lt_aix_libpath_sed='
9235 /Import File Strings/,/^$/ {
9236 /^0/ {
9237 s/^0 *\(.*\)$/\1/
9241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9242 # Check for a 64-bit object if we didn't find anything.
9243 if test -z "$aix_libpath"; then
9244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9247 rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9252 # Warning - without using the other run time loading flags,
9253 # -berok will link without error, but may produce a broken library.
9254 no_undefined_flag=' ${wl}-bernotok'
9255 allow_undefined_flag=' ${wl}-berok'
9256 if test "$with_gnu_ld" = yes; then
9257 # We only use this code for GNU lds that support --whole-archive.
9258 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9259 else
9260 # Exported symbols can be pulled into shared objects from archives
9261 whole_archive_flag_spec='$convenience'
9263 archive_cmds_need_lc=yes
9264 # This is similar to how AIX traditionally builds its shared libraries.
9265 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'
9270 amigaos*)
9271 case $host_cpu in
9272 powerpc)
9273 # see comment about AmigaOS4 .so support
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds=''
9277 m68k)
9278 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)'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9282 esac
9285 bsdi[45]*)
9286 export_dynamic_flag_spec=-rdynamic
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # When not using gcc, we currently assume that we are using
9291 # Microsoft Visual C++.
9292 # hardcode_libdir_flag_spec is actually meaningless, as there is
9293 # no search path for DLLs.
9294 hardcode_libdir_flag_spec=' '
9295 allow_undefined_flag=unsupported
9296 # Tell ltmain to make .lib files, not .a files.
9297 libext=lib
9298 # Tell ltmain to make .dll files, not .so files.
9299 shrext_cmds=".dll"
9300 # FIXME: Setting linknames here is a bad hack.
9301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9302 # The linker will automatically build a .lib file if we build a DLL.
9303 old_archive_from_new_cmds='true'
9304 # FIXME: Should let the user specify the lib program.
9305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9306 fix_srcfile_path='`cygpath -w "$srcfile"`'
9307 enable_shared_with_static_runtimes=yes
9310 darwin* | rhapsody*)
9313 archive_cmds_need_lc=no
9314 hardcode_direct=no
9315 hardcode_automatic=yes
9316 hardcode_shlibpath_var=unsupported
9317 if test "$lt_cv_ld_force_load" = "yes"; then
9318 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\"`'
9319 else
9320 whole_archive_flag_spec=''
9322 link_all_deplibs=yes
9323 allow_undefined_flag="$_lt_dar_allow_undefined"
9324 case $cc_basename in
9325 ifort*) _lt_dar_can_shared=yes ;;
9326 *) _lt_dar_can_shared=$GCC ;;
9327 esac
9328 if test "$_lt_dar_can_shared" = "yes"; then
9329 output_verbose_link_cmd=func_echo_all
9330 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9331 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9332 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}"
9333 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}"
9335 else
9336 ld_shlibs=no
9341 dgux*)
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_libdir_flag_spec='-L$libdir'
9344 hardcode_shlibpath_var=no
9347 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9348 # support. Future versions do this automatically, but an explicit c++rt0.o
9349 # does not break anything, and helps significantly (at the cost of a little
9350 # extra space).
9351 freebsd2.2*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9358 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9359 freebsd2.*)
9360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_direct=yes
9362 hardcode_minus_L=yes
9363 hardcode_shlibpath_var=no
9366 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9367 freebsd* | dragonfly*)
9368 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9369 hardcode_libdir_flag_spec='-R$libdir'
9370 hardcode_direct=yes
9371 hardcode_shlibpath_var=no
9374 hpux9*)
9375 if test "$GCC" = yes; then
9376 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'
9377 else
9378 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'
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_separator=:
9382 hardcode_direct=yes
9384 # hardcode_minus_L: Not really in the search PATH,
9385 # but as the default location of the library.
9386 hardcode_minus_L=yes
9387 export_dynamic_flag_spec='${wl}-E'
9390 hpux10*)
9391 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393 else
9394 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9396 if test "$with_gnu_ld" = no; then
9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9398 hardcode_libdir_flag_spec_ld='+b $libdir'
9399 hardcode_libdir_separator=:
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 export_dynamic_flag_spec='${wl}-E'
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9409 hpux11*)
9410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9411 case $host_cpu in
9412 hppa*64*)
9413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 ia64*)
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 esac
9422 else
9423 case $host_cpu in
9424 hppa*64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 ia64*)
9428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9432 # Older versions of the 11.00 compiler do not understand -b yet
9433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9435 $as_echo_n "checking if $CC understands -b... " >&6; }
9436 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 lt_cv_prog_compiler__b=no
9440 save_LDFLAGS="$LDFLAGS"
9441 LDFLAGS="$LDFLAGS -b"
9442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9444 # The linker can only warn and ignore the option if not recognized
9445 # So say no if there are warnings
9446 if test -s conftest.err; then
9447 # Append any errors to the config.log.
9448 cat conftest.err 1>&5
9449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451 if diff conftest.exp conftest.er2 >/dev/null; then
9452 lt_cv_prog_compiler__b=yes
9454 else
9455 lt_cv_prog_compiler__b=yes
9458 $RM -r conftest*
9459 LDFLAGS="$save_LDFLAGS"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9465 if test x"$lt_cv_prog_compiler__b" = xyes; then
9466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9467 else
9468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9472 esac
9474 if test "$with_gnu_ld" = no; then
9475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476 hardcode_libdir_separator=:
9478 case $host_cpu in
9479 hppa*64*|ia64*)
9480 hardcode_direct=no
9481 hardcode_shlibpath_var=no
9484 hardcode_direct=yes
9485 hardcode_direct_absolute=yes
9486 export_dynamic_flag_spec='${wl}-E'
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9492 esac
9496 irix5* | irix6* | nonstopux*)
9497 if test "$GCC" = yes; then
9498 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'
9499 # Try to use the -exported_symbol ld option, if it does not
9500 # work, assume that -exports_file does not work either and
9501 # implicitly export all symbols.
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506 int foo(void) {}
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 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'
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LDFLAGS="$save_LDFLAGS"
9515 else
9516 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'
9517 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'
9519 archive_cmds_need_lc='no'
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522 inherit_rpath=yes
9523 link_all_deplibs=yes
9526 netbsd*)
9527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9529 else
9530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9532 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9537 newsos6)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_direct=yes
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 hardcode_shlibpath_var=no
9545 *nto* | *qnx*)
9548 openbsd*)
9549 if test -f /usr/libexec/ld.so; then
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
9552 hardcode_direct_absolute=yes
9553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557 export_dynamic_flag_spec='${wl}-E'
9558 else
9559 case $host_os in
9560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-R$libdir'
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568 esac
9570 else
9571 ld_shlibs=no
9575 os2*)
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_minus_L=yes
9578 allow_undefined_flag=unsupported
9579 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'
9580 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 osf3*)
9584 if test "$GCC" = yes; then
9585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9586 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'
9587 else
9588 allow_undefined_flag=' -expect_unresolved \*'
9589 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'
9591 archive_cmds_need_lc='no'
9592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593 hardcode_libdir_separator=:
9596 osf4* | osf5*) # as osf3* with the addition of -msym flag
9597 if test "$GCC" = yes; then
9598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9599 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'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 else
9602 allow_undefined_flag=' -expect_unresolved \*'
9603 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'
9604 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~
9605 $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'
9607 # Both c and cxx compiler support -rpath directly
9608 hardcode_libdir_flag_spec='-rpath $libdir'
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_separator=:
9614 solaris*)
9615 no_undefined_flag=' -z defs'
9616 if test "$GCC" = yes; then
9617 wlarc='${wl}'
9618 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9621 else
9622 case `$CC -V 2>&1` in
9623 *"Compilers 5.0"*)
9624 wlarc=''
9625 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 wlarc='${wl}'
9631 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9635 esac
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9639 case $host_os in
9640 solaris2.[0-5] | solaris2.[0-5].*) ;;
9642 # The compiler driver will combine and reorder linker options,
9643 # but understands `-z linker_flag'. GCC discards it without `$wl',
9644 # but is careful enough not to reorder.
9645 # Supported since Solaris 2.6 (maybe 2.5.1?)
9646 if test "$GCC" = yes; then
9647 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9648 else
9649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 esac
9653 link_all_deplibs=yes
9656 sunos4*)
9657 if test "x$host_vendor" = xsequent; then
9658 # Use $CC to link under sequent, because it throws in some extra .o
9659 # files that make .init and .fini sections work.
9660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9661 else
9662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_direct=yes
9666 hardcode_minus_L=yes
9667 hardcode_shlibpath_var=no
9670 sysv4)
9671 case $host_vendor in
9672 sni)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes # is this really true???
9676 siemens)
9677 ## LD is ld it makes a PLAMLIB
9678 ## CC just makes a GrossModule.
9679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9680 reload_cmds='$CC -r -o $output$reload_objs'
9681 hardcode_direct=no
9683 motorola)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9687 esac
9688 runpath_var='LD_RUN_PATH'
9689 hardcode_shlibpath_var=no
9692 sysv4.3*)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_shlibpath_var=no
9695 export_dynamic_flag_spec='-Bexport'
9698 sysv4*MP*)
9699 if test -d /usr/nec; then
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_shlibpath_var=no
9702 runpath_var=LD_RUN_PATH
9703 hardcode_runpath_var=yes
9704 ld_shlibs=yes
9708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9709 no_undefined_flag='${wl}-z,text'
9710 archive_cmds_need_lc=no
9711 hardcode_shlibpath_var=no
9712 runpath_var='LD_RUN_PATH'
9714 if test "$GCC" = yes; then
9715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 else
9718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 sysv5* | sco3.2v5* | sco5v6*)
9724 # Note: We can NOT use -z defs as we might desire, because we do not
9725 # link with -lc, and that would cause any symbols used from libc to
9726 # always be unresolved, which means just about no library would
9727 # ever link correctly. If we're not using GNU ld we use -z text
9728 # though, which does catch some bad symbols but isn't as heavy-handed
9729 # as -z defs.
9730 no_undefined_flag='${wl}-z,text'
9731 allow_undefined_flag='${wl}-z,nodefs'
9732 archive_cmds_need_lc=no
9733 hardcode_shlibpath_var=no
9734 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9735 hardcode_libdir_separator=':'
9736 link_all_deplibs=yes
9737 export_dynamic_flag_spec='${wl}-Bexport'
9738 runpath_var='LD_RUN_PATH'
9740 if test "$GCC" = yes; then
9741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 uts4*)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_shlibpath_var=no
9756 ld_shlibs=no
9758 esac
9760 if test x$host_vendor = xsni; then
9761 case $host in
9762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9765 esac
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9770 $as_echo "$ld_shlibs" >&6; }
9771 test "$ld_shlibs" = no && can_build_shared=no
9773 with_gnu_ld=$with_gnu_ld
9790 # Do we need to explicitly link libc?
9792 case "x$archive_cmds_need_lc" in
9793 x|xyes)
9794 # Assume -lc should be added
9795 archive_cmds_need_lc=yes
9797 if test "$enable_shared" = yes && test "$GCC" = yes; then
9798 case $archive_cmds in
9799 *'~'*)
9800 # FIXME: we may have to deal with multi-command sequences.
9802 '$CC '*)
9803 # Test whether the compiler implicitly links with -lc since on some
9804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9805 # to ld, don't add -lc before -lgcc.
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9807 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9808 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 $RM conftest*
9812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9815 (eval $ac_compile) 2>&5
9816 ac_status=$?
9817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818 test $ac_status = 0; } 2>conftest.err; then
9819 soname=conftest
9820 lib=conftest
9821 libobjs=conftest.$ac_objext
9822 deplibs=
9823 wl=$lt_prog_compiler_wl
9824 pic_flag=$lt_prog_compiler_pic
9825 compiler_flags=-v
9826 linker_flags=-v
9827 verstring=
9828 output_objdir=.
9829 libname=conftest
9830 lt_save_allow_undefined_flag=$allow_undefined_flag
9831 allow_undefined_flag=
9832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9833 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9834 ac_status=$?
9835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9836 test $ac_status = 0; }
9837 then
9838 lt_cv_archive_cmds_need_lc=no
9839 else
9840 lt_cv_archive_cmds_need_lc=yes
9842 allow_undefined_flag=$lt_save_allow_undefined_flag
9843 else
9844 cat conftest.err 1>&5
9846 $RM conftest*
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9850 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9851 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9853 esac
9856 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10015 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10017 if test "$GCC" = yes; then
10018 case $host_os in
10019 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10020 *) lt_awk_arg="/^libraries:/" ;;
10021 esac
10022 case $host_os in
10023 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10024 *) lt_sed_strip_eq="s,=/,/,g" ;;
10025 esac
10026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10027 case $lt_search_path_spec in
10028 *\;*)
10029 # if the path contains ";" then we assume it to be the separator
10030 # otherwise default to the standard path separator (i.e. ":") - it is
10031 # assumed that no part of a normal pathname contains ";" but that should
10032 # okay in the real world where ";" in dirpaths is itself problematic.
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10038 esac
10039 # Ok, now we have the path, separated by spaces, we can step through it
10040 # and add multilib dir if necessary.
10041 lt_tmp_lt_search_path_spec=
10042 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10043 for lt_sys_path in $lt_search_path_spec; do
10044 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10046 else
10047 test -d "$lt_sys_path" && \
10048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10050 done
10051 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10052 BEGIN {RS=" "; FS="/|\n";} {
10053 lt_foo="";
10054 lt_count=0;
10055 for (lt_i = NF; lt_i > 0; lt_i--) {
10056 if ($lt_i != "" && $lt_i != ".") {
10057 if ($lt_i == "..") {
10058 lt_count++;
10059 } else {
10060 if (lt_count == 0) {
10061 lt_foo="/" $lt_i lt_foo;
10062 } else {
10063 lt_count--;
10068 if (lt_foo != "") { lt_freq[lt_foo]++; }
10069 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10071 # AWK program above erroneously prepends '/' to C:/dos/paths
10072 # for these hosts.
10073 case $host_os in
10074 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10075 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10076 esac
10077 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10078 else
10079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10081 library_names_spec=
10082 libname_spec='lib$name'
10083 soname_spec=
10084 shrext_cmds=".so"
10085 postinstall_cmds=
10086 postuninstall_cmds=
10087 finish_cmds=
10088 finish_eval=
10089 shlibpath_var=
10090 shlibpath_overrides_runpath=unknown
10091 version_type=none
10092 dynamic_linker="$host_os ld.so"
10093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10094 need_lib_prefix=unknown
10095 hardcode_into_libs=no
10097 # when you set need_version to no, make sure it does not cause -set_version
10098 # flags to be left without arguments
10099 need_version=unknown
10101 case $host_os in
10102 aix3*)
10103 version_type=linux
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10105 shlibpath_var=LIBPATH
10107 # AIX 3 has no versioning support, so we append a major version to the name.
10108 soname_spec='${libname}${release}${shared_ext}$major'
10111 aix[4-9]*)
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 hardcode_into_libs=yes
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 supports IA64
10118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 else
10121 # With GCC up to 2.95.x, collect2 would create an import file
10122 # for dependence libraries. The import file would start with
10123 # the line `#! .'. This would cause the generated library to
10124 # depend on `.', always an invalid library. This was fixed in
10125 # development snapshots of GCC prior to 3.0.
10126 case $host_os in
10127 aix4 | aix4.[01] | aix4.[01].*)
10128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10129 echo ' yes '
10130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10132 else
10133 can_build_shared=no
10136 esac
10137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10138 # soname into executable. Probably we can add versioning support to
10139 # collect2, so additional links can be useful in future.
10140 if test "$aix_use_runtimelinking" = yes; then
10141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10142 # instead of lib<name>.a to let people know that these are not
10143 # typical AIX shared libraries.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 else
10146 # We preserve .a as extension for shared libraries through AIX4.2
10147 # and later when we are not doing run time linking.
10148 library_names_spec='${libname}${release}.a $libname.a'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10151 shlibpath_var=LIBPATH
10155 amigaos*)
10156 case $host_cpu in
10157 powerpc)
10158 # Since July 2007 AmigaOS4 officially supports .so libraries.
10159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 m68k)
10163 library_names_spec='$libname.ixlibrary $libname.a'
10164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10165 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'
10167 esac
10170 beos*)
10171 library_names_spec='${libname}${shared_ext}'
10172 dynamic_linker="$host_os ld.so"
10173 shlibpath_var=LIBRARY_PATH
10176 bsdi[45]*)
10177 version_type=linux
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10185 # the default ld.so.conf also contains /usr/contrib/lib and
10186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10187 # libtool to hard-code these into programs
10190 cygwin* | mingw* | pw32* | cegcc*)
10191 version_type=windows
10192 shrext_cmds=".dll"
10193 need_version=no
10194 need_lib_prefix=no
10196 case $GCC,$host_os in
10197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10198 library_names_spec='$libname.dll.a'
10199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10200 postinstall_cmds='base_file=`basename \${file}`~
10201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10202 dldir=$destdir/`dirname \$dlpath`~
10203 test -d \$dldir || mkdir -p \$dldir~
10204 $install_prog $dir/$dlname \$dldir/$dlname~
10205 chmod a+x \$dldir/$dlname~
10206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10210 dlpath=$dir/\$dldll~
10211 $RM \$dlpath'
10212 shlibpath_overrides_runpath=yes
10214 case $host_os in
10215 cygwin*)
10216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10221 mingw* | cegcc*)
10222 # MinGW DLLs use traditional 'lib' prefix
10223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225 pw32*)
10226 # pw32 DLLs use 'pw' prefix rather than 'lib'
10227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229 esac
10233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10235 esac
10236 dynamic_linker='Win32 ld.exe'
10237 # FIXME: first we should search . and the directory the executable is in
10238 shlibpath_var=PATH
10241 darwin* | rhapsody*)
10242 dynamic_linker="$host_os dyld"
10243 version_type=darwin
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10247 soname_spec='${libname}${release}${major}$shared_ext'
10248 shlibpath_overrides_runpath=yes
10249 shlibpath_var=DYLD_LIBRARY_PATH
10250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10252 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 dgux*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10265 freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
10272 freebsd[23].*) objformat=aout ;;
10273 *) objformat=elf ;;
10274 esac
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
10290 freebsd2.*)
10291 shlibpath_overrides_runpath=yes
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10306 esac
10309 gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10319 haiku*)
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 dynamic_linker="$host_os runtime_loader"
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10329 hardcode_into_libs=yes
10332 hpux9* | hpux10* | hpux11*)
10333 # Give a soname corresponding to the major version so that dld.sl refuses to
10334 # link against other versions.
10335 version_type=sunos
10336 need_lib_prefix=no
10337 need_version=no
10338 case $host_cpu in
10339 ia64*)
10340 shrext_cmds='.so'
10341 hardcode_into_libs=yes
10342 dynamic_linker="$host_os dld.so"
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 if test "X$HPUX_IA64_MODE" = X32; then
10348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10349 else
10350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10354 hppa*64*)
10355 shrext_cmds='.sl'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.sl"
10358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366 shrext_cmds='.sl'
10367 dynamic_linker="$host_os dld.sl"
10368 shlibpath_var=SHLIB_PATH
10369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10373 esac
10374 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10375 postinstall_cmds='chmod 555 $lib'
10376 # or fails outright, so override atomically:
10377 install_override_mode=555
10380 interix[3-9]*)
10381 version_type=linux
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10392 irix5* | irix6* | nonstopux*)
10393 case $host_os in
10394 nonstopux*) version_type=nonstopux ;;
10396 if test "$lt_cv_prog_gnu_ld" = yes; then
10397 version_type=linux
10398 else
10399 version_type=irix
10400 fi ;;
10401 esac
10402 need_lib_prefix=no
10403 need_version=no
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 case $host_os in
10407 irix5* | nonstopux*)
10408 libsuff= shlibsuff=
10411 case $LD in # libtool.m4 will add one of these switches to LD
10412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10413 libsuff= shlibsuff= libmagic=32-bit;;
10414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10415 libsuff=32 shlibsuff=N32 libmagic=N32;;
10416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10418 *) libsuff= shlibsuff= libmagic=never-match;;
10419 esac
10421 esac
10422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10426 hardcode_into_libs=yes
10429 # No shared lib support for Linux oldld, aout, or coff.
10430 linux*oldld* | linux*aout* | linux*coff*)
10431 dynamic_linker=no
10434 # This must be Linux ELF.
10435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=no
10445 # Some binutils ld are patched to set DT_RUNPATH
10446 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 lt_cv_shlibpath_overrides_runpath=no
10450 save_LDFLAGS=$LDFLAGS
10451 save_libdir=$libdir
10452 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10453 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10458 main ()
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10467 lt_cv_shlibpath_overrides_runpath=yes
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LDFLAGS=$save_LDFLAGS
10473 libdir=$save_libdir
10477 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10479 # This implies no fast_install, which is unacceptable.
10480 # Some rework will be needed to allow for fast_install
10481 # before this can be enabled.
10482 hardcode_into_libs=yes
10484 # Append ld.so.conf contents to the search path
10485 if test -f /etc/ld.so.conf; then
10486 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' ' '`
10487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10490 # We used to test for /lib/ld.so.1 and disable shared libraries on
10491 # powerpc, because MkLinux only supported shared libraries with the
10492 # GNU dynamic linker. Since this was broken with cross compilers,
10493 # most powerpc-linux boxes support dynamic linking these days and
10494 # people can always --disable-shared, the test was removed, and we
10495 # assume the GNU/Linux dynamic linker is in use.
10496 dynamic_linker='GNU/Linux ld.so'
10499 netbsd*)
10500 version_type=sunos
10501 need_lib_prefix=no
10502 need_version=no
10503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506 dynamic_linker='NetBSD (a.out) ld.so'
10507 else
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 dynamic_linker='NetBSD ld.elf_so'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10514 hardcode_into_libs=yes
10517 newsos6)
10518 version_type=linux
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=yes
10524 *nto* | *qnx*)
10525 version_type=qnx
10526 need_lib_prefix=no
10527 need_version=no
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10533 dynamic_linker='ldqnx.so'
10536 openbsd*)
10537 version_type=sunos
10538 sys_lib_dlsearch_path_spec="/usr/lib"
10539 need_lib_prefix=no
10540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10541 case $host_os in
10542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10543 *) need_version=no ;;
10544 esac
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549 case $host_os in
10550 openbsd2.[89] | openbsd2.[89].*)
10551 shlibpath_overrides_runpath=no
10554 shlibpath_overrides_runpath=yes
10556 esac
10557 else
10558 shlibpath_overrides_runpath=yes
10562 os2*)
10563 libname_spec='$name'
10564 shrext_cmds=".dll"
10565 need_lib_prefix=no
10566 library_names_spec='$libname${shared_ext} $libname.a'
10567 dynamic_linker='OS/2 ld.exe'
10568 shlibpath_var=LIBPATH
10571 osf3* | osf4* | osf5*)
10572 version_type=osf
10573 need_lib_prefix=no
10574 need_version=no
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10582 rdos*)
10583 dynamic_linker=no
10586 solaris*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
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'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=yes
10594 hardcode_into_libs=yes
10595 # ldd complains unless libraries are executable
10596 postinstall_cmds='chmod +x $lib'
10599 sunos4*)
10600 version_type=sunos
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 if test "$with_gnu_ld" = yes; then
10606 need_lib_prefix=no
10608 need_version=yes
10611 sysv4 | sysv4.3*)
10612 version_type=linux
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 case $host_vendor in
10617 sni)
10618 shlibpath_overrides_runpath=no
10619 need_lib_prefix=no
10620 runpath_var=LD_RUN_PATH
10622 siemens)
10623 need_lib_prefix=no
10625 motorola)
10626 need_lib_prefix=no
10627 need_version=no
10628 shlibpath_overrides_runpath=no
10629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10631 esac
10634 sysv4*MP*)
10635 if test -d /usr/nec ;then
10636 version_type=linux
10637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10638 soname_spec='$libname${shared_ext}.$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644 version_type=freebsd-elf
10645 need_lib_prefix=no
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10652 if test "$with_gnu_ld" = yes; then
10653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10654 else
10655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10656 case $host_os in
10657 sco3.2v5*)
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10660 esac
10662 sys_lib_dlsearch_path_spec='/usr/lib'
10665 tpf*)
10666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10667 version_type=linux
10668 need_lib_prefix=no
10669 need_version=no
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10676 uts4*)
10677 version_type=linux
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10684 dynamic_linker=no
10686 esac
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10688 $as_echo "$dynamic_linker" >&6; }
10689 test "$dynamic_linker" = no && can_build_shared=no
10691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10692 if test "$GCC" = yes; then
10693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10796 hardcode_action=
10797 if test -n "$hardcode_libdir_flag_spec" ||
10798 test -n "$runpath_var" ||
10799 test "X$hardcode_automatic" = "Xyes" ; then
10801 # We can hardcode non-existent directories.
10802 if test "$hardcode_direct" != no &&
10803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10804 # have to relink, otherwise we might link with an installed library
10805 # when we should be linking with a yet-to-be-installed one
10806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10807 test "$hardcode_minus_L" != no; then
10808 # Linking always hardcodes the temporary library directory.
10809 hardcode_action=relink
10810 else
10811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10812 hardcode_action=immediate
10814 else
10815 # We cannot hardcode anything, or else we can only hardcode existing
10816 # directories.
10817 hardcode_action=unsupported
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10820 $as_echo "$hardcode_action" >&6; }
10822 if test "$hardcode_action" = relink ||
10823 test "$inherit_rpath" = yes; then
10824 # Fast installation is not supported
10825 enable_fast_install=no
10826 elif test "$shlibpath_overrides_runpath" = yes ||
10827 test "$enable_shared" = no; then
10828 # Fast installation is not necessary
10829 enable_fast_install=needless
10837 if test "x$enable_dlopen" != xyes; then
10838 enable_dlopen=unknown
10839 enable_dlopen_self=unknown
10840 enable_dlopen_self_static=unknown
10841 else
10842 lt_cv_dlopen=no
10843 lt_cv_dlopen_libs=
10845 case $host_os in
10846 beos*)
10847 lt_cv_dlopen="load_add_on"
10848 lt_cv_dlopen_libs=
10849 lt_cv_dlopen_self=yes
10852 mingw* | pw32* | cegcc*)
10853 lt_cv_dlopen="LoadLibrary"
10854 lt_cv_dlopen_libs=
10857 cygwin*)
10858 lt_cv_dlopen="dlopen"
10859 lt_cv_dlopen_libs=
10862 darwin*)
10863 # if libdl is installed we need to link against it
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10865 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-ldl $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char dlopen ();
10882 main ()
10884 return dlopen ();
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_lib_dl_dlopen=yes
10891 else
10892 ac_cv_lib_dl_dlopen=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10899 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10900 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10902 else
10904 lt_cv_dlopen="dyld"
10905 lt_cv_dlopen_libs=
10906 lt_cv_dlopen_self=yes
10913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10914 if test "x$ac_cv_func_shl_load" = x""yes; then :
10915 lt_cv_dlopen="shl_load"
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10918 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-ldld $LIBS"
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10927 /* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 char shl_load ();
10935 main ()
10937 return shl_load ();
10939 return 0;
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"; then :
10943 ac_cv_lib_dld_shl_load=yes
10944 else
10945 ac_cv_lib_dld_shl_load=no
10947 rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949 LIBS=$ac_check_lib_save_LIBS
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10952 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10953 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10955 else
10956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10957 if test "x$ac_cv_func_dlopen" = x""yes; then :
10958 lt_cv_dlopen="dlopen"
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldl $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10978 main ()
10980 return dlopen ();
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_dl_dlopen=yes
10987 else
10988 ac_cv_lib_dl_dlopen=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10996 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11000 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-lsvld $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11017 main ()
11019 return dlopen ();
11021 return 0;
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_svld_dlopen=yes
11026 else
11027 ac_cv_lib_svld_dlopen=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-ldld $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char dld_link ();
11056 main ()
11058 return dld_link ();
11060 return 0;
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064 ac_cv_lib_dld_dld_link=yes
11065 else
11066 ac_cv_lib_dld_dld_link=no
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11073 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11074 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11094 esac
11096 if test "x$lt_cv_dlopen" != xno; then
11097 enable_dlopen=yes
11098 else
11099 enable_dlopen=no
11102 case $lt_cv_dlopen in
11103 dlopen)
11104 save_CPPFLAGS="$CPPFLAGS"
11105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11107 save_LDFLAGS="$LDFLAGS"
11108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11110 save_LIBS="$LIBS"
11111 LIBS="$lt_cv_dlopen_libs $LIBS"
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11114 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11115 if test "${lt_cv_dlopen_self+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 if test "$cross_compiling" = yes; then :
11119 lt_cv_dlopen_self=cross
11120 else
11121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11122 lt_status=$lt_dlunknown
11123 cat > conftest.$ac_ext <<_LT_EOF
11124 #line 11124 "configure"
11125 #include "confdefs.h"
11127 #if HAVE_DLFCN_H
11128 #include <dlfcn.h>
11129 #endif
11131 #include <stdio.h>
11133 #ifdef RTLD_GLOBAL
11134 # define LT_DLGLOBAL RTLD_GLOBAL
11135 #else
11136 # ifdef DL_GLOBAL
11137 # define LT_DLGLOBAL DL_GLOBAL
11138 # else
11139 # define LT_DLGLOBAL 0
11140 # endif
11141 #endif
11143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11144 find out it does not work in some platform. */
11145 #ifndef LT_DLLAZY_OR_NOW
11146 # ifdef RTLD_LAZY
11147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11148 # else
11149 # ifdef DL_LAZY
11150 # define LT_DLLAZY_OR_NOW DL_LAZY
11151 # else
11152 # ifdef RTLD_NOW
11153 # define LT_DLLAZY_OR_NOW RTLD_NOW
11154 # else
11155 # ifdef DL_NOW
11156 # define LT_DLLAZY_OR_NOW DL_NOW
11157 # else
11158 # define LT_DLLAZY_OR_NOW 0
11159 # endif
11160 # endif
11161 # endif
11162 # endif
11163 #endif
11165 /* When -fvisbility=hidden is used, assume the code has been annotated
11166 correspondingly for the symbols needed. */
11167 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11168 void fnord () __attribute__((visibility("default")));
11169 #endif
11171 void fnord () { int i=42; }
11172 int main ()
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
11177 if (self)
11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11180 else
11182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11183 else puts (dlerror ());
11185 /* dlclose (self); */
11187 else
11188 puts (dlerror ());
11190 return status;
11192 _LT_EOF
11193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11194 (eval $ac_link) 2>&5
11195 ac_status=$?
11196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11198 (./conftest; exit; ) >&5 2>/dev/null
11199 lt_status=$?
11200 case x$lt_status in
11201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11204 esac
11205 else :
11206 # compilation failed
11207 lt_cv_dlopen_self=no
11210 rm -fr conftest*
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11215 $as_echo "$lt_cv_dlopen_self" >&6; }
11217 if test "x$lt_cv_dlopen_self" = xyes; then
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11220 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11221 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test "$cross_compiling" = yes; then :
11225 lt_cv_dlopen_self_static=cross
11226 else
11227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11228 lt_status=$lt_dlunknown
11229 cat > conftest.$ac_ext <<_LT_EOF
11230 #line 11230 "configure"
11231 #include "confdefs.h"
11233 #if HAVE_DLFCN_H
11234 #include <dlfcn.h>
11235 #endif
11237 #include <stdio.h>
11239 #ifdef RTLD_GLOBAL
11240 # define LT_DLGLOBAL RTLD_GLOBAL
11241 #else
11242 # ifdef DL_GLOBAL
11243 # define LT_DLGLOBAL DL_GLOBAL
11244 # else
11245 # define LT_DLGLOBAL 0
11246 # endif
11247 #endif
11249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11250 find out it does not work in some platform. */
11251 #ifndef LT_DLLAZY_OR_NOW
11252 # ifdef RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11254 # else
11255 # ifdef DL_LAZY
11256 # define LT_DLLAZY_OR_NOW DL_LAZY
11257 # else
11258 # ifdef RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW RTLD_NOW
11260 # else
11261 # ifdef DL_NOW
11262 # define LT_DLLAZY_OR_NOW DL_NOW
11263 # else
11264 # define LT_DLLAZY_OR_NOW 0
11265 # endif
11266 # endif
11267 # endif
11268 # endif
11269 #endif
11271 /* When -fvisbility=hidden is used, assume the code has been annotated
11272 correspondingly for the symbols needed. */
11273 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11274 void fnord () __attribute__((visibility("default")));
11275 #endif
11277 void fnord () { int i=42; }
11278 int main ()
11280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11281 int status = $lt_dlunknown;
11283 if (self)
11285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11286 else
11288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11289 else puts (dlerror ());
11291 /* dlclose (self); */
11293 else
11294 puts (dlerror ());
11296 return status;
11298 _LT_EOF
11299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11300 (eval $ac_link) 2>&5
11301 ac_status=$?
11302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11304 (./conftest; exit; ) >&5 2>/dev/null
11305 lt_status=$?
11306 case x$lt_status in
11307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11310 esac
11311 else :
11312 # compilation failed
11313 lt_cv_dlopen_self_static=no
11316 rm -fr conftest*
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11321 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11324 CPPFLAGS="$save_CPPFLAGS"
11325 LDFLAGS="$save_LDFLAGS"
11326 LIBS="$save_LIBS"
11328 esac
11330 case $lt_cv_dlopen_self in
11331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11332 *) enable_dlopen_self=unknown ;;
11333 esac
11335 case $lt_cv_dlopen_self_static in
11336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11337 *) enable_dlopen_self_static=unknown ;;
11338 esac
11357 striplib=
11358 old_striplib=
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11360 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11361 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11365 $as_echo "yes" >&6; }
11366 else
11367 # FIXME - insert some real tests, host_os isn't really good enough
11368 case $host_os in
11369 darwin*)
11370 if test -n "$STRIP" ; then
11371 striplib="$STRIP -x"
11372 old_striplib="$STRIP -S"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11384 esac
11398 # Report which library types will actually be built
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11400 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11402 $as_echo "$can_build_shared" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11405 $as_echo_n "checking whether to build shared libraries... " >&6; }
11406 test "$can_build_shared" = "no" && enable_shared=no
11408 # On AIX, shared libraries and static libraries use the same namespace, and
11409 # are all built from PIC.
11410 case $host_os in
11411 aix3*)
11412 test "$enable_shared" = yes && enable_static=no
11413 if test -n "$RANLIB"; then
11414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11415 postinstall_cmds='$RANLIB $lib'
11419 aix[4-9]*)
11420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11421 test "$enable_shared" = yes && enable_static=no
11424 esac
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11426 $as_echo "$enable_shared" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11429 $as_echo_n "checking whether to build static libraries... " >&6; }
11430 # Make sure either enable_shared or enable_static is yes.
11431 test "$enable_shared" = yes || enable_static=yes
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11433 $as_echo "$enable_static" >&6; }
11439 ac_ext=c
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11445 CC="$lt_save_CC"
11459 # Source file extension for Go test sources.
11460 ac_ext=go
11462 # Object file extension for compiled Go test sources.
11463 objext=o
11464 objext_GO=$objext
11466 # Code to be used in simple compile tests
11467 lt_simple_compile_test_code="package main; func main() { }"
11469 # Code to be used in simple link tests
11470 lt_simple_link_test_code='package main; func main() { }'
11472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11479 # If no C compiler was specified, use CC.
11480 LTCC=${LTCC-"$CC"}
11482 # If no C compiler flags were specified, use CFLAGS.
11483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11485 # Allow CC to be a program name with arguments.
11486 compiler=$CC
11489 # save warnings/boilerplate of simple test code
11490 ac_outfile=conftest.$ac_objext
11491 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11493 _lt_compiler_boilerplate=`cat conftest.err`
11494 $RM conftest*
11496 ac_outfile=conftest.$ac_objext
11497 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11499 _lt_linker_boilerplate=`cat conftest.err`
11500 $RM -r conftest*
11503 # Allow CC to be a program name with arguments.
11504 lt_save_CC="$CC"
11505 lt_save_GCC="$GCC"
11506 GCC=yes
11507 CC=${GOC-"gccgo"}
11508 compiler=$CC
11509 compiler_GO=$CC
11510 LD_GO="$LD"
11511 for cc_temp in $compiler""; do
11512 case $cc_temp in
11513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11515 \-*) ;;
11516 *) break;;
11517 esac
11518 done
11519 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11522 # Go did not exist at the time GCC didn't implicitly link libc in.
11523 archive_cmds_need_lc_GO=no
11525 old_archive_cmds_GO=$old_archive_cmds
11527 ## CAVEAT EMPTOR:
11528 ## There is no encapsulation within the following macros, do not change
11529 ## the running order or otherwise move them around unless you know exactly
11530 ## what you are doing...
11531 if test -n "$compiler"; then
11533 lt_prog_compiler_no_builtin_flag_GO=
11535 if test "$GCC" = yes; then
11536 case $cc_basename in
11537 nvcc*)
11538 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11540 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11541 esac
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11544 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11545 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 lt_cv_prog_compiler_rtti_exceptions=no
11549 ac_outfile=conftest.$ac_objext
11550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11551 lt_compiler_flag="-fno-rtti -fno-exceptions"
11552 # Insert the option either (1) after the last *FLAGS variable, or
11553 # (2) before a word containing "conftest.", or (3) at the end.
11554 # Note that $ac_compile itself does not contain backslashes and begins
11555 # with a dollar sign (not a hyphen), so the echo should work correctly.
11556 # The option is referenced via a variable to avoid confusing sed.
11557 lt_compile=`echo "$ac_compile" | $SED \
11558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11560 -e 's:$: $lt_compiler_flag:'`
11561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11562 (eval "$lt_compile" 2>conftest.err)
11563 ac_status=$?
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 if (exit $ac_status) && test -s "$ac_outfile"; then
11567 # The compiler can only warn and ignore the option if not recognized
11568 # So say no if there are warnings other than the usual output.
11569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11572 lt_cv_prog_compiler_rtti_exceptions=yes
11575 $RM conftest*
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11579 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11581 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11582 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11583 else
11591 lt_prog_compiler_wl_GO=
11592 lt_prog_compiler_pic_GO=
11593 lt_prog_compiler_static_GO=
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11598 if test "$GCC" = yes; then
11599 lt_prog_compiler_wl_GO='-Wl,'
11600 lt_prog_compiler_static_GO='-static'
11602 case $host_os in
11603 aix*)
11604 # All AIX code is PIC.
11605 if test "$host_cpu" = ia64; then
11606 # AIX 5 now supports IA64 processor
11607 lt_prog_compiler_static_GO='-Bstatic'
11609 lt_prog_compiler_pic_GO='-fPIC'
11612 amigaos*)
11613 case $host_cpu in
11614 powerpc)
11615 # see comment about AmigaOS4 .so support
11616 lt_prog_compiler_pic_GO='-fPIC'
11618 m68k)
11619 # FIXME: we need at least 68020 code to build shared libraries, but
11620 # adding the `-m68020' flag to GCC prevents building anything better,
11621 # like `-m68040'.
11622 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11624 esac
11627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628 # PIC is the default for these OSes.
11631 mingw* | cygwin* | pw32* | os2* | cegcc*)
11632 # This hack is so that the source file can tell whether it is being
11633 # built for inclusion in a dll (and should export symbols for example).
11634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11635 # (--disable-auto-import) libraries
11636 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11639 darwin* | rhapsody*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic_GO='-fno-common'
11645 haiku*)
11646 # PIC is the default for Haiku.
11647 # The "-static" flag exists, but is broken.
11648 lt_prog_compiler_static_GO=
11651 hpux*)
11652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11654 # sets the default TLS model and affects inlining.
11655 case $host_cpu in
11656 hppa*64*)
11657 # +Z the default
11660 lt_prog_compiler_pic_GO='-fPIC'
11662 esac
11665 interix[3-9]*)
11666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11667 # Instead, we relocate shared libraries at runtime.
11670 msdosdjgpp*)
11671 # Just because we use GCC doesn't mean we suddenly get shared libraries
11672 # on systems that don't support them.
11673 lt_prog_compiler_can_build_shared_GO=no
11674 enable_shared=no
11677 *nto* | *qnx*)
11678 # QNX uses GNU C++, but need to define -shared option too, otherwise
11679 # it will coredump.
11680 lt_prog_compiler_pic_GO='-fPIC -shared'
11683 sysv4*MP*)
11684 if test -d /usr/nec; then
11685 lt_prog_compiler_pic_GO=-Kconform_pic
11690 lt_prog_compiler_pic_GO='-fPIC'
11692 esac
11694 case $cc_basename in
11695 nvcc*) # Cuda Compiler Driver 2.2
11696 lt_prog_compiler_wl_GO='-Xlinker '
11697 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11699 esac
11700 else
11701 # PORTME Check for flag to pass linker flags through the system compiler.
11702 case $host_os in
11703 aix*)
11704 lt_prog_compiler_wl_GO='-Wl,'
11705 if test "$host_cpu" = ia64; then
11706 # AIX 5 now supports IA64 processor
11707 lt_prog_compiler_static_GO='-Bstatic'
11708 else
11709 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11713 mingw* | cygwin* | pw32* | os2* | cegcc*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11719 hpux9* | hpux10* | hpux11*)
11720 lt_prog_compiler_wl_GO='-Wl,'
11721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11722 # not for PA HP-UX.
11723 case $host_cpu in
11724 hppa*64*|ia64*)
11725 # +Z the default
11728 lt_prog_compiler_pic_GO='+Z'
11730 esac
11731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11732 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11735 irix5* | irix6* | nonstopux*)
11736 lt_prog_compiler_wl_GO='-Wl,'
11737 # PIC (with -KPIC) is the default.
11738 lt_prog_compiler_static_GO='-non_shared'
11741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11742 case $cc_basename in
11743 # old Intel for x86_64 which still supported -KPIC.
11744 ecc*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 lt_prog_compiler_pic_GO='-KPIC'
11747 lt_prog_compiler_static_GO='-static'
11749 # icc used to be incompatible with GCC.
11750 # ICC 10 doesn't accept -KPIC any more.
11751 icc* | ifort*)
11752 lt_prog_compiler_wl_GO='-Wl,'
11753 lt_prog_compiler_pic_GO='-fPIC'
11754 lt_prog_compiler_static_GO='-static'
11756 # Lahey Fortran 8.1.
11757 lf95*)
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='--shared'
11760 lt_prog_compiler_static_GO='--static'
11762 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11763 # Portland Group compilers (*not* the Pentium gcc compiler,
11764 # which looks to be a dead project)
11765 lt_prog_compiler_wl_GO='-Wl,'
11766 lt_prog_compiler_pic_GO='-fpic'
11767 lt_prog_compiler_static_GO='-Bstatic'
11769 ccc*)
11770 lt_prog_compiler_wl_GO='-Wl,'
11771 # All Alpha code is PIC.
11772 lt_prog_compiler_static_GO='-non_shared'
11774 xl* | bgxl* | bgf* | mpixl*)
11775 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11776 lt_prog_compiler_wl_GO='-Wl,'
11777 lt_prog_compiler_pic_GO='-qpic'
11778 lt_prog_compiler_static_GO='-qstaticlink'
11781 case `$CC -V 2>&1 | sed 5q` in
11782 *Sun\ F* | *Sun*Fortran*)
11783 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11784 lt_prog_compiler_pic_GO='-KPIC'
11785 lt_prog_compiler_static_GO='-Bstatic'
11786 lt_prog_compiler_wl_GO=''
11788 *Sun\ C*)
11789 # Sun C 5.9
11790 lt_prog_compiler_pic_GO='-KPIC'
11791 lt_prog_compiler_static_GO='-Bstatic'
11792 lt_prog_compiler_wl_GO='-Wl,'
11794 esac
11796 esac
11799 newsos6)
11800 lt_prog_compiler_pic_GO='-KPIC'
11801 lt_prog_compiler_static_GO='-Bstatic'
11804 *nto* | *qnx*)
11805 # QNX uses GNU C++, but need to define -shared option too, otherwise
11806 # it will coredump.
11807 lt_prog_compiler_pic_GO='-fPIC -shared'
11810 osf3* | osf4* | osf5*)
11811 lt_prog_compiler_wl_GO='-Wl,'
11812 # All OSF/1 code is PIC.
11813 lt_prog_compiler_static_GO='-non_shared'
11816 rdos*)
11817 lt_prog_compiler_static_GO='-non_shared'
11820 solaris*)
11821 lt_prog_compiler_pic_GO='-KPIC'
11822 lt_prog_compiler_static_GO='-Bstatic'
11823 case $cc_basename in
11824 f77* | f90* | f95*)
11825 lt_prog_compiler_wl_GO='-Qoption ld ';;
11827 lt_prog_compiler_wl_GO='-Wl,';;
11828 esac
11831 sunos4*)
11832 lt_prog_compiler_wl_GO='-Qoption ld '
11833 lt_prog_compiler_pic_GO='-PIC'
11834 lt_prog_compiler_static_GO='-Bstatic'
11837 sysv4 | sysv4.2uw2* | sysv4.3*)
11838 lt_prog_compiler_wl_GO='-Wl,'
11839 lt_prog_compiler_pic_GO='-KPIC'
11840 lt_prog_compiler_static_GO='-Bstatic'
11843 sysv4*MP*)
11844 if test -d /usr/nec ;then
11845 lt_prog_compiler_pic_GO='-Kconform_pic'
11846 lt_prog_compiler_static_GO='-Bstatic'
11850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11851 lt_prog_compiler_wl_GO='-Wl,'
11852 lt_prog_compiler_pic_GO='-KPIC'
11853 lt_prog_compiler_static_GO='-Bstatic'
11856 unicos*)
11857 lt_prog_compiler_wl_GO='-Wl,'
11858 lt_prog_compiler_can_build_shared_GO=no
11861 uts4*)
11862 lt_prog_compiler_pic_GO='-pic'
11863 lt_prog_compiler_static_GO='-Bstatic'
11867 lt_prog_compiler_can_build_shared_GO=no
11869 esac
11872 case $host_os in
11873 # For platforms which do not support PIC, -DPIC is meaningless:
11874 *djgpp*)
11875 lt_prog_compiler_pic_GO=
11878 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11880 esac
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11882 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11887 # Check to make sure the PIC flag actually works.
11889 if test -n "$lt_prog_compiler_pic_GO"; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11892 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 lt_cv_prog_compiler_pic_works_GO=no
11896 ac_outfile=conftest.$ac_objext
11897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11898 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11899 # Insert the option either (1) after the last *FLAGS variable, or
11900 # (2) before a word containing "conftest.", or (3) at the end.
11901 # Note that $ac_compile itself does not contain backslashes and begins
11902 # with a dollar sign (not a hyphen), so the echo should work correctly.
11903 # The option is referenced via a variable to avoid confusing sed.
11904 lt_compile=`echo "$ac_compile" | $SED \
11905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11907 -e 's:$: $lt_compiler_flag:'`
11908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11909 (eval "$lt_compile" 2>conftest.err)
11910 ac_status=$?
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 if (exit $ac_status) && test -s "$ac_outfile"; then
11914 # The compiler can only warn and ignore the option if not recognized
11915 # So say no if there are warnings other than the usual output.
11916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11919 lt_cv_prog_compiler_pic_works_GO=yes
11922 $RM conftest*
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11926 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11928 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11929 case $lt_prog_compiler_pic_GO in
11930 "" | " "*) ;;
11931 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11932 esac
11933 else
11934 lt_prog_compiler_pic_GO=
11935 lt_prog_compiler_can_build_shared_GO=no
11943 # Check to make sure the static flag actually works.
11945 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11947 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11948 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 lt_cv_prog_compiler_static_works_GO=no
11952 save_LDFLAGS="$LDFLAGS"
11953 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11954 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11956 # The linker can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 if test -s conftest.err; then
11959 # Append any errors to the config.log.
11960 cat conftest.err 1>&5
11961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11963 if diff conftest.exp conftest.er2 >/dev/null; then
11964 lt_cv_prog_compiler_static_works_GO=yes
11966 else
11967 lt_cv_prog_compiler_static_works_GO=yes
11970 $RM -r conftest*
11971 LDFLAGS="$save_LDFLAGS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11975 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11977 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11979 else
11980 lt_prog_compiler_static_GO=
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11988 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 lt_cv_prog_compiler_c_o_GO=no
11992 $RM -r conftest 2>/dev/null
11993 mkdir conftest
11994 cd conftest
11995 mkdir out
11996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11998 lt_compiler_flag="-o out/conftest2.$ac_objext"
11999 # Insert the option either (1) after the last *FLAGS variable, or
12000 # (2) before a word containing "conftest.", or (3) at the end.
12001 # Note that $ac_compile itself does not contain backslashes and begins
12002 # with a dollar sign (not a hyphen), so the echo should work correctly.
12003 lt_compile=`echo "$ac_compile" | $SED \
12004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12006 -e 's:$: $lt_compiler_flag:'`
12007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12008 (eval "$lt_compile" 2>out/conftest.err)
12009 ac_status=$?
12010 cat out/conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12013 then
12014 # The compiler can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12019 lt_cv_prog_compiler_c_o_GO=yes
12022 chmod u+w . 2>&5
12023 $RM conftest*
12024 # SGI C++ compiler will create directory out/ii_files/ for
12025 # template instantiation
12026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12027 $RM out/* && rmdir out
12028 cd ..
12029 $RM -r conftest
12030 $RM conftest*
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12034 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12040 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 lt_cv_prog_compiler_c_o_GO=no
12044 $RM -r conftest 2>/dev/null
12045 mkdir conftest
12046 cd conftest
12047 mkdir out
12048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12050 lt_compiler_flag="-o out/conftest2.$ac_objext"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 lt_compile=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
12059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12060 (eval "$lt_compile" 2>out/conftest.err)
12061 ac_status=$?
12062 cat out/conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12065 then
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12071 lt_cv_prog_compiler_c_o_GO=yes
12074 chmod u+w . 2>&5
12075 $RM conftest*
12076 # SGI C++ compiler will create directory out/ii_files/ for
12077 # template instantiation
12078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12079 $RM out/* && rmdir out
12080 cd ..
12081 $RM -r conftest
12082 $RM conftest*
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12086 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12091 hard_links="nottested"
12092 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12093 # do not overwrite the value of need_locks provided by the user
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12095 $as_echo_n "checking if we can lock with hard links... " >&6; }
12096 hard_links=yes
12097 $RM conftest*
12098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099 touch conftest.a
12100 ln conftest.a conftest.b 2>&5 || hard_links=no
12101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12103 $as_echo "$hard_links" >&6; }
12104 if test "$hard_links" = no; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12107 need_locks=warn
12109 else
12110 need_locks=no
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118 runpath_var=
12119 allow_undefined_flag_GO=
12120 always_export_symbols_GO=no
12121 archive_cmds_GO=
12122 archive_expsym_cmds_GO=
12123 compiler_needs_object_GO=no
12124 enable_shared_with_static_runtimes_GO=no
12125 export_dynamic_flag_spec_GO=
12126 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12127 hardcode_automatic_GO=no
12128 hardcode_direct_GO=no
12129 hardcode_direct_absolute_GO=no
12130 hardcode_libdir_flag_spec_GO=
12131 hardcode_libdir_flag_spec_ld_GO=
12132 hardcode_libdir_separator_GO=
12133 hardcode_minus_L_GO=no
12134 hardcode_shlibpath_var_GO=unsupported
12135 inherit_rpath_GO=no
12136 link_all_deplibs_GO=unknown
12137 module_cmds_GO=
12138 module_expsym_cmds_GO=
12139 old_archive_from_new_cmds_GO=
12140 old_archive_from_expsyms_cmds_GO=
12141 thread_safe_flag_spec_GO=
12142 whole_archive_flag_spec_GO=
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12145 include_expsyms_GO=
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149 # as well as any symbol that contains `d'.
12150 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 # Exclude shared library initialization/finalization symbols.
12157 extract_expsyms_cmds=
12159 case $host_os in
12160 cygwin* | mingw* | pw32* | cegcc*)
12161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12162 # When not using gcc, we currently assume that we are using
12163 # Microsoft Visual C++.
12164 if test "$GCC" != yes; then
12165 with_gnu_ld=no
12168 interix*)
12169 # we just hope/assume this is gcc and not c89 (= MSVC++)
12170 with_gnu_ld=yes
12172 openbsd*)
12173 with_gnu_ld=no
12175 esac
12177 ld_shlibs_GO=yes
12179 # On some targets, GNU ld is compatible enough with the native linker
12180 # that we're better off using the native interface for both.
12181 lt_use_gnu_ld_interface=no
12182 if test "$with_gnu_ld" = yes; then
12183 case $host_os in
12184 aix*)
12185 # The AIX port of GNU ld has always aspired to compatibility
12186 # with the native linker. However, as the warning in the GNU ld
12187 # block says, versions before 2.19.5* couldn't really create working
12188 # shared libraries, regardless of the interface used.
12189 case `$LD -v 2>&1` in
12190 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12191 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12192 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12194 lt_use_gnu_ld_interface=yes
12196 esac
12199 lt_use_gnu_ld_interface=yes
12201 esac
12204 if test "$lt_use_gnu_ld_interface" = yes; then
12205 # If archive_cmds runs LD, not CC, wlarc should be empty
12206 wlarc='${wl}'
12208 # Set some defaults for GNU ld with shared library support. These
12209 # are reset later if shared libraries are not supported. Putting them
12210 # here allows them to be overridden if necessary.
12211 runpath_var=LD_RUN_PATH
12212 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12213 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12216 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12217 else
12218 whole_archive_flag_spec_GO=
12220 supports_anon_versioning=no
12221 case `$LD -v 2>&1` in
12222 *GNU\ gold*) supports_anon_versioning=yes ;;
12223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12226 *\ 2.11.*) ;; # other 2.11 versions
12227 *) supports_anon_versioning=yes ;;
12228 esac
12230 # See if GNU ld supports shared libraries.
12231 case $host_os in
12232 aix[3-9]*)
12233 # On AIX/PPC, the GNU linker is very broken
12234 if test "$host_cpu" != ia64; then
12235 ld_shlibs_GO=no
12236 cat <<_LT_EOF 1>&2
12238 *** Warning: the GNU linker, at least up to release 2.19, is reported
12239 *** to be unable to reliably create shared libraries on AIX.
12240 *** Therefore, libtool is disabling shared libraries support. If you
12241 *** really care for shared libraries, you may want to install binutils
12242 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12243 *** You will then need to restart the configuration process.
12245 _LT_EOF
12249 amigaos*)
12250 case $host_cpu in
12251 powerpc)
12252 # see comment about AmigaOS4 .so support
12253 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 archive_expsym_cmds_GO=''
12256 m68k)
12257 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)'
12258 hardcode_libdir_flag_spec_GO='-L$libdir'
12259 hardcode_minus_L_GO=yes
12261 esac
12264 beos*)
12265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12266 allow_undefined_flag_GO=unsupported
12267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12268 # support --undefined. This deserves some investigation. FIXME
12269 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270 else
12271 ld_shlibs_GO=no
12275 cygwin* | mingw* | pw32* | cegcc*)
12276 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12277 # as there is no search path for DLLs.
12278 hardcode_libdir_flag_spec_GO='-L$libdir'
12279 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12280 allow_undefined_flag_GO=unsupported
12281 always_export_symbols_GO=no
12282 enable_shared_with_static_runtimes_GO=yes
12283 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12285 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12286 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12287 # If the export-symbols file already is a .def file (1st line
12288 # is EXPORTS), use it as is; otherwise, prepend...
12289 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12290 cp $export_symbols $output_objdir/$soname.def;
12291 else
12292 echo EXPORTS > $output_objdir/$soname.def;
12293 cat $export_symbols >> $output_objdir/$soname.def;
12295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12296 else
12297 ld_shlibs_GO=no
12301 haiku*)
12302 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 link_all_deplibs_GO=yes
12306 interix[3-9]*)
12307 hardcode_direct_GO=no
12308 hardcode_shlibpath_var_GO=no
12309 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12310 export_dynamic_flag_spec_GO='${wl}-E'
12311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12312 # Instead, shared libraries are loaded at an image base (0x10000000 by
12313 # default) and relocated if they conflict, which is a slow very memory
12314 # consuming and fragmenting process. To avoid this, we pick a random,
12315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12317 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'
12318 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'
12321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12322 tmp_diet=no
12323 if test "$host_os" = linux-dietlibc; then
12324 case $cc_basename in
12325 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12326 esac
12328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12329 && test "$tmp_diet" = no
12330 then
12331 tmp_addflag=
12332 tmp_sharedflag='-shared'
12333 case $cc_basename,$host_cpu in
12334 pgcc*) # Portland Group C compiler
12335 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'
12336 tmp_addflag=' $pic_flag'
12338 pgf77* | pgf90* | pgf95* | pgfortran*)
12339 # Portland Group f77 and f90 compilers
12340 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'
12341 tmp_addflag=' $pic_flag -Mnomain' ;;
12342 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12343 tmp_addflag=' -i_dynamic' ;;
12344 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12345 tmp_addflag=' -i_dynamic -nofor_main' ;;
12346 ifc* | ifort*) # Intel Fortran compiler
12347 tmp_addflag=' -nofor_main' ;;
12348 lf95*) # Lahey Fortran 8.1
12349 whole_archive_flag_spec_GO=
12350 tmp_sharedflag='--shared' ;;
12351 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12352 tmp_sharedflag='-qmkshrobj'
12353 tmp_addflag= ;;
12354 nvcc*) # Cuda Compiler Driver 2.2
12355 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'
12356 compiler_needs_object_GO=yes
12358 esac
12359 case `$CC -V 2>&1 | sed 5q` in
12360 *Sun\ C*) # Sun C 5.9
12361 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'
12362 compiler_needs_object_GO=yes
12363 tmp_sharedflag='-G' ;;
12364 *Sun\ F*) # Sun Fortran 8.3
12365 tmp_sharedflag='-G' ;;
12366 esac
12367 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12369 if test "x$supports_anon_versioning" = xyes; then
12370 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12372 echo "local: *; };" >> $output_objdir/$libname.ver~
12373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12376 case $cc_basename in
12377 xlf* | bgf* | bgxlf* | mpixlf*)
12378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12379 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12380 hardcode_libdir_flag_spec_GO=
12381 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12382 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12383 if test "x$supports_anon_versioning" = xyes; then
12384 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12386 echo "local: *; };" >> $output_objdir/$libname.ver~
12387 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12390 esac
12391 else
12392 ld_shlibs_GO=no
12396 netbsd*)
12397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12398 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12399 wlarc=
12400 else
12401 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12406 solaris*)
12407 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12408 ld_shlibs_GO=no
12409 cat <<_LT_EOF 1>&2
12411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12412 *** create shared libraries on Solaris systems. Therefore, libtool
12413 *** is disabling shared libraries support. We urge you to upgrade GNU
12414 *** binutils to release 2.9.1 or newer. Another option is to modify
12415 *** your PATH or compiler configuration so that the native linker is
12416 *** used, and then restart.
12418 _LT_EOF
12419 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12422 else
12423 ld_shlibs_GO=no
12427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12428 case `$LD -v 2>&1` in
12429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12430 ld_shlibs_GO=no
12431 cat <<_LT_EOF 1>&2
12433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12434 *** reliably create shared libraries on SCO systems. Therefore, libtool
12435 *** is disabling shared libraries support. We urge you to upgrade GNU
12436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12437 *** your PATH or compiler configuration so that the native linker is
12438 *** used, and then restart.
12440 _LT_EOF
12443 # For security reasons, it is highly recommended that you always
12444 # use absolute paths for naming shared libraries, and exclude the
12445 # DT_RUNPATH tag from executables and libraries. But doing so
12446 # requires that you compile everything twice, which is a pain.
12447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12448 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12449 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12451 else
12452 ld_shlibs_GO=no
12455 esac
12458 sunos4*)
12459 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12460 wlarc=
12461 hardcode_direct_GO=yes
12462 hardcode_shlibpath_var_GO=no
12466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12467 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12468 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12469 else
12470 ld_shlibs_GO=no
12473 esac
12475 if test "$ld_shlibs_GO" = no; then
12476 runpath_var=
12477 hardcode_libdir_flag_spec_GO=
12478 export_dynamic_flag_spec_GO=
12479 whole_archive_flag_spec_GO=
12481 else
12482 # PORTME fill in a description of your system's linker (not GNU ld)
12483 case $host_os in
12484 aix3*)
12485 allow_undefined_flag_GO=unsupported
12486 always_export_symbols_GO=yes
12487 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'
12488 # Note: this linker hardcodes the directories in LIBPATH if there
12489 # are no directories specified by -L.
12490 hardcode_minus_L_GO=yes
12491 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12492 # Neither direct hardcoding nor static linking is supported with a
12493 # broken collect2.
12494 hardcode_direct_GO=unsupported
12498 aix[4-9]*)
12499 if test "$host_cpu" = ia64; then
12500 # On IA64, the linker does run time linking by default, so we don't
12501 # have to do anything special.
12502 aix_use_runtimelinking=no
12503 exp_sym_flag='-Bexport'
12504 no_entry_flag=""
12505 else
12506 # If we're using GNU nm, then we don't want the "-C" option.
12507 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12508 # Also, AIX nm treats weak defined symbols like other global
12509 # defined symbols, whereas GNU nm marks them as "W".
12510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12511 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'
12512 else
12513 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'
12515 aix_use_runtimelinking=no
12517 # Test if we are trying to use run time linking or normal
12518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12519 # need to do runtime linking.
12520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12521 for ld_flag in $LDFLAGS; do
12522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12523 aix_use_runtimelinking=yes
12524 break
12526 done
12528 esac
12530 exp_sym_flag='-bexport'
12531 no_entry_flag='-bnoentry'
12534 # When large executables or shared objects are built, AIX ld can
12535 # have problems creating the table of contents. If linking a library
12536 # or program results in "error TOC overflow" add -mminimal-toc to
12537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12540 archive_cmds_GO=''
12541 hardcode_direct_GO=yes
12542 hardcode_direct_absolute_GO=yes
12543 hardcode_libdir_separator_GO=':'
12544 link_all_deplibs_GO=yes
12545 file_list_spec_GO='${wl}-f,'
12547 if test "$GCC" = yes; then
12548 case $host_os in aix4.[012]|aix4.[012].*)
12549 # We only want to do this on AIX 4.2 and lower, the check
12550 # below for broken collect2 doesn't work under 4.3+
12551 collect2name=`${CC} -print-prog-name=collect2`
12552 if test -f "$collect2name" &&
12553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12554 then
12555 # We have reworked collect2
12557 else
12558 # We have old collect2
12559 hardcode_direct_GO=unsupported
12560 # It fails to find uninstalled libraries when the uninstalled
12561 # path is not listed in the libpath. Setting hardcode_minus_L
12562 # to unsupported forces relinking
12563 hardcode_minus_L_GO=yes
12564 hardcode_libdir_flag_spec_GO='-L$libdir'
12565 hardcode_libdir_separator_GO=
12568 esac
12569 shared_flag='-shared'
12570 if test "$aix_use_runtimelinking" = yes; then
12571 shared_flag="$shared_flag "'${wl}-G'
12573 else
12574 # not using gcc
12575 if test "$host_cpu" = ia64; then
12576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12577 # chokes on -Wl,-G. The following line is correct:
12578 shared_flag='-G'
12579 else
12580 if test "$aix_use_runtimelinking" = yes; then
12581 shared_flag='${wl}-G'
12582 else
12583 shared_flag='${wl}-bM:SRE'
12588 export_dynamic_flag_spec_GO='${wl}-bexpall'
12589 # It seems that -bexpall does not export symbols beginning with
12590 # underscore (_), so it is better to generate a list of symbols to export.
12591 always_export_symbols_GO=yes
12592 if test "$aix_use_runtimelinking" = yes; then
12593 # Warning - without using the other runtime loading flags (-brtl),
12594 # -berok will link without error, but may produce a broken library.
12595 allow_undefined_flag_GO='-berok'
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12602 main ()
12606 return 0;
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12611 lt_aix_libpath_sed='
12612 /Import File Strings/,/^$/ {
12613 /^0/ {
12614 s/^0 *\(.*\)$/\1/
12618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619 # Check for a 64-bit object if we didn't find anything.
12620 if test -z "$aix_libpath"; then
12621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12628 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12629 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"
12630 else
12631 if test "$host_cpu" = ia64; then
12632 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12633 allow_undefined_flag_GO="-z nodefs"
12634 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"
12635 else
12636 # Determine the default libpath from the value encoded in an
12637 # empty executable.
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12642 main ()
12646 return 0;
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12651 lt_aix_libpath_sed='
12652 /Import File Strings/,/^$/ {
12653 /^0/ {
12654 s/^0 *\(.*\)$/\1/
12658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12659 # Check for a 64-bit object if we didn't find anything.
12660 if test -z "$aix_libpath"; then
12661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664 rm -f core conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12668 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12669 # Warning - without using the other run time loading flags,
12670 # -berok will link without error, but may produce a broken library.
12671 no_undefined_flag_GO=' ${wl}-bernotok'
12672 allow_undefined_flag_GO=' ${wl}-berok'
12673 if test "$with_gnu_ld" = yes; then
12674 # We only use this code for GNU lds that support --whole-archive.
12675 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12676 else
12677 # Exported symbols can be pulled into shared objects from archives
12678 whole_archive_flag_spec_GO='$convenience'
12680 archive_cmds_need_lc_GO=yes
12681 # This is similar to how AIX traditionally builds its shared libraries.
12682 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'
12687 amigaos*)
12688 case $host_cpu in
12689 powerpc)
12690 # see comment about AmigaOS4 .so support
12691 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692 archive_expsym_cmds_GO=''
12694 m68k)
12695 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)'
12696 hardcode_libdir_flag_spec_GO='-L$libdir'
12697 hardcode_minus_L_GO=yes
12699 esac
12702 bsdi[45]*)
12703 export_dynamic_flag_spec_GO=-rdynamic
12706 cygwin* | mingw* | pw32* | cegcc*)
12707 # When not using gcc, we currently assume that we are using
12708 # Microsoft Visual C++.
12709 # hardcode_libdir_flag_spec is actually meaningless, as there is
12710 # no search path for DLLs.
12711 hardcode_libdir_flag_spec_GO=' '
12712 allow_undefined_flag_GO=unsupported
12713 # Tell ltmain to make .lib files, not .a files.
12714 libext=lib
12715 # Tell ltmain to make .dll files, not .so files.
12716 shrext_cmds=".dll"
12717 # FIXME: Setting linknames here is a bad hack.
12718 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12719 # The linker will automatically build a .lib file if we build a DLL.
12720 old_archive_from_new_cmds_GO='true'
12721 # FIXME: Should let the user specify the lib program.
12722 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12723 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12724 enable_shared_with_static_runtimes_GO=yes
12727 darwin* | rhapsody*)
12730 archive_cmds_need_lc_GO=no
12731 hardcode_direct_GO=no
12732 hardcode_automatic_GO=yes
12733 hardcode_shlibpath_var_GO=unsupported
12734 if test "$lt_cv_ld_force_load" = "yes"; then
12735 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\"`'
12736 else
12737 whole_archive_flag_spec_GO=''
12739 link_all_deplibs_GO=yes
12740 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12741 case $cc_basename in
12742 ifort*) _lt_dar_can_shared=yes ;;
12743 *) _lt_dar_can_shared=$GCC ;;
12744 esac
12745 if test "$_lt_dar_can_shared" = "yes"; then
12746 output_verbose_link_cmd=func_echo_all
12747 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}"
12748 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12749 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}"
12750 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}"
12752 else
12753 ld_shlibs_GO=no
12758 dgux*)
12759 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_libdir_flag_spec_GO='-L$libdir'
12761 hardcode_shlibpath_var_GO=no
12764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12765 # support. Future versions do this automatically, but an explicit c++rt0.o
12766 # does not break anything, and helps significantly (at the cost of a little
12767 # extra space).
12768 freebsd2.2*)
12769 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12770 hardcode_libdir_flag_spec_GO='-R$libdir'
12771 hardcode_direct_GO=yes
12772 hardcode_shlibpath_var_GO=no
12775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12776 freebsd2.*)
12777 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12778 hardcode_direct_GO=yes
12779 hardcode_minus_L_GO=yes
12780 hardcode_shlibpath_var_GO=no
12783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12784 freebsd* | dragonfly*)
12785 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12786 hardcode_libdir_flag_spec_GO='-R$libdir'
12787 hardcode_direct_GO=yes
12788 hardcode_shlibpath_var_GO=no
12791 hpux9*)
12792 if test "$GCC" = yes; then
12793 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'
12794 else
12795 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'
12797 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_separator_GO=:
12799 hardcode_direct_GO=yes
12801 # hardcode_minus_L: Not really in the search PATH,
12802 # but as the default location of the library.
12803 hardcode_minus_L_GO=yes
12804 export_dynamic_flag_spec_GO='${wl}-E'
12807 hpux10*)
12808 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12809 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12810 else
12811 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12813 if test "$with_gnu_ld" = no; then
12814 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12816 hardcode_libdir_separator_GO=:
12817 hardcode_direct_GO=yes
12818 hardcode_direct_absolute_GO=yes
12819 export_dynamic_flag_spec_GO='${wl}-E'
12820 # hardcode_minus_L: Not really in the search PATH,
12821 # but as the default location of the library.
12822 hardcode_minus_L_GO=yes
12826 hpux11*)
12827 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12828 case $host_cpu in
12829 hppa*64*)
12830 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12832 ia64*)
12833 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12836 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12838 esac
12839 else
12840 case $host_cpu in
12841 hppa*64*)
12842 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12844 ia64*)
12845 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12850 esac
12852 if test "$with_gnu_ld" = no; then
12853 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12854 hardcode_libdir_separator_GO=:
12856 case $host_cpu in
12857 hppa*64*|ia64*)
12858 hardcode_direct_GO=no
12859 hardcode_shlibpath_var_GO=no
12862 hardcode_direct_GO=yes
12863 hardcode_direct_absolute_GO=yes
12864 export_dynamic_flag_spec_GO='${wl}-E'
12866 # hardcode_minus_L: Not really in the search PATH,
12867 # but as the default location of the library.
12868 hardcode_minus_L_GO=yes
12870 esac
12874 irix5* | irix6* | nonstopux*)
12875 if test "$GCC" = yes; then
12876 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'
12877 # Try to use the -exported_symbol ld option, if it does not
12878 # work, assume that -exports_file does not work either and
12879 # implicitly export all symbols.
12880 save_LDFLAGS="$LDFLAGS"
12881 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 int foo(void) {}
12885 _ACEOF
12886 if ac_fn_c_try_link "$LINENO"; then :
12887 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'
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LDFLAGS="$save_LDFLAGS"
12893 else
12894 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'
12895 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'
12897 archive_cmds_need_lc_GO='no'
12898 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12899 hardcode_libdir_separator_GO=:
12900 inherit_rpath_GO=yes
12901 link_all_deplibs_GO=yes
12904 netbsd*)
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12906 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12907 else
12908 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12910 hardcode_libdir_flag_spec_GO='-R$libdir'
12911 hardcode_direct_GO=yes
12912 hardcode_shlibpath_var_GO=no
12915 newsos6)
12916 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_direct_GO=yes
12918 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12919 hardcode_libdir_separator_GO=:
12920 hardcode_shlibpath_var_GO=no
12923 *nto* | *qnx*)
12926 openbsd*)
12927 if test -f /usr/libexec/ld.so; then
12928 hardcode_direct_GO=yes
12929 hardcode_shlibpath_var_GO=no
12930 hardcode_direct_absolute_GO=yes
12931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12932 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12933 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12934 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12935 export_dynamic_flag_spec_GO='${wl}-E'
12936 else
12937 case $host_os in
12938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12939 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12940 hardcode_libdir_flag_spec_GO='-R$libdir'
12943 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12944 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12946 esac
12948 else
12949 ld_shlibs_GO=no
12953 os2*)
12954 hardcode_libdir_flag_spec_GO='-L$libdir'
12955 hardcode_minus_L_GO=yes
12956 allow_undefined_flag_GO=unsupported
12957 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'
12958 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12961 osf3*)
12962 if test "$GCC" = yes; then
12963 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12964 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'
12965 else
12966 allow_undefined_flag_GO=' -expect_unresolved \*'
12967 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'
12969 archive_cmds_need_lc_GO='no'
12970 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12971 hardcode_libdir_separator_GO=:
12974 osf4* | osf5*) # as osf3* with the addition of -msym flag
12975 if test "$GCC" = yes; then
12976 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12977 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'
12978 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12979 else
12980 allow_undefined_flag_GO=' -expect_unresolved \*'
12981 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'
12982 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~
12983 $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'
12985 # Both c and cxx compiler support -rpath directly
12986 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12988 archive_cmds_need_lc_GO='no'
12989 hardcode_libdir_separator_GO=:
12992 solaris*)
12993 no_undefined_flag_GO=' -z defs'
12994 if test "$GCC" = yes; then
12995 wlarc='${wl}'
12996 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12999 else
13000 case `$CC -V 2>&1` in
13001 *"Compilers 5.0"*)
13002 wlarc=''
13003 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13008 wlarc='${wl}'
13009 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13013 esac
13015 hardcode_libdir_flag_spec_GO='-R$libdir'
13016 hardcode_shlibpath_var_GO=no
13017 case $host_os in
13018 solaris2.[0-5] | solaris2.[0-5].*) ;;
13020 # The compiler driver will combine and reorder linker options,
13021 # but understands `-z linker_flag'. GCC discards it without `$wl',
13022 # but is careful enough not to reorder.
13023 # Supported since Solaris 2.6 (maybe 2.5.1?)
13024 if test "$GCC" = yes; then
13025 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13026 else
13027 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13030 esac
13031 link_all_deplibs_GO=yes
13034 sunos4*)
13035 if test "x$host_vendor" = xsequent; then
13036 # Use $CC to link under sequent, because it throws in some extra .o
13037 # files that make .init and .fini sections work.
13038 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13039 else
13040 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_libdir_flag_spec_GO='-L$libdir'
13043 hardcode_direct_GO=yes
13044 hardcode_minus_L_GO=yes
13045 hardcode_shlibpath_var_GO=no
13048 sysv4)
13049 case $host_vendor in
13050 sni)
13051 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 hardcode_direct_GO=yes # is this really true???
13054 siemens)
13055 ## LD is ld it makes a PLAMLIB
13056 ## CC just makes a GrossModule.
13057 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13058 reload_cmds_GO='$CC -r -o $output$reload_objs'
13059 hardcode_direct_GO=no
13061 motorola)
13062 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13065 esac
13066 runpath_var='LD_RUN_PATH'
13067 hardcode_shlibpath_var_GO=no
13070 sysv4.3*)
13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_shlibpath_var_GO=no
13073 export_dynamic_flag_spec_GO='-Bexport'
13076 sysv4*MP*)
13077 if test -d /usr/nec; then
13078 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13079 hardcode_shlibpath_var_GO=no
13080 runpath_var=LD_RUN_PATH
13081 hardcode_runpath_var=yes
13082 ld_shlibs_GO=yes
13086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13087 no_undefined_flag_GO='${wl}-z,text'
13088 archive_cmds_need_lc_GO=no
13089 hardcode_shlibpath_var_GO=no
13090 runpath_var='LD_RUN_PATH'
13092 if test "$GCC" = yes; then
13093 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 else
13096 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 sysv5* | sco3.2v5* | sco5v6*)
13102 # Note: We can NOT use -z defs as we might desire, because we do not
13103 # link with -lc, and that would cause any symbols used from libc to
13104 # always be unresolved, which means just about no library would
13105 # ever link correctly. If we're not using GNU ld we use -z text
13106 # though, which does catch some bad symbols but isn't as heavy-handed
13107 # as -z defs.
13108 no_undefined_flag_GO='${wl}-z,text'
13109 allow_undefined_flag_GO='${wl}-z,nodefs'
13110 archive_cmds_need_lc_GO=no
13111 hardcode_shlibpath_var_GO=no
13112 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13113 hardcode_libdir_separator_GO=':'
13114 link_all_deplibs_GO=yes
13115 export_dynamic_flag_spec_GO='${wl}-Bexport'
13116 runpath_var='LD_RUN_PATH'
13118 if test "$GCC" = yes; then
13119 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 else
13122 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13127 uts4*)
13128 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13129 hardcode_libdir_flag_spec_GO='-L$libdir'
13130 hardcode_shlibpath_var_GO=no
13134 ld_shlibs_GO=no
13136 esac
13138 if test x$host_vendor = xsni; then
13139 case $host in
13140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13141 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13143 esac
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13148 $as_echo "$ld_shlibs_GO" >&6; }
13149 test "$ld_shlibs_GO" = no && can_build_shared=no
13151 with_gnu_ld_GO=$with_gnu_ld
13159 # Do we need to explicitly link libc?
13161 case "x$archive_cmds_need_lc_GO" in
13162 x|xyes)
13163 # Assume -lc should be added
13164 archive_cmds_need_lc_GO=yes
13166 if test "$enable_shared" = yes && test "$GCC" = yes; then
13167 case $archive_cmds_GO in
13168 *'~'*)
13169 # FIXME: we may have to deal with multi-command sequences.
13171 '$CC '*)
13172 # Test whether the compiler implicitly links with -lc since on some
13173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13174 # to ld, don't add -lc before -lgcc.
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13177 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 $RM conftest*
13181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13184 (eval $ac_compile) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; } 2>conftest.err; then
13188 soname=conftest
13189 lib=conftest
13190 libobjs=conftest.$ac_objext
13191 deplibs=
13192 wl=$lt_prog_compiler_wl_GO
13193 pic_flag=$lt_prog_compiler_pic_GO
13194 compiler_flags=-v
13195 linker_flags=-v
13196 verstring=
13197 output_objdir=.
13198 libname=conftest
13199 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13200 allow_undefined_flag_GO=
13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13202 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13203 ac_status=$?
13204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13205 test $ac_status = 0; }
13206 then
13207 lt_cv_archive_cmds_need_lc_GO=no
13208 else
13209 lt_cv_archive_cmds_need_lc_GO=yes
13211 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13212 else
13213 cat conftest.err 1>&5
13215 $RM conftest*
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13219 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13220 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13222 esac
13225 esac
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13291 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13292 hardcode_action_GO=
13293 if test -n "$hardcode_libdir_flag_spec_GO" ||
13294 test -n "$runpath_var_GO" ||
13295 test "X$hardcode_automatic_GO" = "Xyes" ; then
13297 # We can hardcode non-existent directories.
13298 if test "$hardcode_direct_GO" != no &&
13299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13300 # have to relink, otherwise we might link with an installed library
13301 # when we should be linking with a yet-to-be-installed one
13302 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13303 test "$hardcode_minus_L_GO" != no; then
13304 # Linking always hardcodes the temporary library directory.
13305 hardcode_action_GO=relink
13306 else
13307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13308 hardcode_action_GO=immediate
13310 else
13311 # We cannot hardcode anything, or else we can only hardcode existing
13312 # directories.
13313 hardcode_action_GO=unsupported
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13316 $as_echo "$hardcode_action_GO" >&6; }
13318 if test "$hardcode_action_GO" = relink ||
13319 test "$inherit_rpath_GO" = yes; then
13320 # Fast installation is not supported
13321 enable_fast_install=no
13322 elif test "$shlibpath_overrides_runpath" = yes ||
13323 test "$enable_shared" = no; then
13324 # Fast installation is not necessary
13325 enable_fast_install=needless
13336 ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343 GCC=$lt_save_GCC
13344 CC="$lt_save_CC"
13349 ac_config_commands="$ac_config_commands libtool"
13354 # Only expand once:
13360 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13363 for ac_prog in gawk mawk nawk awk
13365 # Extract the first word of "$ac_prog", so it can be a program name with args.
13366 set dummy $ac_prog; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_AWK+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$AWK"; then
13373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382 ac_cv_prog_AWK="$ac_prog"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13386 done
13387 done
13388 IFS=$as_save_IFS
13392 AWK=$ac_cv_prog_AWK
13393 if test -n "$AWK"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13395 $as_echo "$AWK" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 test -n "$AWK" && break
13403 done
13406 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13409 # Check whether --enable-werror was given.
13410 if test "${enable_werror+set}" = set; then :
13411 enableval=$enable_werror;
13414 if test "x$enable_werror" != "xno"; then
13415 WERROR="-Werror"
13419 glibgo_toolexecdir=no
13420 glibgo_toolexeclibdir=no
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13423 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13424 # Check whether --enable-version-specific-runtime-libs was given.
13425 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13426 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13427 yes) version_specific_libs=yes ;;
13428 no) version_specific_libs=no ;;
13429 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13430 esac
13431 else
13432 version_specific_libs=no
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13436 $as_echo "$version_specific_libs" >&6; }
13438 # Version-specific runtime libs processing.
13439 if test $version_specific_libs = yes; then
13440 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13441 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13444 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13445 # Install a library built with a cross compiler in tooldir, not libdir.
13446 if test -n "$with_cross_host" &&
13447 test x"$with_cross_host" != x"no"; then
13448 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13449 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13450 else
13451 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13452 nover_glibgo_toolexeclibdir='${libdir}'
13454 multi_os_directory=`$GOC -print-multi-os-directory`
13455 case $multi_os_directory in
13456 .) ;; # Avoid trailing /.
13457 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13458 esac
13460 if test x"$glibgo_toolexecdir" = x"no"; then
13461 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13462 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13469 # See if the user wants to configure without libffi. Some
13470 # architectures don't support it. FIXME: We should set a default
13471 # based on the host.
13473 # Check whether --with-libffi was given.
13474 if test "${with_libffi+set}" = set; then :
13475 withval=$with_libffi; :
13476 else
13477 with_libffi=${with_libffi_default-yes}
13481 LIBFFI=
13482 LIBFFIINCS=
13483 if test "$with_libffi" != no; then
13485 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13487 LIBFFI=../libffi/libffi_convenience.la
13488 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13493 # See if the user wants to configure without libatomic. This is useful if we are
13494 # on an architecture for which libgo does not need an atomic support library and
13495 # libatomic does not support our C compiler.
13497 # Check whether --with-libatomic was given.
13498 if test "${with_libatomic+set}" = set; then :
13499 withval=$with_libatomic; :
13500 else
13501 with_libatomic=${with_libatomic_default-yes}
13505 LIBATOMIC=
13506 if test "$with_libatomic" != no; then
13507 LIBATOMIC=../libatomic/libatomic_convenience.la
13511 # Used to tell GNU make to include a file without telling automake to
13512 # include it.
13513 go_include="-include"
13516 is_darwin=no
13517 is_freebsd=no
13518 is_irix=no
13519 is_linux=no
13520 is_netbsd=no
13521 is_openbsd=no
13522 is_dragonfly=no
13523 is_rtems=no
13524 is_solaris=no
13525 GOOS=unknown
13526 case ${host} in
13527 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13528 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13529 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13530 *-*-linux*) is_linux=yes; GOOS=linux ;;
13531 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13532 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13533 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13534 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13535 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13536 esac
13537 if test $is_darwin = yes; then
13538 LIBGO_IS_DARWIN_TRUE=
13539 LIBGO_IS_DARWIN_FALSE='#'
13540 else
13541 LIBGO_IS_DARWIN_TRUE='#'
13542 LIBGO_IS_DARWIN_FALSE=
13545 if test $is_freebsd = yes; then
13546 LIBGO_IS_FREEBSD_TRUE=
13547 LIBGO_IS_FREEBSD_FALSE='#'
13548 else
13549 LIBGO_IS_FREEBSD_TRUE='#'
13550 LIBGO_IS_FREEBSD_FALSE=
13553 if test $is_irix = yes; then
13554 LIBGO_IS_IRIX_TRUE=
13555 LIBGO_IS_IRIX_FALSE='#'
13556 else
13557 LIBGO_IS_IRIX_TRUE='#'
13558 LIBGO_IS_IRIX_FALSE=
13561 if test $is_linux = yes; then
13562 LIBGO_IS_LINUX_TRUE=
13563 LIBGO_IS_LINUX_FALSE='#'
13564 else
13565 LIBGO_IS_LINUX_TRUE='#'
13566 LIBGO_IS_LINUX_FALSE=
13569 if test $is_netbsd = yes; then
13570 LIBGO_IS_NETBSD_TRUE=
13571 LIBGO_IS_NETBSD_FALSE='#'
13572 else
13573 LIBGO_IS_NETBSD_TRUE='#'
13574 LIBGO_IS_NETBSD_FALSE=
13577 if test $is_openbsd = yes; then
13578 LIBGO_IS_OPENBSD_TRUE=
13579 LIBGO_IS_OPENBSD_FALSE='#'
13580 else
13581 LIBGO_IS_OPENBSD_TRUE='#'
13582 LIBGO_IS_OPENBSD_FALSE=
13585 if test $is_dragonfly = yes; then
13586 LIBGO_IS_DRAGONFLY_TRUE=
13587 LIBGO_IS_DRAGONFLY_FALSE='#'
13588 else
13589 LIBGO_IS_DRAGONFLY_TRUE='#'
13590 LIBGO_IS_DRAGONFLY_FALSE=
13593 if test $is_rtems = yes; then
13594 LIBGO_IS_RTEMS_TRUE=
13595 LIBGO_IS_RTEMS_FALSE='#'
13596 else
13597 LIBGO_IS_RTEMS_TRUE='#'
13598 LIBGO_IS_RTEMS_FALSE=
13601 if test $is_solaris = yes; then
13602 LIBGO_IS_SOLARIS_TRUE=
13603 LIBGO_IS_SOLARIS_FALSE='#'
13604 else
13605 LIBGO_IS_SOLARIS_TRUE='#'
13606 LIBGO_IS_SOLARIS_FALSE=
13611 USE_DEJAGNU=no
13612 case ${host} in
13613 *-*-rtems*) USE_DEJAGNU=yes ;;
13614 ${build}) ;;
13615 *) USE_DEJAGNU=yes ;;
13616 esac
13619 is_386=no
13620 is_alpha=no
13621 is_arm=no
13622 is_arm64=no
13623 is_m68k=no
13624 mips_abi=unknown
13625 is_ppc=no
13626 is_ppc64=no
13627 is_ppc64le=no
13628 is_s390=no
13629 is_s390x=no
13630 is_sparc=no
13631 is_sparc64=no
13632 is_x86_64=no
13633 GOARCH=unknown
13634 case ${host} in
13635 alpha*-*-*)
13636 is_alpha=yes
13637 GOARCH=alpha
13639 aarch64-*-*)
13640 is_arm64=yes
13641 GOARCH=arm64
13643 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13644 is_arm=yes
13645 GOARCH=arm
13647 i[34567]86-*-* | x86_64-*-*)
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 #ifdef __x86_64__
13652 #error 64-bit
13653 #endif
13654 _ACEOF
13655 if ac_fn_c_try_compile "$LINENO"; then :
13656 is_386=yes
13657 else
13658 is_x86_64=yes
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 if test "$is_386" = "yes"; then
13662 GOARCH=386
13663 else
13664 GOARCH=amd64
13667 m68k*-*-*)
13668 is_m68k=yes
13669 GOARCH=m68k
13671 mips*-*-*)
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13675 #if _MIPS_SIM != _ABIO32
13676 #error not o32
13677 #endif
13678 _ACEOF
13679 if ac_fn_c_try_compile "$LINENO"; then :
13680 mips_abi="o32"
13681 else
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13685 #if _MIPS_SIM != _ABIN32
13686 #error not n32
13687 #endif
13688 _ACEOF
13689 if ac_fn_c_try_compile "$LINENO"; then :
13690 mips_abi="n32"
13691 else
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13695 #if _MIPS_SIM != _ABI64
13696 #error not n64
13697 #endif
13698 _ACEOF
13699 if ac_fn_c_try_compile "$LINENO"; then :
13700 mips_abi="n64"
13701 else
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13705 #if _MIPS_SIM != _ABIO64
13706 #error not o64
13707 #endif
13708 _ACEOF
13709 if ac_fn_c_try_compile "$LINENO"; then :
13710 mips_abi="o64"
13711 else
13712 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13713 mips_abi="n32"
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 case "$mips_abi" in
13723 "o32") GOARCH=mipso32 ;;
13724 "n32") GOARCH=mipsn32 ;;
13725 "n64") GOARCH=mipsn64 ;;
13726 "o64") GOARCH=mipso64 ;;
13727 esac
13729 rs6000*-*-* | powerpc*-*-*)
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13733 #ifdef _ARCH_PPC64
13734 #error 64-bit
13735 #endif
13736 _ACEOF
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 is_ppc=yes
13739 else
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13743 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13744 #error 64be
13745 #endif
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 is_ppc64le=yes
13749 else
13750 is_ppc64=yes
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 if test "$is_ppc" = "yes"; then
13756 GOARCH=ppc
13757 elif test "$is_ppc64" = "yes"; then
13758 GOARCH=ppc64
13759 else
13760 GOARCH=ppc64le
13763 s390*-*-*)
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 #if defined(__s390x__)
13768 #error 64-bit
13769 #endif
13770 _ACEOF
13771 if ac_fn_c_try_compile "$LINENO"; then :
13772 is_s390=yes
13773 else
13774 is_s390x=yes
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 if test "$is_s390" = "yes"; then
13778 GOARCH=s390
13779 else
13780 GOARCH=s390x
13783 sparc*-*-*)
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 #if defined(__sparcv9) || defined(__arch64__)
13788 #error 64-bit
13789 #endif
13790 _ACEOF
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792 is_sparc=yes
13793 else
13794 is_sparc64=yes
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 if test "$is_sparc" = "yes"; then
13798 GOARCH=sparc
13799 else
13800 GOARCH=sparc64
13803 esac
13804 if test $is_386 = yes; then
13805 LIBGO_IS_386_TRUE=
13806 LIBGO_IS_386_FALSE='#'
13807 else
13808 LIBGO_IS_386_TRUE='#'
13809 LIBGO_IS_386_FALSE=
13812 if test $is_alpha = yes; then
13813 LIBGO_IS_ALPHA_TRUE=
13814 LIBGO_IS_ALPHA_FALSE='#'
13815 else
13816 LIBGO_IS_ALPHA_TRUE='#'
13817 LIBGO_IS_ALPHA_FALSE=
13820 if test $is_arm = yes; then
13821 LIBGO_IS_ARM_TRUE=
13822 LIBGO_IS_ARM_FALSE='#'
13823 else
13824 LIBGO_IS_ARM_TRUE='#'
13825 LIBGO_IS_ARM_FALSE=
13828 if test $is_arm64 = yes; then
13829 LIBGO_IS_ARM64_TRUE=
13830 LIBGO_IS_ARM64_FALSE='#'
13831 else
13832 LIBGO_IS_ARM64_TRUE='#'
13833 LIBGO_IS_ARM64_FALSE=
13836 if test $is_m68k = yes; then
13837 LIBGO_IS_M68K_TRUE=
13838 LIBGO_IS_M68K_FALSE='#'
13839 else
13840 LIBGO_IS_M68K_TRUE='#'
13841 LIBGO_IS_M68K_FALSE=
13844 if test $mips_abi != unknown; then
13845 LIBGO_IS_MIPS_TRUE=
13846 LIBGO_IS_MIPS_FALSE='#'
13847 else
13848 LIBGO_IS_MIPS_TRUE='#'
13849 LIBGO_IS_MIPS_FALSE=
13852 if test $mips_abi = o32; then
13853 LIBGO_IS_MIPSO32_TRUE=
13854 LIBGO_IS_MIPSO32_FALSE='#'
13855 else
13856 LIBGO_IS_MIPSO32_TRUE='#'
13857 LIBGO_IS_MIPSO32_FALSE=
13860 if test $mips_abi = n32; then
13861 LIBGO_IS_MIPSN32_TRUE=
13862 LIBGO_IS_MIPSN32_FALSE='#'
13863 else
13864 LIBGO_IS_MIPSN32_TRUE='#'
13865 LIBGO_IS_MIPSN32_FALSE=
13868 if test $mips_abi = n64; then
13869 LIBGO_IS_MIPSN64_TRUE=
13870 LIBGO_IS_MIPSN64_FALSE='#'
13871 else
13872 LIBGO_IS_MIPSN64_TRUE='#'
13873 LIBGO_IS_MIPSN64_FALSE=
13876 if test $mips_abi = o64; then
13877 LIBGO_IS_MIPSO64_TRUE=
13878 LIBGO_IS_MIPSO64_FALSE='#'
13879 else
13880 LIBGO_IS_MIPSO64_TRUE='#'
13881 LIBGO_IS_MIPSO64_FALSE=
13884 if test $is_ppc = yes; then
13885 LIBGO_IS_PPC_TRUE=
13886 LIBGO_IS_PPC_FALSE='#'
13887 else
13888 LIBGO_IS_PPC_TRUE='#'
13889 LIBGO_IS_PPC_FALSE=
13892 if test $is_ppc64 = yes; then
13893 LIBGO_IS_PPC64_TRUE=
13894 LIBGO_IS_PPC64_FALSE='#'
13895 else
13896 LIBGO_IS_PPC64_TRUE='#'
13897 LIBGO_IS_PPC64_FALSE=
13900 if test $is_ppc64le = yes; then
13901 LIBGO_IS_PPC64LE_TRUE=
13902 LIBGO_IS_PPC64LE_FALSE='#'
13903 else
13904 LIBGO_IS_PPC64LE_TRUE='#'
13905 LIBGO_IS_PPC64LE_FALSE=
13908 if test $is_s390 = yes; then
13909 LIBGO_IS_S390_TRUE=
13910 LIBGO_IS_S390_FALSE='#'
13911 else
13912 LIBGO_IS_S390_TRUE='#'
13913 LIBGO_IS_S390_FALSE=
13916 if test $is_s390x = yes; then
13917 LIBGO_IS_S390X_TRUE=
13918 LIBGO_IS_S390X_FALSE='#'
13919 else
13920 LIBGO_IS_S390X_TRUE='#'
13921 LIBGO_IS_S390X_FALSE=
13924 if test $is_sparc = yes; then
13925 LIBGO_IS_SPARC_TRUE=
13926 LIBGO_IS_SPARC_FALSE='#'
13927 else
13928 LIBGO_IS_SPARC_TRUE='#'
13929 LIBGO_IS_SPARC_FALSE=
13932 if test $is_sparc64 = yes; then
13933 LIBGO_IS_SPARC64_TRUE=
13934 LIBGO_IS_SPARC64_FALSE='#'
13935 else
13936 LIBGO_IS_SPARC64_TRUE='#'
13937 LIBGO_IS_SPARC64_FALSE=
13940 if test $is_x86_64 = yes; then
13941 LIBGO_IS_X86_64_TRUE=
13942 LIBGO_IS_X86_64_FALSE='#'
13943 else
13944 LIBGO_IS_X86_64_TRUE='#'
13945 LIBGO_IS_X86_64_FALSE=
13950 GO_LIBCALL_OS_FILE=
13951 GO_LIBCALL_OS_ARCH_FILE=
13952 GO_SYSCALL_OS_FILE=
13953 GO_SYSCALL_OS_ARCH_FILE=
13954 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13955 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13957 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13958 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13960 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13961 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13963 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13964 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13971 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13972 case "$target" in
13973 mips-sgi-irix6.5*)
13974 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13975 # msghdr in <sys/socket.h>.
13976 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13978 *-*-solaris2.1[01])
13979 # Solaris 10+ needs this so struct msghdr gets the msg_control
13980 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13981 # above doesn't work with C99.
13982 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13984 esac
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13988 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13989 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 CFLAGS_hold=$CFLAGS
13993 CFLAGS="$CFLAGS -fsplit-stack"
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 int i;
13997 _ACEOF
13998 if ac_fn_c_try_compile "$LINENO"; then :
13999 libgo_cv_c_split_stack_supported=yes
14000 else
14001 libgo_cv_c_split_stack_supported=no
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 CFLAGS=$CFLAGS_hold
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14007 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14008 if test "$libgo_cv_c_split_stack_supported" = yes; then
14009 SPLIT_STACK=-fsplit-stack
14011 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14013 else
14014 SPLIT_STACK=
14017 if test "$libgo_cv_c_split_stack_supported" = yes; then
14018 USING_SPLIT_STACK_TRUE=
14019 USING_SPLIT_STACK_FALSE='#'
14020 else
14021 USING_SPLIT_STACK_TRUE='#'
14022 USING_SPLIT_STACK_FALSE=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14027 $as_echo_n "checking whether linker supports split stack... " >&6; }
14028 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 libgo_cv_c_linker_supports_split_stack=no
14032 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14033 libgo_cv_c_linker_supports_split_stack=yes
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14037 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14038 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14040 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14045 $as_echo_n "checking whether compiler is llgo... " >&6; }
14046 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14047 $as_echo_n "(cached) " >&6
14048 else
14049 libgo_cv_c_goc_is_llgo=no
14050 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14051 libgo_cv_c_goc_is_llgo=yes
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14055 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14056 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14057 GOC_IS_LLGO_TRUE=
14058 GOC_IS_LLGO_FALSE='#'
14059 else
14060 GOC_IS_LLGO_TRUE='#'
14061 GOC_IS_LLGO_FALSE=
14065 MATH_LIBS=
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14067 $as_echo_n "checking for sqrt in -lm... " >&6; }
14068 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 ac_check_lib_save_LIBS=$LIBS
14072 LIBS="-lm $LIBS"
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14076 /* Override any GCC internal prototype to avoid an error.
14077 Use char because int might match the return type of a GCC
14078 builtin and then its argument prototype would still apply. */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 char sqrt ();
14084 main ()
14086 return sqrt ();
14088 return 0;
14090 _ACEOF
14091 if ac_fn_c_try_link "$LINENO"; then :
14092 ac_cv_lib_m_sqrt=yes
14093 else
14094 ac_cv_lib_m_sqrt=no
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14101 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14102 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14103 MATH_LIBS=-lm
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14109 $as_echo_n "checking for socket libraries... " >&6; }
14110 if test "${libgo_cv_lib_sockets+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 libgo_cv_lib_sockets=
14114 libgo_check_both=no
14115 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14116 if test "x$ac_cv_func_connect" = x""yes; then :
14117 libgo_check_socket=no
14118 else
14119 libgo_check_socket=yes
14122 if test "$libgo_check_socket" = "yes"; then
14123 unset ac_cv_func_connect
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14125 $as_echo_n "checking for main in -lsocket... " >&6; }
14126 if test "${ac_cv_lib_socket_main+set}" = set; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-lsocket $LIBS"
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14136 main ()
14138 return main ();
14140 return 0;
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_lib_socket_main=yes
14145 else
14146 ac_cv_lib_socket_main=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14153 $as_echo "$ac_cv_lib_socket_main" >&6; }
14154 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14155 libgo_cv_lib_sockets="-lsocket"
14156 else
14157 libgo_check_both=yes
14161 if test "$libgo_check_both" = "yes"; then
14162 libgo_old_libs=$LIBS
14163 LIBS="$LIBS -lsocket -lnsl"
14164 unset ac_cv_func_accept
14165 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14166 if test "x$ac_cv_func_accept" = x""yes; then :
14167 libgo_check_nsl=no
14168 libgo_cv_lib_sockets="-lsocket -lnsl"
14171 unset ac_cv_func_accept
14172 LIBS=$libgo_old_libs
14174 unset ac_cv_func_gethostbyname
14175 libgo_old_libs="$LIBS"
14176 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14177 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14181 $as_echo_n "checking for main in -lnsl... " >&6; }
14182 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185 ac_check_lib_save_LIBS=$LIBS
14186 LIBS="-lnsl $LIBS"
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14192 main ()
14194 return main ();
14196 return 0;
14198 _ACEOF
14199 if ac_fn_c_try_link "$LINENO"; then :
14200 ac_cv_lib_nsl_main=yes
14201 else
14202 ac_cv_lib_nsl_main=no
14204 rm -f core conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14206 LIBS=$ac_check_lib_save_LIBS
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14209 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14210 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14211 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14216 unset ac_cv_func_gethostbyname
14217 LIBS=$libgo_old_libs
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14221 $as_echo "$libgo_cv_lib_sockets" >&6; }
14222 NET_LIBS="$libgo_cv_lib_sockets"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14226 $as_echo_n "checking whether -pthread is supported... " >&6; }
14227 if test "${libgo_cv_lib_pthread+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 CFLAGS_hold=$CFLAGS
14231 CFLAGS="$CFLAGS -pthread"
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14234 int i;
14235 _ACEOF
14236 if ac_fn_c_try_compile "$LINENO"; then :
14237 libgo_cv_lib_pthread=yes
14238 else
14239 libgo_cv_lib_pthread=no
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 CFLAGS=$CFLAGS_hold
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14245 $as_echo "$libgo_cv_lib_pthread" >&6; }
14246 PTHREAD_CFLAGS=
14247 if test "$libgo_cv_lib_pthread" = yes; then
14248 PTHREAD_CFLAGS=-pthread
14252 PTHREAD_LIBS=
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14254 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14255 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lpthread $LIBS"
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14263 /* Override any GCC internal prototype to avoid an error.
14264 Use char because int might match the return type of a GCC
14265 builtin and then its argument prototype would still apply. */
14266 #ifdef __cplusplus
14267 extern "C"
14268 #endif
14269 char pthread_create ();
14271 main ()
14273 return pthread_create ();
14275 return 0;
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 ac_cv_lib_pthread_pthread_create=yes
14280 else
14281 ac_cv_lib_pthread_pthread_create=no
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14285 LIBS=$ac_check_lib_save_LIBS
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14288 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14289 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14290 PTHREAD_LIBS=-lpthread
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14296 $as_echo_n "checking for library containing sched_yield... " >&6; }
14297 if test "${ac_cv_search_sched_yield+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 ac_func_search_save_LIBS=$LIBS
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 /* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14307 #ifdef __cplusplus
14308 extern "C"
14309 #endif
14310 char sched_yield ();
14312 main ()
14314 return sched_yield ();
14316 return 0;
14318 _ACEOF
14319 for ac_lib in '' rt; do
14320 if test -z "$ac_lib"; then
14321 ac_res="none required"
14322 else
14323 ac_res=-l$ac_lib
14324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 ac_cv_search_sched_yield=$ac_res
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext
14331 if test "${ac_cv_search_sched_yield+set}" = set; then :
14332 break
14334 done
14335 if test "${ac_cv_search_sched_yield+set}" = set; then :
14337 else
14338 ac_cv_search_sched_yield=no
14340 rm conftest.$ac_ext
14341 LIBS=$ac_func_search_save_LIBS
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14344 $as_echo "$ac_cv_search_sched_yield" >&6; }
14345 ac_res=$ac_cv_search_sched_yield
14346 if test "$ac_res" != no; then :
14347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14352 $as_echo_n "checking for library containing nanosleep... " >&6; }
14353 if test "${ac_cv_search_nanosleep+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 ac_func_search_save_LIBS=$LIBS
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14363 #ifdef __cplusplus
14364 extern "C"
14365 #endif
14366 char nanosleep ();
14368 main ()
14370 return nanosleep ();
14372 return 0;
14374 _ACEOF
14375 for ac_lib in '' rt; do
14376 if test -z "$ac_lib"; then
14377 ac_res="none required"
14378 else
14379 ac_res=-l$ac_lib
14380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 ac_cv_search_nanosleep=$ac_res
14385 rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext
14387 if test "${ac_cv_search_nanosleep+set}" = set; then :
14388 break
14390 done
14391 if test "${ac_cv_search_nanosleep+set}" = set; then :
14393 else
14394 ac_cv_search_nanosleep=no
14396 rm conftest.$ac_ext
14397 LIBS=$ac_func_search_save_LIBS
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14400 $as_echo "$ac_cv_search_nanosleep" >&6; }
14401 ac_res=$ac_cv_search_nanosleep
14402 if test "$ac_res" != no; then :
14403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14409 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14410 if test "${ac_cv_c_bigendian+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 ac_cv_c_bigendian=unknown
14414 # See if we're dealing with a universal compiler.
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417 #ifndef __APPLE_CC__
14418 not a universal capable compiler
14419 #endif
14420 typedef int dummy;
14422 _ACEOF
14423 if ac_fn_c_try_compile "$LINENO"; then :
14425 # Check for potential -arch flags. It is not universal unless
14426 # there are at least two -arch flags with different values.
14427 ac_arch=
14428 ac_prev=
14429 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14430 if test -n "$ac_prev"; then
14431 case $ac_word in
14432 i?86 | x86_64 | ppc | ppc64)
14433 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14434 ac_arch=$ac_word
14435 else
14436 ac_cv_c_bigendian=universal
14437 break
14440 esac
14441 ac_prev=
14442 elif test "x$ac_word" = "x-arch"; then
14443 ac_prev=arch
14445 done
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 if test $ac_cv_c_bigendian = unknown; then
14449 # See if sys/param.h defines the BYTE_ORDER macro.
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #include <sys/types.h>
14453 #include <sys/param.h>
14456 main ()
14458 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14459 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14460 && LITTLE_ENDIAN)
14461 bogus endian macros
14462 #endif
14465 return 0;
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 # It does; now see whether it defined to BIG_ENDIAN or not.
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <sys/types.h>
14473 #include <sys/param.h>
14476 main ()
14478 #if BYTE_ORDER != BIG_ENDIAN
14479 not big endian
14480 #endif
14483 return 0;
14485 _ACEOF
14486 if ac_fn_c_try_compile "$LINENO"; then :
14487 ac_cv_c_bigendian=yes
14488 else
14489 ac_cv_c_bigendian=no
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 if test $ac_cv_c_bigendian = unknown; then
14496 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 #include <limits.h>
14502 main ()
14504 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14505 bogus endian macros
14506 #endif
14509 return 0;
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 # It does; now see whether it defined to _BIG_ENDIAN or not.
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <limits.h>
14519 main ()
14521 #ifndef _BIG_ENDIAN
14522 not big endian
14523 #endif
14526 return 0;
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 ac_cv_c_bigendian=yes
14531 else
14532 ac_cv_c_bigendian=no
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 if test $ac_cv_c_bigendian = unknown; then
14539 # Compile a test program.
14540 if test "$cross_compiling" = yes; then :
14541 # Try to guess by grepping values from an object file.
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 short int ascii_mm[] =
14545 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14546 short int ascii_ii[] =
14547 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14548 int use_ascii (int i) {
14549 return ascii_mm[i] + ascii_ii[i];
14551 short int ebcdic_ii[] =
14552 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14553 short int ebcdic_mm[] =
14554 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14555 int use_ebcdic (int i) {
14556 return ebcdic_mm[i] + ebcdic_ii[i];
14558 extern int foo;
14561 main ()
14563 return use_ascii (foo) == use_ebcdic (foo);
14565 return 0;
14567 _ACEOF
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14570 ac_cv_c_bigendian=yes
14572 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14573 if test "$ac_cv_c_bigendian" = unknown; then
14574 ac_cv_c_bigendian=no
14575 else
14576 # finding both strings is unlikely to happen, but who knows?
14577 ac_cv_c_bigendian=unknown
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 else
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 $ac_includes_default
14587 main ()
14590 /* Are we little or big endian? From Harbison&Steele. */
14591 union
14593 long int l;
14594 char c[sizeof (long int)];
14595 } u;
14596 u.l = 1;
14597 return u.c[sizeof (long int) - 1] == 1;
14600 return 0;
14602 _ACEOF
14603 if ac_fn_c_try_run "$LINENO"; then :
14604 ac_cv_c_bigendian=no
14605 else
14606 ac_cv_c_bigendian=yes
14608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14609 conftest.$ac_objext conftest.beam conftest.$ac_ext
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14615 $as_echo "$ac_cv_c_bigendian" >&6; }
14616 case $ac_cv_c_bigendian in #(
14617 yes)
14618 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14619 ;; #(
14621 ;; #(
14622 universal)
14624 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14626 ;; #(
14628 as_fn_error "unknown endianness
14629 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14630 esac
14635 # Check whether --with-system-libunwind was given.
14636 if test "${with_system_libunwind+set}" = set; then :
14637 withval=$with_system_libunwind;
14640 # If system-libunwind was not specifically set, pick a default setting.
14641 if test x$with_system_libunwind = x; then
14642 case ${target} in
14643 ia64-*-hpux*) with_system_libunwind=yes ;;
14644 *) with_system_libunwind=no ;;
14645 esac
14647 # Based on system-libunwind and target, do we have ipinfo?
14648 if test x$with_system_libunwind = xyes; then
14649 case ${target} in
14650 ia64-*-*) have_unwind_getipinfo=no ;;
14651 *) have_unwind_getipinfo=yes ;;
14652 esac
14653 else
14654 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14656 case ${target} in
14657 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14658 *) have_unwind_getipinfo=yes ;;
14659 esac
14663 if test x$have_unwind_getipinfo = xyes; then
14665 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14670 # Check whether --enable-sjlj-exceptions was given.
14671 if test "${enable_sjlj_exceptions+set}" = set; then :
14672 enableval=$enable_sjlj_exceptions; case "$enableval" in
14673 yes|no|auto) ;;
14674 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14675 esac
14676 else
14677 enable_sjlj_exceptions=auto
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14682 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14683 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 void bar ();
14690 void clean (int *);
14691 void foo ()
14693 int i __attribute__ ((cleanup (clean)));
14694 bar();
14697 _ACEOF
14698 CFLAGS_hold=$CFLAGS
14699 CFLAGS="--save-temps -fexceptions"
14700 libgo_cv_lib_sjlj_exceptions=unknown
14701 if ac_fn_c_try_compile; then :
14702 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14703 libgo_cv_lib_sjlj_exceptions=yes
14704 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14705 libgo_cv_lib_sjlj_exceptions=no
14708 CFLAGS=$CFLAGS_hold
14709 rm -f conftest*
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14713 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14715 if test "$enable_sjlj_exceptions" = "auto"; then
14716 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14719 case $enable_sjlj_exceptions in
14720 yes)
14722 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14728 as_fn_error "unable to detect exception model" "$LINENO" 5
14730 esac
14732 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.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/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14733 do :
14734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14736 eval as_val=\$$as_ac_Header
14737 if test "x$as_val" = x""yes; then :
14738 cat >>confdefs.h <<_ACEOF
14739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14740 _ACEOF
14744 done
14747 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
14748 do :
14749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14751 #include <sys/socket.h>
14752 #endif
14755 eval as_val=\$$as_ac_Header
14756 if test "x$as_val" = x""yes; then :
14757 cat >>confdefs.h <<_ACEOF
14758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14759 _ACEOF
14763 done
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14767 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14768 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 CFLAGS_hold=$CFLAGS
14772 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 #include <sys/types.h>
14777 #ifdef HAVE_LINUX_FILTER_H
14778 #include <linux/filter.h>
14779 #endif
14780 #include <ustat.h>
14782 _ACEOF
14783 if ac_fn_c_try_compile "$LINENO"; then :
14784 libgo_cv_c_ustat_h=yes
14785 else
14786 libgo_cv_c_ustat_h=no
14788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 CFLAGS=$CFLAGS_hold
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14792 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14793 if test $libgo_cv_c_ustat_h = yes; then
14795 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14799 if test "$ac_cv_header_sys_mman_h" = yes; then
14800 HAVE_SYS_MMAN_H_TRUE=
14801 HAVE_SYS_MMAN_H_FALSE='#'
14802 else
14803 HAVE_SYS_MMAN_H_TRUE='#'
14804 HAVE_SYS_MMAN_H_FALSE=
14808 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14809 do :
14810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14812 eval as_val=\$$as_ac_var
14813 if test "x$as_val" = x""yes; then :
14814 cat >>confdefs.h <<_ACEOF
14815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14816 _ACEOF
14819 done
14821 if test "$ac_cv_func_strerror_r" = yes; then
14822 HAVE_STRERROR_R_TRUE=
14823 HAVE_STRERROR_R_FALSE='#'
14824 else
14825 HAVE_STRERROR_R_TRUE='#'
14826 HAVE_STRERROR_R_FALSE=
14829 if test "$ac_cv_func_wait4" = yes; then
14830 HAVE_WAIT4_TRUE=
14831 HAVE_WAIT4_FALSE='#'
14832 else
14833 HAVE_WAIT4_TRUE='#'
14834 HAVE_WAIT4_FALSE=
14838 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 tee unlinkat unshare utimensat
14839 do :
14840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14842 eval as_val=\$$as_ac_var
14843 if test "x$as_val" = x""yes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 _ACEOF
14849 done
14851 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14852 if test "x$ac_cv_type_off_t" = x""yes; then :
14854 else
14856 cat >>confdefs.h <<_ACEOF
14857 #define off_t long int
14858 _ACEOF
14862 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14863 if test "x$ac_cv_type_loff_t" = x""yes; then :
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_LOFF_T 1
14867 _ACEOF
14873 LIBS_hold="$LIBS"
14874 LIBS="$LIBS -lm"
14875 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14876 do :
14877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14879 eval as_val=\$$as_ac_var
14880 if test "x$as_val" = x""yes; then :
14881 cat >>confdefs.h <<_ACEOF
14882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14883 _ACEOF
14886 done
14888 LIBS="$LIBS_hold"
14890 CFLAGS_hold="$CFLAGS"
14891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14892 LIBS_hold="$LIBS"
14893 LIBS="$LIBS $PTHREAD_LIBS"
14894 for ac_func in sem_timedwait
14895 do :
14896 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14897 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_SEM_TIMEDWAIT 1
14900 _ACEOF
14903 done
14905 CFLAGS="$CFLAGS_hold"
14906 LIBS="$LIBS_hold"
14908 LIBS_hold="$LIBS"
14909 LIBS="$LIBS $MATH_LIBS"
14910 for ac_func in matherr
14911 do :
14912 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14913 if test "x$ac_cv_func_matherr" = x""yes; then :
14914 cat >>confdefs.h <<_ACEOF
14915 #define HAVE_MATHERR 1
14916 _ACEOF
14919 done
14921 LIBS="$LIBS_hold"
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14924 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14925 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14931 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14932 uint32 i;
14933 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14938 else
14939 libgo_cv_func___sync_bool_compare_and_swap_4=no
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14945 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14946 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14948 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14953 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14954 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14960 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14961 uint64 i;
14962 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14967 else
14968 libgo_cv_func___sync_bool_compare_and_swap_8=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14974 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14975 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14977 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14982 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14983 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14989 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14990 uint32 i;
14991 int main() { return __sync_fetch_and_add (&i, 1); }
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 libgo_cv_func___sync_fetch_and_add_4=yes
14996 else
14997 libgo_cv_func___sync_fetch_and_add_4=no
14999 rm -f core conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15003 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15004 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15006 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15011 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15012 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15018 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15019 uint64 i;
15020 int main() { return __sync_add_and_fetch (&i, 1); }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 libgo_cv_func___sync_add_and_fetch_8=yes
15025 else
15026 libgo_cv_func___sync_add_and_fetch_8=no
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15032 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15033 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15035 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15040 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15041 if test "${libgo_cv_c_stringops+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 CFLAGS_hold=$CFLAGS
15045 CFLAGS="$CFLAGS -minline-all-stringops"
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 int i;
15049 _ACEOF
15050 if ac_fn_c_try_compile "$LINENO"; then :
15051 libgo_cv_c_stringops=yes
15052 else
15053 libgo_cv_c_stringops=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 CFLAGS=$CFLAGS_hold
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15059 $as_echo "$libgo_cv_c_stringops" >&6; }
15060 STRINGOPS_FLAG=
15061 if test "$libgo_cv_c_stringops" = yes; then
15062 STRINGOPS_FLAG=-minline-all-stringops
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15067 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15068 if test "${libgo_cv_c_fancymath+set}" = set; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 CFLAGS_hold=$CFLAGS
15072 CFLAGS="$CFLAGS -mfancy-math-387"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 int i;
15076 _ACEOF
15077 if ac_fn_c_try_compile "$LINENO"; then :
15078 libgo_cv_c_fancymath=yes
15079 else
15080 libgo_cv_c_fancymath=no
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 CFLAGS=$CFLAGS_hold
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15086 $as_echo "$libgo_cv_c_fancymath" >&6; }
15087 MATH_FLAG=
15088 if test "$libgo_cv_c_fancymath" = yes; then
15089 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15090 else
15091 MATH_FLAG="-ffp-contract=off"
15095 CFLAGS_hold=$CFLAGS
15096 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15097 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15098 if test "x$ac_cv_type_off64_t" = x""yes; then :
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_OFF64_T 1
15102 _ACEOF
15107 CFLAGS=$CFLAGS_hold
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15110 $as_echo_n "checking epoll_event size... " >&6; }
15111 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15116 else
15117 libgo_cv_c_epoll_event_size=0
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15122 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15123 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15127 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15128 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15132 #include <sys/epoll.h>"; then :
15134 else
15135 libgo_cv_c_epoll_event_fd_offset=0
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15140 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15141 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15144 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15146 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15147 libgo_has_struct_exception=yes
15148 else
15149 libgo_has_struct_exception=no
15152 if test "$libgo_has_struct_exception" = "yes"; then
15154 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15159 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15160 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 CFLAGS_hold="$CFLAGS"
15164 CFLAGS="$PTHREAD_CFLAGS"
15165 LIBS_hold="$LIBS"
15166 LIBS="$LIBS $PTHREAD_LIBS"
15167 # The cast to long int works around a bug in the HP C Compiler
15168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15170 # This bug is HP SR number 8606223364.
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15172 $as_echo_n "checking size of void *... " >&6; }
15173 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15178 else
15179 if test "$ac_cv_type_void_p" = yes; then
15180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15182 { as_fn_set_status 77
15183 as_fn_error "cannot compute sizeof (void *)
15184 See \`config.log' for more details." "$LINENO" 5; }; }
15185 else
15186 ac_cv_sizeof_void_p=0
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15192 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15196 cat >>confdefs.h <<_ACEOF
15197 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15198 _ACEOF
15201 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15202 if test "$cross_compiling" = yes; then :
15203 case "$target:$ptr_type_size" in
15204 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15205 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15207 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15208 esac
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15214 #include <pthread.h>
15215 #include <stdlib.h>
15216 #include <ucontext.h>
15217 #include <unistd.h>
15219 __thread int tls;
15221 static char stack[10 * 1024 * 1024];
15222 static ucontext_t c;
15224 /* Called via makecontext/setcontext. */
15226 static void
15227 cfn (void)
15229 exit (tls);
15232 /* Called via pthread_create. */
15234 static void *
15235 tfn (void *dummy)
15237 /* The thread should still see this value after calling
15238 setcontext. */
15239 tls = 0;
15241 setcontext (&c);
15243 /* The call to setcontext should not return. */
15244 abort ();
15248 main ()
15250 pthread_t tid;
15252 /* The thread should not see this value. */
15253 tls = 1;
15255 if (getcontext (&c) < 0)
15256 abort ();
15258 c.uc_stack.ss_sp = stack;
15259 #ifdef MAKECONTEXT_STACK_TOP
15260 c.uc_stack.ss_sp += sizeof stack;
15261 #endif
15262 c.uc_stack.ss_flags = 0;
15263 c.uc_stack.ss_size = sizeof stack;
15264 c.uc_link = NULL;
15265 makecontext (&c, cfn, 0);
15267 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15268 abort ();
15270 if (pthread_join (tid, NULL) != 0)
15271 abort ();
15273 /* The thread should have called exit. */
15274 abort ();
15277 _ACEOF
15278 if ac_fn_c_try_run "$LINENO"; then :
15279 libgo_cv_lib_setcontext_clobbers_tls=no
15280 else
15281 libgo_cv_lib_setcontext_clobbers_tls=yes
15283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15284 conftest.$ac_objext conftest.beam conftest.$ac_ext
15287 CFLAGS="$CFLAGS_hold"
15288 LIBS="$LIBS_hold"
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15292 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15293 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15295 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15300 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15301 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15305 libgo_cv_ro_eh_frame=no
15306 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15307 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15308 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15309 libgo_cv_ro_eh_frame=yes
15310 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15311 | grep -v '#write' > /dev/null; then
15312 libgo_cv_ro_eh_frame=yes
15315 rm -f conftest.*
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15319 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15320 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15322 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15324 else
15326 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15331 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15332 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15333 $as_echo_n "(cached) " >&6
15334 else
15335 CFLAGS_hold=$CFLAGS
15336 CFLAGS="$CFLAGS -Qunused-arguments"
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 int i;
15340 _ACEOF
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 libgo_cv_c_unused_arguments=yes
15343 else
15344 libgo_cv_c_unused_arguments=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 CFLAGS=$CFLAGS_hold
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15350 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15353 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15354 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15358 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15359 CFLAGS_hold=$CFLAGS
15360 if test "$libgo_cv_c_unused_arguments" = yes; then
15361 CFLAGS="$CFLAGS -Qunused-arguments"
15363 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15364 libgo_cv_as_comdat_gnu=yes
15365 else
15366 libgo_cv_as_comdat_gnu=no
15368 CFLAGS=$CFLAGS_hold
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15372 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15373 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15375 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15380 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15381 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15385 libgo_cv_as_x86_pcrel=yes
15386 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15387 CFLAGS_hold=$CFLAGS
15388 if test "$libgo_cv_c_unused_arguments" = yes; then
15389 CFLAGS="$CFLAGS -Qunused-arguments"
15391 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15392 libgo_cv_as_x86_pcrel=no
15394 CFLAGS=$CFLAGS_hold
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15398 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15399 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15401 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15406 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15407 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15411 libgo_cv_as_x86_64_unwind_section_type=yes
15412 echo '.section .eh_frame,"a",@unwind' > conftest.s
15413 CFLAGS_hold=$CFLAGS
15414 if test "$libgo_cv_c_unused_arguments" = yes; then
15415 CFLAGS="$CFLAGS -Qunused-arguments"
15417 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15418 libgo_cv_as_x86_64_unwind_section_type=no
15420 CFLAGS=$CFLAGS_hold
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15424 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15425 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15427 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15431 cat >confcache <<\_ACEOF
15432 # This file is a shell script that caches the results of configure
15433 # tests run on this system so they can be shared between configure
15434 # scripts and configure runs, see configure's option --config-cache.
15435 # It is not useful on other systems. If it contains results you don't
15436 # want to keep, you may remove or edit it.
15438 # config.status only pays attention to the cache file if you give it
15439 # the --recheck option to rerun configure.
15441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15443 # following values.
15445 _ACEOF
15447 # The following way of writing the cache mishandles newlines in values,
15448 # but we know of no workaround that is simple, portable, and efficient.
15449 # So, we kill variables containing newlines.
15450 # Ultrix sh set writes to stderr and can't be redirected directly,
15451 # and sets the high bit in the cache file unless we assign to the vars.
15453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15454 eval ac_val=\$$ac_var
15455 case $ac_val in #(
15456 *${as_nl}*)
15457 case $ac_var in #(
15458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15460 esac
15461 case $ac_var in #(
15462 _ | IFS | as_nl) ;; #(
15463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15464 *) { eval $ac_var=; unset $ac_var;} ;;
15465 esac ;;
15466 esac
15467 done
15469 (set) 2>&1 |
15470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15471 *${as_nl}ac_space=\ *)
15472 # `set' does not quote correctly, so add quotes: double-quote
15473 # substitution turns \\\\ into \\, and sed turns \\ into \.
15474 sed -n \
15475 "s/'/'\\\\''/g;
15476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15477 ;; #(
15479 # `set' quotes correctly as required by POSIX, so do not add quotes.
15480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15482 esac |
15483 sort
15485 sed '
15486 /^ac_cv_env_/b end
15487 t clear
15488 :clear
15489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15490 t end
15491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15492 :end' >>confcache
15493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15494 if test -w "$cache_file"; then
15495 test "x$cache_file" != "x/dev/null" &&
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15497 $as_echo "$as_me: updating cache $cache_file" >&6;}
15498 cat confcache >$cache_file
15499 else
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15504 rm -f confcache
15506 if test ${multilib} = yes; then
15507 multilib_arg="--enable-multilib"
15508 else
15509 multilib_arg=
15512 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15515 ac_config_commands="$ac_config_commands default"
15518 cat >confcache <<\_ACEOF
15519 # This file is a shell script that caches the results of configure
15520 # tests run on this system so they can be shared between configure
15521 # scripts and configure runs, see configure's option --config-cache.
15522 # It is not useful on other systems. If it contains results you don't
15523 # want to keep, you may remove or edit it.
15525 # config.status only pays attention to the cache file if you give it
15526 # the --recheck option to rerun configure.
15528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15530 # following values.
15532 _ACEOF
15534 # The following way of writing the cache mishandles newlines in values,
15535 # but we know of no workaround that is simple, portable, and efficient.
15536 # So, we kill variables containing newlines.
15537 # Ultrix sh set writes to stderr and can't be redirected directly,
15538 # and sets the high bit in the cache file unless we assign to the vars.
15540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15541 eval ac_val=\$$ac_var
15542 case $ac_val in #(
15543 *${as_nl}*)
15544 case $ac_var in #(
15545 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15546 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15547 esac
15548 case $ac_var in #(
15549 _ | IFS | as_nl) ;; #(
15550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15551 *) { eval $ac_var=; unset $ac_var;} ;;
15552 esac ;;
15553 esac
15554 done
15556 (set) 2>&1 |
15557 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15558 *${as_nl}ac_space=\ *)
15559 # `set' does not quote correctly, so add quotes: double-quote
15560 # substitution turns \\\\ into \\, and sed turns \\ into \.
15561 sed -n \
15562 "s/'/'\\\\''/g;
15563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15564 ;; #(
15566 # `set' quotes correctly as required by POSIX, so do not add quotes.
15567 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15569 esac |
15570 sort
15572 sed '
15573 /^ac_cv_env_/b end
15574 t clear
15575 :clear
15576 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15577 t end
15578 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15579 :end' >>confcache
15580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15581 if test -w "$cache_file"; then
15582 test "x$cache_file" != "x/dev/null" &&
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15584 $as_echo "$as_me: updating cache $cache_file" >&6;}
15585 cat confcache >$cache_file
15586 else
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15588 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15591 rm -f confcache
15593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15594 # Let make expand exec_prefix.
15595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15597 DEFS=-DHAVE_CONFIG_H
15599 ac_libobjs=
15600 ac_ltlibobjs=
15601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15602 # 1. Remove the extension, and $U if already installed.
15603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15606 # will be set to the directory where LIBOBJS objects are built.
15607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15609 done
15610 LIBOBJS=$ac_libobjs
15612 LTLIBOBJS=$ac_ltlibobjs
15615 if test -n "$EXEEXT"; then
15616 am__EXEEXT_TRUE=
15617 am__EXEEXT_FALSE='#'
15618 else
15619 am__EXEEXT_TRUE='#'
15620 am__EXEEXT_FALSE=
15623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15624 as_fn_error "conditional \"AMDEP\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15628 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15632 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15636 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15640 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15644 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15648 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15652 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15656 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15660 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15664 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15668 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15672 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15676 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15680 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15684 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15688 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15692 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15696 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15700 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15704 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15708 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15712 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15716 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15720 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15724 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15728 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15732 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15736 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15740 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15744 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15748 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15753 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15757 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15761 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 : ${CONFIG_STATUS=./config.status}
15766 ac_write_fail=0
15767 ac_clean_files_save=$ac_clean_files
15768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15771 as_write_fail=0
15772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15779 debug=false
15780 ac_cs_recheck=false
15781 ac_cs_silent=false
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15784 export SHELL
15785 _ASEOF
15786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15787 ## -------------------- ##
15788 ## M4sh Initialization. ##
15789 ## -------------------- ##
15791 # Be more Bourne compatible
15792 DUALCASE=1; export DUALCASE # for MKS sh
15793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15794 emulate sh
15795 NULLCMD=:
15796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15797 # is contrary to our usage. Disable this feature.
15798 alias -g '${1+"$@"}'='"$@"'
15799 setopt NO_GLOB_SUBST
15800 else
15801 case `(set -o) 2>/dev/null` in #(
15802 *posix*) :
15803 set -o posix ;; #(
15804 *) :
15806 esac
15810 as_nl='
15812 export as_nl
15813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15817 # Prefer a ksh shell builtin over an external printf program on Solaris,
15818 # but without wasting forks for bash or zsh.
15819 if test -z "$BASH_VERSION$ZSH_VERSION" \
15820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15821 as_echo='print -r --'
15822 as_echo_n='print -rn --'
15823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15824 as_echo='printf %s\n'
15825 as_echo_n='printf %s'
15826 else
15827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15829 as_echo_n='/usr/ucb/echo -n'
15830 else
15831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15832 as_echo_n_body='eval
15833 arg=$1;
15834 case $arg in #(
15835 *"$as_nl"*)
15836 expr "X$arg" : "X\\(.*\\)$as_nl";
15837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15838 esac;
15839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15841 export as_echo_n_body
15842 as_echo_n='sh -c $as_echo_n_body as_echo'
15844 export as_echo_body
15845 as_echo='sh -c $as_echo_body as_echo'
15848 # The user is always right.
15849 if test "${PATH_SEPARATOR+set}" != set; then
15850 PATH_SEPARATOR=:
15851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15853 PATH_SEPARATOR=';'
15858 # IFS
15859 # We need space, tab and new line, in precisely that order. Quoting is
15860 # there to prevent editors from complaining about space-tab.
15861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15862 # splitting by setting IFS to empty value.)
15863 IFS=" "" $as_nl"
15865 # Find who we are. Look in the path if we contain no directory separator.
15866 case $0 in #((
15867 *[\\/]* ) as_myself=$0 ;;
15868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869 for as_dir in $PATH
15871 IFS=$as_save_IFS
15872 test -z "$as_dir" && as_dir=.
15873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15874 done
15875 IFS=$as_save_IFS
15878 esac
15879 # We did not find ourselves, most probably we were run as `sh COMMAND'
15880 # in which case we are not to be found in the path.
15881 if test "x$as_myself" = x; then
15882 as_myself=$0
15884 if test ! -f "$as_myself"; then
15885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15886 exit 1
15889 # Unset variables that we do not need and which cause bugs (e.g. in
15890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15891 # suppresses any "Segmentation fault" message there. '((' could
15892 # trigger a bug in pdksh 5.2.14.
15893 for as_var in BASH_ENV ENV MAIL MAILPATH
15894 do eval test x\${$as_var+set} = xset \
15895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15896 done
15897 PS1='$ '
15898 PS2='> '
15899 PS4='+ '
15901 # NLS nuisances.
15902 LC_ALL=C
15903 export LC_ALL
15904 LANGUAGE=C
15905 export LANGUAGE
15907 # CDPATH.
15908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15911 # as_fn_error ERROR [LINENO LOG_FD]
15912 # ---------------------------------
15913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15915 # script with status $?, using 1 if that was 0.
15916 as_fn_error ()
15918 as_status=$?; test $as_status -eq 0 && as_status=1
15919 if test "$3"; then
15920 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15923 $as_echo "$as_me: error: $1" >&2
15924 as_fn_exit $as_status
15925 } # as_fn_error
15928 # as_fn_set_status STATUS
15929 # -----------------------
15930 # Set $? to STATUS, without forking.
15931 as_fn_set_status ()
15933 return $1
15934 } # as_fn_set_status
15936 # as_fn_exit STATUS
15937 # -----------------
15938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15939 as_fn_exit ()
15941 set +e
15942 as_fn_set_status $1
15943 exit $1
15944 } # as_fn_exit
15946 # as_fn_unset VAR
15947 # ---------------
15948 # Portably unset VAR.
15949 as_fn_unset ()
15951 { eval $1=; unset $1;}
15953 as_unset=as_fn_unset
15954 # as_fn_append VAR VALUE
15955 # ----------------------
15956 # Append the text in VALUE to the end of the definition contained in VAR. Take
15957 # advantage of any shell optimizations that allow amortized linear growth over
15958 # repeated appends, instead of the typical quadratic growth present in naive
15959 # implementations.
15960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15961 eval 'as_fn_append ()
15963 eval $1+=\$2
15965 else
15966 as_fn_append ()
15968 eval $1=\$$1\$2
15970 fi # as_fn_append
15972 # as_fn_arith ARG...
15973 # ------------------
15974 # Perform arithmetic evaluation on the ARGs, and store the result in the
15975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15976 # must be portable across $(()) and expr.
15977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15978 eval 'as_fn_arith ()
15980 as_val=$(( $* ))
15982 else
15983 as_fn_arith ()
15985 as_val=`expr "$@" || test $? -eq 1`
15987 fi # as_fn_arith
15990 if expr a : '\(a\)' >/dev/null 2>&1 &&
15991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15992 as_expr=expr
15993 else
15994 as_expr=false
15997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15998 as_basename=basename
15999 else
16000 as_basename=false
16003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16004 as_dirname=dirname
16005 else
16006 as_dirname=false
16009 as_me=`$as_basename -- "$0" ||
16010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16011 X"$0" : 'X\(//\)$' \| \
16012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X/"$0" |
16014 sed '/^.*\/\([^/][^/]*\)\/*$/{
16015 s//\1/
16018 /^X\/\(\/\/\)$/{
16019 s//\1/
16022 /^X\/\(\/\).*/{
16023 s//\1/
16026 s/.*/./; q'`
16028 # Avoid depending upon Character Ranges.
16029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16032 as_cr_digits='0123456789'
16033 as_cr_alnum=$as_cr_Letters$as_cr_digits
16035 ECHO_C= ECHO_N= ECHO_T=
16036 case `echo -n x` in #(((((
16037 -n*)
16038 case `echo 'xy\c'` in
16039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16040 xy) ECHO_C='\c';;
16041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16042 ECHO_T=' ';;
16043 esac;;
16045 ECHO_N='-n';;
16046 esac
16048 rm -f conf$$ conf$$.exe conf$$.file
16049 if test -d conf$$.dir; then
16050 rm -f conf$$.dir/conf$$.file
16051 else
16052 rm -f conf$$.dir
16053 mkdir conf$$.dir 2>/dev/null
16055 if (echo >conf$$.file) 2>/dev/null; then
16056 if ln -s conf$$.file conf$$ 2>/dev/null; then
16057 as_ln_s='ln -s'
16058 # ... but there are two gotchas:
16059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16061 # In both cases, we have to default to `cp -p'.
16062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16063 as_ln_s='cp -p'
16064 elif ln conf$$.file conf$$ 2>/dev/null; then
16065 as_ln_s=ln
16066 else
16067 as_ln_s='cp -p'
16069 else
16070 as_ln_s='cp -p'
16072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16073 rmdir conf$$.dir 2>/dev/null
16076 # as_fn_mkdir_p
16077 # -------------
16078 # Create "$as_dir" as a directory, including parents if necessary.
16079 as_fn_mkdir_p ()
16082 case $as_dir in #(
16083 -*) as_dir=./$as_dir;;
16084 esac
16085 test -d "$as_dir" || eval $as_mkdir_p || {
16086 as_dirs=
16087 while :; do
16088 case $as_dir in #(
16089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16090 *) as_qdir=$as_dir;;
16091 esac
16092 as_dirs="'$as_qdir' $as_dirs"
16093 as_dir=`$as_dirname -- "$as_dir" ||
16094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16095 X"$as_dir" : 'X\(//\)[^/]' \| \
16096 X"$as_dir" : 'X\(//\)$' \| \
16097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16098 $as_echo X"$as_dir" |
16099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16100 s//\1/
16103 /^X\(\/\/\)[^/].*/{
16104 s//\1/
16107 /^X\(\/\/\)$/{
16108 s//\1/
16111 /^X\(\/\).*/{
16112 s//\1/
16115 s/.*/./; q'`
16116 test -d "$as_dir" && break
16117 done
16118 test -z "$as_dirs" || eval "mkdir $as_dirs"
16119 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16122 } # as_fn_mkdir_p
16123 if mkdir -p . 2>/dev/null; then
16124 as_mkdir_p='mkdir -p "$as_dir"'
16125 else
16126 test -d ./-p && rmdir ./-p
16127 as_mkdir_p=false
16130 if test -x / >/dev/null 2>&1; then
16131 as_test_x='test -x'
16132 else
16133 if ls -dL / >/dev/null 2>&1; then
16134 as_ls_L_option=L
16135 else
16136 as_ls_L_option=
16138 as_test_x='
16139 eval sh -c '\''
16140 if test -d "$1"; then
16141 test -d "$1/.";
16142 else
16143 case $1 in #(
16144 -*)set "./$1";;
16145 esac;
16146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16147 ???[sx]*):;;*)false;;esac;fi
16148 '\'' sh
16151 as_executable_p=$as_test_x
16153 # Sed expression to map a string onto a valid CPP name.
16154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16156 # Sed expression to map a string onto a valid variable name.
16157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16160 exec 6>&1
16161 ## ----------------------------------- ##
16162 ## Main body of $CONFIG_STATUS script. ##
16163 ## ----------------------------------- ##
16164 _ASEOF
16165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 # Save the log message, to keep $0 and so on meaningful, and to
16169 # report actual input values of CONFIG_FILES etc. instead of their
16170 # values after options handling.
16171 ac_log="
16172 This file was extended by package-unused $as_me version-unused, which was
16173 generated by GNU Autoconf 2.64. Invocation command line was
16175 CONFIG_FILES = $CONFIG_FILES
16176 CONFIG_HEADERS = $CONFIG_HEADERS
16177 CONFIG_LINKS = $CONFIG_LINKS
16178 CONFIG_COMMANDS = $CONFIG_COMMANDS
16179 $ $0 $@
16181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16184 _ACEOF
16186 case $ac_config_files in *"
16187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16188 esac
16190 case $ac_config_headers in *"
16191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16192 esac
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 # Files that config.status was made for.
16197 config_files="$ac_config_files"
16198 config_headers="$ac_config_headers"
16199 config_commands="$ac_config_commands"
16201 _ACEOF
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 ac_cs_usage="\
16205 \`$as_me' instantiates files and other configuration actions
16206 from templates according to the current configuration. Unless the files
16207 and actions are specified as TAGs, all are instantiated by default.
16209 Usage: $0 [OPTION]... [TAG]...
16211 -h, --help print this help, then exit
16212 -V, --version print version number and configuration settings, then exit
16213 -q, --quiet, --silent
16214 do not print progress messages
16215 -d, --debug don't remove temporary files
16216 --recheck update $as_me by reconfiguring in the same conditions
16217 --file=FILE[:TEMPLATE]
16218 instantiate the configuration file FILE
16219 --header=FILE[:TEMPLATE]
16220 instantiate the configuration header FILE
16222 Configuration files:
16223 $config_files
16225 Configuration headers:
16226 $config_headers
16228 Configuration commands:
16229 $config_commands
16231 Report bugs to the package provider."
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16235 ac_cs_version="\\
16236 package-unused config.status version-unused
16237 configured by $0, generated by GNU Autoconf 2.64,
16238 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16240 Copyright (C) 2009 Free Software Foundation, Inc.
16241 This config.status script is free software; the Free Software Foundation
16242 gives unlimited permission to copy, distribute and modify it."
16244 ac_pwd='$ac_pwd'
16245 srcdir='$srcdir'
16246 INSTALL='$INSTALL'
16247 MKDIR_P='$MKDIR_P'
16248 AWK='$AWK'
16249 test -n "\$AWK" || AWK=awk
16250 _ACEOF
16252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16253 # The default lists apply if the user does not specify any file.
16254 ac_need_defaults=:
16255 while test $# != 0
16257 case $1 in
16258 --*=*)
16259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16261 ac_shift=:
16264 ac_option=$1
16265 ac_optarg=$2
16266 ac_shift=shift
16268 esac
16270 case $ac_option in
16271 # Handling of the options.
16272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16273 ac_cs_recheck=: ;;
16274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16275 $as_echo "$ac_cs_version"; exit ;;
16276 --debug | --debu | --deb | --de | --d | -d )
16277 debug=: ;;
16278 --file | --fil | --fi | --f )
16279 $ac_shift
16280 case $ac_optarg in
16281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 esac
16283 as_fn_append CONFIG_FILES " '$ac_optarg'"
16284 ac_need_defaults=false;;
16285 --header | --heade | --head | --hea )
16286 $ac_shift
16287 case $ac_optarg in
16288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16289 esac
16290 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16291 ac_need_defaults=false;;
16292 --he | --h)
16293 # Conflict between --help and --header
16294 as_fn_error "ambiguous option: \`$1'
16295 Try \`$0 --help' for more information.";;
16296 --help | --hel | -h )
16297 $as_echo "$ac_cs_usage"; exit ;;
16298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16300 ac_cs_silent=: ;;
16302 # This is an error.
16303 -*) as_fn_error "unrecognized option: \`$1'
16304 Try \`$0 --help' for more information." ;;
16306 *) as_fn_append ac_config_targets " $1"
16307 ac_need_defaults=false ;;
16309 esac
16310 shift
16311 done
16313 ac_configure_extra_args=
16315 if $ac_cs_silent; then
16316 exec 6>/dev/null
16317 ac_configure_extra_args="$ac_configure_extra_args --silent"
16320 _ACEOF
16321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16322 if \$ac_cs_recheck; then
16323 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16324 shift
16325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16326 CONFIG_SHELL='$SHELL'
16327 export CONFIG_SHELL
16328 exec "\$@"
16331 _ACEOF
16332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333 exec 5>>config.log
16335 echo
16336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16337 ## Running $as_me. ##
16338 _ASBOX
16339 $as_echo "$ac_log"
16340 } >&5
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 # INIT-COMMANDS
16348 srcdir="$srcdir"
16349 host="$host"
16350 target="$target"
16351 with_multisubdir="$with_multisubdir"
16352 with_multisrctop="$with_multisrctop"
16353 with_target_subdir="$with_target_subdir"
16354 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16355 multi_basedir="$multi_basedir"
16356 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16357 CC="$CC"
16358 CXX="$CXX"
16359 GFORTRAN="$GFORTRAN"
16360 GCJ="$GCJ"
16361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16364 # The HP-UX ksh and POSIX shell print the target directory to stdout
16365 # if CDPATH is set.
16366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16368 sed_quote_subst='$sed_quote_subst'
16369 double_quote_subst='$double_quote_subst'
16370 delay_variable_subst='$delay_variable_subst'
16371 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16372 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16373 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16374 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16375 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16376 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16377 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16378 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16379 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16380 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16381 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16382 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16383 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16384 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16385 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16386 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16387 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16388 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16389 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16390 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16391 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16392 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16393 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16394 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16395 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16396 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16397 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16398 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16401 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16402 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16403 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16404 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16406 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16407 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16408 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16409 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16410 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16411 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16412 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16413 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16414 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16415 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16416 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16419 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"`'
16420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16460 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16461 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16462 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16463 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16464 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16465 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16484 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16491 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16492 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16493 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16494 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16495 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16496 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16499 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16500 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16501 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16502 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16503 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16504 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16505 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16506 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16507 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16508 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16509 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16510 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16511 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16512 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16513 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16514 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16515 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16516 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16517 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16518 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16519 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16520 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16521 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16522 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16523 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16524 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16525 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16526 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16527 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16528 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16529 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16530 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16531 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16532 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16533 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16535 LTCC='$LTCC'
16536 LTCFLAGS='$LTCFLAGS'
16537 compiler='$compiler_DEFAULT'
16539 # A function that is used when there is no print builtin or printf.
16540 func_fallback_echo ()
16542 eval 'cat <<_LTECHO_EOF
16544 _LTECHO_EOF'
16547 # Quote evaled strings.
16548 for var in SED \
16549 GREP \
16550 EGREP \
16551 FGREP \
16552 SHELL \
16553 ECHO \
16554 LD \
16555 NM \
16556 LN_S \
16557 lt_SP2NL \
16558 lt_NL2SP \
16559 reload_flag \
16560 OBJDUMP \
16561 deplibs_check_method \
16562 file_magic_cmd \
16563 AR \
16564 AR_FLAGS \
16565 STRIP \
16566 RANLIB \
16567 CC \
16568 CFLAGS \
16569 compiler \
16570 lt_cv_sys_global_symbol_pipe \
16571 lt_cv_sys_global_symbol_to_cdecl \
16572 lt_cv_sys_global_symbol_to_c_name_address \
16573 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16574 lt_prog_compiler_no_builtin_flag \
16575 lt_prog_compiler_wl \
16576 lt_prog_compiler_pic \
16577 lt_prog_compiler_static \
16578 lt_cv_prog_compiler_c_o \
16579 need_locks \
16580 DSYMUTIL \
16581 NMEDIT \
16582 LIPO \
16583 OTOOL \
16584 OTOOL64 \
16585 shrext_cmds \
16586 export_dynamic_flag_spec \
16587 whole_archive_flag_spec \
16588 compiler_needs_object \
16589 with_gnu_ld \
16590 allow_undefined_flag \
16591 no_undefined_flag \
16592 hardcode_libdir_flag_spec \
16593 hardcode_libdir_flag_spec_ld \
16594 hardcode_libdir_separator \
16595 fix_srcfile_path \
16596 exclude_expsyms \
16597 include_expsyms \
16598 file_list_spec \
16599 variables_saved_for_relink \
16600 libname_spec \
16601 library_names_spec \
16602 soname_spec \
16603 install_override_mode \
16604 finish_eval \
16605 old_striplib \
16606 striplib \
16607 LD_GO \
16608 reload_flag_GO \
16609 compiler_GO \
16610 lt_prog_compiler_no_builtin_flag_GO \
16611 lt_prog_compiler_wl_GO \
16612 lt_prog_compiler_pic_GO \
16613 lt_prog_compiler_static_GO \
16614 lt_cv_prog_compiler_c_o_GO \
16615 export_dynamic_flag_spec_GO \
16616 whole_archive_flag_spec_GO \
16617 compiler_needs_object_GO \
16618 with_gnu_ld_GO \
16619 allow_undefined_flag_GO \
16620 no_undefined_flag_GO \
16621 hardcode_libdir_flag_spec_GO \
16622 hardcode_libdir_flag_spec_ld_GO \
16623 hardcode_libdir_separator_GO \
16624 fix_srcfile_path_GO \
16625 exclude_expsyms_GO \
16626 include_expsyms_GO \
16627 file_list_spec_GO; do
16628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16629 *[\\\\\\\`\\"\\\$]*)
16630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16635 esac
16636 done
16638 # Double-quote double-evaled strings.
16639 for var in reload_cmds \
16640 old_postinstall_cmds \
16641 old_postuninstall_cmds \
16642 old_archive_cmds \
16643 extract_expsyms_cmds \
16644 old_archive_from_new_cmds \
16645 old_archive_from_expsyms_cmds \
16646 archive_cmds \
16647 archive_expsym_cmds \
16648 module_cmds \
16649 module_expsym_cmds \
16650 export_symbols_cmds \
16651 prelink_cmds \
16652 postinstall_cmds \
16653 postuninstall_cmds \
16654 finish_cmds \
16655 sys_lib_search_path_spec \
16656 sys_lib_dlsearch_path_spec \
16657 reload_cmds_GO \
16658 old_archive_cmds_GO \
16659 old_archive_from_new_cmds_GO \
16660 old_archive_from_expsyms_cmds_GO \
16661 archive_cmds_GO \
16662 archive_expsym_cmds_GO \
16663 module_cmds_GO \
16664 module_expsym_cmds_GO \
16665 export_symbols_cmds_GO \
16666 prelink_cmds_GO; do
16667 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16668 *[\\\\\\\`\\"\\\$]*)
16669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16674 esac
16675 done
16677 ac_aux_dir='$ac_aux_dir'
16678 xsi_shell='$xsi_shell'
16679 lt_shell_append='$lt_shell_append'
16681 # See if we are running on zsh, and set the options which allow our
16682 # commands through without removal of \ escapes INIT.
16683 if test -n "\${ZSH_VERSION+set}" ; then
16684 setopt NO_GLOB_SUBST
16688 PACKAGE='$PACKAGE'
16689 VERSION='$VERSION'
16690 TIMESTAMP='$TIMESTAMP'
16691 RM='$RM'
16692 ofile='$ofile'
16699 # Variables needed in config.status (file generation) which aren't already
16700 # passed by autoconf.
16701 SUBDIRS="$SUBDIRS"
16704 _ACEOF
16706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16708 # Handling of arguments.
16709 for ac_config_target in $ac_config_targets
16711 case $ac_config_target in
16712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16713 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16714 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16715 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16717 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16718 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16720 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16721 esac
16722 done
16725 # If the user did not use the arguments to specify the items to instantiate,
16726 # then the envvar interface is used. Set only those that are not.
16727 # We use the long form for the default assignment because of an extremely
16728 # bizarre bug on SunOS 4.1.3.
16729 if $ac_need_defaults; then
16730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16735 # Have a temporary directory for convenience. Make it in the build tree
16736 # simply because there is no reason against having it here, and in addition,
16737 # creating and moving files from /tmp can sometimes cause problems.
16738 # Hook for its removal unless debugging.
16739 # Note that there is a small window in which the directory will not be cleaned:
16740 # after its creation but before its name has been assigned to `$tmp'.
16741 $debug ||
16743 tmp=
16744 trap 'exit_status=$?
16745 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16747 trap 'as_fn_exit 1' 1 2 13 15
16749 # Create a (secure) tmp directory for tmp files.
16752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16753 test -n "$tmp" && test -d "$tmp"
16754 } ||
16756 tmp=./conf$$-$RANDOM
16757 (umask 077 && mkdir "$tmp")
16758 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16760 # Set up the scripts for CONFIG_FILES section.
16761 # No need to generate them if there are no CONFIG_FILES.
16762 # This happens for instance with `./config.status config.h'.
16763 if test -n "$CONFIG_FILES"; then
16766 ac_cr=`echo X | tr X '\015'`
16767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16768 # But we know of no other shell where ac_cr would be empty at this
16769 # point, so we can use a bashism as a fallback.
16770 if test "x$ac_cr" = x; then
16771 eval ac_cr=\$\'\\r\'
16773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16775 ac_cs_awk_cr='\r'
16776 else
16777 ac_cs_awk_cr=$ac_cr
16780 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16781 _ACEOF
16785 echo "cat >conf$$subs.awk <<_ACEOF" &&
16786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16787 echo "_ACEOF"
16788 } >conf$$subs.sh ||
16789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16791 ac_delim='%!_!# '
16792 for ac_last_try in false false false false false :; do
16793 . ./conf$$subs.sh ||
16794 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16797 if test $ac_delim_n = $ac_delim_num; then
16798 break
16799 elif $ac_last_try; then
16800 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16801 else
16802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16804 done
16805 rm -f conf$$subs.sh
16807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16808 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16809 _ACEOF
16810 sed -n '
16812 s/^/S["/; s/!.*/"]=/
16815 s/^[^!]*!//
16816 :repl
16817 t repl
16818 s/'"$ac_delim"'$//
16819 t delim
16822 s/\(.\{148\}\).*/\1/
16823 t more1
16824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16827 b repl
16828 :more1
16829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16832 s/.\{148\}//
16833 t nl
16834 :delim
16836 s/\(.\{148\}\).*/\1/
16837 t more2
16838 s/["\\]/\\&/g; s/^/"/; s/$/"/
16841 :more2
16842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16845 s/.\{148\}//
16846 t delim
16847 ' <conf$$subs.awk | sed '
16848 /^[^""]/{
16850 s/\n//
16852 ' >>$CONFIG_STATUS || ac_write_fail=1
16853 rm -f conf$$subs.awk
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 _ACAWK
16856 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16857 for (key in S) S_is_set[key] = 1
16858 FS = "\a"
16862 line = $ 0
16863 nfields = split(line, field, "@")
16864 substed = 0
16865 len = length(field[1])
16866 for (i = 2; i < nfields; i++) {
16867 key = field[i]
16868 keylen = length(key)
16869 if (S_is_set[key]) {
16870 value = S[key]
16871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16872 len += length(value) + length(field[++i])
16873 substed = 1
16874 } else
16875 len += 1 + keylen
16878 print line
16881 _ACAWK
16882 _ACEOF
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16886 else
16888 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16889 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16890 _ACEOF
16892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16894 # trailing colons and then remove the whole line if VPATH becomes empty
16895 # (actually we leave an empty line to preserve line numbers).
16896 if test "x$srcdir" = x.; then
16897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16898 s/:*\$(srcdir):*/:/
16899 s/:*\${srcdir}:*/:/
16900 s/:*@srcdir@:*/:/
16901 s/^\([^=]*=[ ]*\):*/\1/
16902 s/:*$//
16903 s/^[^=]*=[ ]*$//
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908 fi # test -n "$CONFIG_FILES"
16910 # Set up the scripts for CONFIG_HEADERS section.
16911 # No need to generate them if there are no CONFIG_HEADERS.
16912 # This happens for instance with `./config.status Makefile'.
16913 if test -n "$CONFIG_HEADERS"; then
16914 cat >"$tmp/defines.awk" <<\_ACAWK ||
16915 BEGIN {
16916 _ACEOF
16918 # Transform confdefs.h into an awk script `defines.awk', embedded as
16919 # here-document in config.status, that substitutes the proper values into
16920 # config.h.in to produce config.h.
16922 # Create a delimiter string that does not exist in confdefs.h, to ease
16923 # handling of long lines.
16924 ac_delim='%!_!# '
16925 for ac_last_try in false false :; do
16926 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16927 if test -z "$ac_t"; then
16928 break
16929 elif $ac_last_try; then
16930 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16931 else
16932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16934 done
16936 # For the awk script, D is an array of macro values keyed by name,
16937 # likewise P contains macro parameters if any. Preserve backslash
16938 # newline sequences.
16940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16941 sed -n '
16942 s/.\{148\}/&'"$ac_delim"'/g
16943 t rset
16944 :rset
16945 s/^[ ]*#[ ]*define[ ][ ]*/ /
16946 t def
16948 :def
16949 s/\\$//
16950 t bsnl
16951 s/["\\]/\\&/g
16952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16953 D["\1"]=" \3"/p
16954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16956 :bsnl
16957 s/["\\]/\\&/g
16958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16959 D["\1"]=" \3\\\\\\n"\\/p
16960 t cont
16961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16962 t cont
16964 :cont
16966 s/.\{148\}/&'"$ac_delim"'/g
16967 t clear
16968 :clear
16969 s/\\$//
16970 t bsnlc
16971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16973 :bsnlc
16974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16975 b cont
16976 ' <confdefs.h | sed '
16977 s/'"$ac_delim"'/"\\\
16978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 for (key in D) D_is_set[key] = 1
16982 FS = "\a"
16984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16985 line = \$ 0
16986 split(line, arg, " ")
16987 if (arg[1] == "#") {
16988 defundef = arg[2]
16989 mac1 = arg[3]
16990 } else {
16991 defundef = substr(arg[1], 2)
16992 mac1 = arg[2]
16994 split(mac1, mac2, "(") #)
16995 macro = mac2[1]
16996 prefix = substr(line, 1, index(line, defundef) - 1)
16997 if (D_is_set[macro]) {
16998 # Preserve the white space surrounding the "#".
16999 print prefix "define", macro P[macro] D[macro]
17000 next
17001 } else {
17002 # Replace #undef with comments. This is necessary, for example,
17003 # in the case of _POSIX_SOURCE, which is predefined and required
17004 # on some systems where configure will not decide to define it.
17005 if (defundef == "undef") {
17006 print "/*", prefix defundef, macro, "*/"
17007 next
17011 { print }
17012 _ACAWK
17013 _ACEOF
17014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17015 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17016 fi # test -n "$CONFIG_HEADERS"
17019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17020 shift
17021 for ac_tag
17023 case $ac_tag in
17024 :[FHLC]) ac_mode=$ac_tag; continue;;
17025 esac
17026 case $ac_mode$ac_tag in
17027 :[FHL]*:*);;
17028 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17029 :[FH]-) ac_tag=-:-;;
17030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17031 esac
17032 ac_save_IFS=$IFS
17033 IFS=:
17034 set x $ac_tag
17035 IFS=$ac_save_IFS
17036 shift
17037 ac_file=$1
17038 shift
17040 case $ac_mode in
17041 :L) ac_source=$1;;
17042 :[FH])
17043 ac_file_inputs=
17044 for ac_f
17046 case $ac_f in
17047 -) ac_f="$tmp/stdin";;
17048 *) # Look for the file first in the build tree, then in the source tree
17049 # (if the path is not absolute). The absolute path cannot be DOS-style,
17050 # because $ac_f cannot contain `:'.
17051 test -f "$ac_f" ||
17052 case $ac_f in
17053 [\\/$]*) false;;
17054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17055 esac ||
17056 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17057 esac
17058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17059 as_fn_append ac_file_inputs " '$ac_f'"
17060 done
17062 # Let's still pretend it is `configure' which instantiates (i.e., don't
17063 # use $as_me), people would be surprised to read:
17064 # /* config.h. Generated by config.status. */
17065 configure_input='Generated from '`
17066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17067 `' by configure.'
17068 if test x"$ac_file" != x-; then
17069 configure_input="$ac_file. $configure_input"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17071 $as_echo "$as_me: creating $ac_file" >&6;}
17073 # Neutralize special characters interpreted by sed in replacement strings.
17074 case $configure_input in #(
17075 *\&* | *\|* | *\\* )
17076 ac_sed_conf_input=`$as_echo "$configure_input" |
17077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17078 *) ac_sed_conf_input=$configure_input;;
17079 esac
17081 case $ac_tag in
17082 *:-:* | *:-) cat >"$tmp/stdin" \
17083 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17084 esac
17086 esac
17088 ac_dir=`$as_dirname -- "$ac_file" ||
17089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17090 X"$ac_file" : 'X\(//\)[^/]' \| \
17091 X"$ac_file" : 'X\(//\)$' \| \
17092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17093 $as_echo X"$ac_file" |
17094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17095 s//\1/
17098 /^X\(\/\/\)[^/].*/{
17099 s//\1/
17102 /^X\(\/\/\)$/{
17103 s//\1/
17106 /^X\(\/\).*/{
17107 s//\1/
17110 s/.*/./; q'`
17111 as_dir="$ac_dir"; as_fn_mkdir_p
17112 ac_builddir=.
17114 case "$ac_dir" in
17115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17118 # A ".." for each directory in $ac_dir_suffix.
17119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17120 case $ac_top_builddir_sub in
17121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17123 esac ;;
17124 esac
17125 ac_abs_top_builddir=$ac_pwd
17126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17127 # for backward compatibility:
17128 ac_top_builddir=$ac_top_build_prefix
17130 case $srcdir in
17131 .) # We are building in place.
17132 ac_srcdir=.
17133 ac_top_srcdir=$ac_top_builddir_sub
17134 ac_abs_top_srcdir=$ac_pwd ;;
17135 [\\/]* | ?:[\\/]* ) # Absolute name.
17136 ac_srcdir=$srcdir$ac_dir_suffix;
17137 ac_top_srcdir=$srcdir
17138 ac_abs_top_srcdir=$srcdir ;;
17139 *) # Relative name.
17140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17141 ac_top_srcdir=$ac_top_build_prefix$srcdir
17142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17143 esac
17144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17147 case $ac_mode in
17150 # CONFIG_FILE
17153 case $INSTALL in
17154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17156 esac
17157 ac_MKDIR_P=$MKDIR_P
17158 case $MKDIR_P in
17159 [\\/$]* | ?:[\\/]* ) ;;
17160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17161 esac
17162 _ACEOF
17164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17165 # If the template does not know about datarootdir, expand it.
17166 # FIXME: This hack should be removed a few years after 2.60.
17167 ac_datarootdir_hack=; ac_datarootdir_seen=
17168 ac_sed_dataroot='
17169 /datarootdir/ {
17173 /@datadir@/p
17174 /@docdir@/p
17175 /@infodir@/p
17176 /@localedir@/p
17177 /@mandir@/p'
17178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17179 *datarootdir*) ac_datarootdir_seen=yes;;
17180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17183 _ACEOF
17184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17185 ac_datarootdir_hack='
17186 s&@datadir@&$datadir&g
17187 s&@docdir@&$docdir&g
17188 s&@infodir@&$infodir&g
17189 s&@localedir@&$localedir&g
17190 s&@mandir@&$mandir&g
17191 s&\\\${datarootdir}&$datarootdir&g' ;;
17192 esac
17193 _ACEOF
17195 # Neutralize VPATH when `$srcdir' = `.'.
17196 # Shell code in configure.ac might set extrasub.
17197 # FIXME: do we really want to maintain this feature?
17198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199 ac_sed_extra="$ac_vpsub
17200 $extrasub
17201 _ACEOF
17202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17205 s|@configure_input@|$ac_sed_conf_input|;t t
17206 s&@top_builddir@&$ac_top_builddir_sub&;t t
17207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17208 s&@srcdir@&$ac_srcdir&;t t
17209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17210 s&@top_srcdir@&$ac_top_srcdir&;t t
17211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17212 s&@builddir@&$ac_builddir&;t t
17213 s&@abs_builddir@&$ac_abs_builddir&;t t
17214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17215 s&@INSTALL@&$ac_INSTALL&;t t
17216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17217 $ac_datarootdir_hack
17219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17220 || as_fn_error "could not create $ac_file" "$LINENO" 5
17222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17223 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17226 which seems to be undefined. Please make sure it is defined." >&5
17227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17228 which seems to be undefined. Please make sure it is defined." >&2;}
17230 rm -f "$tmp/stdin"
17231 case $ac_file in
17232 -) cat "$tmp/out" && rm -f "$tmp/out";;
17233 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17234 esac \
17235 || as_fn_error "could not create $ac_file" "$LINENO" 5
17239 # CONFIG_HEADER
17241 if test x"$ac_file" != x-; then
17243 $as_echo "/* $configure_input */" \
17244 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17245 } >"$tmp/config.h" \
17246 || as_fn_error "could not create $ac_file" "$LINENO" 5
17247 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17250 else
17251 rm -f "$ac_file"
17252 mv "$tmp/config.h" "$ac_file" \
17253 || as_fn_error "could not create $ac_file" "$LINENO" 5
17255 else
17256 $as_echo "/* $configure_input */" \
17257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17258 || as_fn_error "could not create -" "$LINENO" 5
17260 # Compute "$ac_file"'s index in $config_headers.
17261 _am_arg="$ac_file"
17262 _am_stamp_count=1
17263 for _am_header in $config_headers :; do
17264 case $_am_header in
17265 $_am_arg | $_am_arg:* )
17266 break ;;
17268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17269 esac
17270 done
17271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17273 X"$_am_arg" : 'X\(//\)[^/]' \| \
17274 X"$_am_arg" : 'X\(//\)$' \| \
17275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17276 $as_echo X"$_am_arg" |
17277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17278 s//\1/
17281 /^X\(\/\/\)[^/].*/{
17282 s//\1/
17285 /^X\(\/\/\)$/{
17286 s//\1/
17289 /^X\(\/\).*/{
17290 s//\1/
17293 s/.*/./; q'`/stamp-h$_am_stamp_count
17296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17297 $as_echo "$as_me: executing $ac_file commands" >&6;}
17299 esac
17302 case $ac_file$ac_mode in
17303 "default-1":C)
17304 # Only add multilib support code if we just rebuilt the top-level
17305 # Makefile.
17306 case " $CONFIG_FILES " in
17307 *" Makefile "*)
17308 ac_file=Makefile . ${multi_basedir}/config-ml.in
17310 esac ;;
17311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17313 # are listed without --file. Let's play safe and only enable the eval
17314 # if we detect the quoting.
17315 case $CONFIG_FILES in
17316 *\'*) eval set x "$CONFIG_FILES" ;;
17317 *) set x $CONFIG_FILES ;;
17318 esac
17319 shift
17320 for mf
17322 # Strip MF so we end up with the name of the file.
17323 mf=`echo "$mf" | sed -e 's/:.*$//'`
17324 # Check whether this is an Automake generated Makefile or not.
17325 # We used to match only the files named `Makefile.in', but
17326 # some people rename them; so instead we look at the file content.
17327 # Grep'ing the first line is not enough: some people post-process
17328 # each Makefile.in and add a new line on top of each file to say so.
17329 # Grep'ing the whole file is not good either: AIX grep has a line
17330 # limit of 2048, but all sed's we know have understand at least 4000.
17331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17332 dirpart=`$as_dirname -- "$mf" ||
17333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17334 X"$mf" : 'X\(//\)[^/]' \| \
17335 X"$mf" : 'X\(//\)$' \| \
17336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17337 $as_echo X"$mf" |
17338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17339 s//\1/
17342 /^X\(\/\/\)[^/].*/{
17343 s//\1/
17346 /^X\(\/\/\)$/{
17347 s//\1/
17350 /^X\(\/\).*/{
17351 s//\1/
17354 s/.*/./; q'`
17355 else
17356 continue
17358 # Extract the definition of DEPDIR, am__include, and am__quote
17359 # from the Makefile without running `make'.
17360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17361 test -z "$DEPDIR" && continue
17362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17363 test -z "am__include" && continue
17364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17365 # When using ansi2knr, U may be empty or an underscore; expand it
17366 U=`sed -n 's/^U = //p' < "$mf"`
17367 # Find all dependency output files, they are included files with
17368 # $(DEPDIR) in their names. We invoke sed twice because it is the
17369 # simplest approach to changing $(DEPDIR) to its actual value in the
17370 # expansion.
17371 for file in `sed -n "
17372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17374 # Make sure the directory exists.
17375 test -f "$dirpart/$file" && continue
17376 fdir=`$as_dirname -- "$file" ||
17377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17378 X"$file" : 'X\(//\)[^/]' \| \
17379 X"$file" : 'X\(//\)$' \| \
17380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17381 $as_echo X"$file" |
17382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17383 s//\1/
17386 /^X\(\/\/\)[^/].*/{
17387 s//\1/
17390 /^X\(\/\/\)$/{
17391 s//\1/
17394 /^X\(\/\).*/{
17395 s//\1/
17398 s/.*/./; q'`
17399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17400 # echo "creating $dirpart/$file"
17401 echo '# dummy' > "$dirpart/$file"
17402 done
17403 done
17406 "libtool":C)
17408 # See if we are running on zsh, and set the options which allow our
17409 # commands through without removal of \ escapes.
17410 if test -n "${ZSH_VERSION+set}" ; then
17411 setopt NO_GLOB_SUBST
17414 cfgfile="${ofile}T"
17415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17416 $RM "$cfgfile"
17418 cat <<_LT_EOF >> "$cfgfile"
17419 #! $SHELL
17421 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17422 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17427 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17428 # Written by Gordon Matzigkeit, 1996
17430 # This file is part of GNU Libtool.
17432 # GNU Libtool is free software; you can redistribute it and/or
17433 # modify it under the terms of the GNU General Public License as
17434 # published by the Free Software Foundation; either version 2 of
17435 # the License, or (at your option) any later version.
17437 # As a special exception to the GNU General Public License,
17438 # if you distribute this file as part of a program or library that
17439 # is built using GNU Libtool, you may include this file under the
17440 # same distribution terms that you use for the rest of that program.
17442 # GNU Libtool is distributed in the hope that it will be useful,
17443 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17444 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17445 # GNU General Public License for more details.
17447 # You should have received a copy of the GNU General Public License
17448 # along with GNU Libtool; see the file COPYING. If not, a copy
17449 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17450 # obtained by writing to the Free Software Foundation, Inc.,
17451 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17454 # The names of the tagged configurations supported by this script.
17455 available_tags="GO "
17457 # ### BEGIN LIBTOOL CONFIG
17459 # A sed program that does not truncate output.
17460 SED=$lt_SED
17462 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17463 Xsed="\$SED -e 1s/^X//"
17465 # A grep program that handles long lines.
17466 GREP=$lt_GREP
17468 # An ERE matcher.
17469 EGREP=$lt_EGREP
17471 # A literal string matcher.
17472 FGREP=$lt_FGREP
17474 # Shell to use when invoking shell scripts.
17475 SHELL=$lt_SHELL
17477 # An echo program that protects backslashes.
17478 ECHO=$lt_ECHO
17480 # Which release of libtool.m4 was used?
17481 macro_version=$macro_version
17482 macro_revision=$macro_revision
17484 # Whether or not to build shared libraries.
17485 build_libtool_libs=$enable_shared
17487 # Whether or not to build static libraries.
17488 build_old_libs=$enable_static
17490 # What type of objects to build.
17491 pic_mode=$pic_mode
17493 # Whether or not to optimize for fast installation.
17494 fast_install=$enable_fast_install
17496 # The host system.
17497 host_alias=$host_alias
17498 host=$host
17499 host_os=$host_os
17501 # The build system.
17502 build_alias=$build_alias
17503 build=$build
17504 build_os=$build_os
17506 # A BSD- or MS-compatible name lister.
17507 NM=$lt_NM
17509 # Whether we need soft or hard links.
17510 LN_S=$lt_LN_S
17512 # What is the maximum length of a command?
17513 max_cmd_len=$max_cmd_len
17515 # Object file suffix (normally "o").
17516 objext=$ac_objext
17518 # Executable file suffix (normally "").
17519 exeext=$exeext
17521 # whether the shell understands "unset".
17522 lt_unset=$lt_unset
17524 # turn spaces into newlines.
17525 SP2NL=$lt_lt_SP2NL
17527 # turn newlines into spaces.
17528 NL2SP=$lt_lt_NL2SP
17530 # An object symbol dumper.
17531 OBJDUMP=$lt_OBJDUMP
17533 # Method to check whether dependent libraries are shared objects.
17534 deplibs_check_method=$lt_deplibs_check_method
17536 # Command to use when deplibs_check_method == "file_magic".
17537 file_magic_cmd=$lt_file_magic_cmd
17539 # The archiver.
17540 AR=$lt_AR
17541 AR_FLAGS=$lt_AR_FLAGS
17543 # A symbol stripping program.
17544 STRIP=$lt_STRIP
17546 # Commands used to install an old-style archive.
17547 RANLIB=$lt_RANLIB
17548 old_postinstall_cmds=$lt_old_postinstall_cmds
17549 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17551 # Whether to use a lock for old archive extraction.
17552 lock_old_archive_extraction=$lock_old_archive_extraction
17554 # A C compiler.
17555 LTCC=$lt_CC
17557 # LTCC compiler flags.
17558 LTCFLAGS=$lt_CFLAGS
17560 # Take the output of nm and produce a listing of raw symbols and C names.
17561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17563 # Transform the output of nm in a proper C declaration.
17564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17566 # Transform the output of nm in a C name address pair.
17567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17569 # Transform the output of nm in a C name address pair when lib prefix is needed.
17570 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17572 # The name of the directory that contains temporary libtool files.
17573 objdir=$objdir
17575 # Used to examine libraries when file_magic_cmd begins with "file".
17576 MAGIC_CMD=$MAGIC_CMD
17578 # Must we lock files when doing compilation?
17579 need_locks=$lt_need_locks
17581 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17582 DSYMUTIL=$lt_DSYMUTIL
17584 # Tool to change global to local symbols on Mac OS X.
17585 NMEDIT=$lt_NMEDIT
17587 # Tool to manipulate fat objects and archives on Mac OS X.
17588 LIPO=$lt_LIPO
17590 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17591 OTOOL=$lt_OTOOL
17593 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17594 OTOOL64=$lt_OTOOL64
17596 # Old archive suffix (normally "a").
17597 libext=$libext
17599 # Shared library suffix (normally ".so").
17600 shrext_cmds=$lt_shrext_cmds
17602 # The commands to extract the exported symbol list from a shared archive.
17603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17605 # Variables whose values should be saved in libtool wrapper scripts and
17606 # restored at link time.
17607 variables_saved_for_relink=$lt_variables_saved_for_relink
17609 # Do we need the "lib" prefix for modules?
17610 need_lib_prefix=$need_lib_prefix
17612 # Do we need a version for libraries?
17613 need_version=$need_version
17615 # Library versioning type.
17616 version_type=$version_type
17618 # Shared library runtime path variable.
17619 runpath_var=$runpath_var
17621 # Shared library path variable.
17622 shlibpath_var=$shlibpath_var
17624 # Is shlibpath searched before the hard-coded library search path?
17625 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17627 # Format of library name prefix.
17628 libname_spec=$lt_libname_spec
17630 # List of archive names. First name is the real one, the rest are links.
17631 # The last name is the one that the linker finds with -lNAME
17632 library_names_spec=$lt_library_names_spec
17634 # The coded name of the library, if different from the real name.
17635 soname_spec=$lt_soname_spec
17637 # Permission mode override for installation of shared libraries.
17638 install_override_mode=$lt_install_override_mode
17640 # Command to use after installation of a shared archive.
17641 postinstall_cmds=$lt_postinstall_cmds
17643 # Command to use after uninstallation of a shared archive.
17644 postuninstall_cmds=$lt_postuninstall_cmds
17646 # Commands used to finish a libtool library installation in a directory.
17647 finish_cmds=$lt_finish_cmds
17649 # As "finish_cmds", except a single script fragment to be evaled but
17650 # not shown.
17651 finish_eval=$lt_finish_eval
17653 # Whether we should hardcode library paths into libraries.
17654 hardcode_into_libs=$hardcode_into_libs
17656 # Compile-time system search path for libraries.
17657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17659 # Run-time system search path for libraries.
17660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17662 # Whether dlopen is supported.
17663 dlopen_support=$enable_dlopen
17665 # Whether dlopen of programs is supported.
17666 dlopen_self=$enable_dlopen_self
17668 # Whether dlopen of statically linked programs is supported.
17669 dlopen_self_static=$enable_dlopen_self_static
17671 # Commands to strip libraries.
17672 old_striplib=$lt_old_striplib
17673 striplib=$lt_striplib
17676 # The linker used to build libraries.
17677 LD=$lt_LD
17679 # How to create reloadable object files.
17680 reload_flag=$lt_reload_flag
17681 reload_cmds=$lt_reload_cmds
17683 # Commands used to build an old-style archive.
17684 old_archive_cmds=$lt_old_archive_cmds
17686 # A language specific compiler.
17687 CC=$lt_compiler
17689 # Is the compiler the GNU compiler?
17690 with_gcc=$GCC
17692 # Compiler flag to turn off builtin functions.
17693 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17695 # How to pass a linker flag through the compiler.
17696 wl=$lt_lt_prog_compiler_wl
17698 # Additional compiler flags for building library objects.
17699 pic_flag=$lt_lt_prog_compiler_pic
17701 # Compiler flag to prevent dynamic linking.
17702 link_static_flag=$lt_lt_prog_compiler_static
17704 # Does compiler simultaneously support -c and -o options?
17705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17707 # Whether or not to add -lc for building shared libraries.
17708 build_libtool_need_lc=$archive_cmds_need_lc
17710 # Whether or not to disallow shared libs when runtime libs are static.
17711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17713 # Compiler flag to allow reflexive dlopens.
17714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17716 # Compiler flag to generate shared objects directly from archives.
17717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17719 # Whether the compiler copes with passing no objects directly.
17720 compiler_needs_object=$lt_compiler_needs_object
17722 # Create an old-style archive from a shared archive.
17723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17725 # Create a temporary old-style archive to link instead of a shared archive.
17726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17728 # Commands used to build a shared archive.
17729 archive_cmds=$lt_archive_cmds
17730 archive_expsym_cmds=$lt_archive_expsym_cmds
17732 # Commands used to build a loadable module if different from building
17733 # a shared archive.
17734 module_cmds=$lt_module_cmds
17735 module_expsym_cmds=$lt_module_expsym_cmds
17737 # Whether we are building with GNU ld or not.
17738 with_gnu_ld=$lt_with_gnu_ld
17740 # Flag that allows shared libraries with undefined symbols to be built.
17741 allow_undefined_flag=$lt_allow_undefined_flag
17743 # Flag that enforces no undefined symbols.
17744 no_undefined_flag=$lt_no_undefined_flag
17746 # Flag to hardcode \$libdir into a binary during linking.
17747 # This must work even if \$libdir does not exist
17748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17750 # If ld is used when linking, flag to hardcode \$libdir into a binary
17751 # during linking. This must work even if \$libdir does not exist.
17752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17754 # Whether we need a single "-rpath" flag with a separated argument.
17755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17757 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17758 # DIR into the resulting binary.
17759 hardcode_direct=$hardcode_direct
17761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17762 # DIR into the resulting binary and the resulting library dependency is
17763 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17764 # library is relocated.
17765 hardcode_direct_absolute=$hardcode_direct_absolute
17767 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17768 # into the resulting binary.
17769 hardcode_minus_L=$hardcode_minus_L
17771 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17772 # into the resulting binary.
17773 hardcode_shlibpath_var=$hardcode_shlibpath_var
17775 # Set to "yes" if building a shared library automatically hardcodes DIR
17776 # into the library and all subsequent libraries and executables linked
17777 # against it.
17778 hardcode_automatic=$hardcode_automatic
17780 # Set to yes if linker adds runtime paths of dependent libraries
17781 # to runtime path list.
17782 inherit_rpath=$inherit_rpath
17784 # Whether libtool must link a program against all its dependency libraries.
17785 link_all_deplibs=$link_all_deplibs
17787 # Fix the shell variable \$srcfile for the compiler.
17788 fix_srcfile_path=$lt_fix_srcfile_path
17790 # Set to "yes" if exported symbols are required.
17791 always_export_symbols=$always_export_symbols
17793 # The commands to list exported symbols.
17794 export_symbols_cmds=$lt_export_symbols_cmds
17796 # Symbols that should not be listed in the preloaded symbols.
17797 exclude_expsyms=$lt_exclude_expsyms
17799 # Symbols that must always be exported.
17800 include_expsyms=$lt_include_expsyms
17802 # Commands necessary for linking programs (against libraries) with templates.
17803 prelink_cmds=$lt_prelink_cmds
17805 # Specify filename containing input files.
17806 file_list_spec=$lt_file_list_spec
17808 # How to hardcode a shared library path into an executable.
17809 hardcode_action=$hardcode_action
17811 # ### END LIBTOOL CONFIG
17813 _LT_EOF
17815 case $host_os in
17816 aix3*)
17817 cat <<\_LT_EOF >> "$cfgfile"
17818 # AIX sometimes has problems with the GCC collect2 program. For some
17819 # reason, if we set the COLLECT_NAMES environment variable, the problems
17820 # vanish in a puff of smoke.
17821 if test "X${COLLECT_NAMES+set}" != Xset; then
17822 COLLECT_NAMES=
17823 export COLLECT_NAMES
17825 _LT_EOF
17827 esac
17830 ltmain="$ac_aux_dir/ltmain.sh"
17833 # We use sed instead of cat because bash on DJGPP gets confused if
17834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17835 # text mode, it properly converts lines to CR/LF. This bash problem
17836 # is reportedly fixed, but why not run on old versions too?
17837 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17838 || (rm -f "$cfgfile"; exit 1)
17840 case $xsi_shell in
17841 yes)
17842 cat << \_LT_EOF >> "$cfgfile"
17844 # func_dirname file append nondir_replacement
17845 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17846 # otherwise set result to NONDIR_REPLACEMENT.
17847 func_dirname ()
17849 case ${1} in
17850 */*) func_dirname_result="${1%/*}${2}" ;;
17851 * ) func_dirname_result="${3}" ;;
17852 esac
17855 # func_basename file
17856 func_basename ()
17858 func_basename_result="${1##*/}"
17861 # func_dirname_and_basename file append nondir_replacement
17862 # perform func_basename and func_dirname in a single function
17863 # call:
17864 # dirname: Compute the dirname of FILE. If nonempty,
17865 # add APPEND to the result, otherwise set result
17866 # to NONDIR_REPLACEMENT.
17867 # value returned in "$func_dirname_result"
17868 # basename: Compute filename of FILE.
17869 # value retuned in "$func_basename_result"
17870 # Implementation must be kept synchronized with func_dirname
17871 # and func_basename. For efficiency, we do not delegate to
17872 # those functions but instead duplicate the functionality here.
17873 func_dirname_and_basename ()
17875 case ${1} in
17876 */*) func_dirname_result="${1%/*}${2}" ;;
17877 * ) func_dirname_result="${3}" ;;
17878 esac
17879 func_basename_result="${1##*/}"
17882 # func_stripname prefix suffix name
17883 # strip PREFIX and SUFFIX off of NAME.
17884 # PREFIX and SUFFIX must not contain globbing or regex special
17885 # characters, hashes, percent signs, but SUFFIX may contain a leading
17886 # dot (in which case that matches only a dot).
17887 func_stripname ()
17889 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17890 # positional parameters, so assign one to ordinary parameter first.
17891 func_stripname_result=${3}
17892 func_stripname_result=${func_stripname_result#"${1}"}
17893 func_stripname_result=${func_stripname_result%"${2}"}
17896 # func_opt_split
17897 func_opt_split ()
17899 func_opt_split_opt=${1%%=*}
17900 func_opt_split_arg=${1#*=}
17903 # func_lo2o object
17904 func_lo2o ()
17906 case ${1} in
17907 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17908 *) func_lo2o_result=${1} ;;
17909 esac
17912 # func_xform libobj-or-source
17913 func_xform ()
17915 func_xform_result=${1%.*}.lo
17918 # func_arith arithmetic-term...
17919 func_arith ()
17921 func_arith_result=$(( $* ))
17924 # func_len string
17925 # STRING may not start with a hyphen.
17926 func_len ()
17928 func_len_result=${#1}
17931 _LT_EOF
17933 *) # Bourne compatible functions.
17934 cat << \_LT_EOF >> "$cfgfile"
17936 # func_dirname file append nondir_replacement
17937 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17938 # otherwise set result to NONDIR_REPLACEMENT.
17939 func_dirname ()
17941 # Extract subdirectory from the argument.
17942 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17943 if test "X$func_dirname_result" = "X${1}"; then
17944 func_dirname_result="${3}"
17945 else
17946 func_dirname_result="$func_dirname_result${2}"
17950 # func_basename file
17951 func_basename ()
17953 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17957 # func_stripname prefix suffix name
17958 # strip PREFIX and SUFFIX off of NAME.
17959 # PREFIX and SUFFIX must not contain globbing or regex special
17960 # characters, hashes, percent signs, but SUFFIX may contain a leading
17961 # dot (in which case that matches only a dot).
17962 # func_strip_suffix prefix name
17963 func_stripname ()
17965 case ${2} in
17966 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17967 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17968 esac
17971 # sed scripts:
17972 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17973 my_sed_long_arg='1s/^-[^=]*=//'
17975 # func_opt_split
17976 func_opt_split ()
17978 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17979 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17982 # func_lo2o object
17983 func_lo2o ()
17985 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17988 # func_xform libobj-or-source
17989 func_xform ()
17991 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17994 # func_arith arithmetic-term...
17995 func_arith ()
17997 func_arith_result=`expr "$@"`
18000 # func_len string
18001 # STRING may not start with a hyphen.
18002 func_len ()
18004 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18007 _LT_EOF
18008 esac
18010 case $lt_shell_append in
18011 yes)
18012 cat << \_LT_EOF >> "$cfgfile"
18014 # func_append var value
18015 # Append VALUE to the end of shell variable VAR.
18016 func_append ()
18018 eval "$1+=\$2"
18020 _LT_EOF
18023 cat << \_LT_EOF >> "$cfgfile"
18025 # func_append var value
18026 # Append VALUE to the end of shell variable VAR.
18027 func_append ()
18029 eval "$1=\$$1\$2"
18032 _LT_EOF
18034 esac
18037 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18038 || (rm -f "$cfgfile"; exit 1)
18040 mv -f "$cfgfile" "$ofile" ||
18041 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18042 chmod +x "$ofile"
18045 cat <<_LT_EOF >> "$ofile"
18047 # ### BEGIN LIBTOOL TAG CONFIG: GO
18049 # The linker used to build libraries.
18050 LD=$lt_LD_GO
18052 # How to create reloadable object files.
18053 reload_flag=$lt_reload_flag_GO
18054 reload_cmds=$lt_reload_cmds_GO
18056 # Commands used to build an old-style archive.
18057 old_archive_cmds=$lt_old_archive_cmds_GO
18059 # A language specific compiler.
18060 CC=$lt_compiler_GO
18062 # Is the compiler the GNU compiler?
18063 with_gcc=$GCC_GO
18065 # Compiler flag to turn off builtin functions.
18066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18068 # How to pass a linker flag through the compiler.
18069 wl=$lt_lt_prog_compiler_wl_GO
18071 # Additional compiler flags for building library objects.
18072 pic_flag=$lt_lt_prog_compiler_pic_GO
18074 # Compiler flag to prevent dynamic linking.
18075 link_static_flag=$lt_lt_prog_compiler_static_GO
18077 # Does compiler simultaneously support -c and -o options?
18078 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18080 # Whether or not to add -lc for building shared libraries.
18081 build_libtool_need_lc=$archive_cmds_need_lc_GO
18083 # Whether or not to disallow shared libs when runtime libs are static.
18084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18086 # Compiler flag to allow reflexive dlopens.
18087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18089 # Compiler flag to generate shared objects directly from archives.
18090 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18092 # Whether the compiler copes with passing no objects directly.
18093 compiler_needs_object=$lt_compiler_needs_object_GO
18095 # Create an old-style archive from a shared archive.
18096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18098 # Create a temporary old-style archive to link instead of a shared archive.
18099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18101 # Commands used to build a shared archive.
18102 archive_cmds=$lt_archive_cmds_GO
18103 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18105 # Commands used to build a loadable module if different from building
18106 # a shared archive.
18107 module_cmds=$lt_module_cmds_GO
18108 module_expsym_cmds=$lt_module_expsym_cmds_GO
18110 # Whether we are building with GNU ld or not.
18111 with_gnu_ld=$lt_with_gnu_ld_GO
18113 # Flag that allows shared libraries with undefined symbols to be built.
18114 allow_undefined_flag=$lt_allow_undefined_flag_GO
18116 # Flag that enforces no undefined symbols.
18117 no_undefined_flag=$lt_no_undefined_flag_GO
18119 # Flag to hardcode \$libdir into a binary during linking.
18120 # This must work even if \$libdir does not exist
18121 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18123 # If ld is used when linking, flag to hardcode \$libdir into a binary
18124 # during linking. This must work even if \$libdir does not exist.
18125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18127 # Whether we need a single "-rpath" flag with a separated argument.
18128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18131 # DIR into the resulting binary.
18132 hardcode_direct=$hardcode_direct_GO
18134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18135 # DIR into the resulting binary and the resulting library dependency is
18136 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18137 # library is relocated.
18138 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18140 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18141 # into the resulting binary.
18142 hardcode_minus_L=$hardcode_minus_L_GO
18144 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18145 # into the resulting binary.
18146 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18148 # Set to "yes" if building a shared library automatically hardcodes DIR
18149 # into the library and all subsequent libraries and executables linked
18150 # against it.
18151 hardcode_automatic=$hardcode_automatic_GO
18153 # Set to yes if linker adds runtime paths of dependent libraries
18154 # to runtime path list.
18155 inherit_rpath=$inherit_rpath_GO
18157 # Whether libtool must link a program against all its dependency libraries.
18158 link_all_deplibs=$link_all_deplibs_GO
18160 # Fix the shell variable \$srcfile for the compiler.
18161 fix_srcfile_path=$lt_fix_srcfile_path_GO
18163 # Set to "yes" if exported symbols are required.
18164 always_export_symbols=$always_export_symbols_GO
18166 # The commands to list exported symbols.
18167 export_symbols_cmds=$lt_export_symbols_cmds_GO
18169 # Symbols that should not be listed in the preloaded symbols.
18170 exclude_expsyms=$lt_exclude_expsyms_GO
18172 # Symbols that must always be exported.
18173 include_expsyms=$lt_include_expsyms_GO
18175 # Commands necessary for linking programs (against libraries) with templates.
18176 prelink_cmds=$lt_prelink_cmds_GO
18178 # Specify filename containing input files.
18179 file_list_spec=$lt_file_list_spec_GO
18181 # How to hardcode a shared library path into an executable.
18182 hardcode_action=$hardcode_action_GO
18184 # ### END LIBTOOL TAG CONFIG: GO
18185 _LT_EOF
18188 "default":C) if test -n "$CONFIG_FILES"; then
18189 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18190 # that multilib installs will end up installed in the correct place.
18191 # The testsuite needs it for multilib-aware ABI baseline files.
18192 # To work around this not being passed down from config-ml.in ->
18193 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18194 # append it here. Only modify Makefiles that have just been created.
18196 # Also, get rid of this simulated-VPATH thing that automake does.
18197 cat > vpsed << \_EOF
18198 s!`test -f '$<' || echo '$(srcdir)/'`!!
18199 _EOF
18200 for i in $SUBDIRS; do
18201 case $CONFIG_FILES in
18202 *${i}/Makefile*)
18203 #echo "Adding MULTISUBDIR to $i/Makefile"
18204 sed -f vpsed $i/Makefile > tmp
18205 grep '^MULTISUBDIR =' Makefile >> tmp
18206 mv tmp $i/Makefile
18208 esac
18209 done
18210 rm vpsed
18214 esac
18215 done # for ac_tag
18218 as_fn_exit 0
18219 _ACEOF
18220 ac_clean_files=$ac_clean_files_save
18222 test $ac_write_fail = 0 ||
18223 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18226 # configure is writing to config.log, and then calls config.status.
18227 # config.status does its own redirection, appending to config.log.
18228 # Unfortunately, on DOS this fails, as config.log is still kept open
18229 # by configure, so config.status won't be able to write to it; its
18230 # output is simply discarded. So we exec the FD to /dev/null,
18231 # effectively closing config.log, so it can be properly (re)opened and
18232 # appended to by config.status. When coming back to configure, we
18233 # need to make the FD available again.
18234 if test "$no_create" != yes; then
18235 ac_cs_success=:
18236 ac_config_status_args=
18237 test "$silent" = yes &&
18238 ac_config_status_args="$ac_config_status_args --quiet"
18239 exec 5>/dev/null
18240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18241 exec 5>>config.log
18242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18243 # would make configure fail if this is the last instruction.
18244 $ac_cs_success || as_fn_exit $?
18246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}