bt-load.c: remove typedefs that hide pointerness
[official-gcc.git] / libgo / configure
blob617fe1581483494fd5d0d385c0c56d203d45b6c7
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 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 USING_SPLIT_STACK_FALSE
624 USING_SPLIT_STACK_TRUE
625 SPLIT_STACK
626 OSCFLAGS
627 GO_SYSCALL_OS_ARCH_FILE
628 GO_SYSCALL_OS_FILE
629 GO_LIBCALL_OS_ARCH_FILE
630 GO_LIBCALL_OS_FILE
631 GOARCH
632 LIBGO_IS_X86_64_FALSE
633 LIBGO_IS_X86_64_TRUE
634 LIBGO_IS_SPARC64_FALSE
635 LIBGO_IS_SPARC64_TRUE
636 LIBGO_IS_SPARC_FALSE
637 LIBGO_IS_SPARC_TRUE
638 LIBGO_IS_S390X_FALSE
639 LIBGO_IS_S390X_TRUE
640 LIBGO_IS_S390_FALSE
641 LIBGO_IS_S390_TRUE
642 LIBGO_IS_PPC64LE_FALSE
643 LIBGO_IS_PPC64LE_TRUE
644 LIBGO_IS_PPC64_FALSE
645 LIBGO_IS_PPC64_TRUE
646 LIBGO_IS_PPC_FALSE
647 LIBGO_IS_PPC_TRUE
648 LIBGO_IS_MIPSO64_FALSE
649 LIBGO_IS_MIPSO64_TRUE
650 LIBGO_IS_MIPSN64_FALSE
651 LIBGO_IS_MIPSN64_TRUE
652 LIBGO_IS_MIPSN32_FALSE
653 LIBGO_IS_MIPSN32_TRUE
654 LIBGO_IS_MIPSO32_FALSE
655 LIBGO_IS_MIPSO32_TRUE
656 LIBGO_IS_MIPS_FALSE
657 LIBGO_IS_MIPS_TRUE
658 LIBGO_IS_M68K_FALSE
659 LIBGO_IS_M68K_TRUE
660 LIBGO_IS_ARM64_FALSE
661 LIBGO_IS_ARM64_TRUE
662 LIBGO_IS_ARM_FALSE
663 LIBGO_IS_ARM_TRUE
664 LIBGO_IS_ALPHA_FALSE
665 LIBGO_IS_ALPHA_TRUE
666 LIBGO_IS_386_FALSE
667 LIBGO_IS_386_TRUE
668 USE_DEJAGNU
669 GOOS
670 LIBGO_IS_SOLARIS_FALSE
671 LIBGO_IS_SOLARIS_TRUE
672 LIBGO_IS_RTEMS_FALSE
673 LIBGO_IS_RTEMS_TRUE
674 LIBGO_IS_DRAGONFLY_FALSE
675 LIBGO_IS_DRAGONFLY_TRUE
676 LIBGO_IS_OPENBSD_FALSE
677 LIBGO_IS_OPENBSD_TRUE
678 LIBGO_IS_NETBSD_FALSE
679 LIBGO_IS_NETBSD_TRUE
680 LIBGO_IS_LINUX_FALSE
681 LIBGO_IS_LINUX_TRUE
682 LIBGO_IS_IRIX_FALSE
683 LIBGO_IS_IRIX_TRUE
684 LIBGO_IS_FREEBSD_FALSE
685 LIBGO_IS_FREEBSD_TRUE
686 LIBGO_IS_DARWIN_FALSE
687 LIBGO_IS_DARWIN_TRUE
688 go_include
689 LIBATOMIC
690 LIBFFIINCS
691 LIBFFI
692 nover_glibgo_toolexeclibdir
693 glibgo_toolexeclibdir
694 glibgo_toolexecdir
695 WERROR
696 WARN_FLAGS
697 CC_FOR_BUILD
698 enable_static
699 enable_shared
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
707 OBJDUMP
708 LN_S
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LIBTOOL
713 OBJCOPY
714 RANLIB
716 FGREP
717 EGREP
718 GREP
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 GOCFLAGS
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 AMDEPBACKSLASH
729 AMDEP_FALSE
730 AMDEP_TRUE
731 am__quote
732 am__include
733 DEPDIR
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_os
765 target_vendor
766 target_cpu
767 target
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 multi_basedir
777 libtool_VERSION
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_multilib
820 enable_dependency_tracking
821 enable_maintainer_mode
822 with_gnu_ld
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 enable_libtool_lock
828 enable_werror
829 enable_version_specific_runtime_libs
830 with_libffi
831 with_libatomic
832 with_system_libunwind
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CPPFLAGS'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
1380 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1389 Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 [PREFIX]
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1435 cat <<\_ACEOF
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of package-unused version-unused:";;
1452 esac
1453 cat <<\_ACEOF
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-multilib build many library versions (default)
1460 --disable-dependency-tracking speeds up one-time build
1461 --enable-dependency-tracking do not reject slow dependency extractors
1462 --enable-maintainer-mode enable make rules and dependencies not useful
1463 (and sometimes confusing) to the casual installer
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-werror turns on -Werror [default=yes]
1470 --enable-version-specific-runtime-libs
1471 Specify that runtime libraries should be installed
1472 in a compiler-specific directory
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --without-libffi don't use libffi
1481 --without-libatomic don't use libatomic
1482 --with-system-libunwind use installed libunwind
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 GOC Go compiler command
1493 GOCFLAGS Go compiler flags
1494 CPP C preprocessor
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to the package provider.
1500 _ACEOF
1501 ac_status=$?
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561 cat <<\_ACEOF
1562 package-unused configure version-unused
1563 generated by GNU Autoconf 2.64
1565 Copyright (C) 2009 Free Software Foundation, Inc.
1566 This configure script is free software; the Free Software Foundation
1567 gives unlimited permission to copy, distribute and modify it.
1568 _ACEOF
1569 exit
1572 ## ------------------------ ##
1573 ## Autoconf initialization. ##
1574 ## ------------------------ ##
1576 # ac_fn_c_try_compile LINENO
1577 # --------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=1
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_compile
1614 # ac_fn_c_try_link LINENO
1615 # -----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_link ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext conftest$ac_exeext
1621 if { { ac_try="$ac_link"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest$ac_exeext && {
1640 test "$cross_compiling" = yes ||
1641 $as_test_x conftest$ac_exeext
1642 }; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1648 ac_retval=1
1650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1652 # interfere with the next link command; also delete a directory that is
1653 # left behind by Apple's compiler. We do this before executing the actions.
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 return $ac_retval
1658 } # ac_fn_c_try_link
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 } # ac_fn_c_check_header_compile
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } >/dev/null && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 return $ac_retval
1726 } # ac_fn_c_try_cpp
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1768 } # ac_fn_c_try_run
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1798 #undef $2
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1815 main ()
1817 return $2 ();
1819 return 0;
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 } # ac_fn_c_check_func
1837 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840 # the include files in INCLUDES and setting the cache variable VAR
1841 # accordingly.
1842 ac_fn_c_check_header_mongrel ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 else
1855 # Is the header compilable?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857 $as_echo_n "checking $2 usability... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_header_compiler=yes
1865 else
1866 ac_header_compiler=no
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870 $as_echo "$ac_header_compiler" >&6; }
1872 # Is the header present?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874 $as_echo_n "checking $2 presence... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_cpp "$LINENO"; then :
1880 ac_header_preproc=yes
1881 else
1882 ac_header_preproc=no
1884 rm -f conftest.err conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886 $as_echo "$ac_header_preproc" >&6; }
1888 # So? What about this header?
1889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890 yes:no: )
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 no:yes:* )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1900 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1904 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 esac
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 eval "$3=\$ac_header_compiler"
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_mongrel
1924 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925 # -------------------------------------------
1926 # Tests whether TYPE exists after having included INCLUDES, setting cache
1927 # variable VAR accordingly.
1928 ac_fn_c_check_type ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 eval "$3=no"
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1941 main ()
1943 if (sizeof ($2))
1944 return 0;
1946 return 0;
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 if (sizeof (($2)))
1957 return 0;
1959 return 0;
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1964 else
1965 eval "$3=yes"
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_type
1978 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979 # --------------------------------------------
1980 # Tries to find the compile-time value of EXPR in a program that includes
1981 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1982 # computed
1983 ac_fn_c_compute_int ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if test "$cross_compiling" = yes; then
1987 # Depending upon the size, compute the lo and hi bounds.
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static int test_array [1 - 2 * !(($2) >= 0)];
1995 test_array [0] = 0
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=0 ac_mid=0
2003 while :; do
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 test_array [0] = 0
2014 return 0;
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid; break
2019 else
2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021 if test $ac_lo -le $ac_mid; then
2022 ac_lo= ac_hi=
2023 break
2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) < 0)];
2037 test_array [0] = 0
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=-1 ac_mid=-1
2045 while :; do
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2050 main ()
2052 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053 test_array [0] = 0
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_lo=$ac_mid; break
2061 else
2062 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2063 if test $ac_mid -le $ac_hi; then
2064 ac_lo= ac_hi=
2065 break
2067 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 done
2071 else
2072 ac_lo= ac_hi=
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 # Binary search between lo and hi bounds.
2078 while test "x$ac_lo" != "x$ac_hi"; do
2079 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid
2095 else
2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 case $ac_lo in #((
2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 '') ac_retval=1 ;;
2103 esac
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2108 static long int longval () { return $2; }
2109 static unsigned long int ulongval () { return $2; }
2110 #include <stdio.h>
2111 #include <stdlib.h>
2113 main ()
2116 FILE *f = fopen ("conftest.val", "w");
2117 if (! f)
2118 return 1;
2119 if (($2) < 0)
2121 long int i = longval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%ld", i);
2126 else
2128 unsigned long int i = ulongval ();
2129 if (i != ($2))
2130 return 1;
2131 fprintf (f, "%lu", i);
2133 /* Do not output a trailing newline, as this causes \r\n confusion
2134 on some platforms. */
2135 return ferror (f) || fclose (f) != 0;
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_run "$LINENO"; then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 else
2144 ac_retval=1
2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 rm -f conftest.val
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 return $ac_retval
2154 } # ac_fn_c_compute_int
2155 cat >config.log <<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2159 It was created by package-unused $as_me version-unused, which was
2160 generated by GNU Autoconf 2.64. Invocation command line was
2162 $ $0 $@
2164 _ACEOF
2165 exec 5>>config.log
2167 cat <<_ASUNAME
2168 ## --------- ##
2169 ## Platform. ##
2170 ## --------- ##
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2182 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2185 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2186 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2187 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189 _ASUNAME
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 $as_echo "PATH: $as_dir"
2197 done
2198 IFS=$as_save_IFS
2200 } >&5
2202 cat >&5 <<_ACEOF
2205 ## ----------- ##
2206 ## Core tests. ##
2207 ## ----------- ##
2209 _ACEOF
2212 # Keep a trace of the command line.
2213 # Strip out --no-create and --no-recursion so they do not pile up.
2214 # Strip out --silent because we don't want to record it for future runs.
2215 # Also quote any args containing shell meta-characters.
2216 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_configure_args=
2218 ac_configure_args0=
2219 ac_configure_args1=
2220 ac_must_keep_next=false
2221 for ac_pass in 1 2
2223 for ac_arg
2225 case $ac_arg in
2226 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2228 | -silent | --silent | --silen | --sile | --sil)
2229 continue ;;
2230 *\'*)
2231 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 esac
2233 case $ac_pass in
2234 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 as_fn_append ac_configure_args1 " '$ac_arg'"
2237 if test $ac_must_keep_next = true; then
2238 ac_must_keep_next=false # Got value, back to normal.
2239 else
2240 case $ac_arg in
2241 *=* | --config-cache | -C | -disable-* | --disable-* \
2242 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2243 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2244 | -with-* | --with-* | -without-* | --without-* | --x)
2245 case "$ac_configure_args0 " in
2246 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 esac
2249 -* ) ac_must_keep_next=true ;;
2250 esac
2252 as_fn_append ac_configure_args " '$ac_arg'"
2254 esac
2255 done
2256 done
2257 { ac_configure_args0=; unset ac_configure_args0;}
2258 { ac_configure_args1=; unset ac_configure_args1;}
2260 # When interrupted or exit'd, cleanup temporary files, and complete
2261 # config.log. We remove comments because anyway the quotes in there
2262 # would cause problems or look ugly.
2263 # WARNING: Use '\'' to represent an apostrophe within the trap.
2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2265 trap 'exit_status=$?
2266 # Save into config.log some information that might help in debugging.
2268 echo
2270 cat <<\_ASBOX
2271 ## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##
2274 _ASBOX
2275 echo
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in #(
2281 *${as_nl}*)
2282 case $ac_var in #(
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285 esac
2286 case $ac_var in #(
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2290 esac ;;
2291 esac
2292 done
2293 (set) 2>&1 |
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2296 sed -n \
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299 ;; #(
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 esac |
2304 sort
2306 echo
2308 cat <<\_ASBOX
2309 ## ----------------- ##
2310 ## Output variables. ##
2311 ## ----------------- ##
2312 _ASBOX
2313 echo
2314 for ac_var in $ac_subst_vars
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 $as_echo "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2324 if test -n "$ac_subst_files"; then
2325 cat <<\_ASBOX
2326 ## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##
2329 _ASBOX
2330 echo
2331 for ac_var in $ac_subst_files
2333 eval ac_val=\$$ac_var
2334 case $ac_val in
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 esac
2337 $as_echo "$ac_var='\''$ac_val'\''"
2338 done | sort
2339 echo
2342 if test -s confdefs.h; then
2343 cat <<\_ASBOX
2344 ## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##
2347 _ASBOX
2348 echo
2349 cat confdefs.h
2350 echo
2352 test "$ac_signal" != 0 &&
2353 $as_echo "$as_me: caught signal $ac_signal"
2354 $as_echo "$as_me: exit $exit_status"
2355 } >&5
2356 rm -f core *.core core.conftest.* &&
2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2358 exit $exit_status
2360 for ac_signal in 1 2 13 15; do
2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 done
2363 ac_signal=0
2365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2366 rm -f -r conftest* confdefs.h
2368 $as_echo "/* confdefs.h */" > confdefs.h
2370 # Predefined preprocessor variables.
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_NAME "$PACKAGE_NAME"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_STRING "$PACKAGE_STRING"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_URL "$PACKAGE_URL"
2394 _ACEOF
2397 # Let the site file select an alternate cache file if it wants to.
2398 # Prefer an explicitly selected file to automatically selected ones.
2399 ac_site_file1=NONE
2400 ac_site_file2=NONE
2401 if test -n "$CONFIG_SITE"; then
2402 ac_site_file1=$CONFIG_SITE
2403 elif test "x$prefix" != xNONE; then
2404 ac_site_file1=$prefix/share/config.site
2405 ac_site_file2=$prefix/etc/config.site
2406 else
2407 ac_site_file1=$ac_default_prefix/share/config.site
2408 ac_site_file2=$ac_default_prefix/etc/config.site
2410 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412 test "x$ac_site_file" = xNONE && continue
2413 if test -r "$ac_site_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
2417 . "$ac_site_file"
2419 done
2421 if test -r "$cache_file"; then
2422 # Some versions of bash will fail to source /dev/null (special
2423 # files actually), so we avoid doing that.
2424 if test -f "$cache_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2426 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427 case $cache_file in
2428 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2429 *) . "./$cache_file";;
2430 esac
2432 else
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2434 $as_echo "$as_me: creating cache $cache_file" >&6;}
2435 >$cache_file
2438 # Check that the precious variables saved in the cache have kept the same
2439 # value.
2440 ac_cache_corrupted=false
2441 for ac_var in $ac_precious_vars; do
2442 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2443 eval ac_new_set=\$ac_env_${ac_var}_set
2444 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2445 eval ac_new_val=\$ac_env_${ac_var}_value
2446 case $ac_old_set,$ac_new_set in
2447 set,)
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2451 ,set)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,);;
2457 if test "x$ac_old_val" != "x$ac_new_val"; then
2458 # differences in whitespace do not lead to failure.
2459 ac_old_val_w=`echo x $ac_old_val`
2460 ac_new_val_w=`echo x $ac_new_val`
2461 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2463 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2464 ac_cache_corrupted=:
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2467 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2468 eval $ac_var=\$ac_old_val
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2471 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2473 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2474 fi;;
2475 esac
2476 # Pass precious variables to config.status.
2477 if test "$ac_new_set" = set; then
2478 case $ac_new_val in
2479 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2480 *) ac_arg=$ac_var=$ac_new_val ;;
2481 esac
2482 case " $ac_configure_args " in
2483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2484 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2485 esac
2487 done
2488 if $ac_cache_corrupted; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2492 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2493 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2495 ## -------------------- ##
2496 ## Main body of script. ##
2497 ## -------------------- ##
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 ac_config_headers="$ac_config_headers config.h"
2513 libtool_VERSION=7:0:0
2516 # Default to --enable-multilib
2517 # Check whether --enable-multilib was given.
2518 if test "${enable_multilib+set}" = set; then :
2519 enableval=$enable_multilib; case "$enableval" in
2520 yes) multilib=yes ;;
2521 no) multilib=no ;;
2522 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2523 esac
2524 else
2525 multilib=yes
2529 # We may get other options which we leave undocumented:
2530 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2531 # See config-ml.in if you want the gory details.
2533 if test "$srcdir" = "."; then
2534 if test "$with_target_subdir" != "."; then
2535 multi_basedir="$srcdir/$with_multisrctop../.."
2536 else
2537 multi_basedir="$srcdir/$with_multisrctop.."
2539 else
2540 multi_basedir="$srcdir/.."
2544 # Even if the default multilib is not a cross compilation,
2545 # it may be that some of the other multilibs are.
2546 if test $cross_compiling = no && test $multilib = yes \
2547 && test "x${with_multisubdir}" != x ; then
2548 cross_compiling=maybe
2551 ac_config_commands="$ac_config_commands default-1"
2554 ac_aux_dir=
2555 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2556 for ac_t in install-sh install.sh shtool; do
2557 if test -f "$ac_dir/$ac_t"; then
2558 ac_aux_dir=$ac_dir
2559 ac_install_sh="$ac_aux_dir/$ac_t -c"
2560 break 2
2562 done
2563 done
2564 if test -z "$ac_aux_dir"; then
2565 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2568 # These three variables are undocumented and unsupported,
2569 # and are intended to be withdrawn in a future Autoconf release.
2570 # They can cause serious problems if a builder's source tree is in a directory
2571 # whose full name contains unusual characters.
2572 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2573 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2574 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2577 # Make sure we can run config.sub.
2578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2579 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2582 $as_echo_n "checking build system type... " >&6; }
2583 if test "${ac_cv_build+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 ac_build_alias=$build_alias
2587 test "x$ac_build_alias" = x &&
2588 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2589 test "x$ac_build_alias" = x &&
2590 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2591 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2592 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2596 $as_echo "$ac_cv_build" >&6; }
2597 case $ac_cv_build in
2598 *-*-*) ;;
2599 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2600 esac
2601 build=$ac_cv_build
2602 ac_save_IFS=$IFS; IFS='-'
2603 set x $ac_cv_build
2604 shift
2605 build_cpu=$1
2606 build_vendor=$2
2607 shift; shift
2608 # Remember, the first character of IFS is used to create $*,
2609 # except with old shells:
2610 build_os=$*
2611 IFS=$ac_save_IFS
2612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2616 $as_echo_n "checking host system type... " >&6; }
2617 if test "${ac_cv_host+set}" = set; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test "x$host_alias" = x; then
2621 ac_cv_host=$ac_cv_build
2622 else
2623 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2624 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2629 $as_echo "$ac_cv_host" >&6; }
2630 case $ac_cv_host in
2631 *-*-*) ;;
2632 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2633 esac
2634 host=$ac_cv_host
2635 ac_save_IFS=$IFS; IFS='-'
2636 set x $ac_cv_host
2637 shift
2638 host_cpu=$1
2639 host_vendor=$2
2640 shift; shift
2641 # Remember, the first character of IFS is used to create $*,
2642 # except with old shells:
2643 host_os=$*
2644 IFS=$ac_save_IFS
2645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2649 $as_echo_n "checking target system type... " >&6; }
2650 if test "${ac_cv_target+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test "x$target_alias" = x; then
2654 ac_cv_target=$ac_cv_host
2655 else
2656 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2662 $as_echo "$ac_cv_target" >&6; }
2663 case $ac_cv_target in
2664 *-*-*) ;;
2665 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2666 esac
2667 target=$ac_cv_target
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_target
2670 shift
2671 target_cpu=$1
2672 target_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 target_os=$*
2677 IFS=$ac_save_IFS
2678 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2681 # The aliases save the names the user supplied, while $host etc.
2682 # will get canonicalized.
2683 test -n "$target_alias" &&
2684 test "$program_prefix$program_suffix$program_transform_name" = \
2685 NONENONEs,x,x, &&
2686 program_prefix=${target_alias}-
2688 target_alias=${target_alias-$host_alias}
2690 am__api_version='1.11'
2692 # Find a good install program. We prefer a C program (faster),
2693 # so one script is as good as another. But avoid the broken or
2694 # incompatible versions:
2695 # SysV /etc/install, /usr/sbin/install
2696 # SunOS /usr/etc/install
2697 # IRIX /sbin/install
2698 # AIX /bin/install
2699 # AmigaOS /C/install, which installs bootblocks on floppy discs
2700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703 # OS/2's system install, which has a completely different semantic
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 # Reject install programs that cannot install multiple files.
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2708 if test -z "$INSTALL"; then
2709 if test "${ac_cv_path_install+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 # Account for people who put trailing slashes in PATH elements.
2718 case $as_dir/ in #((
2719 ./ | .// | /[cC]/* | \
2720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2721 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2722 /usr/ucb/* ) ;;
2724 # OSF1 and SCO ODT 3.0 have their own names for install.
2725 # Don't use installbsd from OSF since it installs stuff as root
2726 # by default.
2727 for ac_prog in ginstall scoinst install; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2730 if test $ac_prog = install &&
2731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732 # AIX install. It has an incompatible calling convention.
2734 elif test $ac_prog = install &&
2735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736 # program-specific install script used by HP pwplus--don't use.
2738 else
2739 rm -rf conftest.one conftest.two conftest.dir
2740 echo one > conftest.one
2741 echo two > conftest.two
2742 mkdir conftest.dir
2743 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2744 test -s conftest.one && test -s conftest.two &&
2745 test -s conftest.dir/conftest.one &&
2746 test -s conftest.dir/conftest.two
2747 then
2748 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2749 break 3
2753 done
2754 done
2756 esac
2758 done
2759 IFS=$as_save_IFS
2761 rm -rf conftest.one conftest.two conftest.dir
2764 if test "${ac_cv_path_install+set}" = set; then
2765 INSTALL=$ac_cv_path_install
2766 else
2767 # As a last resort, use the slow shell script. Don't cache a
2768 # value for INSTALL within a source directory, because that will
2769 # break other packages using the cache if that directory is
2770 # removed, or if the value is a relative name.
2771 INSTALL=$ac_install_sh
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2775 $as_echo "$INSTALL" >&6; }
2777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2778 # It thinks the first close brace ends the variable substitution.
2779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2786 $as_echo_n "checking whether build environment is sane... " >&6; }
2787 # Just in case
2788 sleep 1
2789 echo timestamp > conftest.file
2790 # Reject unsafe characters in $srcdir or the absolute working directory
2791 # name. Accept space and tab only in the latter.
2792 am_lf='
2794 case `pwd` in
2795 *[\\\"\#\$\&\'\`$am_lf]*)
2796 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2797 esac
2798 case $srcdir in
2799 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2800 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2801 esac
2803 # Do `set' in a subshell so we don't clobber the current shell's
2804 # arguments. Must try -L first in case configure is actually a
2805 # symlink; some systems play weird games with the mod time of symlinks
2806 # (eg FreeBSD returns the mod time of the symlink's containing
2807 # directory).
2808 if (
2809 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2810 if test "$*" = "X"; then
2811 # -L didn't work.
2812 set X `ls -t "$srcdir/configure" conftest.file`
2814 rm -f conftest.file
2815 if test "$*" != "X $srcdir/configure conftest.file" \
2816 && test "$*" != "X conftest.file $srcdir/configure"; then
2818 # If neither matched, then we have a broken ls. This can happen
2819 # if, for instance, CONFIG_SHELL is bash and it inherits a
2820 # broken ls alias from the environment. This has actually
2821 # happened. Such a system could not be considered "sane".
2822 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2823 alias in your environment" "$LINENO" 5
2826 test "$2" = conftest.file
2828 then
2829 # Ok.
2831 else
2832 as_fn_error "newly created file is older than distributed files!
2833 Check your system clock" "$LINENO" 5
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2837 test "$program_prefix" != NONE &&
2838 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2839 # Use a double $ so make ignores it.
2840 test "$program_suffix" != NONE &&
2841 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2842 # Double any \ or $.
2843 # By default was `s,x,x', remove it if useless.
2844 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2845 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2847 # expand $ac_aux_dir to an absolute path
2848 am_aux_dir=`cd $ac_aux_dir && pwd`
2850 if test x"${MISSING+set}" != xset; then
2851 case $am_aux_dir in
2852 *\ * | *\ *)
2853 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2855 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2856 esac
2858 # Use eval to expand $SHELL
2859 if eval "$MISSING --run true"; then
2860 am_missing_run="$MISSING --run "
2861 else
2862 am_missing_run=
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2864 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2867 if test x"${install_sh}" != xset; then
2868 case $am_aux_dir in
2869 *\ * | *\ *)
2870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2872 install_sh="\${SHELL} $am_aux_dir/install-sh"
2873 esac
2876 # Installed binaries are usually stripped using `strip' when the user
2877 # run `make install-strip'. However `strip' might not be the right
2878 # tool to use in cross-compilation environments, therefore Automake
2879 # will honor the `STRIP' environment variable to overrule this program.
2880 if test "$cross_compiling" != no; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}strip; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_STRIP+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$STRIP"; then
2890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 STRIP=$ac_cv_prog_STRIP
2910 if test -n "$STRIP"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912 $as_echo "$STRIP" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2920 if test -z "$ac_cv_prog_STRIP"; then
2921 ac_ct_STRIP=$STRIP
2922 # Extract the first word of "strip", so it can be a program name with args.
2923 set dummy strip; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$ac_ct_STRIP"; then
2930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_STRIP="strip"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2950 if test -n "$ac_ct_STRIP"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2952 $as_echo "$ac_ct_STRIP" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2958 if test "x$ac_ct_STRIP" = x; then
2959 STRIP=":"
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 STRIP=$ac_ct_STRIP
2969 else
2970 STRIP="$ac_cv_prog_STRIP"
2974 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2977 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2978 if test -z "$MKDIR_P"; then
2979 if test "${ac_cv_path_mkdir+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_prog in mkdir gmkdir; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2991 'mkdir (GNU coreutils) '* | \
2992 'mkdir (coreutils) '* | \
2993 'mkdir (fileutils) '4.1*)
2994 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2995 break 3;;
2996 esac
2997 done
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 if test "${ac_cv_path_mkdir+set}" = set; then
3005 MKDIR_P="$ac_cv_path_mkdir -p"
3006 else
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for MKDIR_P within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 test -d ./--version && rmdir ./--version
3012 MKDIR_P="$ac_install_sh -d"
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3016 $as_echo "$MKDIR_P" >&6; }
3018 mkdir_p="$MKDIR_P"
3019 case $mkdir_p in
3020 [\\/$]* | ?:[\\/]*) ;;
3021 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3022 esac
3024 for ac_prog in gawk mawk nawk awk
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_AWK+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_AWK="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3047 done
3048 done
3049 IFS=$as_save_IFS
3053 AWK=$ac_cv_prog_AWK
3054 if test -n "$AWK"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3056 $as_echo "$AWK" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$AWK" && break
3064 done
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3067 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3068 set x ${MAKE-make}
3069 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3070 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 cat >conftest.make <<\_ACEOF
3074 SHELL = /bin/sh
3075 all:
3076 @echo '@@@%%%=$(MAKE)=@@@%%%'
3077 _ACEOF
3078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3079 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3080 *@@@%%%=?*=@@@%%%*)
3081 eval ac_cv_prog_make_${ac_make}_set=yes;;
3083 eval ac_cv_prog_make_${ac_make}_set=no;;
3084 esac
3085 rm -f conftest.make
3087 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089 $as_echo "yes" >&6; }
3090 SET_MAKE=
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 SET_MAKE="MAKE=${MAKE-make}"
3097 rm -rf .tst 2>/dev/null
3098 mkdir .tst 2>/dev/null
3099 if test -d .tst; then
3100 am__leading_dot=.
3101 else
3102 am__leading_dot=_
3104 rmdir .tst 2>/dev/null
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status; then
3112 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118 if (cygpath --version) >/dev/null 2>/dev/null; then
3119 CYGPATH_W='cygpath -w'
3120 else
3121 CYGPATH_W=echo
3126 # Define the identity of the package.
3127 PACKAGE='libgo'
3128 VERSION='version-unused'
3131 # Some tools Automake needs.
3133 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3147 # We need awk for the "check" target. The system "awk" is bad on
3148 # some platforms.
3149 # Always define AMTAR for backward compatibility.
3151 AMTAR=${AMTAR-"${am_missing_run}tar"}
3153 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_CC"; then
3209 ac_ct_CC=$CC
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_CC="gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3231 done
3232 done
3233 IFS=$as_save_IFS
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 CC=$ac_ct_CC
3257 else
3258 CC="$ac_cv_prog_CC"
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_CC+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3302 if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if test "${ac_cv_prog_CC+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 ac_prog_rejected=no
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3323 continue
3325 ac_cv_prog_CC="cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3333 if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3336 shift
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3341 shift
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$CC" && break
3400 done
3402 if test -z "$CC"; then
3403 ac_ct_CC=$CC
3404 for ac_prog in cl.exe
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3427 done
3428 done
3429 IFS=$as_save_IFS
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$ac_ct_CC" && break
3444 done
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details." "$LINENO" 5; }
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 set X $ac_compile
3470 ac_compiler=$2
3471 for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 ac_status=$?
3481 if test -s conftest.err; then
3482 sed '10a\
3483 ... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3486 rm -f conftest.er1 conftest.err
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 done
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3496 main ()
3500 return 0;
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 esac
3522 done
3523 rm -f $ac_rmfiles
3525 if { { ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3547 [ab].out )
3548 # We found the default executable, but exeext='' is most
3549 # certainly right.
3550 break;;
3551 *.* )
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 then :; else
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3560 # actually working.
3561 break;;
3563 break;;
3564 esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3568 else
3569 ac_file=''
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572 $as_echo "$ac_file" >&6; }
3573 if test -z "$ac_file"; then :
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { as_fn_set_status 77
3580 as_fn_error "C compiler cannot create executables
3581 See \`config.log' for more details." "$LINENO" 5; }; }
3583 ac_exeext=$ac_cv_exeext
3585 # Check that the compiler produces executables we can run. If not, either
3586 # the compiler is broken, or we cross compile.
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3588 $as_echo_n "checking whether the C compiler works... " >&6; }
3589 # If not cross compiling, check that we can run a simple program.
3590 if test "$cross_compiling" != yes; then
3591 if { ac_try='./$ac_file'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." "$LINENO" 5; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 $as_echo "yes" >&6; }
3618 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3619 ac_clean_files=$ac_clean_files_save
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3625 $as_echo "$cross_compiling" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3628 $as_echo_n "checking for suffix of executables... " >&6; }
3629 if { { ac_try="$ac_link"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_link") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3642 # work properly (i.e., refer to `conftest.exe'), while it won't with
3643 # `rm'.
3644 for ac_file in conftest.exe conftest conftest.*; do
3645 test -f "$ac_file" || continue
3646 case $ac_file in
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 break;;
3650 * ) break;;
3651 esac
3652 done
3653 else
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "cannot compute suffix of executables: cannot compile and link
3657 See \`config.log' for more details." "$LINENO" 5; }
3659 rm -f conftest$ac_cv_exeext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3661 $as_echo "$ac_cv_exeext" >&6; }
3663 rm -f conftest.$ac_ext
3664 EXEEXT=$ac_cv_exeext
3665 ac_exeext=$EXEEXT
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3667 $as_echo_n "checking for suffix of object files... " >&6; }
3668 if test "${ac_cv_objext+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.o conftest.obj
3683 if { { ac_try="$ac_compile"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compile") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699 break;;
3700 esac
3701 done
3702 else
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." "$LINENO" 5; }
3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3714 $as_echo "$ac_cv_objext" >&6; }
3715 OBJEXT=$ac_cv_objext
3716 ac_objext=$OBJEXT
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3719 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3726 main ()
3728 #ifndef __GNUC__
3729 choke me
3730 #endif
3733 return 0;
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_compiler_gnu=yes
3738 else
3739 ac_compiler_gnu=no
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748 GCC=yes
3749 else
3750 GCC=
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3761 ac_cv_prog_cc_g=no
3762 CFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_g=yes
3776 else
3777 CFLAGS=""
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3791 else
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3798 main ()
3802 return 0;
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3821 CFLAGS="-g -O2"
3822 else
3823 CFLAGS="-g"
3825 else
3826 if test "$GCC" = yes; then
3827 CFLAGS="-O2"
3828 else
3829 CFLAGS=
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_cv_prog_cc_c89=no
3838 ac_save_CC=$CC
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3852 return p[i];
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3885 main ()
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 return 0;
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c89=$ac_arg
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c89" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c89" in
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911 xno)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3915 CC="$CC $ac_cv_prog_cc_c89"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 DEPDIR="${am__leading_dot}deps"
3930 ac_config_commands="$ac_config_commands depfiles"
3933 am_make=${MAKE-make}
3934 cat > confinc << 'END'
3935 am__doit:
3936 @echo this is the am__doit target
3937 .PHONY: am__doit
3939 # If we don't find an include directive, just comment out the code.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3941 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3942 am__include="#"
3943 am__quote=
3944 _am_result=none
3945 # First try GNU make style include.
3946 echo "include confinc" > confmf
3947 # Ignore all kinds of additional output from `make'.
3948 case `$am_make -s -f confmf 2> /dev/null` in #(
3949 *the\ am__doit\ target*)
3950 am__include=include
3951 am__quote=
3952 _am_result=GNU
3954 esac
3955 # Now try BSD make style include.
3956 if test "$am__include" = "#"; then
3957 echo '.include "confinc"' > confmf
3958 case `$am_make -s -f confmf 2> /dev/null` in #(
3959 *the\ am__doit\ target*)
3960 am__include=.include
3961 am__quote="\""
3962 _am_result=BSD
3964 esac
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3969 $as_echo "$_am_result" >&6; }
3970 rm -f confinc confmf
3972 # Check whether --enable-dependency-tracking was given.
3973 if test "${enable_dependency_tracking+set}" = set; then :
3974 enableval=$enable_dependency_tracking;
3977 if test "x$enable_dependency_tracking" != xno; then
3978 am_depcomp="$ac_aux_dir/depcomp"
3979 AMDEPBACKSLASH='\'
3981 if test "x$enable_dependency_tracking" != xno; then
3982 AMDEP_TRUE=
3983 AMDEP_FALSE='#'
3984 else
3985 AMDEP_TRUE='#'
3986 AMDEP_FALSE=
3991 depcc="$CC" am_compiler_list=
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3994 $as_echo_n "checking dependency style of $depcc... " >&6; }
3995 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3999 # We make a subdir and do the tests there. Otherwise we can end up
4000 # making bogus files that we don't know about and never remove. For
4001 # instance it was reported that on HP-UX the gcc test will end up
4002 # making a dummy file named `D' -- because `-MD' means `put the output
4003 # in D'.
4004 mkdir conftest.dir
4005 # Copy depcomp to subdir because otherwise we won't find it if we're
4006 # using a relative directory.
4007 cp "$am_depcomp" conftest.dir
4008 cd conftest.dir
4009 # We will build objects and dependencies in a subdirectory because
4010 # it helps to detect inapplicable dependency modes. For instance
4011 # both Tru64's cc and ICC support -MD to output dependencies as a
4012 # side effect of compilation, but ICC will put the dependencies in
4013 # the current directory while Tru64 will put them in the object
4014 # directory.
4015 mkdir sub
4017 am_cv_CC_dependencies_compiler_type=none
4018 if test "$am_compiler_list" = ""; then
4019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4021 am__universal=false
4022 case " $depcc " in #(
4023 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4024 esac
4026 for depmode in $am_compiler_list; do
4027 # Setup a source with many dependencies, because some compilers
4028 # like to wrap large dependency lists on column 80 (with \), and
4029 # we should not choose a depcomp mode which is confused by this.
4031 # We need to recreate these files for each test, as the compiler may
4032 # overwrite some of them when testing with obscure command lines.
4033 # This happens at least with the AIX C compiler.
4034 : > sub/conftest.c
4035 for i in 1 2 3 4 5 6; do
4036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4038 # Solaris 8's {/usr,}/bin/sh.
4039 touch sub/conftst$i.h
4040 done
4041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4044 # mode. It turns out that the SunPro C++ compiler does not properly
4045 # handle `-M -o', and we need to detect this. Also, some Intel
4046 # versions had trouble with output in subdirs
4047 am__obj=sub/conftest.${OBJEXT-o}
4048 am__minus_obj="-o $am__obj"
4049 case $depmode in
4050 gcc)
4051 # This depmode causes a compiler race in universal mode.
4052 test "$am__universal" = false || continue
4054 nosideeffect)
4055 # after this tag, mechanisms are not by side-effect, so they'll
4056 # only be used when explicitly requested
4057 if test "x$enable_dependency_tracking" = xyes; then
4058 continue
4059 else
4060 break
4063 msvisualcpp | msvcmsys)
4064 # This compiler won't grok `-c -o', but also, the minuso test has
4065 # not run yet. These depmodes are late enough in the game, and
4066 # so weak that their functioning should not be impacted.
4067 am__obj=conftest.${OBJEXT-o}
4068 am__minus_obj=
4070 none) break ;;
4071 esac
4072 if depmode=$depmode \
4073 source=sub/conftest.c object=$am__obj \
4074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4076 >/dev/null 2>conftest.err &&
4077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4081 # icc doesn't choke on unknown options, it will just issue warnings
4082 # or remarks (even with -Werror). So we grep stderr for any message
4083 # that says an option was ignored or not supported.
4084 # When given -MP, icc 7.0 and 7.1 complain thusly:
4085 # icc: Command line warning: ignoring option '-M'; no argument required
4086 # The diagnosis changed in icc 8.0:
4087 # icc: Command line remark: option '-MP' not supported
4088 if (grep 'ignoring option' conftest.err ||
4089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4090 am_cv_CC_dependencies_compiler_type=$depmode
4091 break
4094 done
4096 cd ..
4097 rm -rf conftest.dir
4098 else
4099 am_cv_CC_dependencies_compiler_type=none
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4104 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4105 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108 test "x$enable_dependency_tracking" != xno \
4109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4110 am__fastdepCC_TRUE=
4111 am__fastdepCC_FALSE='#'
4112 else
4113 am__fastdepCC_TRUE='#'
4114 am__fastdepCC_FALSE=
4118 ac_ext=go
4119 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4120 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compile_gnu=yes
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_GOC+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if test -n "$GOC"; then
4131 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4144 done
4145 done
4146 IFS=$as_save_IFS
4150 GOC=$ac_cv_prog_GOC
4151 if test -n "$GOC"; then
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4153 $as_echo "$GOC" >&6; }
4154 else
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4161 if test -z "$ac_cv_prog_GOC"; then
4162 ac_ct_GOC=$GOC
4163 # Extract the first word of "gccgo", so it can be a program name with args.
4164 set dummy gccgo; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$ac_ct_GOC"; then
4171 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_prog_ac_ct_GOC="gccgo"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4191 if test -n "$ac_ct_GOC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4193 $as_echo "$ac_ct_GOC" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4199 if test "x$ac_ct_GOC" = x; then
4200 GOC=""
4201 else
4202 case $cross_compiling:$ac_tool_warned in
4203 yes:)
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208 GOC=$ac_ct_GOC
4210 else
4211 GOC="$ac_cv_prog_GOC"
4214 if test -z "$GOC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if test "${ac_cv_prog_GOC+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -n "$GOC"; then
4224 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4243 GOC=$ac_cv_prog_GOC
4244 if test -n "$GOC"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4246 $as_echo "$GOC" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4255 if test -z "$GOC"; then
4256 # Extract the first word of "gccgo", so it can be a program name with args.
4257 set dummy gccgo; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_GOC+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$GOC"; then
4264 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4265 else
4266 ac_prog_rejected=no
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4275 ac_prog_rejected=yes
4276 continue
4278 ac_cv_prog_GOC="gccgo"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4286 if test $ac_prog_rejected = yes; then
4287 # We found a bogon in the path, so make sure we never use it.
4288 set dummy $ac_cv_prog_GOC
4289 shift
4290 if test $# != 0; then
4291 # We chose a different compiler from the bogus one.
4292 # However, it has the same basename, so the bogon will be chosen
4293 # first if we set GOC to just the basename; use the full file name.
4294 shift
4295 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4300 GOC=$ac_cv_prog_GOC
4301 if test -n "$GOC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4303 $as_echo "$GOC" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4313 # Provide some information about the compiler.
4314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4315 set X $ac_compile
4316 ac_compiler=$2
4317 { { ac_try="$ac_compiler --version >&5"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_compiler --version >&5") 2>conftest.err
4325 ac_status=$?
4326 if test -s conftest.err; then
4327 sed '10a\
4328 ... rest of stderr output deleted ...
4329 10q' conftest.err >conftest.er1
4330 cat conftest.er1 >&5
4331 rm -f conftest.er1 conftest.err
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; }
4335 GOCFLAGS="-g -O2"
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4348 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4349 # Check whether --enable-maintainer-mode was given.
4350 if test "${enable_maintainer_mode+set}" = set; then :
4351 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4352 else
4353 USE_MAINTAINER_MODE=no
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4357 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4358 if test $USE_MAINTAINER_MODE = yes; then
4359 MAINTAINER_MODE_TRUE=
4360 MAINTAINER_MODE_FALSE='#'
4361 else
4362 MAINTAINER_MODE_TRUE='#'
4363 MAINTAINER_MODE_FALSE=
4366 MAINT=$MAINTAINER_MODE_TRUE
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4371 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4372 if test "${ac_cv_path_SED+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4376 for ac_i in 1 2 3 4 5 6 7; do
4377 ac_script="$ac_script$as_nl$ac_script"
4378 done
4379 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4380 { ac_script=; unset ac_script;}
4381 if test -z "$SED"; then
4382 ac_path_SED_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in sed gsed; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4392 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4393 # Check for GNU ac_path_SED and select it if it is found.
4394 # Check for GNU $ac_path_SED
4395 case `"$ac_path_SED" --version 2>&1` in
4396 *GNU*)
4397 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4399 ac_count=0
4400 $as_echo_n 0123456789 >"conftest.in"
4401 while :
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo '' >> "conftest.nl"
4407 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_SED_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_SED="$ac_path_SED"
4413 ac_path_SED_max=$ac_count
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419 esac
4421 $ac_path_SED_found && break 3
4422 done
4423 done
4424 done
4425 IFS=$as_save_IFS
4426 if test -z "$ac_cv_path_SED"; then
4427 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4429 else
4430 ac_cv_path_SED=$SED
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4435 $as_echo "$ac_cv_path_SED" >&6; }
4436 SED="$ac_cv_path_SED"
4437 rm -f conftest.sed
4439 test -z "$SED" && SED=sed
4440 Xsed="$SED -e 1s/^X//"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if test "${ac_cv_path_GREP+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4497 $ac_path_GREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 else
4506 ac_cv_path_GREP=$GREP
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if test "${ac_cv_path_EGREP+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4563 $ac_path_EGREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 else
4572 ac_cv_path_EGREP=$EGREP
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4583 $as_echo_n "checking for fgrep... " >&6; }
4584 if test "${ac_cv_path_FGREP+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4588 then ac_cv_path_FGREP="$GREP -F"
4589 else
4590 if test -z "$FGREP"; then
4591 ac_path_FGREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in fgrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4602 # Check for GNU ac_path_FGREP and select it if it is found.
4603 # Check for GNU $ac_path_FGREP
4604 case `"$ac_path_FGREP" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'FGREP' >> "conftest.nl"
4616 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_FGREP="$ac_path_FGREP"
4622 ac_path_FGREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4630 $ac_path_FGREP_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_FGREP"; then
4636 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638 else
4639 ac_cv_path_FGREP=$FGREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4645 $as_echo "$ac_cv_path_FGREP" >&6; }
4646 FGREP="$ac_cv_path_FGREP"
4649 test -z "$GREP" && GREP=grep
4667 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4672 $as_echo_n "checking how to print strings... " >&6; }
4673 # Test print first, because it will be a builtin if present.
4674 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='print -r --'
4677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4678 ECHO='printf %s\n'
4679 else
4680 # Use this function as a fallback that always works.
4681 func_fallback_echo ()
4683 eval 'cat <<_LTECHO_EOF
4685 _LTECHO_EOF'
4687 ECHO='func_fallback_echo'
4690 # func_echo_all arg...
4691 # Invoke $ECHO with all args, space-separated.
4692 func_echo_all ()
4694 $ECHO ""
4697 case "$ECHO" in
4698 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4699 $as_echo "printf" >&6; } ;;
4700 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4701 $as_echo "print -r" >&6; } ;;
4702 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4703 $as_echo "cat" >&6; } ;;
4704 esac
4721 # Check whether --with-gnu-ld was given.
4722 if test "${with_gnu_ld+set}" = set; then :
4723 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4724 else
4725 with_gnu_ld=no
4728 ac_prog=ld
4729 if test "$GCC" = yes; then
4730 # Check if gcc -print-prog-name=ld gives a path.
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4732 $as_echo_n "checking for ld used by $CC... " >&6; }
4733 case $host in
4734 *-*-mingw*)
4735 # gcc leaves a trailing carriage return which upsets mingw
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4739 esac
4740 case $ac_prog in
4741 # Accept absolute paths.
4742 [\\/]* | ?:[\\/]*)
4743 re_direlt='/[^/][^/]*/\.\./'
4744 # Canonicalize the pathname of ld
4745 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4746 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4747 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4748 done
4749 test -z "$LD" && LD="$ac_prog"
4752 # If it fails, then pretend we aren't using GCC.
4753 ac_prog=ld
4756 # If it is relative, then search for the first ld in PATH.
4757 with_gnu_ld=unknown
4759 esac
4760 elif test "$with_gnu_ld" = yes; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4762 $as_echo_n "checking for GNU ld... " >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4765 $as_echo_n "checking for non-GNU ld... " >&6; }
4767 if test "${lt_cv_path_LD+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -z "$LD"; then
4771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4773 IFS="$lt_save_ifs"
4774 test -z "$ac_dir" && ac_dir=.
4775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776 lt_cv_path_LD="$ac_dir/$ac_prog"
4777 # Check to see if the program is GNU ld. I'd rather use --version,
4778 # but apparently some variants of GNU ld only accept -v.
4779 # Break only if it was the GNU/non-GNU ld that we prefer.
4780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781 *GNU* | *'with BFD'*)
4782 test "$with_gnu_ld" != no && break
4785 test "$with_gnu_ld" != yes && break
4787 esac
4789 done
4790 IFS="$lt_save_ifs"
4791 else
4792 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4796 LD="$lt_cv_path_LD"
4797 if test -n "$LD"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4799 $as_echo "$LD" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4804 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4806 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4807 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4811 case `$LD -v 2>&1 </dev/null` in
4812 *GNU* | *'with BFD'*)
4813 lt_cv_prog_gnu_ld=yes
4816 lt_cv_prog_gnu_ld=no
4818 esac
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4821 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4822 with_gnu_ld=$lt_cv_prog_gnu_ld
4832 if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$RANLIB"; then
4841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 RANLIB=$ac_cv_prog_RANLIB
4861 if test -n "$RANLIB"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4863 $as_echo "$RANLIB" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4871 if test -z "$ac_cv_prog_RANLIB"; then
4872 ac_ct_RANLIB=$RANLIB
4873 # Extract the first word of "ranlib", so it can be a program name with args.
4874 set dummy ranlib; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$ac_ct_RANLIB"; then
4881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_ac_ct_RANLIB="ranlib"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4901 if test -n "$ac_ct_RANLIB"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4903 $as_echo "$ac_ct_RANLIB" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4909 if test "x$ac_ct_RANLIB" = x; then
4910 RANLIB=":"
4911 else
4912 case $cross_compiling:$ac_tool_warned in
4913 yes:)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916 ac_tool_warned=yes ;;
4917 esac
4918 RANLIB=$ac_ct_RANLIB
4920 else
4921 RANLIB="$ac_cv_prog_RANLIB"
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$OBJCOPY"; then
4933 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 OBJCOPY=$ac_cv_prog_OBJCOPY
4953 if test -n "$OBJCOPY"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4955 $as_echo "$OBJCOPY" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4963 if test -z "$ac_cv_prog_OBJCOPY"; then
4964 ac_ct_OBJCOPY=$OBJCOPY
4965 # Extract the first word of "objcopy", so it can be a program name with args.
4966 set dummy objcopy; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$ac_ct_OBJCOPY"; then
4973 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4992 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4993 if test -n "$ac_ct_OBJCOPY"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4995 $as_echo "$ac_ct_OBJCOPY" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5001 if test "x$ac_ct_OBJCOPY" = x; then
5002 OBJCOPY="missing-objcopy"
5003 else
5004 case $cross_compiling:$ac_tool_warned in
5005 yes:)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5008 ac_tool_warned=yes ;;
5009 esac
5010 OBJCOPY=$ac_ct_OBJCOPY
5012 else
5013 OBJCOPY="$ac_cv_prog_OBJCOPY"
5017 enable_dlopen=yes
5021 case `pwd` in
5022 *\ * | *\ *)
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5024 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5025 esac
5029 macro_version='2.2.7a'
5030 macro_revision='1.3134'
5044 ltmain="$ac_aux_dir/ltmain.sh"
5046 # Backslashify metacharacters that are still active within
5047 # double-quoted strings.
5048 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5050 # Same as above, but do not quote variable references.
5051 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5053 # Sed substitution to delay expansion of an escaped shell variable in a
5054 # double_quote_subst'ed string.
5055 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5057 # Sed substitution to delay expansion of an escaped single quote.
5058 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5060 # Sed substitution to avoid accidental globbing in evaled expressions
5061 no_glob_subst='s/\*/\\\*/g'
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5064 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5065 if test "${lt_cv_path_NM+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$NM"; then
5069 # Let the user override the test.
5070 lt_cv_path_NM="$NM"
5071 else
5072 lt_nm_to_check="${ac_tool_prefix}nm"
5073 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5074 lt_nm_to_check="$lt_nm_to_check nm"
5076 for lt_tmp_nm in $lt_nm_to_check; do
5077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5078 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5079 IFS="$lt_save_ifs"
5080 test -z "$ac_dir" && ac_dir=.
5081 tmp_nm="$ac_dir/$lt_tmp_nm"
5082 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5083 # Check to see if the nm accepts a BSD-compat flag.
5084 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5085 # nm: unknown option "B" ignored
5086 # Tru64's nm complains that /dev/null is an invalid object file
5087 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5088 */dev/null* | *'Invalid file or object type'*)
5089 lt_cv_path_NM="$tmp_nm -B"
5090 break
5093 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5094 */dev/null*)
5095 lt_cv_path_NM="$tmp_nm -p"
5096 break
5099 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5100 continue # so that we can try to find one that supports BSD flags
5102 esac
5104 esac
5106 done
5107 IFS="$lt_save_ifs"
5108 done
5109 : ${lt_cv_path_NM=no}
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5113 $as_echo "$lt_cv_path_NM" >&6; }
5114 if test "$lt_cv_path_NM" != "no"; then
5115 NM="$lt_cv_path_NM"
5116 else
5117 # Didn't find any BSD compatible name lister, look for dumpbin.
5118 if test -n "$DUMPBIN"; then :
5119 # Let the user override the test.
5120 else
5121 if test -n "$ac_tool_prefix"; then
5122 for ac_prog in dumpbin "link -dump"
5124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$DUMPBIN"; then
5132 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 DUMPBIN=$ac_cv_prog_DUMPBIN
5152 if test -n "$DUMPBIN"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5154 $as_echo "$DUMPBIN" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 test -n "$DUMPBIN" && break
5162 done
5164 if test -z "$DUMPBIN"; then
5165 ac_ct_DUMPBIN=$DUMPBIN
5166 for ac_prog in dumpbin "link -dump"
5168 # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$ac_ct_DUMPBIN"; then
5176 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5189 done
5190 done
5191 IFS=$as_save_IFS
5195 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5196 if test -n "$ac_ct_DUMPBIN"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5198 $as_echo "$ac_ct_DUMPBIN" >&6; }
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5205 test -n "$ac_ct_DUMPBIN" && break
5206 done
5208 if test "x$ac_ct_DUMPBIN" = x; then
5209 DUMPBIN=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 DUMPBIN=$ac_ct_DUMPBIN
5221 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5222 *COFF*)
5223 DUMPBIN="$DUMPBIN -symbols"
5226 DUMPBIN=:
5228 esac
5231 if test "$DUMPBIN" != ":"; then
5232 NM="$DUMPBIN"
5235 test -z "$NM" && NM=nm
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5243 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5244 if test "${lt_cv_nm_interface+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 lt_cv_nm_interface="BSD nm"
5248 echo "int some_variable = 0;" > conftest.$ac_ext
5249 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5250 (eval "$ac_compile" 2>conftest.err)
5251 cat conftest.err >&5
5252 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5253 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5254 cat conftest.err >&5
5255 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5256 cat conftest.out >&5
5257 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5258 lt_cv_nm_interface="MS dumpbin"
5260 rm -f conftest*
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5263 $as_echo "$lt_cv_nm_interface" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5266 $as_echo_n "checking whether ln -s works... " >&6; }
5267 LN_S=$as_ln_s
5268 if test "$LN_S" = "ln -s"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5273 $as_echo "no, using $LN_S" >&6; }
5276 # find the maximum length of command line arguments
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5278 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5283 teststring="ABCD"
5285 case $build_os in
5286 msdosdjgpp*)
5287 # On DJGPP, this test can blow up pretty badly due to problems in libc
5288 # (any single argument exceeding 2000 bytes causes a buffer overrun
5289 # during glob expansion). Even if it were fixed, the result of this
5290 # check would be larger than it should be.
5291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5294 gnu*)
5295 # Under GNU Hurd, this test is not required because there is
5296 # no limit to the length of command line arguments.
5297 # Libtool will interpret -1 as no limit whatsoever
5298 lt_cv_sys_max_cmd_len=-1;
5301 cygwin* | mingw* | cegcc*)
5302 # On Win9x/ME, this test blows up -- it succeeds, but takes
5303 # about 5 minutes as the teststring grows exponentially.
5304 # Worse, since 9x/ME are not pre-emptively multitasking,
5305 # you end up with a "frozen" computer, even though with patience
5306 # the test eventually succeeds (with a max line length of 256k).
5307 # Instead, let's just punt: use the minimum linelength reported by
5308 # all of the supported platforms: 8192 (on NT/2K/XP).
5309 lt_cv_sys_max_cmd_len=8192;
5312 mint*)
5313 # On MiNT this can take a long time and run out of memory.
5314 lt_cv_sys_max_cmd_len=8192;
5317 amigaos*)
5318 # On AmigaOS with pdksh, this test takes hours, literally.
5319 # So we just punt and use a minimum line length of 8192.
5320 lt_cv_sys_max_cmd_len=8192;
5323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 # This has been around since 386BSD, at least. Likely further.
5325 if test -x /sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327 elif test -x /usr/sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 else
5330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5332 # And add a safety zone
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 interix*)
5338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339 lt_cv_sys_max_cmd_len=196608
5342 osf*)
5343 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345 # nice to cause kernel panics so lets avoid the loop below.
5346 # First set a reasonable default.
5347 lt_cv_sys_max_cmd_len=16384
5349 if test -x /sbin/sysconfig; then
5350 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 esac
5355 sco3.2v5*)
5356 lt_cv_sys_max_cmd_len=102400
5358 sysv5* | sco5v6* | sysv4.2uw2*)
5359 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360 if test -n "$kargmax"; then
5361 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 else
5363 lt_cv_sys_max_cmd_len=32768
5367 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5368 if test -n "$lt_cv_sys_max_cmd_len"; then
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371 else
5372 # Make teststring a little bigger before we do anything with it.
5373 # a 1K string should be a reasonable start.
5374 for i in 1 2 3 4 5 6 7 8 ; do
5375 teststring=$teststring$teststring
5376 done
5377 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5378 # If test is not a shell built-in, we'll probably end up computing a
5379 # maximum length that is only half of the actual maximum length, but
5380 # we can't tell.
5381 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5382 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5383 test $i != 17 # 1/2 MB should be enough
5385 i=`expr $i + 1`
5386 teststring=$teststring$teststring
5387 done
5388 # Only check the string length outside the loop.
5389 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390 teststring=
5391 # Add a significant safety factor because C++ compilers can tack on
5392 # massive amounts of additional arguments before passing them to the
5393 # linker. It appears as though 1/2 is a usable value.
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397 esac
5401 if test -n $lt_cv_sys_max_cmd_len ; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5403 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5406 $as_echo "none" >&6; }
5408 max_cmd_len=$lt_cv_sys_max_cmd_len
5415 : ${CP="cp -f"}
5416 : ${MV="mv -f"}
5417 : ${RM="rm -f"}
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5420 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5421 # Try some XSI features
5422 xsi_shell=no
5423 ( _lt_dummy="a/b/c"
5424 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5425 = c,a/b,, \
5426 && eval 'test $(( 1 + 1 )) -eq 2 \
5427 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5428 && xsi_shell=yes
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5430 $as_echo "$xsi_shell" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5434 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5435 lt_shell_append=no
5436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5437 >/dev/null 2>&1 \
5438 && lt_shell_append=yes
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5440 $as_echo "$lt_shell_append" >&6; }
5443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5444 lt_unset=unset
5445 else
5446 lt_unset=false
5453 # test EBCDIC or ASCII
5454 case `echo X|tr X '\101'` in
5455 A) # ASCII based system
5456 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5457 lt_SP2NL='tr \040 \012'
5458 lt_NL2SP='tr \015\012 \040\040'
5460 *) # EBCDIC based system
5461 lt_SP2NL='tr \100 \n'
5462 lt_NL2SP='tr \r\n \100\100'
5464 esac
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5475 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5476 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 lt_cv_ld_reload_flag='-r'
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5482 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5483 reload_flag=$lt_cv_ld_reload_flag
5484 case $reload_flag in
5485 "" | " "*) ;;
5486 *) reload_flag=" $reload_flag" ;;
5487 esac
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 case $host_os in
5490 darwin*)
5491 if test "$GCC" = yes; then
5492 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5493 else
5494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5497 esac
5507 if test -n "$ac_tool_prefix"; then
5508 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5509 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$OBJDUMP"; then
5516 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 OBJDUMP=$ac_cv_prog_OBJDUMP
5536 if test -n "$OBJDUMP"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5538 $as_echo "$OBJDUMP" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5546 if test -z "$ac_cv_prog_OBJDUMP"; then
5547 ac_ct_OBJDUMP=$OBJDUMP
5548 # Extract the first word of "objdump", so it can be a program name with args.
5549 set dummy objdump; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$ac_ct_OBJDUMP"; then
5556 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5571 IFS=$as_save_IFS
5575 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5576 if test -n "$ac_ct_OBJDUMP"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5578 $as_echo "$ac_ct_OBJDUMP" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5584 if test "x$ac_ct_OBJDUMP" = x; then
5585 OBJDUMP="false"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593 OBJDUMP=$ac_ct_OBJDUMP
5595 else
5596 OBJDUMP="$ac_cv_prog_OBJDUMP"
5599 test -z "$OBJDUMP" && OBJDUMP=objdump
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5610 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5611 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_file_magic_cmd='$MAGIC_CMD'
5615 lt_cv_file_magic_test_file=
5616 lt_cv_deplibs_check_method='unknown'
5617 # Need to set the preceding variable on all platforms that support
5618 # interlibrary dependencies.
5619 # 'none' -- dependencies not supported.
5620 # `unknown' -- same as none, but documents that we really don't know.
5621 # 'pass_all' -- all dependencies passed with no checks.
5622 # 'test_compile' -- check by making test program.
5623 # 'file_magic [[regex]]' -- check by looking for files in library path
5624 # which responds to the $file_magic_cmd with a given extended regex.
5625 # If you have `file' or equivalent on your system and you're not sure
5626 # whether `pass_all' will *always* work, you probably want this one.
5628 case $host_os in
5629 aix[4-9]*)
5630 lt_cv_deplibs_check_method=pass_all
5633 beos*)
5634 lt_cv_deplibs_check_method=pass_all
5637 bsdi[45]*)
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5639 lt_cv_file_magic_cmd='/usr/bin/file -L'
5640 lt_cv_file_magic_test_file=/shlib/libc.so
5643 cygwin*)
5644 # func_win32_libid is a shell function defined in ltmain.sh
5645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5646 lt_cv_file_magic_cmd='func_win32_libid'
5649 mingw* | pw32*)
5650 # Base MSYS/MinGW do not provide the 'file' command needed by
5651 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5652 # unless we find 'file', for example because we are cross-compiling.
5653 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5654 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5655 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5656 lt_cv_file_magic_cmd='func_win32_libid'
5657 else
5658 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5659 lt_cv_file_magic_cmd='$OBJDUMP -f'
5663 cegcc*)
5664 # use the weaker test based on 'objdump'. See mingw*.
5665 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5666 lt_cv_file_magic_cmd='$OBJDUMP -f'
5669 darwin* | rhapsody*)
5670 lt_cv_deplibs_check_method=pass_all
5673 freebsd* | dragonfly*)
5674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5675 case $host_cpu in
5676 i*86 )
5677 # Not sure whether the presence of OpenBSD here was a mistake.
5678 # Let's accept both of them until this is cleared up.
5679 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5680 lt_cv_file_magic_cmd=/usr/bin/file
5681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5683 esac
5684 else
5685 lt_cv_deplibs_check_method=pass_all
5689 gnu*)
5690 lt_cv_deplibs_check_method=pass_all
5693 haiku*)
5694 lt_cv_deplibs_check_method=pass_all
5697 hpux10.20* | hpux11*)
5698 lt_cv_file_magic_cmd=/usr/bin/file
5699 case $host_cpu in
5700 ia64*)
5701 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5702 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5704 hppa*64*)
5705 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]'
5706 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5710 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5712 esac
5715 interix[3-9]*)
5716 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5720 irix5* | irix6* | nonstopux*)
5721 case $LD in
5722 *-32|*"-32 ") libmagic=32-bit;;
5723 *-n32|*"-n32 ") libmagic=N32;;
5724 *-64|*"-64 ") libmagic=64-bit;;
5725 *) libmagic=never-match;;
5726 esac
5727 lt_cv_deplibs_check_method=pass_all
5730 # This must be Linux ELF.
5731 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5732 lt_cv_deplibs_check_method=pass_all
5735 netbsd*)
5736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5738 else
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5743 newos6*)
5744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5745 lt_cv_file_magic_cmd=/usr/bin/file
5746 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5749 *nto* | *qnx*)
5750 lt_cv_deplibs_check_method=pass_all
5753 openbsd*)
5754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5756 else
5757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 osf3* | osf4* | osf5*)
5762 lt_cv_deplibs_check_method=pass_all
5765 rdos*)
5766 lt_cv_deplibs_check_method=pass_all
5769 solaris*)
5770 lt_cv_deplibs_check_method=pass_all
5773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5774 lt_cv_deplibs_check_method=pass_all
5777 sysv4 | sysv4.3*)
5778 case $host_vendor in
5779 motorola)
5780 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]'
5781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5783 ncr)
5784 lt_cv_deplibs_check_method=pass_all
5786 sequent)
5787 lt_cv_file_magic_cmd='/bin/file'
5788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5790 sni)
5791 lt_cv_file_magic_cmd='/bin/file'
5792 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5793 lt_cv_file_magic_test_file=/lib/libc.so
5795 siemens)
5796 lt_cv_deplibs_check_method=pass_all
5799 lt_cv_deplibs_check_method=pass_all
5801 esac
5804 tpf*)
5805 lt_cv_deplibs_check_method=pass_all
5807 esac
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5811 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}ar; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_prog_AR+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$AR"; then
5836 ac_cv_prog_AR="$AR" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_AR="${ac_tool_prefix}ar"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5851 IFS=$as_save_IFS
5855 AR=$ac_cv_prog_AR
5856 if test -n "$AR"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5858 $as_echo "$AR" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5866 if test -z "$ac_cv_prog_AR"; then
5867 ac_ct_AR=$AR
5868 # Extract the first word of "ar", so it can be a program name with args.
5869 set dummy ar; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$ac_ct_AR"; then
5876 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_AR="ar"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5896 if test -n "$ac_ct_AR"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5898 $as_echo "$ac_ct_AR" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5904 if test "x$ac_ct_AR" = x; then
5905 AR="false"
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908 yes:)
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911 ac_tool_warned=yes ;;
5912 esac
5913 AR=$ac_ct_AR
5915 else
5916 AR="$ac_cv_prog_AR"
5919 test -z "$AR" && AR=ar
5920 test -z "$AR_FLAGS" && AR_FLAGS=cru
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}strip; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_STRIP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$STRIP"; then
5941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5956 IFS=$as_save_IFS
5960 STRIP=$ac_cv_prog_STRIP
5961 if test -n "$STRIP"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5963 $as_echo "$STRIP" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_STRIP"; then
5972 ac_ct_STRIP=$STRIP
5973 # Extract the first word of "strip", so it can be a program name with args.
5974 set dummy strip; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_STRIP"; then
5981 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_STRIP="strip"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5994 done
5995 done
5996 IFS=$as_save_IFS
6000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6001 if test -n "$ac_ct_STRIP"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6003 $as_echo "$ac_ct_STRIP" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_STRIP" = x; then
6010 STRIP=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 STRIP=$ac_ct_STRIP
6020 else
6021 STRIP="$ac_cv_prog_STRIP"
6024 test -z "$STRIP" && STRIP=:
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$RANLIB"; then
6040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6053 done
6054 done
6055 IFS=$as_save_IFS
6059 RANLIB=$ac_cv_prog_RANLIB
6060 if test -n "$RANLIB"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6062 $as_echo "$RANLIB" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test -z "$ac_cv_prog_RANLIB"; then
6071 ac_ct_RANLIB=$RANLIB
6072 # Extract the first word of "ranlib", so it can be a program name with args.
6073 set dummy ranlib; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_RANLIB"; then
6080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_RANLIB="ranlib"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6095 IFS=$as_save_IFS
6099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6100 if test -n "$ac_ct_RANLIB"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6102 $as_echo "$ac_ct_RANLIB" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_ct_RANLIB" = x; then
6109 RANLIB=":"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 RANLIB=$ac_ct_RANLIB
6119 else
6120 RANLIB="$ac_cv_prog_RANLIB"
6123 test -z "$RANLIB" && RANLIB=:
6130 # Determine commands to create old-style static archives.
6131 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6132 old_postinstall_cmds='chmod 644 $oldlib'
6133 old_postuninstall_cmds=
6135 if test -n "$RANLIB"; then
6136 case $host_os in
6137 openbsd*)
6138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6143 esac
6144 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6147 case $host_os in
6148 darwin*)
6149 lock_old_archive_extraction=yes ;;
6151 lock_old_archive_extraction=no ;;
6152 esac
6192 # If no C compiler was specified, use CC.
6193 LTCC=${LTCC-"$CC"}
6195 # If no C compiler flags were specified, use CFLAGS.
6196 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6198 # Allow CC to be a program name with arguments.
6199 compiler=$CC
6202 # Check for command to grab the raw symbol name followed by C symbol from nm.
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6204 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6205 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6209 # These are sane defaults that work on at least a few old systems.
6210 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6212 # Character class describing NM global symbol codes.
6213 symcode='[BCDEGRST]'
6215 # Regexp to match symbols that can be accessed directly from C.
6216 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6218 # Define system-specific variables.
6219 case $host_os in
6220 aix*)
6221 symcode='[BCDT]'
6223 cygwin* | mingw* | pw32* | cegcc*)
6224 symcode='[ABCDGISTW]'
6226 hpux*)
6227 if test "$host_cpu" = ia64; then
6228 symcode='[ABCDEGRST]'
6231 irix* | nonstopux*)
6232 symcode='[BCDEGRST]'
6234 osf*)
6235 symcode='[BCDEGQRST]'
6237 solaris*)
6238 symcode='[BDRT]'
6240 sco3.2v5*)
6241 symcode='[DT]'
6243 sysv4.2uw2*)
6244 symcode='[DT]'
6246 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6247 symcode='[ABDT]'
6249 sysv4)
6250 symcode='[DFNSTU]'
6252 esac
6254 # If we're using GNU nm, then use its standard symbol codes.
6255 case `$NM -V 2>&1` in
6256 *GNU* | *'with BFD'*)
6257 symcode='[ABCDGIRSTW]' ;;
6258 esac
6260 # Transform an extracted symbol line into a proper C declaration.
6261 # Some systems (esp. on ia64) link data and code symbols differently,
6262 # so use this general approach.
6263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265 # Transform an extracted symbol line into symbol name and symbol address
6266 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6267 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'"
6269 # Handle CRLF in mingw tool chain
6270 opt_cr=
6271 case $build_os in
6272 mingw*)
6273 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6275 esac
6277 # Try without a prefix underscore, then with it.
6278 for ac_symprfx in "" "_"; do
6280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6281 symxfrm="\\1 $ac_symprfx\\2 \\2"
6283 # Write the raw and C identifiers.
6284 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6285 # Fake it for dumpbin and say T for any non-static function
6286 # and D for any global variable.
6287 # Also find C++ and __fastcall symbols from MSVC++,
6288 # which start with @ or ?.
6289 lt_cv_sys_global_symbol_pipe="$AWK '"\
6290 " {last_section=section; section=\$ 3};"\
6291 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6292 " \$ 0!~/External *\|/{next};"\
6293 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6294 " {if(hide[section]) next};"\
6295 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6296 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6297 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6298 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6299 " ' prfx=^$ac_symprfx"
6300 else
6301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6304 # Check to see that the pipe works correctly.
6305 pipe_works=no
6307 rm -f conftest*
6308 cat > conftest.$ac_ext <<_LT_EOF
6309 #ifdef __cplusplus
6310 extern "C" {
6311 #endif
6312 char nm_test_var;
6313 void nm_test_func(void);
6314 void nm_test_func(void){}
6315 #ifdef __cplusplus
6317 #endif
6318 int main(){nm_test_var='a';nm_test_func();return(0);}
6319 _LT_EOF
6321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6322 (eval $ac_compile) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; }; then
6326 # Now try to grab the symbols.
6327 nlist=conftest.nm
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6329 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6330 ac_status=$?
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; } && test -s "$nlist"; then
6333 # Try sorting and uniquifying the output.
6334 if sort "$nlist" | uniq > "$nlist"T; then
6335 mv -f "$nlist"T "$nlist"
6336 else
6337 rm -f "$nlist"T
6340 # Make sure that we snagged all the symbols we need.
6341 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6342 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6343 cat <<_LT_EOF > conftest.$ac_ext
6344 #ifdef __cplusplus
6345 extern "C" {
6346 #endif
6348 _LT_EOF
6349 # Now generate the symbol file.
6350 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6352 cat <<_LT_EOF >> conftest.$ac_ext
6354 /* The mapping between symbol names and symbols. */
6355 const struct {
6356 const char *name;
6357 void *address;
6359 lt__PROGRAM__LTX_preloaded_symbols[] =
6361 { "@PROGRAM@", (void *) 0 },
6362 _LT_EOF
6363 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6364 cat <<\_LT_EOF >> conftest.$ac_ext
6365 {0, (void *) 0}
6368 /* This works around a problem in FreeBSD linker */
6369 #ifdef FREEBSD_WORKAROUND
6370 static const void *lt_preloaded_setup() {
6371 return lt__PROGRAM__LTX_preloaded_symbols;
6373 #endif
6375 #ifdef __cplusplus
6377 #endif
6378 _LT_EOF
6379 # Now try linking the two files.
6380 mv conftest.$ac_objext conftstm.$ac_objext
6381 lt_save_LIBS="$LIBS"
6382 lt_save_CFLAGS="$CFLAGS"
6383 LIBS="conftstm.$ac_objext"
6384 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6386 (eval $ac_link) 2>&5
6387 ac_status=$?
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6390 pipe_works=yes
6392 LIBS="$lt_save_LIBS"
6393 CFLAGS="$lt_save_CFLAGS"
6394 else
6395 echo "cannot find nm_test_func in $nlist" >&5
6397 else
6398 echo "cannot find nm_test_var in $nlist" >&5
6400 else
6401 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6403 else
6404 echo "$progname: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6407 rm -rf conftest* conftst*
6409 # Do not use the global_symbol_pipe unless it works.
6410 if test "$pipe_works" = yes; then
6411 break
6412 else
6413 lt_cv_sys_global_symbol_pipe=
6415 done
6419 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6420 lt_cv_sys_global_symbol_to_cdecl=
6422 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6424 $as_echo "failed" >&6; }
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6427 $as_echo "ok" >&6; }
6452 # Check whether --enable-libtool-lock was given.
6453 if test "${enable_libtool_lock+set}" = set; then :
6454 enableval=$enable_libtool_lock;
6457 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6459 # Some flags need to be propagated to the compiler or linker for good
6460 # libtool support.
6461 case $host in
6462 ia64-*-hpux*)
6463 # Find out which ABI we are using.
6464 echo 'int i;' > conftest.$ac_ext
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466 (eval $ac_compile) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6471 *ELF-32*)
6472 HPUX_IA64_MODE="32"
6474 *ELF-64*)
6475 HPUX_IA64_MODE="64"
6477 esac
6479 rm -rf conftest*
6481 *-*-irix6*)
6482 # Find out which ABI we are using.
6483 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; then
6489 if test "$lt_cv_prog_gnu_ld" = yes; then
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *32-bit*)
6492 LD="${LD-ld} -melf32bsmip"
6494 *N32*)
6495 LD="${LD-ld} -melf32bmipn32"
6497 *64-bit*)
6498 LD="${LD-ld} -melf64bmip"
6500 esac
6501 else
6502 case `/usr/bin/file conftest.$ac_objext` in
6503 *32-bit*)
6504 LD="${LD-ld} -32"
6506 *N32*)
6507 LD="${LD-ld} -n32"
6509 *64-bit*)
6510 LD="${LD-ld} -64"
6512 esac
6515 rm -rf conftest*
6518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6520 # Find out which ABI we are using.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.o` in
6528 *32-bit*)
6529 case $host in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_i386_fbsd"
6533 x86_64-*linux*)
6534 case `/usr/bin/file conftest.o` in
6535 *x86-64*)
6536 LD="${LD-ld} -m elf32_x86_64"
6539 LD="${LD-ld} -m elf_i386"
6541 esac
6543 powerpc64le-*linux*)
6544 LD="${LD-ld} -m elf32lppclinux"
6546 powerpc64-*linux*)
6547 LD="${LD-ld} -m elf32ppclinux"
6549 s390x-*linux*)
6550 LD="${LD-ld} -m elf_s390"
6552 sparc64-*linux*)
6553 LD="${LD-ld} -m elf32_sparc"
6555 esac
6557 *64-bit*)
6558 case $host in
6559 x86_64-*kfreebsd*-gnu)
6560 LD="${LD-ld} -m elf_x86_64_fbsd"
6562 x86_64-*linux*)
6563 LD="${LD-ld} -m elf_x86_64"
6565 powerpcle-*linux*)
6566 LD="${LD-ld} -m elf64lppc"
6568 powerpc-*linux*)
6569 LD="${LD-ld} -m elf64ppc"
6571 s390*-*linux*|s390*-*tpf*)
6572 LD="${LD-ld} -m elf64_s390"
6574 sparc*-*linux*)
6575 LD="${LD-ld} -m elf64_sparc"
6577 esac
6579 esac
6581 rm -rf conftest*
6584 *-*-sco3.2v5*)
6585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6586 SAVE_CFLAGS="$CFLAGS"
6587 CFLAGS="$CFLAGS -belf"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6590 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6603 main ()
6607 return 0;
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 lt_cv_cc_needs_belf=yes
6612 else
6613 lt_cv_cc_needs_belf=no
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628 CFLAGS="$SAVE_CFLAGS"
6631 sparc*-*solaris*)
6632 # Find out which ABI we are using.
6633 echo 'int i;' > conftest.$ac_ext
6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6635 (eval $ac_compile) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638 test $ac_status = 0; }; then
6639 case `/usr/bin/file conftest.o` in
6640 *64-bit*)
6641 case $lt_cv_prog_gnu_ld in
6642 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6644 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6645 LD="${LD-ld} -64"
6648 esac
6650 esac
6652 rm -rf conftest*
6654 esac
6656 need_locks="$enable_libtool_lock"
6659 case $host_os in
6660 rhapsody* | darwin*)
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$DSYMUTIL"; then
6670 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6685 IFS=$as_save_IFS
6689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6690 if test -n "$DSYMUTIL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6692 $as_echo "$DSYMUTIL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6700 if test -z "$ac_cv_prog_DSYMUTIL"; then
6701 ac_ct_DSYMUTIL=$DSYMUTIL
6702 # Extract the first word of "dsymutil", so it can be a program name with args.
6703 set dummy dsymutil; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_DSYMUTIL"; then
6710 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6723 done
6724 done
6725 IFS=$as_save_IFS
6729 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6730 if test -n "$ac_ct_DSYMUTIL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6732 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6738 if test "x$ac_ct_DSYMUTIL" = x; then
6739 DSYMUTIL=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 DSYMUTIL=$ac_ct_DSYMUTIL
6749 else
6750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$NMEDIT"; then
6762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6775 done
6776 done
6777 IFS=$as_save_IFS
6781 NMEDIT=$ac_cv_prog_NMEDIT
6782 if test -n "$NMEDIT"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6784 $as_echo "$NMEDIT" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6792 if test -z "$ac_cv_prog_NMEDIT"; then
6793 ac_ct_NMEDIT=$NMEDIT
6794 # Extract the first word of "nmedit", so it can be a program name with args.
6795 set dummy nmedit; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_NMEDIT"; then
6802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6815 done
6816 done
6817 IFS=$as_save_IFS
6821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6822 if test -n "$ac_ct_NMEDIT"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6824 $as_echo "$ac_ct_NMEDIT" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6830 if test "x$ac_ct_NMEDIT" = x; then
6831 NMEDIT=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 NMEDIT=$ac_ct_NMEDIT
6841 else
6842 NMEDIT="$ac_cv_prog_NMEDIT"
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_LIPO+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$LIPO"; then
6854 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6873 LIPO=$ac_cv_prog_LIPO
6874 if test -n "$LIPO"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6876 $as_echo "$LIPO" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6884 if test -z "$ac_cv_prog_LIPO"; then
6885 ac_ct_LIPO=$LIPO
6886 # Extract the first word of "lipo", so it can be a program name with args.
6887 set dummy lipo; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$ac_ct_LIPO"; then
6894 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_ac_ct_LIPO="lipo"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6907 done
6908 done
6909 IFS=$as_save_IFS
6913 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6914 if test -n "$ac_ct_LIPO"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6916 $as_echo "$ac_ct_LIPO" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6922 if test "x$ac_ct_LIPO" = x; then
6923 LIPO=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 LIPO=$ac_ct_LIPO
6933 else
6934 LIPO="$ac_cv_prog_LIPO"
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}otool; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$OTOOL"; then
6946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968 $as_echo "$OTOOL" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6976 if test -z "$ac_cv_prog_OTOOL"; then
6977 ac_ct_OTOOL=$OTOOL
6978 # Extract the first word of "otool", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_OTOOL"; then
6986 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_prog_ac_ct_OTOOL="otool"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7006 if test -n "$ac_ct_OTOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7008 $as_echo "$ac_ct_OTOOL" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7014 if test "x$ac_ct_OTOOL" = x; then
7015 OTOOL=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 OTOOL=$ac_ct_OTOOL
7025 else
7026 OTOOL="$ac_cv_prog_OTOOL"
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$OTOOL64"; then
7038 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7051 done
7052 done
7053 IFS=$as_save_IFS
7057 OTOOL64=$ac_cv_prog_OTOOL64
7058 if test -n "$OTOOL64"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7060 $as_echo "$OTOOL64" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7068 if test -z "$ac_cv_prog_OTOOL64"; then
7069 ac_ct_OTOOL64=$OTOOL64
7070 # Extract the first word of "otool64", so it can be a program name with args.
7071 set dummy otool64; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$ac_ct_OTOOL64"; then
7078 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_ac_ct_OTOOL64="otool64"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7091 done
7092 done
7093 IFS=$as_save_IFS
7097 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7098 if test -n "$ac_ct_OTOOL64"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7100 $as_echo "$ac_ct_OTOOL64" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7106 if test "x$ac_ct_OTOOL64" = x; then
7107 OTOOL64=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 OTOOL64=$ac_ct_OTOOL64
7117 else
7118 OTOOL64="$ac_cv_prog_OTOOL64"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7148 $as_echo_n "checking for -single_module linker flag... " >&6; }
7149 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 lt_cv_apple_cc_single_mod=no
7153 if test -z "${LT_MULTI_MODULE}"; then
7154 # By default we will add the -single_module flag. You can override
7155 # by either setting the environment variable LT_MULTI_MODULE
7156 # non-empty at configure time, or by adding -multi_module to the
7157 # link flags.
7158 rm -rf libconftest.dylib*
7159 echo "int foo(void){return 1;}" > conftest.c
7160 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c" >&5
7162 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7163 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7164 _lt_result=$?
7165 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7166 lt_cv_apple_cc_single_mod=yes
7167 else
7168 cat conftest.err >&5
7170 rm -rf libconftest.dylib*
7171 rm -f conftest.*
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7175 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7177 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7178 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 lt_cv_ld_exported_symbols_list=no
7182 save_LDFLAGS=$LDFLAGS
7183 echo "_main" > conftest.sym
7184 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7189 main ()
7193 return 0;
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"; then :
7197 lt_cv_ld_exported_symbols_list=yes
7198 else
7199 lt_cv_ld_exported_symbols_list=no
7201 rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LDFLAGS="$save_LDFLAGS"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7207 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7209 $as_echo_n "checking for -force_load linker flag... " >&6; }
7210 if test "${lt_cv_ld_force_load+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 lt_cv_ld_force_load=no
7214 cat > conftest.c << _LT_EOF
7215 int forced_loaded() { return 2;}
7216 _LT_EOF
7217 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7218 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7219 echo "$AR cru libconftest.a conftest.o" >&5
7220 $AR cru libconftest.a conftest.o 2>&5
7221 cat > conftest.c << _LT_EOF
7222 int main() { return 0;}
7223 _LT_EOF
7224 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7225 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7226 _lt_result=$?
7227 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7228 lt_cv_ld_force_load=yes
7229 else
7230 cat conftest.err >&5
7232 rm -f conftest.err libconftest.a conftest conftest.c
7233 rm -rf conftest.dSYM
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7237 $as_echo "$lt_cv_ld_force_load" >&6; }
7238 case $host_os in
7239 rhapsody* | darwin1.[012])
7240 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7241 darwin1.*)
7242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7243 darwin*) # darwin 5.x on
7244 # if running on 10.5 or later, the deployment target defaults
7245 # to the OS version, if on x86, and 10.4, the deployment
7246 # target defaults to 10.4. Don't you love it?
7247 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7248 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7249 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7250 10.[012][,.]*)
7251 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7252 10.*)
7253 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7254 esac
7256 esac
7257 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7258 _lt_dar_single_mod='$single_module'
7260 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7261 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7262 else
7263 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7265 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7266 _lt_dsymutil='~$DSYMUTIL $lib || :'
7267 else
7268 _lt_dsymutil=
7271 esac
7273 ac_ext=c
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7279 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7280 # On Suns, sometimes $CPP names a directory.
7281 if test -n "$CPP" && test -d "$CPP"; then
7282 CPP=
7284 if test -z "$CPP"; then
7285 if test "${ac_cv_prog_CPP+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 # Double quotes because CPP needs to be expanded
7289 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7291 ac_preproc_ok=false
7292 for ac_c_preproc_warn_flag in '' yes
7294 # Use a header file that comes with gcc, so configuring glibc
7295 # with a fresh cross-compiler works.
7296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297 # <limits.h> exists even on freestanding compilers.
7298 # On the NeXT, cc -E runs the code through the compiler's parser,
7299 # not just through cpp. "Syntax error" is here to catch this case.
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #ifdef __STDC__
7303 # include <limits.h>
7304 #else
7305 # include <assert.h>
7306 #endif
7307 Syntax error
7308 _ACEOF
7309 if ac_fn_c_try_cpp "$LINENO"; then :
7311 else
7312 # Broken: fails on valid input.
7313 continue
7315 rm -f conftest.err conftest.$ac_ext
7317 # OK, works on sane cases. Now check whether nonexistent headers
7318 # can be detected and how.
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <ac_nonexistent.h>
7322 _ACEOF
7323 if ac_fn_c_try_cpp "$LINENO"; then :
7324 # Broken: success on invalid input.
7325 continue
7326 else
7327 # Passes both tests.
7328 ac_preproc_ok=:
7329 break
7331 rm -f conftest.err conftest.$ac_ext
7333 done
7334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7335 rm -f conftest.err conftest.$ac_ext
7336 if $ac_preproc_ok; then :
7337 break
7340 done
7341 ac_cv_prog_CPP=$CPP
7344 CPP=$ac_cv_prog_CPP
7345 else
7346 ac_cv_prog_CPP=$CPP
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7349 $as_echo "$CPP" >&6; }
7350 ac_preproc_ok=false
7351 for ac_c_preproc_warn_flag in '' yes
7353 # Use a header file that comes with gcc, so configuring glibc
7354 # with a fresh cross-compiler works.
7355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7356 # <limits.h> exists even on freestanding compilers.
7357 # On the NeXT, cc -E runs the code through the compiler's parser,
7358 # not just through cpp. "Syntax error" is here to catch this case.
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 #ifdef __STDC__
7362 # include <limits.h>
7363 #else
7364 # include <assert.h>
7365 #endif
7366 Syntax error
7367 _ACEOF
7368 if ac_fn_c_try_cpp "$LINENO"; then :
7370 else
7371 # Broken: fails on valid input.
7372 continue
7374 rm -f conftest.err conftest.$ac_ext
7376 # OK, works on sane cases. Now check whether nonexistent headers
7377 # can be detected and how.
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 #include <ac_nonexistent.h>
7381 _ACEOF
7382 if ac_fn_c_try_cpp "$LINENO"; then :
7383 # Broken: success on invalid input.
7384 continue
7385 else
7386 # Passes both tests.
7387 ac_preproc_ok=:
7388 break
7390 rm -f conftest.err conftest.$ac_ext
7392 done
7393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7394 rm -f conftest.err conftest.$ac_ext
7395 if $ac_preproc_ok; then :
7397 else
7398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7400 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7401 See \`config.log' for more details." "$LINENO" 5; }
7404 ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7412 $as_echo_n "checking for ANSI C header files... " >&6; }
7413 if test "${ac_cv_header_stdc+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 #include <stdlib.h>
7419 #include <stdarg.h>
7420 #include <string.h>
7421 #include <float.h>
7424 main ()
7428 return 0;
7430 _ACEOF
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 ac_cv_header_stdc=yes
7433 else
7434 ac_cv_header_stdc=no
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 if test $ac_cv_header_stdc = yes; then
7439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <string.h>
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "memchr" >/dev/null 2>&1; then :
7448 else
7449 ac_cv_header_stdc=no
7451 rm -f conftest*
7455 if test $ac_cv_header_stdc = yes; then
7456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <stdlib.h>
7461 _ACEOF
7462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7463 $EGREP "free" >/dev/null 2>&1; then :
7465 else
7466 ac_cv_header_stdc=no
7468 rm -f conftest*
7472 if test $ac_cv_header_stdc = yes; then
7473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7474 if test "$cross_compiling" = yes; then :
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <ctype.h>
7480 #include <stdlib.h>
7481 #if ((' ' & 0x0FF) == 0x020)
7482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7484 #else
7485 # define ISLOWER(c) \
7486 (('a' <= (c) && (c) <= 'i') \
7487 || ('j' <= (c) && (c) <= 'r') \
7488 || ('s' <= (c) && (c) <= 'z'))
7489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7490 #endif
7492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7494 main ()
7496 int i;
7497 for (i = 0; i < 256; i++)
7498 if (XOR (islower (i), ISLOWER (i))
7499 || toupper (i) != TOUPPER (i))
7500 return 2;
7501 return 0;
7503 _ACEOF
7504 if ac_fn_c_try_run "$LINENO"; then :
7506 else
7507 ac_cv_header_stdc=no
7509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7510 conftest.$ac_objext conftest.beam conftest.$ac_ext
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7516 $as_echo "$ac_cv_header_stdc" >&6; }
7517 if test $ac_cv_header_stdc = yes; then
7519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7525 inttypes.h stdint.h unistd.h
7526 do :
7527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7530 eval as_val=\$$as_ac_Header
7531 if test "x$as_val" = x""yes; then :
7532 cat >>confdefs.h <<_ACEOF
7533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 _ACEOF
7538 done
7541 for ac_header in dlfcn.h
7542 do :
7543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7545 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7546 cat >>confdefs.h <<_ACEOF
7547 #define HAVE_DLFCN_H 1
7548 _ACEOF
7552 done
7554 if test -n "$ac_tool_prefix"; then
7555 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7556 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_GOC+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$GOC"; then
7563 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7578 IFS=$as_save_IFS
7582 GOC=$ac_cv_prog_GOC
7583 if test -n "$GOC"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7585 $as_echo "$GOC" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7593 if test -z "$ac_cv_prog_GOC"; then
7594 ac_ct_GOC=$GOC
7595 # Extract the first word of "gccgo", so it can be a program name with args.
7596 set dummy gccgo; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$ac_ct_GOC"; then
7603 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_ac_ct_GOC="gccgo"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7622 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7623 if test -n "$ac_ct_GOC"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7625 $as_echo "$ac_ct_GOC" >&6; }
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7631 if test "x$ac_ct_GOC" = x; then
7632 GOC=""
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 GOC=$ac_ct_GOC
7642 else
7643 GOC="$ac_cv_prog_GOC"
7651 # Set options
7656 enable_win32_dll=no
7659 # Check whether --enable-shared was given.
7660 if test "${enable_shared+set}" = set; then :
7661 enableval=$enable_shared; p=${PACKAGE-default}
7662 case $enableval in
7663 yes) enable_shared=yes ;;
7664 no) enable_shared=no ;;
7666 enable_shared=no
7667 # Look at the argument we got. We use all the common list separators.
7668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669 for pkg in $enableval; do
7670 IFS="$lt_save_ifs"
7671 if test "X$pkg" = "X$p"; then
7672 enable_shared=yes
7674 done
7675 IFS="$lt_save_ifs"
7677 esac
7678 else
7679 enable_shared=yes
7690 # Check whether --enable-static was given.
7691 if test "${enable_static+set}" = set; then :
7692 enableval=$enable_static; p=${PACKAGE-default}
7693 case $enableval in
7694 yes) enable_static=yes ;;
7695 no) enable_static=no ;;
7697 enable_static=no
7698 # Look at the argument we got. We use all the common list separators.
7699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7700 for pkg in $enableval; do
7701 IFS="$lt_save_ifs"
7702 if test "X$pkg" = "X$p"; then
7703 enable_static=yes
7705 done
7706 IFS="$lt_save_ifs"
7708 esac
7709 else
7710 enable_static=yes
7722 # Check whether --with-pic was given.
7723 if test "${with_pic+set}" = set; then :
7724 withval=$with_pic; pic_mode="$withval"
7725 else
7726 pic_mode=default
7730 test -z "$pic_mode" && pic_mode=default
7738 # Check whether --enable-fast-install was given.
7739 if test "${enable_fast_install+set}" = set; then :
7740 enableval=$enable_fast_install; p=${PACKAGE-default}
7741 case $enableval in
7742 yes) enable_fast_install=yes ;;
7743 no) enable_fast_install=no ;;
7745 enable_fast_install=no
7746 # Look at the argument we got. We use all the common list separators.
7747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7748 for pkg in $enableval; do
7749 IFS="$lt_save_ifs"
7750 if test "X$pkg" = "X$p"; then
7751 enable_fast_install=yes
7753 done
7754 IFS="$lt_save_ifs"
7756 esac
7757 else
7758 enable_fast_install=yes
7771 # This can be used to rebuild libtool when needed
7772 LIBTOOL_DEPS="$ltmain"
7774 # Always use our own libtool.
7775 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7802 test -z "$LN_S" && LN_S="ln -s"
7817 if test -n "${ZSH_VERSION+set}" ; then
7818 setopt NO_GLOB_SUBST
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7822 $as_echo_n "checking for objdir... " >&6; }
7823 if test "${lt_cv_objdir+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 rm -f .libs 2>/dev/null
7827 mkdir .libs 2>/dev/null
7828 if test -d .libs; then
7829 lt_cv_objdir=.libs
7830 else
7831 # MS-DOS does not allow filenames that begin with a dot.
7832 lt_cv_objdir=_libs
7834 rmdir .libs 2>/dev/null
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7837 $as_echo "$lt_cv_objdir" >&6; }
7838 objdir=$lt_cv_objdir
7844 cat >>confdefs.h <<_ACEOF
7845 #define LT_OBJDIR "$lt_cv_objdir/"
7846 _ACEOF
7851 case $host_os in
7852 aix3*)
7853 # AIX sometimes has problems with the GCC collect2 program. For some
7854 # reason, if we set the COLLECT_NAMES environment variable, the problems
7855 # vanish in a puff of smoke.
7856 if test "X${COLLECT_NAMES+set}" != Xset; then
7857 COLLECT_NAMES=
7858 export COLLECT_NAMES
7861 esac
7863 # Global variables:
7864 ofile=libtool
7865 can_build_shared=yes
7867 # All known linkers require a `.a' archive for static linking (except MSVC,
7868 # which needs '.lib').
7869 libext=a
7871 with_gnu_ld="$lt_cv_prog_gnu_ld"
7873 old_CC="$CC"
7874 old_CFLAGS="$CFLAGS"
7876 # Set sane defaults for various variables
7877 test -z "$CC" && CC=cc
7878 test -z "$LTCC" && LTCC=$CC
7879 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7880 test -z "$LD" && LD=ld
7881 test -z "$ac_objext" && ac_objext=o
7883 for cc_temp in $compiler""; do
7884 case $cc_temp in
7885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7887 \-*) ;;
7888 *) break;;
7889 esac
7890 done
7891 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7894 # Only perform the check for file, if the check method requires it
7895 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7896 case $deplibs_check_method in
7897 file_magic*)
7898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7901 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 case $MAGIC_CMD in
7905 [\\/*] | ?:[\\/]*)
7906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7909 lt_save_MAGIC_CMD="$MAGIC_CMD"
7910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7912 for ac_dir in $ac_dummy; do
7913 IFS="$lt_save_ifs"
7914 test -z "$ac_dir" && ac_dir=.
7915 if test -f $ac_dir/${ac_tool_prefix}file; then
7916 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7917 if test -n "$file_magic_test_file"; then
7918 case $deplibs_check_method in
7919 "file_magic "*)
7920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7923 $EGREP "$file_magic_regex" > /dev/null; then
7925 else
7926 cat <<_LT_EOF 1>&2
7928 *** Warning: the command libtool uses to detect shared libraries,
7929 *** $file_magic_cmd, produces output that libtool cannot recognize.
7930 *** The result is that libtool may fail to recognize shared libraries
7931 *** as such. This will affect the creation of libtool libraries that
7932 *** depend on shared libraries, but programs linked with such libtool
7933 *** libraries will work regardless of this problem. Nevertheless, you
7934 *** may want to report the problem to your system manager and/or to
7935 *** bug-libtool@gnu.org
7937 _LT_EOF
7938 fi ;;
7939 esac
7941 break
7943 done
7944 IFS="$lt_save_ifs"
7945 MAGIC_CMD="$lt_save_MAGIC_CMD"
7947 esac
7950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7951 if test -n "$MAGIC_CMD"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7953 $as_echo "$MAGIC_CMD" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7963 if test -z "$lt_cv_path_MAGIC_CMD"; then
7964 if test -n "$ac_tool_prefix"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7966 $as_echo_n "checking for file... " >&6; }
7967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 case $MAGIC_CMD in
7971 [\\/*] | ?:[\\/]*)
7972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7975 lt_save_MAGIC_CMD="$MAGIC_CMD"
7976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7978 for ac_dir in $ac_dummy; do
7979 IFS="$lt_save_ifs"
7980 test -z "$ac_dir" && ac_dir=.
7981 if test -f $ac_dir/file; then
7982 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7983 if test -n "$file_magic_test_file"; then
7984 case $deplibs_check_method in
7985 "file_magic "*)
7986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7989 $EGREP "$file_magic_regex" > /dev/null; then
7991 else
7992 cat <<_LT_EOF 1>&2
7994 *** Warning: the command libtool uses to detect shared libraries,
7995 *** $file_magic_cmd, produces output that libtool cannot recognize.
7996 *** The result is that libtool may fail to recognize shared libraries
7997 *** as such. This will affect the creation of libtool libraries that
7998 *** depend on shared libraries, but programs linked with such libtool
7999 *** libraries will work regardless of this problem. Nevertheless, you
8000 *** may want to report the problem to your system manager and/or to
8001 *** bug-libtool@gnu.org
8003 _LT_EOF
8004 fi ;;
8005 esac
8007 break
8009 done
8010 IFS="$lt_save_ifs"
8011 MAGIC_CMD="$lt_save_MAGIC_CMD"
8013 esac
8016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017 if test -n "$MAGIC_CMD"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8019 $as_echo "$MAGIC_CMD" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8026 else
8027 MAGIC_CMD=:
8033 esac
8035 # Use C for the default configuration in the libtool script
8037 lt_save_CC="$CC"
8038 ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045 # Source file extension for C test sources.
8046 ac_ext=c
8048 # Object file extension for compiled C test sources.
8049 objext=o
8050 objext=$objext
8052 # Code to be used in simple compile tests
8053 lt_simple_compile_test_code="int some_variable = 0;"
8055 # Code to be used in simple link tests
8056 lt_simple_link_test_code='int main(){return(0);}'
8064 # If no C compiler was specified, use CC.
8065 LTCC=${LTCC-"$CC"}
8067 # If no C compiler flags were specified, use CFLAGS.
8068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8070 # Allow CC to be a program name with arguments.
8071 compiler=$CC
8073 # Save the default compiler, since it gets overwritten when the other
8074 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8075 compiler_DEFAULT=$CC
8077 # save warnings/boilerplate of simple test code
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081 _lt_compiler_boilerplate=`cat conftest.err`
8082 $RM conftest*
8084 ac_outfile=conftest.$ac_objext
8085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8087 _lt_linker_boilerplate=`cat conftest.err`
8088 $RM -r conftest*
8091 ## CAVEAT EMPTOR:
8092 ## There is no encapsulation within the following macros, do not change
8093 ## the running order or otherwise move them around unless you know exactly
8094 ## what you are doing...
8095 if test -n "$compiler"; then
8097 lt_prog_compiler_no_builtin_flag=
8099 if test "$GCC" = yes; then
8100 case $cc_basename in
8101 nvcc*)
8102 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8104 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8105 esac
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8108 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8109 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 lt_cv_prog_compiler_rtti_exceptions=no
8113 ac_outfile=conftest.$ac_objext
8114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8115 lt_compiler_flag="-fno-rtti -fno-exceptions"
8116 # Insert the option either (1) after the last *FLAGS variable, or
8117 # (2) before a word containing "conftest.", or (3) at the end.
8118 # Note that $ac_compile itself does not contain backslashes and begins
8119 # with a dollar sign (not a hyphen), so the echo should work correctly.
8120 # The option is referenced via a variable to avoid confusing sed.
8121 lt_compile=`echo "$ac_compile" | $SED \
8122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8124 -e 's:$: $lt_compiler_flag:'`
8125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8126 (eval "$lt_compile" 2>conftest.err)
8127 ac_status=$?
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 if (exit $ac_status) && test -s "$ac_outfile"; then
8131 # The compiler can only warn and ignore the option if not recognized
8132 # So say no if there are warnings other than the usual output.
8133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8136 lt_cv_prog_compiler_rtti_exceptions=yes
8139 $RM conftest*
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8143 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8145 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8147 else
8158 lt_prog_compiler_wl=
8159 lt_prog_compiler_pic=
8160 lt_prog_compiler_static=
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8163 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8165 if test "$GCC" = yes; then
8166 lt_prog_compiler_wl='-Wl,'
8167 lt_prog_compiler_static='-static'
8169 case $host_os in
8170 aix*)
8171 # All AIX code is PIC.
8172 if test "$host_cpu" = ia64; then
8173 # AIX 5 now supports IA64 processor
8174 lt_prog_compiler_static='-Bstatic'
8176 lt_prog_compiler_pic='-fPIC'
8179 amigaos*)
8180 case $host_cpu in
8181 powerpc)
8182 # see comment about AmigaOS4 .so support
8183 lt_prog_compiler_pic='-fPIC'
8185 m68k)
8186 # FIXME: we need at least 68020 code to build shared libraries, but
8187 # adding the `-m68020' flag to GCC prevents building anything better,
8188 # like `-m68040'.
8189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8191 esac
8194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8195 # PIC is the default for these OSes.
8198 mingw* | cygwin* | pw32* | os2* | cegcc*)
8199 # This hack is so that the source file can tell whether it is being
8200 # built for inclusion in a dll (and should export symbols for example).
8201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8202 # (--disable-auto-import) libraries
8203 lt_prog_compiler_pic='-DDLL_EXPORT'
8206 darwin* | rhapsody*)
8207 # PIC is the default on this platform
8208 # Common symbols not allowed in MH_DYLIB files
8209 lt_prog_compiler_pic='-fno-common'
8212 haiku*)
8213 # PIC is the default for Haiku.
8214 # The "-static" flag exists, but is broken.
8215 lt_prog_compiler_static=
8218 hpux*)
8219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8221 # sets the default TLS model and affects inlining.
8222 case $host_cpu in
8223 hppa*64*)
8224 # +Z the default
8227 lt_prog_compiler_pic='-fPIC'
8229 esac
8232 interix[3-9]*)
8233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8234 # Instead, we relocate shared libraries at runtime.
8237 msdosdjgpp*)
8238 # Just because we use GCC doesn't mean we suddenly get shared libraries
8239 # on systems that don't support them.
8240 lt_prog_compiler_can_build_shared=no
8241 enable_shared=no
8244 *nto* | *qnx*)
8245 # QNX uses GNU C++, but need to define -shared option too, otherwise
8246 # it will coredump.
8247 lt_prog_compiler_pic='-fPIC -shared'
8250 sysv4*MP*)
8251 if test -d /usr/nec; then
8252 lt_prog_compiler_pic=-Kconform_pic
8257 lt_prog_compiler_pic='-fPIC'
8259 esac
8261 case $cc_basename in
8262 nvcc*) # Cuda Compiler Driver 2.2
8263 lt_prog_compiler_wl='-Xlinker '
8264 lt_prog_compiler_pic='-Xcompiler -fPIC'
8266 esac
8267 else
8268 # PORTME Check for flag to pass linker flags through the system compiler.
8269 case $host_os in
8270 aix*)
8271 lt_prog_compiler_wl='-Wl,'
8272 if test "$host_cpu" = ia64; then
8273 # AIX 5 now supports IA64 processor
8274 lt_prog_compiler_static='-Bstatic'
8275 else
8276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 mingw* | cygwin* | pw32* | os2* | cegcc*)
8281 # This hack is so that the source file can tell whether it is being
8282 # built for inclusion in a dll (and should export symbols for example).
8283 lt_prog_compiler_pic='-DDLL_EXPORT'
8286 hpux9* | hpux10* | hpux11*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8289 # not for PA HP-UX.
8290 case $host_cpu in
8291 hppa*64*|ia64*)
8292 # +Z the default
8295 lt_prog_compiler_pic='+Z'
8297 esac
8298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8299 lt_prog_compiler_static='${wl}-a ${wl}archive'
8302 irix5* | irix6* | nonstopux*)
8303 lt_prog_compiler_wl='-Wl,'
8304 # PIC (with -KPIC) is the default.
8305 lt_prog_compiler_static='-non_shared'
8308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8309 case $cc_basename in
8310 # old Intel for x86_64 which still supported -KPIC.
8311 ecc*)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-static'
8316 # icc used to be incompatible with GCC.
8317 # ICC 10 doesn't accept -KPIC any more.
8318 icc* | ifort*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fPIC'
8321 lt_prog_compiler_static='-static'
8323 # Lahey Fortran 8.1.
8324 lf95*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='--shared'
8327 lt_prog_compiler_static='--static'
8329 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8330 # Portland Group compilers (*not* the Pentium gcc compiler,
8331 # which looks to be a dead project)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-fpic'
8334 lt_prog_compiler_static='-Bstatic'
8336 ccc*)
8337 lt_prog_compiler_wl='-Wl,'
8338 # All Alpha code is PIC.
8339 lt_prog_compiler_static='-non_shared'
8341 xl* | bgxl* | bgf* | mpixl*)
8342 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-qpic'
8345 lt_prog_compiler_static='-qstaticlink'
8348 case `$CC -V 2>&1 | sed 5q` in
8349 *Sun\ F* | *Sun*Fortran*)
8350 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 lt_prog_compiler_wl=''
8355 *Sun\ C*)
8356 # Sun C 5.9
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 lt_prog_compiler_wl='-Wl,'
8361 esac
8363 esac
8366 newsos6)
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8371 *nto* | *qnx*)
8372 # QNX uses GNU C++, but need to define -shared option too, otherwise
8373 # it will coredump.
8374 lt_prog_compiler_pic='-fPIC -shared'
8377 osf3* | osf4* | osf5*)
8378 lt_prog_compiler_wl='-Wl,'
8379 # All OSF/1 code is PIC.
8380 lt_prog_compiler_static='-non_shared'
8383 rdos*)
8384 lt_prog_compiler_static='-non_shared'
8387 solaris*)
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 case $cc_basename in
8391 f77* | f90* | f95*)
8392 lt_prog_compiler_wl='-Qoption ld ';;
8394 lt_prog_compiler_wl='-Wl,';;
8395 esac
8398 sunos4*)
8399 lt_prog_compiler_wl='-Qoption ld '
8400 lt_prog_compiler_pic='-PIC'
8401 lt_prog_compiler_static='-Bstatic'
8404 sysv4 | sysv4.2uw2* | sysv4.3*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-KPIC'
8407 lt_prog_compiler_static='-Bstatic'
8410 sysv4*MP*)
8411 if test -d /usr/nec ;then
8412 lt_prog_compiler_pic='-Kconform_pic'
8413 lt_prog_compiler_static='-Bstatic'
8417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8423 unicos*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_can_build_shared=no
8428 uts4*)
8429 lt_prog_compiler_pic='-pic'
8430 lt_prog_compiler_static='-Bstatic'
8434 lt_prog_compiler_can_build_shared=no
8436 esac
8439 case $host_os in
8440 # For platforms which do not support PIC, -DPIC is meaningless:
8441 *djgpp*)
8442 lt_prog_compiler_pic=
8445 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8447 esac
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8449 $as_echo "$lt_prog_compiler_pic" >&6; }
8457 # Check to make sure the PIC flag actually works.
8459 if test -n "$lt_prog_compiler_pic"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8461 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8462 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 lt_cv_prog_compiler_pic_works=no
8466 ac_outfile=conftest.$ac_objext
8467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8468 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8469 # Insert the option either (1) after the last *FLAGS variable, or
8470 # (2) before a word containing "conftest.", or (3) at the end.
8471 # Note that $ac_compile itself does not contain backslashes and begins
8472 # with a dollar sign (not a hyphen), so the echo should work correctly.
8473 # The option is referenced via a variable to avoid confusing sed.
8474 lt_compile=`echo "$ac_compile" | $SED \
8475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8477 -e 's:$: $lt_compiler_flag:'`
8478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8479 (eval "$lt_compile" 2>conftest.err)
8480 ac_status=$?
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 if (exit $ac_status) && test -s "$ac_outfile"; then
8484 # The compiler can only warn and ignore the option if not recognized
8485 # So say no if there are warnings other than the usual output.
8486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8489 lt_cv_prog_compiler_pic_works=yes
8492 $RM conftest*
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8496 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8498 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8499 case $lt_prog_compiler_pic in
8500 "" | " "*) ;;
8501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8502 esac
8503 else
8504 lt_prog_compiler_pic=
8505 lt_prog_compiler_can_build_shared=no
8516 # Check to make sure the static flag actually works.
8518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8521 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 lt_cv_prog_compiler_static_works=no
8525 save_LDFLAGS="$LDFLAGS"
8526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8529 # The linker can only warn and ignore the option if not recognized
8530 # So say no if there are warnings
8531 if test -s conftest.err; then
8532 # Append any errors to the config.log.
8533 cat conftest.err 1>&5
8534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8536 if diff conftest.exp conftest.er2 >/dev/null; then
8537 lt_cv_prog_compiler_static_works=yes
8539 else
8540 lt_cv_prog_compiler_static_works=yes
8543 $RM -r conftest*
8544 LDFLAGS="$save_LDFLAGS"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8550 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8552 else
8553 lt_prog_compiler_static=
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_prog_compiler_c_o=no
8568 $RM -r conftest 2>/dev/null
8569 mkdir conftest
8570 cd conftest
8571 mkdir out
8572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574 lt_compiler_flag="-o out/conftest2.$ac_objext"
8575 # Insert the option either (1) after the last *FLAGS variable, or
8576 # (2) before a word containing "conftest.", or (3) at the end.
8577 # Note that $ac_compile itself does not contain backslashes and begins
8578 # with a dollar sign (not a hyphen), so the echo should work correctly.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>out/conftest.err)
8585 ac_status=$?
8586 cat out/conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589 then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings
8592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8595 lt_cv_prog_compiler_c_o=yes
8598 chmod u+w . 2>&5
8599 $RM conftest*
8600 # SGI C++ compiler will create directory out/ii_files/ for
8601 # template instantiation
8602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8603 $RM out/* && rmdir out
8604 cd ..
8605 $RM -r conftest
8606 $RM conftest*
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8619 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_prog_compiler_c_o=no
8623 $RM -r conftest 2>/dev/null
8624 mkdir conftest
8625 cd conftest
8626 mkdir out
8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629 lt_compiler_flag="-o out/conftest2.$ac_objext"
8630 # Insert the option either (1) after the last *FLAGS variable, or
8631 # (2) before a word containing "conftest.", or (3) at the end.
8632 # Note that $ac_compile itself does not contain backslashes and begins
8633 # with a dollar sign (not a hyphen), so the echo should work correctly.
8634 lt_compile=`echo "$ac_compile" | $SED \
8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637 -e 's:$: $lt_compiler_flag:'`
8638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639 (eval "$lt_compile" 2>out/conftest.err)
8640 ac_status=$?
8641 cat out/conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 then
8645 # The compiler can only warn and ignore the option if not recognized
8646 # So say no if there are warnings
8647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8650 lt_cv_prog_compiler_c_o=yes
8653 chmod u+w . 2>&5
8654 $RM conftest*
8655 # SGI C++ compiler will create directory out/ii_files/ for
8656 # template instantiation
8657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8658 $RM out/* && rmdir out
8659 cd ..
8660 $RM -r conftest
8661 $RM conftest*
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8670 hard_links="nottested"
8671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8672 # do not overwrite the value of need_locks provided by the user
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8674 $as_echo_n "checking if we can lock with hard links... " >&6; }
8675 hard_links=yes
8676 $RM conftest*
8677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 touch conftest.a
8679 ln conftest.a conftest.b 2>&5 || hard_links=no
8680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8682 $as_echo "$hard_links" >&6; }
8683 if test "$hard_links" = no; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8685 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8686 need_locks=warn
8688 else
8689 need_locks=no
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8700 runpath_var=
8701 allow_undefined_flag=
8702 always_export_symbols=no
8703 archive_cmds=
8704 archive_expsym_cmds=
8705 compiler_needs_object=no
8706 enable_shared_with_static_runtimes=no
8707 export_dynamic_flag_spec=
8708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8709 hardcode_automatic=no
8710 hardcode_direct=no
8711 hardcode_direct_absolute=no
8712 hardcode_libdir_flag_spec=
8713 hardcode_libdir_flag_spec_ld=
8714 hardcode_libdir_separator=
8715 hardcode_minus_L=no
8716 hardcode_shlibpath_var=unsupported
8717 inherit_rpath=no
8718 link_all_deplibs=unknown
8719 module_cmds=
8720 module_expsym_cmds=
8721 old_archive_from_new_cmds=
8722 old_archive_from_expsyms_cmds=
8723 thread_safe_flag_spec=
8724 whole_archive_flag_spec=
8725 # include_expsyms should be a list of space-separated symbols to be *always*
8726 # included in the symbol list
8727 include_expsyms=
8728 # exclude_expsyms can be an extended regexp of symbols to exclude
8729 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8730 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8731 # as well as any symbol that contains `d'.
8732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8734 # platforms (ab)use it in PIC code, but their linkers get confused if
8735 # the symbol is explicitly referenced. Since portable code cannot
8736 # rely on this symbol name, it's probably fine to never include it in
8737 # preloaded symbol tables.
8738 # Exclude shared library initialization/finalization symbols.
8739 extract_expsyms_cmds=
8741 case $host_os in
8742 cygwin* | mingw* | pw32* | cegcc*)
8743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8744 # When not using gcc, we currently assume that we are using
8745 # Microsoft Visual C++.
8746 if test "$GCC" != yes; then
8747 with_gnu_ld=no
8750 interix*)
8751 # we just hope/assume this is gcc and not c89 (= MSVC++)
8752 with_gnu_ld=yes
8754 openbsd*)
8755 with_gnu_ld=no
8757 esac
8759 ld_shlibs=yes
8761 # On some targets, GNU ld is compatible enough with the native linker
8762 # that we're better off using the native interface for both.
8763 lt_use_gnu_ld_interface=no
8764 if test "$with_gnu_ld" = yes; then
8765 case $host_os in
8766 aix*)
8767 # The AIX port of GNU ld has always aspired to compatibility
8768 # with the native linker. However, as the warning in the GNU ld
8769 # block says, versions before 2.19.5* couldn't really create working
8770 # shared libraries, regardless of the interface used.
8771 case `$LD -v 2>&1` in
8772 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8773 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8774 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8776 lt_use_gnu_ld_interface=yes
8778 esac
8781 lt_use_gnu_ld_interface=yes
8783 esac
8786 if test "$lt_use_gnu_ld_interface" = yes; then
8787 # If archive_cmds runs LD, not CC, wlarc should be empty
8788 wlarc='${wl}'
8790 # Set some defaults for GNU ld with shared library support. These
8791 # are reset later if shared libraries are not supported. Putting them
8792 # here allows them to be overridden if necessary.
8793 runpath_var=LD_RUN_PATH
8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795 export_dynamic_flag_spec='${wl}--export-dynamic'
8796 # ancient GNU ld didn't support --whole-archive et. al.
8797 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8798 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8799 else
8800 whole_archive_flag_spec=
8802 supports_anon_versioning=no
8803 case `$LD -v 2>&1` in
8804 *GNU\ gold*) supports_anon_versioning=yes ;;
8805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8808 *\ 2.11.*) ;; # other 2.11 versions
8809 *) supports_anon_versioning=yes ;;
8810 esac
8812 # See if GNU ld supports shared libraries.
8813 case $host_os in
8814 aix[3-9]*)
8815 # On AIX/PPC, the GNU linker is very broken
8816 if test "$host_cpu" != ia64; then
8817 ld_shlibs=no
8818 cat <<_LT_EOF 1>&2
8820 *** Warning: the GNU linker, at least up to release 2.19, is reported
8821 *** to be unable to reliably create shared libraries on AIX.
8822 *** Therefore, libtool is disabling shared libraries support. If you
8823 *** really care for shared libraries, you may want to install binutils
8824 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8825 *** You will then need to restart the configuration process.
8827 _LT_EOF
8831 amigaos*)
8832 case $host_cpu in
8833 powerpc)
8834 # see comment about AmigaOS4 .so support
8835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 archive_expsym_cmds=''
8838 m68k)
8839 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)'
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 hardcode_minus_L=yes
8843 esac
8846 beos*)
8847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8848 allow_undefined_flag=unsupported
8849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8850 # support --undefined. This deserves some investigation. FIXME
8851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 else
8853 ld_shlibs=no
8857 cygwin* | mingw* | pw32* | cegcc*)
8858 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8859 # as there is no search path for DLLs.
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 export_dynamic_flag_spec='${wl}--export-all-symbols'
8862 allow_undefined_flag=unsupported
8863 always_export_symbols=no
8864 enable_shared_with_static_runtimes=yes
8865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8867 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8869 # If the export-symbols file already is a .def file (1st line
8870 # is EXPORTS), use it as is; otherwise, prepend...
8871 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8872 cp $export_symbols $output_objdir/$soname.def;
8873 else
8874 echo EXPORTS > $output_objdir/$soname.def;
8875 cat $export_symbols >> $output_objdir/$soname.def;
8877 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8878 else
8879 ld_shlibs=no
8883 haiku*)
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 link_all_deplibs=yes
8888 interix[3-9]*)
8889 hardcode_direct=no
8890 hardcode_shlibpath_var=no
8891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8892 export_dynamic_flag_spec='${wl}-E'
8893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8894 # Instead, shared libraries are loaded at an image base (0x10000000 by
8895 # default) and relocated if they conflict, which is a slow very memory
8896 # consuming and fragmenting process. To avoid this, we pick a random,
8897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8898 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8900 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'
8903 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8904 tmp_diet=no
8905 if test "$host_os" = linux-dietlibc; then
8906 case $cc_basename in
8907 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8908 esac
8910 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8911 && test "$tmp_diet" = no
8912 then
8913 tmp_addflag=
8914 tmp_sharedflag='-shared'
8915 case $cc_basename,$host_cpu in
8916 pgcc*) # Portland Group C compiler
8917 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'
8918 tmp_addflag=' $pic_flag'
8920 pgf77* | pgf90* | pgf95* | pgfortran*)
8921 # Portland Group f77 and f90 compilers
8922 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'
8923 tmp_addflag=' $pic_flag -Mnomain' ;;
8924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8925 tmp_addflag=' -i_dynamic' ;;
8926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8927 tmp_addflag=' -i_dynamic -nofor_main' ;;
8928 ifc* | ifort*) # Intel Fortran compiler
8929 tmp_addflag=' -nofor_main' ;;
8930 lf95*) # Lahey Fortran 8.1
8931 whole_archive_flag_spec=
8932 tmp_sharedflag='--shared' ;;
8933 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8934 tmp_sharedflag='-qmkshrobj'
8935 tmp_addflag= ;;
8936 nvcc*) # Cuda Compiler Driver 2.2
8937 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'
8938 compiler_needs_object=yes
8940 esac
8941 case `$CC -V 2>&1 | sed 5q` in
8942 *Sun\ C*) # Sun C 5.9
8943 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'
8944 compiler_needs_object=yes
8945 tmp_sharedflag='-G' ;;
8946 *Sun\ F*) # Sun Fortran 8.3
8947 tmp_sharedflag='-G' ;;
8948 esac
8949 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8958 case $cc_basename in
8959 xlf* | bgf* | bgxlf* | mpixlf*)
8960 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8961 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8962 hardcode_libdir_flag_spec=
8963 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8964 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8965 if test "x$supports_anon_versioning" = xyes; then
8966 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8968 echo "local: *; };" >> $output_objdir/$libname.ver~
8969 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8972 esac
8973 else
8974 ld_shlibs=no
8978 netbsd*)
8979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8980 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8981 wlarc=
8982 else
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 solaris*)
8989 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8990 ld_shlibs=no
8991 cat <<_LT_EOF 1>&2
8993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8994 *** create shared libraries on Solaris systems. Therefore, libtool
8995 *** is disabling shared libraries support. We urge you to upgrade GNU
8996 *** binutils to release 2.9.1 or newer. Another option is to modify
8997 *** your PATH or compiler configuration so that the native linker is
8998 *** used, and then restart.
9000 _LT_EOF
9001 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 else
9005 ld_shlibs=no
9009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9010 case `$LD -v 2>&1` in
9011 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9012 ld_shlibs=no
9013 cat <<_LT_EOF 1>&2
9015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9016 *** reliably create shared libraries on SCO systems. Therefore, libtool
9017 *** is disabling shared libraries support. We urge you to upgrade GNU
9018 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9019 *** your PATH or compiler configuration so that the native linker is
9020 *** used, and then restart.
9022 _LT_EOF
9025 # For security reasons, it is highly recommended that you always
9026 # use absolute paths for naming shared libraries, and exclude the
9027 # DT_RUNPATH tag from executables and libraries. But doing so
9028 # requires that you compile everything twice, which is a pain.
9029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033 else
9034 ld_shlibs=no
9037 esac
9040 sunos4*)
9041 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9042 wlarc=
9043 hardcode_direct=yes
9044 hardcode_shlibpath_var=no
9048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9051 else
9052 ld_shlibs=no
9055 esac
9057 if test "$ld_shlibs" = no; then
9058 runpath_var=
9059 hardcode_libdir_flag_spec=
9060 export_dynamic_flag_spec=
9061 whole_archive_flag_spec=
9063 else
9064 # PORTME fill in a description of your system's linker (not GNU ld)
9065 case $host_os in
9066 aix3*)
9067 allow_undefined_flag=unsupported
9068 always_export_symbols=yes
9069 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'
9070 # Note: this linker hardcodes the directories in LIBPATH if there
9071 # are no directories specified by -L.
9072 hardcode_minus_L=yes
9073 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9074 # Neither direct hardcoding nor static linking is supported with a
9075 # broken collect2.
9076 hardcode_direct=unsupported
9080 aix[4-9]*)
9081 if test "$host_cpu" = ia64; then
9082 # On IA64, the linker does run time linking by default, so we don't
9083 # have to do anything special.
9084 aix_use_runtimelinking=no
9085 exp_sym_flag='-Bexport'
9086 no_entry_flag=""
9087 else
9088 # If we're using GNU nm, then we don't want the "-C" option.
9089 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9090 # Also, AIX nm treats weak defined symbols like other global
9091 # defined symbols, whereas GNU nm marks them as "W".
9092 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9093 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'
9094 else
9095 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'
9097 aix_use_runtimelinking=no
9099 # Test if we are trying to use run time linking or normal
9100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9101 # need to do runtime linking.
9102 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9103 for ld_flag in $LDFLAGS; do
9104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9105 aix_use_runtimelinking=yes
9106 break
9108 done
9110 esac
9112 exp_sym_flag='-bexport'
9113 no_entry_flag='-bnoentry'
9116 # When large executables or shared objects are built, AIX ld can
9117 # have problems creating the table of contents. If linking a library
9118 # or program results in "error TOC overflow" add -mminimal-toc to
9119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9122 archive_cmds=''
9123 hardcode_direct=yes
9124 hardcode_direct_absolute=yes
9125 hardcode_libdir_separator=':'
9126 link_all_deplibs=yes
9127 file_list_spec='${wl}-f,'
9129 if test "$GCC" = yes; then
9130 case $host_os in aix4.[012]|aix4.[012].*)
9131 # We only want to do this on AIX 4.2 and lower, the check
9132 # below for broken collect2 doesn't work under 4.3+
9133 collect2name=`${CC} -print-prog-name=collect2`
9134 if test -f "$collect2name" &&
9135 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9136 then
9137 # We have reworked collect2
9139 else
9140 # We have old collect2
9141 hardcode_direct=unsupported
9142 # It fails to find uninstalled libraries when the uninstalled
9143 # path is not listed in the libpath. Setting hardcode_minus_L
9144 # to unsupported forces relinking
9145 hardcode_minus_L=yes
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_libdir_separator=
9150 esac
9151 shared_flag='-shared'
9152 if test "$aix_use_runtimelinking" = yes; then
9153 shared_flag="$shared_flag "'${wl}-G'
9155 else
9156 # not using gcc
9157 if test "$host_cpu" = ia64; then
9158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9159 # chokes on -Wl,-G. The following line is correct:
9160 shared_flag='-G'
9161 else
9162 if test "$aix_use_runtimelinking" = yes; then
9163 shared_flag='${wl}-G'
9164 else
9165 shared_flag='${wl}-bM:SRE'
9170 export_dynamic_flag_spec='${wl}-bexpall'
9171 # It seems that -bexpall does not export symbols beginning with
9172 # underscore (_), so it is better to generate a list of symbols to export.
9173 always_export_symbols=yes
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # Warning - without using the other runtime loading flags (-brtl),
9176 # -berok will link without error, but may produce a broken library.
9177 allow_undefined_flag='-berok'
9178 # Determine the default libpath from the value encoded in an
9179 # empty executable.
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9184 main ()
9188 return 0;
9190 _ACEOF
9191 if ac_fn_c_try_link "$LINENO"; then :
9193 lt_aix_libpath_sed='
9194 /Import File Strings/,/^$/ {
9195 /^0/ {
9196 s/^0 *\(.*\)$/\1/
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 # Check for a 64-bit object if we didn't find anything.
9202 if test -z "$aix_libpath"; then
9203 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9206 rm -f core conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211 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"
9212 else
9213 if test "$host_cpu" = ia64; then
9214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9215 allow_undefined_flag="-z nodefs"
9216 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"
9217 else
9218 # Determine the default libpath from the value encoded in an
9219 # empty executable.
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9224 main ()
9228 return 0;
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"; then :
9233 lt_aix_libpath_sed='
9234 /Import File Strings/,/^$/ {
9235 /^0/ {
9236 s/^0 *\(.*\)$/\1/
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 # Check for a 64-bit object if we didn't find anything.
9242 if test -z "$aix_libpath"; then
9243 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9251 # Warning - without using the other run time loading flags,
9252 # -berok will link without error, but may produce a broken library.
9253 no_undefined_flag=' ${wl}-bernotok'
9254 allow_undefined_flag=' ${wl}-berok'
9255 if test "$with_gnu_ld" = yes; then
9256 # We only use this code for GNU lds that support --whole-archive.
9257 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9258 else
9259 # Exported symbols can be pulled into shared objects from archives
9260 whole_archive_flag_spec='$convenience'
9262 archive_cmds_need_lc=yes
9263 # This is similar to how AIX traditionally builds its shared libraries.
9264 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'
9269 amigaos*)
9270 case $host_cpu in
9271 powerpc)
9272 # see comment about AmigaOS4 .so support
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds=''
9276 m68k)
9277 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)'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9281 esac
9284 bsdi[45]*)
9285 export_dynamic_flag_spec=-rdynamic
9288 cygwin* | mingw* | pw32* | cegcc*)
9289 # When not using gcc, we currently assume that we are using
9290 # Microsoft Visual C++.
9291 # hardcode_libdir_flag_spec is actually meaningless, as there is
9292 # no search path for DLLs.
9293 hardcode_libdir_flag_spec=' '
9294 allow_undefined_flag=unsupported
9295 # Tell ltmain to make .lib files, not .a files.
9296 libext=lib
9297 # Tell ltmain to make .dll files, not .so files.
9298 shrext_cmds=".dll"
9299 # FIXME: Setting linknames here is a bad hack.
9300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9301 # The linker will automatically build a .lib file if we build a DLL.
9302 old_archive_from_new_cmds='true'
9303 # FIXME: Should let the user specify the lib program.
9304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9305 fix_srcfile_path='`cygpath -w "$srcfile"`'
9306 enable_shared_with_static_runtimes=yes
9309 darwin* | rhapsody*)
9312 archive_cmds_need_lc=no
9313 hardcode_direct=no
9314 hardcode_automatic=yes
9315 hardcode_shlibpath_var=unsupported
9316 if test "$lt_cv_ld_force_load" = "yes"; then
9317 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\"`'
9318 else
9319 whole_archive_flag_spec=''
9321 link_all_deplibs=yes
9322 allow_undefined_flag="$_lt_dar_allow_undefined"
9323 case $cc_basename in
9324 ifort*) _lt_dar_can_shared=yes ;;
9325 *) _lt_dar_can_shared=$GCC ;;
9326 esac
9327 if test "$_lt_dar_can_shared" = "yes"; then
9328 output_verbose_link_cmd=func_echo_all
9329 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9330 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9331 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}"
9332 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}"
9334 else
9335 ld_shlibs=no
9340 dgux*)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_shlibpath_var=no
9346 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9347 # support. Future versions do this automatically, but an explicit c++rt0.o
9348 # does not break anything, and helps significantly (at the cost of a little
9349 # extra space).
9350 freebsd2.2*)
9351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9357 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9358 freebsd2.*)
9359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes
9361 hardcode_minus_L=yes
9362 hardcode_shlibpath_var=no
9365 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9366 freebsd* | dragonfly*)
9367 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9368 hardcode_libdir_flag_spec='-R$libdir'
9369 hardcode_direct=yes
9370 hardcode_shlibpath_var=no
9373 hpux9*)
9374 if test "$GCC" = yes; then
9375 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'
9376 else
9377 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'
9379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9380 hardcode_libdir_separator=:
9381 hardcode_direct=yes
9383 # hardcode_minus_L: Not really in the search PATH,
9384 # but as the default location of the library.
9385 hardcode_minus_L=yes
9386 export_dynamic_flag_spec='${wl}-E'
9389 hpux10*)
9390 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9392 else
9393 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9395 if test "$with_gnu_ld" = no; then
9396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9397 hardcode_libdir_flag_spec_ld='+b $libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_direct=yes
9400 hardcode_direct_absolute=yes
9401 export_dynamic_flag_spec='${wl}-E'
9402 # hardcode_minus_L: Not really in the search PATH,
9403 # but as the default location of the library.
9404 hardcode_minus_L=yes
9408 hpux11*)
9409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9410 case $host_cpu in
9411 hppa*64*)
9412 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 ia64*)
9415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420 esac
9421 else
9422 case $host_cpu in
9423 hppa*64*)
9424 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 ia64*)
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 # Older versions of the 11.00 compiler do not understand -b yet
9432 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9434 $as_echo_n "checking if $CC understands -b... " >&6; }
9435 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 lt_cv_prog_compiler__b=no
9439 save_LDFLAGS="$LDFLAGS"
9440 LDFLAGS="$LDFLAGS -b"
9441 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9442 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9443 # The linker can only warn and ignore the option if not recognized
9444 # So say no if there are warnings
9445 if test -s conftest.err; then
9446 # Append any errors to the config.log.
9447 cat conftest.err 1>&5
9448 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9450 if diff conftest.exp conftest.er2 >/dev/null; then
9451 lt_cv_prog_compiler__b=yes
9453 else
9454 lt_cv_prog_compiler__b=yes
9457 $RM -r conftest*
9458 LDFLAGS="$save_LDFLAGS"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9462 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9464 if test x"$lt_cv_prog_compiler__b" = xyes; then
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471 esac
9473 if test "$with_gnu_ld" = no; then
9474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475 hardcode_libdir_separator=:
9477 case $host_cpu in
9478 hppa*64*|ia64*)
9479 hardcode_direct=no
9480 hardcode_shlibpath_var=no
9483 hardcode_direct=yes
9484 hardcode_direct_absolute=yes
9485 export_dynamic_flag_spec='${wl}-E'
9487 # hardcode_minus_L: Not really in the search PATH,
9488 # but as the default location of the library.
9489 hardcode_minus_L=yes
9491 esac
9495 irix5* | irix6* | nonstopux*)
9496 if test "$GCC" = yes; then
9497 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'
9498 # Try to use the -exported_symbol ld option, if it does not
9499 # work, assume that -exports_file does not work either and
9500 # implicitly export all symbols.
9501 save_LDFLAGS="$LDFLAGS"
9502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 int foo(void) {}
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 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'
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LDFLAGS="$save_LDFLAGS"
9514 else
9515 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'
9516 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'
9518 archive_cmds_need_lc='no'
9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520 hardcode_libdir_separator=:
9521 inherit_rpath=yes
9522 link_all_deplibs=yes
9525 netbsd*)
9526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9528 else
9529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9531 hardcode_libdir_flag_spec='-R$libdir'
9532 hardcode_direct=yes
9533 hardcode_shlibpath_var=no
9536 newsos6)
9537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_direct=yes
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 hardcode_shlibpath_var=no
9544 *nto* | *qnx*)
9547 openbsd*)
9548 if test -f /usr/libexec/ld.so; then
9549 hardcode_direct=yes
9550 hardcode_shlibpath_var=no
9551 hardcode_direct_absolute=yes
9552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9556 export_dynamic_flag_spec='${wl}-E'
9557 else
9558 case $host_os in
9559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec='-R$libdir'
9564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567 esac
9569 else
9570 ld_shlibs=no
9574 os2*)
9575 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_minus_L=yes
9577 allow_undefined_flag=unsupported
9578 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'
9579 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9582 osf3*)
9583 if test "$GCC" = yes; then
9584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9585 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'
9586 else
9587 allow_undefined_flag=' -expect_unresolved \*'
9588 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'
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9592 hardcode_libdir_separator=:
9595 osf4* | osf5*) # as osf3* with the addition of -msym flag
9596 if test "$GCC" = yes; then
9597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9598 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'
9599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600 else
9601 allow_undefined_flag=' -expect_unresolved \*'
9602 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'
9603 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~
9604 $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'
9606 # Both c and cxx compiler support -rpath directly
9607 hardcode_libdir_flag_spec='-rpath $libdir'
9609 archive_cmds_need_lc='no'
9610 hardcode_libdir_separator=:
9613 solaris*)
9614 no_undefined_flag=' -z defs'
9615 if test "$GCC" = yes; then
9616 wlarc='${wl}'
9617 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9619 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9620 else
9621 case `$CC -V 2>&1` in
9622 *"Compilers 5.0"*)
9623 wlarc=''
9624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9629 wlarc='${wl}'
9630 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9632 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9634 esac
9636 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_shlibpath_var=no
9638 case $host_os in
9639 solaris2.[0-5] | solaris2.[0-5].*) ;;
9641 # The compiler driver will combine and reorder linker options,
9642 # but understands `-z linker_flag'. GCC discards it without `$wl',
9643 # but is careful enough not to reorder.
9644 # Supported since Solaris 2.6 (maybe 2.5.1?)
9645 if test "$GCC" = yes; then
9646 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9647 else
9648 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9651 esac
9652 link_all_deplibs=yes
9655 sunos4*)
9656 if test "x$host_vendor" = xsequent; then
9657 # Use $CC to link under sequent, because it throws in some extra .o
9658 # files that make .init and .fini sections work.
9659 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9660 else
9661 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_libdir_flag_spec='-L$libdir'
9664 hardcode_direct=yes
9665 hardcode_minus_L=yes
9666 hardcode_shlibpath_var=no
9669 sysv4)
9670 case $host_vendor in
9671 sni)
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_direct=yes # is this really true???
9675 siemens)
9676 ## LD is ld it makes a PLAMLIB
9677 ## CC just makes a GrossModule.
9678 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9679 reload_cmds='$CC -r -o $output$reload_objs'
9680 hardcode_direct=no
9682 motorola)
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9686 esac
9687 runpath_var='LD_RUN_PATH'
9688 hardcode_shlibpath_var=no
9691 sysv4.3*)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_shlibpath_var=no
9694 export_dynamic_flag_spec='-Bexport'
9697 sysv4*MP*)
9698 if test -d /usr/nec; then
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_shlibpath_var=no
9701 runpath_var=LD_RUN_PATH
9702 hardcode_runpath_var=yes
9703 ld_shlibs=yes
9707 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9708 no_undefined_flag='${wl}-z,text'
9709 archive_cmds_need_lc=no
9710 hardcode_shlibpath_var=no
9711 runpath_var='LD_RUN_PATH'
9713 if test "$GCC" = yes; then
9714 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 else
9717 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 sysv5* | sco3.2v5* | sco5v6*)
9723 # Note: We can NOT use -z defs as we might desire, because we do not
9724 # link with -lc, and that would cause any symbols used from libc to
9725 # always be unresolved, which means just about no library would
9726 # ever link correctly. If we're not using GNU ld we use -z text
9727 # though, which does catch some bad symbols but isn't as heavy-handed
9728 # as -z defs.
9729 no_undefined_flag='${wl}-z,text'
9730 allow_undefined_flag='${wl}-z,nodefs'
9731 archive_cmds_need_lc=no
9732 hardcode_shlibpath_var=no
9733 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9734 hardcode_libdir_separator=':'
9735 link_all_deplibs=yes
9736 export_dynamic_flag_spec='${wl}-Bexport'
9737 runpath_var='LD_RUN_PATH'
9739 if test "$GCC" = yes; then
9740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 uts4*)
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_shlibpath_var=no
9755 ld_shlibs=no
9757 esac
9759 if test x$host_vendor = xsni; then
9760 case $host in
9761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9762 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 esac
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9769 $as_echo "$ld_shlibs" >&6; }
9770 test "$ld_shlibs" = no && can_build_shared=no
9772 with_gnu_ld=$with_gnu_ld
9789 # Do we need to explicitly link libc?
9791 case "x$archive_cmds_need_lc" in
9792 x|xyes)
9793 # Assume -lc should be added
9794 archive_cmds_need_lc=yes
9796 if test "$enable_shared" = yes && test "$GCC" = yes; then
9797 case $archive_cmds in
9798 *'~'*)
9799 # FIXME: we may have to deal with multi-command sequences.
9801 '$CC '*)
9802 # Test whether the compiler implicitly links with -lc since on some
9803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9804 # to ld, don't add -lc before -lgcc.
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9807 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 $RM conftest*
9811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9814 (eval $ac_compile) 2>&5
9815 ac_status=$?
9816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817 test $ac_status = 0; } 2>conftest.err; then
9818 soname=conftest
9819 lib=conftest
9820 libobjs=conftest.$ac_objext
9821 deplibs=
9822 wl=$lt_prog_compiler_wl
9823 pic_flag=$lt_prog_compiler_pic
9824 compiler_flags=-v
9825 linker_flags=-v
9826 verstring=
9827 output_objdir=.
9828 libname=conftest
9829 lt_save_allow_undefined_flag=$allow_undefined_flag
9830 allow_undefined_flag=
9831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9832 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9833 ac_status=$?
9834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9835 test $ac_status = 0; }
9836 then
9837 lt_cv_archive_cmds_need_lc=no
9838 else
9839 lt_cv_archive_cmds_need_lc=yes
9841 allow_undefined_flag=$lt_save_allow_undefined_flag
9842 else
9843 cat conftest.err 1>&5
9845 $RM conftest*
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9849 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9850 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9852 esac
9855 esac
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10014 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10016 if test "$GCC" = yes; then
10017 case $host_os in
10018 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10019 *) lt_awk_arg="/^libraries:/" ;;
10020 esac
10021 case $host_os in
10022 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10023 *) lt_sed_strip_eq="s,=/,/,g" ;;
10024 esac
10025 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10026 case $lt_search_path_spec in
10027 *\;*)
10028 # if the path contains ";" then we assume it to be the separator
10029 # otherwise default to the standard path separator (i.e. ":") - it is
10030 # assumed that no part of a normal pathname contains ";" but that should
10031 # okay in the real world where ";" in dirpaths is itself problematic.
10032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10037 esac
10038 # Ok, now we have the path, separated by spaces, we can step through it
10039 # and add multilib dir if necessary.
10040 lt_tmp_lt_search_path_spec=
10041 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10042 for lt_sys_path in $lt_search_path_spec; do
10043 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10045 else
10046 test -d "$lt_sys_path" && \
10047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10049 done
10050 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10051 BEGIN {RS=" "; FS="/|\n";} {
10052 lt_foo="";
10053 lt_count=0;
10054 for (lt_i = NF; lt_i > 0; lt_i--) {
10055 if ($lt_i != "" && $lt_i != ".") {
10056 if ($lt_i == "..") {
10057 lt_count++;
10058 } else {
10059 if (lt_count == 0) {
10060 lt_foo="/" $lt_i lt_foo;
10061 } else {
10062 lt_count--;
10067 if (lt_foo != "") { lt_freq[lt_foo]++; }
10068 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10070 # AWK program above erroneously prepends '/' to C:/dos/paths
10071 # for these hosts.
10072 case $host_os in
10073 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10074 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10075 esac
10076 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10077 else
10078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10080 library_names_spec=
10081 libname_spec='lib$name'
10082 soname_spec=
10083 shrext_cmds=".so"
10084 postinstall_cmds=
10085 postuninstall_cmds=
10086 finish_cmds=
10087 finish_eval=
10088 shlibpath_var=
10089 shlibpath_overrides_runpath=unknown
10090 version_type=none
10091 dynamic_linker="$host_os ld.so"
10092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10093 need_lib_prefix=unknown
10094 hardcode_into_libs=no
10096 # when you set need_version to no, make sure it does not cause -set_version
10097 # flags to be left without arguments
10098 need_version=unknown
10100 case $host_os in
10101 aix3*)
10102 version_type=linux
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10104 shlibpath_var=LIBPATH
10106 # AIX 3 has no versioning support, so we append a major version to the name.
10107 soname_spec='${libname}${release}${shared_ext}$major'
10110 aix[4-9]*)
10111 version_type=linux
10112 need_lib_prefix=no
10113 need_version=no
10114 hardcode_into_libs=yes
10115 if test "$host_cpu" = ia64; then
10116 # AIX 5 supports IA64
10117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10118 shlibpath_var=LD_LIBRARY_PATH
10119 else
10120 # With GCC up to 2.95.x, collect2 would create an import file
10121 # for dependence libraries. The import file would start with
10122 # the line `#! .'. This would cause the generated library to
10123 # depend on `.', always an invalid library. This was fixed in
10124 # development snapshots of GCC prior to 3.0.
10125 case $host_os in
10126 aix4 | aix4.[01] | aix4.[01].*)
10127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10128 echo ' yes '
10129 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10131 else
10132 can_build_shared=no
10135 esac
10136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10137 # soname into executable. Probably we can add versioning support to
10138 # collect2, so additional links can be useful in future.
10139 if test "$aix_use_runtimelinking" = yes; then
10140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10141 # instead of lib<name>.a to let people know that these are not
10142 # typical AIX shared libraries.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 else
10145 # We preserve .a as extension for shared libraries through AIX4.2
10146 # and later when we are not doing run time linking.
10147 library_names_spec='${libname}${release}.a $libname.a'
10148 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LIBPATH
10154 amigaos*)
10155 case $host_cpu in
10156 powerpc)
10157 # Since July 2007 AmigaOS4 officially supports .so libraries.
10158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 m68k)
10162 library_names_spec='$libname.ixlibrary $libname.a'
10163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10164 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'
10166 esac
10169 beos*)
10170 library_names_spec='${libname}${shared_ext}'
10171 dynamic_linker="$host_os ld.so"
10172 shlibpath_var=LIBRARY_PATH
10175 bsdi[45]*)
10176 version_type=linux
10177 need_version=no
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10184 # the default ld.so.conf also contains /usr/contrib/lib and
10185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10186 # libtool to hard-code these into programs
10189 cygwin* | mingw* | pw32* | cegcc*)
10190 version_type=windows
10191 shrext_cmds=".dll"
10192 need_version=no
10193 need_lib_prefix=no
10195 case $GCC,$host_os in
10196 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10197 library_names_spec='$libname.dll.a'
10198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10199 postinstall_cmds='base_file=`basename \${file}`~
10200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10201 dldir=$destdir/`dirname \$dlpath`~
10202 test -d \$dldir || mkdir -p \$dldir~
10203 $install_prog $dir/$dlname \$dldir/$dlname~
10204 chmod a+x \$dldir/$dlname~
10205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10209 dlpath=$dir/\$dldll~
10210 $RM \$dlpath'
10211 shlibpath_overrides_runpath=yes
10213 case $host_os in
10214 cygwin*)
10215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10220 mingw* | cegcc*)
10221 # MinGW DLLs use traditional 'lib' prefix
10222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 pw32*)
10225 # pw32 DLLs use 'pw' prefix rather than 'lib'
10226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 esac
10232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10234 esac
10235 dynamic_linker='Win32 ld.exe'
10236 # FIXME: first we should search . and the directory the executable is in
10237 shlibpath_var=PATH
10240 darwin* | rhapsody*)
10241 dynamic_linker="$host_os dyld"
10242 version_type=darwin
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10246 soname_spec='${libname}${release}${major}$shared_ext'
10247 shlibpath_overrides_runpath=yes
10248 shlibpath_var=DYLD_LIBRARY_PATH
10249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10255 dgux*)
10256 version_type=linux
10257 need_lib_prefix=no
10258 need_version=no
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 shlibpath_var=LD_LIBRARY_PATH
10264 freebsd* | dragonfly*)
10265 # DragonFly does not have aout. When/if they implement a new
10266 # versioning mechanism, adjust this.
10267 if test -x /usr/bin/objformat; then
10268 objformat=`/usr/bin/objformat`
10269 else
10270 case $host_os in
10271 freebsd[23].*) objformat=aout ;;
10272 *) objformat=elf ;;
10273 esac
10275 version_type=freebsd-$objformat
10276 case $version_type in
10277 freebsd-elf*)
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10279 need_version=no
10280 need_lib_prefix=no
10282 freebsd-*)
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10284 need_version=yes
10286 esac
10287 shlibpath_var=LD_LIBRARY_PATH
10288 case $host_os in
10289 freebsd2.*)
10290 shlibpath_overrides_runpath=yes
10292 freebsd3.[01]* | freebsdelf3.[01]*)
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10301 *) # from 4.6 on, and DragonFly
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10305 esac
10308 gnu*)
10309 version_type=linux
10310 need_lib_prefix=no
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 hardcode_into_libs=yes
10318 haiku*)
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
10322 dynamic_linker="$host_os runtime_loader"
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10327 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10328 hardcode_into_libs=yes
10331 hpux9* | hpux10* | hpux11*)
10332 # Give a soname corresponding to the major version so that dld.sl refuses to
10333 # link against other versions.
10334 version_type=sunos
10335 need_lib_prefix=no
10336 need_version=no
10337 case $host_cpu in
10338 ia64*)
10339 shrext_cmds='.so'
10340 hardcode_into_libs=yes
10341 dynamic_linker="$host_os dld.so"
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 if test "X$HPUX_IA64_MODE" = X32; then
10347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10348 else
10349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10353 hppa*64*)
10354 shrext_cmds='.sl'
10355 hardcode_into_libs=yes
10356 dynamic_linker="$host_os dld.sl"
10357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10365 shrext_cmds='.sl'
10366 dynamic_linker="$host_os dld.sl"
10367 shlibpath_var=SHLIB_PATH
10368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10372 esac
10373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10374 postinstall_cmds='chmod 555 $lib'
10375 # or fails outright, so override atomically:
10376 install_override_mode=555
10379 interix[3-9]*)
10380 version_type=linux
10381 need_lib_prefix=no
10382 need_version=no
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=no
10388 hardcode_into_libs=yes
10391 irix5* | irix6* | nonstopux*)
10392 case $host_os in
10393 nonstopux*) version_type=nonstopux ;;
10395 if test "$lt_cv_prog_gnu_ld" = yes; then
10396 version_type=linux
10397 else
10398 version_type=irix
10399 fi ;;
10400 esac
10401 need_lib_prefix=no
10402 need_version=no
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10405 case $host_os in
10406 irix5* | nonstopux*)
10407 libsuff= shlibsuff=
10410 case $LD in # libtool.m4 will add one of these switches to LD
10411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10412 libsuff= shlibsuff= libmagic=32-bit;;
10413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10414 libsuff=32 shlibsuff=N32 libmagic=N32;;
10415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10417 *) libsuff= shlibsuff= libmagic=never-match;;
10418 esac
10420 esac
10421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10422 shlibpath_overrides_runpath=no
10423 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10424 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10425 hardcode_into_libs=yes
10428 # No shared lib support for Linux oldld, aout, or coff.
10429 linux*oldld* | linux*aout* | linux*coff*)
10430 dynamic_linker=no
10433 # This must be Linux ELF.
10434 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=no
10444 # Some binutils ld are patched to set DT_RUNPATH
10445 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 lt_cv_shlibpath_overrides_runpath=no
10449 save_LDFLAGS=$LDFLAGS
10450 save_libdir=$libdir
10451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10457 main ()
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10466 lt_cv_shlibpath_overrides_runpath=yes
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LDFLAGS=$save_LDFLAGS
10472 libdir=$save_libdir
10476 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10478 # This implies no fast_install, which is unacceptable.
10479 # Some rework will be needed to allow for fast_install
10480 # before this can be enabled.
10481 hardcode_into_libs=yes
10483 # Append ld.so.conf contents to the search path
10484 if test -f /etc/ld.so.conf; then
10485 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' ' '`
10486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10489 # We used to test for /lib/ld.so.1 and disable shared libraries on
10490 # powerpc, because MkLinux only supported shared libraries with the
10491 # GNU dynamic linker. Since this was broken with cross compilers,
10492 # most powerpc-linux boxes support dynamic linking these days and
10493 # people can always --disable-shared, the test was removed, and we
10494 # assume the GNU/Linux dynamic linker is in use.
10495 dynamic_linker='GNU/Linux ld.so'
10498 netbsd*)
10499 version_type=sunos
10500 need_lib_prefix=no
10501 need_version=no
10502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10505 dynamic_linker='NetBSD (a.out) ld.so'
10506 else
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 dynamic_linker='NetBSD ld.elf_so'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 shlibpath_overrides_runpath=yes
10513 hardcode_into_libs=yes
10516 newsos6)
10517 version_type=linux
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=yes
10523 *nto* | *qnx*)
10524 version_type=qnx
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=no
10531 hardcode_into_libs=yes
10532 dynamic_linker='ldqnx.so'
10535 openbsd*)
10536 version_type=sunos
10537 sys_lib_dlsearch_path_spec="/usr/lib"
10538 need_lib_prefix=no
10539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10540 case $host_os in
10541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10542 *) need_version=no ;;
10543 esac
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10548 case $host_os in
10549 openbsd2.[89] | openbsd2.[89].*)
10550 shlibpath_overrides_runpath=no
10553 shlibpath_overrides_runpath=yes
10555 esac
10556 else
10557 shlibpath_overrides_runpath=yes
10561 os2*)
10562 libname_spec='$name'
10563 shrext_cmds=".dll"
10564 need_lib_prefix=no
10565 library_names_spec='$libname${shared_ext} $libname.a'
10566 dynamic_linker='OS/2 ld.exe'
10567 shlibpath_var=LIBPATH
10570 osf3* | osf4* | osf5*)
10571 version_type=osf
10572 need_lib_prefix=no
10573 need_version=no
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10581 rdos*)
10582 dynamic_linker=no
10585 solaris*)
10586 version_type=linux
10587 need_lib_prefix=no
10588 need_version=no
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10594 # ldd complains unless libraries are executable
10595 postinstall_cmds='chmod +x $lib'
10598 sunos4*)
10599 version_type=sunos
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 shlibpath_overrides_runpath=yes
10604 if test "$with_gnu_ld" = yes; then
10605 need_lib_prefix=no
10607 need_version=yes
10610 sysv4 | sysv4.3*)
10611 version_type=linux
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 case $host_vendor in
10616 sni)
10617 shlibpath_overrides_runpath=no
10618 need_lib_prefix=no
10619 runpath_var=LD_RUN_PATH
10621 siemens)
10622 need_lib_prefix=no
10624 motorola)
10625 need_lib_prefix=no
10626 need_version=no
10627 shlibpath_overrides_runpath=no
10628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10630 esac
10633 sysv4*MP*)
10634 if test -d /usr/nec ;then
10635 version_type=linux
10636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10637 soname_spec='$libname${shared_ext}.$major'
10638 shlibpath_var=LD_LIBRARY_PATH
10642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10643 version_type=freebsd-elf
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=yes
10650 hardcode_into_libs=yes
10651 if test "$with_gnu_ld" = yes; then
10652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10653 else
10654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10655 case $host_os in
10656 sco3.2v5*)
10657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10659 esac
10661 sys_lib_dlsearch_path_spec='/usr/lib'
10664 tpf*)
10665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10666 version_type=linux
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=no
10672 hardcode_into_libs=yes
10675 uts4*)
10676 version_type=linux
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10683 dynamic_linker=no
10685 esac
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10687 $as_echo "$dynamic_linker" >&6; }
10688 test "$dynamic_linker" = no && can_build_shared=no
10690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10691 if test "$GCC" = yes; then
10692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10795 hardcode_action=
10796 if test -n "$hardcode_libdir_flag_spec" ||
10797 test -n "$runpath_var" ||
10798 test "X$hardcode_automatic" = "Xyes" ; then
10800 # We can hardcode non-existent directories.
10801 if test "$hardcode_direct" != no &&
10802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10803 # have to relink, otherwise we might link with an installed library
10804 # when we should be linking with a yet-to-be-installed one
10805 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10806 test "$hardcode_minus_L" != no; then
10807 # Linking always hardcodes the temporary library directory.
10808 hardcode_action=relink
10809 else
10810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10811 hardcode_action=immediate
10813 else
10814 # We cannot hardcode anything, or else we can only hardcode existing
10815 # directories.
10816 hardcode_action=unsupported
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10819 $as_echo "$hardcode_action" >&6; }
10821 if test "$hardcode_action" = relink ||
10822 test "$inherit_rpath" = yes; then
10823 # Fast installation is not supported
10824 enable_fast_install=no
10825 elif test "$shlibpath_overrides_runpath" = yes ||
10826 test "$enable_shared" = no; then
10827 # Fast installation is not necessary
10828 enable_fast_install=needless
10836 if test "x$enable_dlopen" != xyes; then
10837 enable_dlopen=unknown
10838 enable_dlopen_self=unknown
10839 enable_dlopen_self_static=unknown
10840 else
10841 lt_cv_dlopen=no
10842 lt_cv_dlopen_libs=
10844 case $host_os in
10845 beos*)
10846 lt_cv_dlopen="load_add_on"
10847 lt_cv_dlopen_libs=
10848 lt_cv_dlopen_self=yes
10851 mingw* | pw32* | cegcc*)
10852 lt_cv_dlopen="LoadLibrary"
10853 lt_cv_dlopen_libs=
10856 cygwin*)
10857 lt_cv_dlopen="dlopen"
10858 lt_cv_dlopen_libs=
10861 darwin*)
10862 # if libdl is installed we need to link against it
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10864 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-ldl $LIBS"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char dlopen ();
10881 main ()
10883 return dlopen ();
10885 return 0;
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_dl_dlopen=yes
10890 else
10891 ac_cv_lib_dl_dlopen=no
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10898 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10899 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10901 else
10903 lt_cv_dlopen="dyld"
10904 lt_cv_dlopen_libs=
10905 lt_cv_dlopen_self=yes
10912 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10913 if test "x$ac_cv_func_shl_load" = x""yes; then :
10914 lt_cv_dlopen="shl_load"
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10917 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10918 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 ac_check_lib_save_LIBS=$LIBS
10922 LIBS="-ldld $LIBS"
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10926 /* Override any GCC internal prototype to avoid an error.
10927 Use char because int might match the return type of a GCC
10928 builtin and then its argument prototype would still apply. */
10929 #ifdef __cplusplus
10930 extern "C"
10931 #endif
10932 char shl_load ();
10934 main ()
10936 return shl_load ();
10938 return 0;
10940 _ACEOF
10941 if ac_fn_c_try_link "$LINENO"; then :
10942 ac_cv_lib_dld_shl_load=yes
10943 else
10944 ac_cv_lib_dld_shl_load=no
10946 rm -f core conftest.err conftest.$ac_objext \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10951 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10952 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10953 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10954 else
10955 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10956 if test "x$ac_cv_func_dlopen" = x""yes; then :
10957 lt_cv_dlopen="dlopen"
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10960 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-ldl $LIBS"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char dlopen ();
10977 main ()
10979 return dlopen ();
10981 return 0;
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 ac_cv_lib_dl_dlopen=yes
10986 else
10987 ac_cv_lib_dl_dlopen=no
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10994 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10995 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10999 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11000 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-lsvld $LIBS"
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char dlopen ();
11016 main ()
11018 return dlopen ();
11020 return 0;
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_svld_dlopen=yes
11025 else
11026 ac_cv_lib_svld_dlopen=no
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11034 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11038 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-ldld $LIBS"
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char dld_link ();
11055 main ()
11057 return dld_link ();
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 ac_cv_lib_dld_dld_link=yes
11064 else
11065 ac_cv_lib_dld_dld_link=no
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11072 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11073 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11074 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11093 esac
11095 if test "x$lt_cv_dlopen" != xno; then
11096 enable_dlopen=yes
11097 else
11098 enable_dlopen=no
11101 case $lt_cv_dlopen in
11102 dlopen)
11103 save_CPPFLAGS="$CPPFLAGS"
11104 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11106 save_LDFLAGS="$LDFLAGS"
11107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11109 save_LIBS="$LIBS"
11110 LIBS="$lt_cv_dlopen_libs $LIBS"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11113 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11114 if test "${lt_cv_dlopen_self+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 if test "$cross_compiling" = yes; then :
11118 lt_cv_dlopen_self=cross
11119 else
11120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11121 lt_status=$lt_dlunknown
11122 cat > conftest.$ac_ext <<_LT_EOF
11123 #line 11123 "configure"
11124 #include "confdefs.h"
11126 #if HAVE_DLFCN_H
11127 #include <dlfcn.h>
11128 #endif
11130 #include <stdio.h>
11132 #ifdef RTLD_GLOBAL
11133 # define LT_DLGLOBAL RTLD_GLOBAL
11134 #else
11135 # ifdef DL_GLOBAL
11136 # define LT_DLGLOBAL DL_GLOBAL
11137 # else
11138 # define LT_DLGLOBAL 0
11139 # endif
11140 #endif
11142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11143 find out it does not work in some platform. */
11144 #ifndef LT_DLLAZY_OR_NOW
11145 # ifdef RTLD_LAZY
11146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11147 # else
11148 # ifdef DL_LAZY
11149 # define LT_DLLAZY_OR_NOW DL_LAZY
11150 # else
11151 # ifdef RTLD_NOW
11152 # define LT_DLLAZY_OR_NOW RTLD_NOW
11153 # else
11154 # ifdef DL_NOW
11155 # define LT_DLLAZY_OR_NOW DL_NOW
11156 # else
11157 # define LT_DLLAZY_OR_NOW 0
11158 # endif
11159 # endif
11160 # endif
11161 # endif
11162 #endif
11164 /* When -fvisbility=hidden is used, assume the code has been annotated
11165 correspondingly for the symbols needed. */
11166 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11167 void fnord () __attribute__((visibility("default")));
11168 #endif
11170 void fnord () { int i=42; }
11171 int main ()
11173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174 int status = $lt_dlunknown;
11176 if (self)
11178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11179 else
11181 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11182 else puts (dlerror ());
11184 /* dlclose (self); */
11186 else
11187 puts (dlerror ());
11189 return status;
11191 _LT_EOF
11192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11193 (eval $ac_link) 2>&5
11194 ac_status=$?
11195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11196 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11197 (./conftest; exit; ) >&5 2>/dev/null
11198 lt_status=$?
11199 case x$lt_status in
11200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11203 esac
11204 else :
11205 # compilation failed
11206 lt_cv_dlopen_self=no
11209 rm -fr conftest*
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11214 $as_echo "$lt_cv_dlopen_self" >&6; }
11216 if test "x$lt_cv_dlopen_self" = xyes; then
11217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11219 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11220 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self_static=cross
11225 else
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<_LT_EOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11232 #if HAVE_DLFCN_H
11233 #include <dlfcn.h>
11234 #endif
11236 #include <stdio.h>
11238 #ifdef RTLD_GLOBAL
11239 # define LT_DLGLOBAL RTLD_GLOBAL
11240 #else
11241 # ifdef DL_GLOBAL
11242 # define LT_DLGLOBAL DL_GLOBAL
11243 # else
11244 # define LT_DLGLOBAL 0
11245 # endif
11246 #endif
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11251 # ifdef RTLD_LAZY
11252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # else
11254 # ifdef DL_LAZY
11255 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # else
11257 # ifdef RTLD_NOW
11258 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # else
11260 # ifdef DL_NOW
11261 # define LT_DLLAZY_OR_NOW DL_NOW
11262 # else
11263 # define LT_DLLAZY_OR_NOW 0
11264 # endif
11265 # endif
11266 # endif
11267 # endif
11268 #endif
11270 /* When -fvisbility=hidden is used, assume the code has been annotated
11271 correspondingly for the symbols needed. */
11272 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11273 void fnord () __attribute__((visibility("default")));
11274 #endif
11276 void fnord () { int i=42; }
11277 int main ()
11279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280 int status = $lt_dlunknown;
11282 if (self)
11284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11285 else
11287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11288 else puts (dlerror ());
11290 /* dlclose (self); */
11292 else
11293 puts (dlerror ());
11295 return status;
11297 _LT_EOF
11298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) >&5 2>/dev/null
11304 lt_status=$?
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11308 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11309 esac
11310 else :
11311 # compilation failed
11312 lt_cv_dlopen_self_static=no
11315 rm -fr conftest*
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11320 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11323 CPPFLAGS="$save_CPPFLAGS"
11324 LDFLAGS="$save_LDFLAGS"
11325 LIBS="$save_LIBS"
11327 esac
11329 case $lt_cv_dlopen_self in
11330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11331 *) enable_dlopen_self=unknown ;;
11332 esac
11334 case $lt_cv_dlopen_self_static in
11335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11336 *) enable_dlopen_self_static=unknown ;;
11337 esac
11356 striplib=
11357 old_striplib=
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11359 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11360 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 else
11366 # FIXME - insert some real tests, host_os isn't really good enough
11367 case $host_os in
11368 darwin*)
11369 if test -n "$STRIP" ; then
11370 striplib="$STRIP -x"
11371 old_striplib="$STRIP -S"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373 $as_echo "yes" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11383 esac
11397 # Report which library types will actually be built
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11399 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11401 $as_echo "$can_build_shared" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11404 $as_echo_n "checking whether to build shared libraries... " >&6; }
11405 test "$can_build_shared" = "no" && enable_shared=no
11407 # On AIX, shared libraries and static libraries use the same namespace, and
11408 # are all built from PIC.
11409 case $host_os in
11410 aix3*)
11411 test "$enable_shared" = yes && enable_static=no
11412 if test -n "$RANLIB"; then
11413 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11414 postinstall_cmds='$RANLIB $lib'
11418 aix[4-9]*)
11419 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11420 test "$enable_shared" = yes && enable_static=no
11423 esac
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11425 $as_echo "$enable_shared" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11428 $as_echo_n "checking whether to build static libraries... " >&6; }
11429 # Make sure either enable_shared or enable_static is yes.
11430 test "$enable_shared" = yes || enable_static=yes
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11432 $as_echo "$enable_static" >&6; }
11438 ac_ext=c
11439 ac_cpp='$CPP $CPPFLAGS'
11440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444 CC="$lt_save_CC"
11458 # Source file extension for Go test sources.
11459 ac_ext=go
11461 # Object file extension for compiled Go test sources.
11462 objext=o
11463 objext_GO=$objext
11465 # Code to be used in simple compile tests
11466 lt_simple_compile_test_code="package main; func main() { }"
11468 # Code to be used in simple link tests
11469 lt_simple_link_test_code='package main; func main() { }'
11471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11478 # If no C compiler was specified, use CC.
11479 LTCC=${LTCC-"$CC"}
11481 # If no C compiler flags were specified, use CFLAGS.
11482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11484 # Allow CC to be a program name with arguments.
11485 compiler=$CC
11488 # save warnings/boilerplate of simple test code
11489 ac_outfile=conftest.$ac_objext
11490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_compiler_boilerplate=`cat conftest.err`
11493 $RM conftest*
11495 ac_outfile=conftest.$ac_objext
11496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11498 _lt_linker_boilerplate=`cat conftest.err`
11499 $RM -r conftest*
11502 # Allow CC to be a program name with arguments.
11503 lt_save_CC="$CC"
11504 lt_save_GCC="$GCC"
11505 GCC=yes
11506 CC=${GOC-"gccgo"}
11507 compiler=$CC
11508 compiler_GO=$CC
11509 LD_GO="$LD"
11510 for cc_temp in $compiler""; do
11511 case $cc_temp in
11512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11514 \-*) ;;
11515 *) break;;
11516 esac
11517 done
11518 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11521 # Go did not exist at the time GCC didn't implicitly link libc in.
11522 archive_cmds_need_lc_GO=no
11524 old_archive_cmds_GO=$old_archive_cmds
11526 ## CAVEAT EMPTOR:
11527 ## There is no encapsulation within the following macros, do not change
11528 ## the running order or otherwise move them around unless you know exactly
11529 ## what you are doing...
11530 if test -n "$compiler"; then
11532 lt_prog_compiler_no_builtin_flag_GO=
11534 if test "$GCC" = yes; then
11535 case $cc_basename in
11536 nvcc*)
11537 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11539 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11540 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11544 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 lt_cv_prog_compiler_rtti_exceptions=no
11548 ac_outfile=conftest.$ac_objext
11549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11550 lt_compiler_flag="-fno-rtti -fno-exceptions"
11551 # Insert the option either (1) after the last *FLAGS variable, or
11552 # (2) before a word containing "conftest.", or (3) at the end.
11553 # Note that $ac_compile itself does not contain backslashes and begins
11554 # with a dollar sign (not a hyphen), so the echo should work correctly.
11555 # The option is referenced via a variable to avoid confusing sed.
11556 lt_compile=`echo "$ac_compile" | $SED \
11557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11559 -e 's:$: $lt_compiler_flag:'`
11560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11561 (eval "$lt_compile" 2>conftest.err)
11562 ac_status=$?
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 if (exit $ac_status) && test -s "$ac_outfile"; then
11566 # The compiler can only warn and ignore the option if not recognized
11567 # So say no if there are warnings other than the usual output.
11568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11571 lt_cv_prog_compiler_rtti_exceptions=yes
11574 $RM conftest*
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11578 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11581 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11582 else
11590 lt_prog_compiler_wl_GO=
11591 lt_prog_compiler_pic_GO=
11592 lt_prog_compiler_static_GO=
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11597 if test "$GCC" = yes; then
11598 lt_prog_compiler_wl_GO='-Wl,'
11599 lt_prog_compiler_static_GO='-static'
11601 case $host_os in
11602 aix*)
11603 # All AIX code is PIC.
11604 if test "$host_cpu" = ia64; then
11605 # AIX 5 now supports IA64 processor
11606 lt_prog_compiler_static_GO='-Bstatic'
11608 lt_prog_compiler_pic_GO='-fPIC'
11611 amigaos*)
11612 case $host_cpu in
11613 powerpc)
11614 # see comment about AmigaOS4 .so support
11615 lt_prog_compiler_pic_GO='-fPIC'
11617 m68k)
11618 # FIXME: we need at least 68020 code to build shared libraries, but
11619 # adding the `-m68020' flag to GCC prevents building anything better,
11620 # like `-m68040'.
11621 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11623 esac
11626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11627 # PIC is the default for these OSes.
11630 mingw* | cygwin* | pw32* | os2* | cegcc*)
11631 # This hack is so that the source file can tell whether it is being
11632 # built for inclusion in a dll (and should export symbols for example).
11633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11634 # (--disable-auto-import) libraries
11635 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11638 darwin* | rhapsody*)
11639 # PIC is the default on this platform
11640 # Common symbols not allowed in MH_DYLIB files
11641 lt_prog_compiler_pic_GO='-fno-common'
11644 haiku*)
11645 # PIC is the default for Haiku.
11646 # The "-static" flag exists, but is broken.
11647 lt_prog_compiler_static_GO=
11650 hpux*)
11651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11653 # sets the default TLS model and affects inlining.
11654 case $host_cpu in
11655 hppa*64*)
11656 # +Z the default
11659 lt_prog_compiler_pic_GO='-fPIC'
11661 esac
11664 interix[3-9]*)
11665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11666 # Instead, we relocate shared libraries at runtime.
11669 msdosdjgpp*)
11670 # Just because we use GCC doesn't mean we suddenly get shared libraries
11671 # on systems that don't support them.
11672 lt_prog_compiler_can_build_shared_GO=no
11673 enable_shared=no
11676 *nto* | *qnx*)
11677 # QNX uses GNU C++, but need to define -shared option too, otherwise
11678 # it will coredump.
11679 lt_prog_compiler_pic_GO='-fPIC -shared'
11682 sysv4*MP*)
11683 if test -d /usr/nec; then
11684 lt_prog_compiler_pic_GO=-Kconform_pic
11689 lt_prog_compiler_pic_GO='-fPIC'
11691 esac
11693 case $cc_basename in
11694 nvcc*) # Cuda Compiler Driver 2.2
11695 lt_prog_compiler_wl_GO='-Xlinker '
11696 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11698 esac
11699 else
11700 # PORTME Check for flag to pass linker flags through the system compiler.
11701 case $host_os in
11702 aix*)
11703 lt_prog_compiler_wl_GO='-Wl,'
11704 if test "$host_cpu" = ia64; then
11705 # AIX 5 now supports IA64 processor
11706 lt_prog_compiler_static_GO='-Bstatic'
11707 else
11708 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11712 mingw* | cygwin* | pw32* | os2* | cegcc*)
11713 # This hack is so that the source file can tell whether it is being
11714 # built for inclusion in a dll (and should export symbols for example).
11715 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11718 hpux9* | hpux10* | hpux11*)
11719 lt_prog_compiler_wl_GO='-Wl,'
11720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11721 # not for PA HP-UX.
11722 case $host_cpu in
11723 hppa*64*|ia64*)
11724 # +Z the default
11727 lt_prog_compiler_pic_GO='+Z'
11729 esac
11730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11731 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11734 irix5* | irix6* | nonstopux*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 # PIC (with -KPIC) is the default.
11737 lt_prog_compiler_static_GO='-non_shared'
11740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11741 case $cc_basename in
11742 # old Intel for x86_64 which still supported -KPIC.
11743 ecc*)
11744 lt_prog_compiler_wl_GO='-Wl,'
11745 lt_prog_compiler_pic_GO='-KPIC'
11746 lt_prog_compiler_static_GO='-static'
11748 # icc used to be incompatible with GCC.
11749 # ICC 10 doesn't accept -KPIC any more.
11750 icc* | ifort*)
11751 lt_prog_compiler_wl_GO='-Wl,'
11752 lt_prog_compiler_pic_GO='-fPIC'
11753 lt_prog_compiler_static_GO='-static'
11755 # Lahey Fortran 8.1.
11756 lf95*)
11757 lt_prog_compiler_wl_GO='-Wl,'
11758 lt_prog_compiler_pic_GO='--shared'
11759 lt_prog_compiler_static_GO='--static'
11761 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11762 # Portland Group compilers (*not* the Pentium gcc compiler,
11763 # which looks to be a dead project)
11764 lt_prog_compiler_wl_GO='-Wl,'
11765 lt_prog_compiler_pic_GO='-fpic'
11766 lt_prog_compiler_static_GO='-Bstatic'
11768 ccc*)
11769 lt_prog_compiler_wl_GO='-Wl,'
11770 # All Alpha code is PIC.
11771 lt_prog_compiler_static_GO='-non_shared'
11773 xl* | bgxl* | bgf* | mpixl*)
11774 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11775 lt_prog_compiler_wl_GO='-Wl,'
11776 lt_prog_compiler_pic_GO='-qpic'
11777 lt_prog_compiler_static_GO='-qstaticlink'
11780 case `$CC -V 2>&1 | sed 5q` in
11781 *Sun\ F* | *Sun*Fortran*)
11782 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11785 lt_prog_compiler_wl_GO=''
11787 *Sun\ C*)
11788 # Sun C 5.9
11789 lt_prog_compiler_pic_GO='-KPIC'
11790 lt_prog_compiler_static_GO='-Bstatic'
11791 lt_prog_compiler_wl_GO='-Wl,'
11793 esac
11795 esac
11798 newsos6)
11799 lt_prog_compiler_pic_GO='-KPIC'
11800 lt_prog_compiler_static_GO='-Bstatic'
11803 *nto* | *qnx*)
11804 # QNX uses GNU C++, but need to define -shared option too, otherwise
11805 # it will coredump.
11806 lt_prog_compiler_pic_GO='-fPIC -shared'
11809 osf3* | osf4* | osf5*)
11810 lt_prog_compiler_wl_GO='-Wl,'
11811 # All OSF/1 code is PIC.
11812 lt_prog_compiler_static_GO='-non_shared'
11815 rdos*)
11816 lt_prog_compiler_static_GO='-non_shared'
11819 solaris*)
11820 lt_prog_compiler_pic_GO='-KPIC'
11821 lt_prog_compiler_static_GO='-Bstatic'
11822 case $cc_basename in
11823 f77* | f90* | f95*)
11824 lt_prog_compiler_wl_GO='-Qoption ld ';;
11826 lt_prog_compiler_wl_GO='-Wl,';;
11827 esac
11830 sunos4*)
11831 lt_prog_compiler_wl_GO='-Qoption ld '
11832 lt_prog_compiler_pic_GO='-PIC'
11833 lt_prog_compiler_static_GO='-Bstatic'
11836 sysv4 | sysv4.2uw2* | sysv4.3*)
11837 lt_prog_compiler_wl_GO='-Wl,'
11838 lt_prog_compiler_pic_GO='-KPIC'
11839 lt_prog_compiler_static_GO='-Bstatic'
11842 sysv4*MP*)
11843 if test -d /usr/nec ;then
11844 lt_prog_compiler_pic_GO='-Kconform_pic'
11845 lt_prog_compiler_static_GO='-Bstatic'
11849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11850 lt_prog_compiler_wl_GO='-Wl,'
11851 lt_prog_compiler_pic_GO='-KPIC'
11852 lt_prog_compiler_static_GO='-Bstatic'
11855 unicos*)
11856 lt_prog_compiler_wl_GO='-Wl,'
11857 lt_prog_compiler_can_build_shared_GO=no
11860 uts4*)
11861 lt_prog_compiler_pic_GO='-pic'
11862 lt_prog_compiler_static_GO='-Bstatic'
11866 lt_prog_compiler_can_build_shared_GO=no
11868 esac
11871 case $host_os in
11872 # For platforms which do not support PIC, -DPIC is meaningless:
11873 *djgpp*)
11874 lt_prog_compiler_pic_GO=
11877 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11879 esac
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11881 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11886 # Check to make sure the PIC flag actually works.
11888 if test -n "$lt_prog_compiler_pic_GO"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11890 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11891 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 lt_cv_prog_compiler_pic_works_GO=no
11895 ac_outfile=conftest.$ac_objext
11896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11898 # Insert the option either (1) after the last *FLAGS variable, or
11899 # (2) before a word containing "conftest.", or (3) at the end.
11900 # Note that $ac_compile itself does not contain backslashes and begins
11901 # with a dollar sign (not a hyphen), so the echo should work correctly.
11902 # The option is referenced via a variable to avoid confusing sed.
11903 lt_compile=`echo "$ac_compile" | $SED \
11904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11906 -e 's:$: $lt_compiler_flag:'`
11907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11908 (eval "$lt_compile" 2>conftest.err)
11909 ac_status=$?
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 if (exit $ac_status) && test -s "$ac_outfile"; then
11913 # The compiler can only warn and ignore the option if not recognized
11914 # So say no if there are warnings other than the usual output.
11915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11918 lt_cv_prog_compiler_pic_works_GO=yes
11921 $RM conftest*
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11925 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11927 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11928 case $lt_prog_compiler_pic_GO in
11929 "" | " "*) ;;
11930 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11931 esac
11932 else
11933 lt_prog_compiler_pic_GO=
11934 lt_prog_compiler_can_build_shared_GO=no
11942 # Check to make sure the static flag actually works.
11944 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11946 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11947 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 lt_cv_prog_compiler_static_works_GO=no
11951 save_LDFLAGS="$LDFLAGS"
11952 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11953 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11954 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11955 # The linker can only warn and ignore the option if not recognized
11956 # So say no if there are warnings
11957 if test -s conftest.err; then
11958 # Append any errors to the config.log.
11959 cat conftest.err 1>&5
11960 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11962 if diff conftest.exp conftest.er2 >/dev/null; then
11963 lt_cv_prog_compiler_static_works_GO=yes
11965 else
11966 lt_cv_prog_compiler_static_works_GO=yes
11969 $RM -r conftest*
11970 LDFLAGS="$save_LDFLAGS"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11974 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11976 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11978 else
11979 lt_prog_compiler_static_GO=
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11986 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11987 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 lt_cv_prog_compiler_c_o_GO=no
11991 $RM -r conftest 2>/dev/null
11992 mkdir conftest
11993 cd conftest
11994 mkdir out
11995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11997 lt_compiler_flag="-o out/conftest2.$ac_objext"
11998 # Insert the option either (1) after the last *FLAGS variable, or
11999 # (2) before a word containing "conftest.", or (3) at the end.
12000 # Note that $ac_compile itself does not contain backslashes and begins
12001 # with a dollar sign (not a hyphen), so the echo should work correctly.
12002 lt_compile=`echo "$ac_compile" | $SED \
12003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12005 -e 's:$: $lt_compiler_flag:'`
12006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12007 (eval "$lt_compile" 2>out/conftest.err)
12008 ac_status=$?
12009 cat out/conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12012 then
12013 # The compiler can only warn and ignore the option if not recognized
12014 # So say no if there are warnings
12015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12016 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12018 lt_cv_prog_compiler_c_o_GO=yes
12021 chmod u+w . 2>&5
12022 $RM conftest*
12023 # SGI C++ compiler will create directory out/ii_files/ for
12024 # template instantiation
12025 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12026 $RM out/* && rmdir out
12027 cd ..
12028 $RM -r conftest
12029 $RM conftest*
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12033 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12039 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 lt_cv_prog_compiler_c_o_GO=no
12043 $RM -r conftest 2>/dev/null
12044 mkdir conftest
12045 cd conftest
12046 mkdir out
12047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12049 lt_compiler_flag="-o out/conftest2.$ac_objext"
12050 # Insert the option either (1) after the last *FLAGS variable, or
12051 # (2) before a word containing "conftest.", or (3) at the end.
12052 # Note that $ac_compile itself does not contain backslashes and begins
12053 # with a dollar sign (not a hyphen), so the echo should work correctly.
12054 lt_compile=`echo "$ac_compile" | $SED \
12055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12057 -e 's:$: $lt_compiler_flag:'`
12058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12059 (eval "$lt_compile" 2>out/conftest.err)
12060 ac_status=$?
12061 cat out/conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12064 then
12065 # The compiler can only warn and ignore the option if not recognized
12066 # So say no if there are warnings
12067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12070 lt_cv_prog_compiler_c_o_GO=yes
12073 chmod u+w . 2>&5
12074 $RM conftest*
12075 # SGI C++ compiler will create directory out/ii_files/ for
12076 # template instantiation
12077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12078 $RM out/* && rmdir out
12079 cd ..
12080 $RM -r conftest
12081 $RM conftest*
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12085 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12090 hard_links="nottested"
12091 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12092 # do not overwrite the value of need_locks provided by the user
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12094 $as_echo_n "checking if we can lock with hard links... " >&6; }
12095 hard_links=yes
12096 $RM conftest*
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 touch conftest.a
12099 ln conftest.a conftest.b 2>&5 || hard_links=no
12100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12102 $as_echo "$hard_links" >&6; }
12103 if test "$hard_links" = no; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12105 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12106 need_locks=warn
12108 else
12109 need_locks=no
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12115 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12117 runpath_var=
12118 allow_undefined_flag_GO=
12119 always_export_symbols_GO=no
12120 archive_cmds_GO=
12121 archive_expsym_cmds_GO=
12122 compiler_needs_object_GO=no
12123 enable_shared_with_static_runtimes_GO=no
12124 export_dynamic_flag_spec_GO=
12125 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12126 hardcode_automatic_GO=no
12127 hardcode_direct_GO=no
12128 hardcode_direct_absolute_GO=no
12129 hardcode_libdir_flag_spec_GO=
12130 hardcode_libdir_flag_spec_ld_GO=
12131 hardcode_libdir_separator_GO=
12132 hardcode_minus_L_GO=no
12133 hardcode_shlibpath_var_GO=unsupported
12134 inherit_rpath_GO=no
12135 link_all_deplibs_GO=unknown
12136 module_cmds_GO=
12137 module_expsym_cmds_GO=
12138 old_archive_from_new_cmds_GO=
12139 old_archive_from_expsyms_cmds_GO=
12140 thread_safe_flag_spec_GO=
12141 whole_archive_flag_spec_GO=
12142 # include_expsyms should be a list of space-separated symbols to be *always*
12143 # included in the symbol list
12144 include_expsyms_GO=
12145 # exclude_expsyms can be an extended regexp of symbols to exclude
12146 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12147 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12148 # as well as any symbol that contains `d'.
12149 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12150 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12151 # platforms (ab)use it in PIC code, but their linkers get confused if
12152 # the symbol is explicitly referenced. Since portable code cannot
12153 # rely on this symbol name, it's probably fine to never include it in
12154 # preloaded symbol tables.
12155 # Exclude shared library initialization/finalization symbols.
12156 extract_expsyms_cmds=
12158 case $host_os in
12159 cygwin* | mingw* | pw32* | cegcc*)
12160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12161 # When not using gcc, we currently assume that we are using
12162 # Microsoft Visual C++.
12163 if test "$GCC" != yes; then
12164 with_gnu_ld=no
12167 interix*)
12168 # we just hope/assume this is gcc and not c89 (= MSVC++)
12169 with_gnu_ld=yes
12171 openbsd*)
12172 with_gnu_ld=no
12174 esac
12176 ld_shlibs_GO=yes
12178 # On some targets, GNU ld is compatible enough with the native linker
12179 # that we're better off using the native interface for both.
12180 lt_use_gnu_ld_interface=no
12181 if test "$with_gnu_ld" = yes; then
12182 case $host_os in
12183 aix*)
12184 # The AIX port of GNU ld has always aspired to compatibility
12185 # with the native linker. However, as the warning in the GNU ld
12186 # block says, versions before 2.19.5* couldn't really create working
12187 # shared libraries, regardless of the interface used.
12188 case `$LD -v 2>&1` in
12189 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12190 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12191 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12193 lt_use_gnu_ld_interface=yes
12195 esac
12198 lt_use_gnu_ld_interface=yes
12200 esac
12203 if test "$lt_use_gnu_ld_interface" = yes; then
12204 # If archive_cmds runs LD, not CC, wlarc should be empty
12205 wlarc='${wl}'
12207 # Set some defaults for GNU ld with shared library support. These
12208 # are reset later if shared libraries are not supported. Putting them
12209 # here allows them to be overridden if necessary.
12210 runpath_var=LD_RUN_PATH
12211 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12212 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12213 # ancient GNU ld didn't support --whole-archive et. al.
12214 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12215 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12216 else
12217 whole_archive_flag_spec_GO=
12219 supports_anon_versioning=no
12220 case `$LD -v 2>&1` in
12221 *GNU\ gold*) supports_anon_versioning=yes ;;
12222 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12223 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12224 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12225 *\ 2.11.*) ;; # other 2.11 versions
12226 *) supports_anon_versioning=yes ;;
12227 esac
12229 # See if GNU ld supports shared libraries.
12230 case $host_os in
12231 aix[3-9]*)
12232 # On AIX/PPC, the GNU linker is very broken
12233 if test "$host_cpu" != ia64; then
12234 ld_shlibs_GO=no
12235 cat <<_LT_EOF 1>&2
12237 *** Warning: the GNU linker, at least up to release 2.19, is reported
12238 *** to be unable to reliably create shared libraries on AIX.
12239 *** Therefore, libtool is disabling shared libraries support. If you
12240 *** really care for shared libraries, you may want to install binutils
12241 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12242 *** You will then need to restart the configuration process.
12244 _LT_EOF
12248 amigaos*)
12249 case $host_cpu in
12250 powerpc)
12251 # see comment about AmigaOS4 .so support
12252 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 archive_expsym_cmds_GO=''
12255 m68k)
12256 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)'
12257 hardcode_libdir_flag_spec_GO='-L$libdir'
12258 hardcode_minus_L_GO=yes
12260 esac
12263 beos*)
12264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12265 allow_undefined_flag_GO=unsupported
12266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12267 # support --undefined. This deserves some investigation. FIXME
12268 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269 else
12270 ld_shlibs_GO=no
12274 cygwin* | mingw* | pw32* | cegcc*)
12275 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12276 # as there is no search path for DLLs.
12277 hardcode_libdir_flag_spec_GO='-L$libdir'
12278 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12279 allow_undefined_flag_GO=unsupported
12280 always_export_symbols_GO=no
12281 enable_shared_with_static_runtimes_GO=yes
12282 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12284 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12285 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12286 # If the export-symbols file already is a .def file (1st line
12287 # is EXPORTS), use it as is; otherwise, prepend...
12288 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12289 cp $export_symbols $output_objdir/$soname.def;
12290 else
12291 echo EXPORTS > $output_objdir/$soname.def;
12292 cat $export_symbols >> $output_objdir/$soname.def;
12294 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12295 else
12296 ld_shlibs_GO=no
12300 haiku*)
12301 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302 link_all_deplibs_GO=yes
12305 interix[3-9]*)
12306 hardcode_direct_GO=no
12307 hardcode_shlibpath_var_GO=no
12308 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12309 export_dynamic_flag_spec_GO='${wl}-E'
12310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12311 # Instead, shared libraries are loaded at an image base (0x10000000 by
12312 # default) and relocated if they conflict, which is a slow very memory
12313 # consuming and fragmenting process. To avoid this, we pick a random,
12314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12316 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'
12317 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'
12320 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12321 tmp_diet=no
12322 if test "$host_os" = linux-dietlibc; then
12323 case $cc_basename in
12324 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12325 esac
12327 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12328 && test "$tmp_diet" = no
12329 then
12330 tmp_addflag=
12331 tmp_sharedflag='-shared'
12332 case $cc_basename,$host_cpu in
12333 pgcc*) # Portland Group C compiler
12334 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'
12335 tmp_addflag=' $pic_flag'
12337 pgf77* | pgf90* | pgf95* | pgfortran*)
12338 # Portland Group f77 and f90 compilers
12339 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'
12340 tmp_addflag=' $pic_flag -Mnomain' ;;
12341 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12342 tmp_addflag=' -i_dynamic' ;;
12343 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12344 tmp_addflag=' -i_dynamic -nofor_main' ;;
12345 ifc* | ifort*) # Intel Fortran compiler
12346 tmp_addflag=' -nofor_main' ;;
12347 lf95*) # Lahey Fortran 8.1
12348 whole_archive_flag_spec_GO=
12349 tmp_sharedflag='--shared' ;;
12350 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12351 tmp_sharedflag='-qmkshrobj'
12352 tmp_addflag= ;;
12353 nvcc*) # Cuda Compiler Driver 2.2
12354 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'
12355 compiler_needs_object_GO=yes
12357 esac
12358 case `$CC -V 2>&1 | sed 5q` in
12359 *Sun\ C*) # Sun C 5.9
12360 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'
12361 compiler_needs_object_GO=yes
12362 tmp_sharedflag='-G' ;;
12363 *Sun\ F*) # Sun Fortran 8.3
12364 tmp_sharedflag='-G' ;;
12365 esac
12366 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368 if test "x$supports_anon_versioning" = xyes; then
12369 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12371 echo "local: *; };" >> $output_objdir/$libname.ver~
12372 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12375 case $cc_basename in
12376 xlf* | bgf* | bgxlf* | mpixlf*)
12377 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12378 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12379 hardcode_libdir_flag_spec_GO=
12380 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12381 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12382 if test "x$supports_anon_versioning" = xyes; then
12383 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12385 echo "local: *; };" >> $output_objdir/$libname.ver~
12386 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12389 esac
12390 else
12391 ld_shlibs_GO=no
12395 netbsd*)
12396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12397 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12398 wlarc=
12399 else
12400 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 solaris*)
12406 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12407 ld_shlibs_GO=no
12408 cat <<_LT_EOF 1>&2
12410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12411 *** create shared libraries on Solaris systems. Therefore, libtool
12412 *** is disabling shared libraries support. We urge you to upgrade GNU
12413 *** binutils to release 2.9.1 or newer. Another option is to modify
12414 *** your PATH or compiler configuration so that the native linker is
12415 *** used, and then restart.
12417 _LT_EOF
12418 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12419 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12421 else
12422 ld_shlibs_GO=no
12426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12427 case `$LD -v 2>&1` in
12428 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12429 ld_shlibs_GO=no
12430 cat <<_LT_EOF 1>&2
12432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12433 *** reliably create shared libraries on SCO systems. Therefore, libtool
12434 *** is disabling shared libraries support. We urge you to upgrade GNU
12435 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12436 *** your PATH or compiler configuration so that the native linker is
12437 *** used, and then restart.
12439 _LT_EOF
12442 # For security reasons, it is highly recommended that you always
12443 # use absolute paths for naming shared libraries, and exclude the
12444 # DT_RUNPATH tag from executables and libraries. But doing so
12445 # requires that you compile everything twice, which is a pain.
12446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12447 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12448 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12449 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12450 else
12451 ld_shlibs_GO=no
12454 esac
12457 sunos4*)
12458 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12459 wlarc=
12460 hardcode_direct_GO=yes
12461 hardcode_shlibpath_var_GO=no
12465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12466 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12467 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12468 else
12469 ld_shlibs_GO=no
12472 esac
12474 if test "$ld_shlibs_GO" = no; then
12475 runpath_var=
12476 hardcode_libdir_flag_spec_GO=
12477 export_dynamic_flag_spec_GO=
12478 whole_archive_flag_spec_GO=
12480 else
12481 # PORTME fill in a description of your system's linker (not GNU ld)
12482 case $host_os in
12483 aix3*)
12484 allow_undefined_flag_GO=unsupported
12485 always_export_symbols_GO=yes
12486 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'
12487 # Note: this linker hardcodes the directories in LIBPATH if there
12488 # are no directories specified by -L.
12489 hardcode_minus_L_GO=yes
12490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12491 # Neither direct hardcoding nor static linking is supported with a
12492 # broken collect2.
12493 hardcode_direct_GO=unsupported
12497 aix[4-9]*)
12498 if test "$host_cpu" = ia64; then
12499 # On IA64, the linker does run time linking by default, so we don't
12500 # have to do anything special.
12501 aix_use_runtimelinking=no
12502 exp_sym_flag='-Bexport'
12503 no_entry_flag=""
12504 else
12505 # If we're using GNU nm, then we don't want the "-C" option.
12506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12507 # Also, AIX nm treats weak defined symbols like other global
12508 # defined symbols, whereas GNU nm marks them as "W".
12509 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12510 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'
12511 else
12512 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'
12514 aix_use_runtimelinking=no
12516 # Test if we are trying to use run time linking or normal
12517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12518 # need to do runtime linking.
12519 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12520 for ld_flag in $LDFLAGS; do
12521 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12522 aix_use_runtimelinking=yes
12523 break
12525 done
12527 esac
12529 exp_sym_flag='-bexport'
12530 no_entry_flag='-bnoentry'
12533 # When large executables or shared objects are built, AIX ld can
12534 # have problems creating the table of contents. If linking a library
12535 # or program results in "error TOC overflow" add -mminimal-toc to
12536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12539 archive_cmds_GO=''
12540 hardcode_direct_GO=yes
12541 hardcode_direct_absolute_GO=yes
12542 hardcode_libdir_separator_GO=':'
12543 link_all_deplibs_GO=yes
12544 file_list_spec_GO='${wl}-f,'
12546 if test "$GCC" = yes; then
12547 case $host_os in aix4.[012]|aix4.[012].*)
12548 # We only want to do this on AIX 4.2 and lower, the check
12549 # below for broken collect2 doesn't work under 4.3+
12550 collect2name=`${CC} -print-prog-name=collect2`
12551 if test -f "$collect2name" &&
12552 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12553 then
12554 # We have reworked collect2
12556 else
12557 # We have old collect2
12558 hardcode_direct_GO=unsupported
12559 # It fails to find uninstalled libraries when the uninstalled
12560 # path is not listed in the libpath. Setting hardcode_minus_L
12561 # to unsupported forces relinking
12562 hardcode_minus_L_GO=yes
12563 hardcode_libdir_flag_spec_GO='-L$libdir'
12564 hardcode_libdir_separator_GO=
12567 esac
12568 shared_flag='-shared'
12569 if test "$aix_use_runtimelinking" = yes; then
12570 shared_flag="$shared_flag "'${wl}-G'
12572 else
12573 # not using gcc
12574 if test "$host_cpu" = ia64; then
12575 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12576 # chokes on -Wl,-G. The following line is correct:
12577 shared_flag='-G'
12578 else
12579 if test "$aix_use_runtimelinking" = yes; then
12580 shared_flag='${wl}-G'
12581 else
12582 shared_flag='${wl}-bM:SRE'
12587 export_dynamic_flag_spec_GO='${wl}-bexpall'
12588 # It seems that -bexpall does not export symbols beginning with
12589 # underscore (_), so it is better to generate a list of symbols to export.
12590 always_export_symbols_GO=yes
12591 if test "$aix_use_runtimelinking" = yes; then
12592 # Warning - without using the other runtime loading flags (-brtl),
12593 # -berok will link without error, but may produce a broken library.
12594 allow_undefined_flag_GO='-berok'
12595 # Determine the default libpath from the value encoded in an
12596 # empty executable.
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 main ()
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12610 lt_aix_libpath_sed='
12611 /Import File Strings/,/^$/ {
12612 /^0/ {
12613 s/^0 *\(.*\)$/\1/
12617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12618 # Check for a 64-bit object if we didn't find anything.
12619 if test -z "$aix_libpath"; then
12620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12627 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12628 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"
12629 else
12630 if test "$host_cpu" = ia64; then
12631 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12632 allow_undefined_flag_GO="-z nodefs"
12633 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"
12634 else
12635 # Determine the default libpath from the value encoded in an
12636 # empty executable.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12641 main ()
12645 return 0;
12647 _ACEOF
12648 if ac_fn_c_try_link "$LINENO"; then :
12650 lt_aix_libpath_sed='
12651 /Import File Strings/,/^$/ {
12652 /^0/ {
12653 s/^0 *\(.*\)$/\1/
12657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12658 # Check for a 64-bit object if we didn't find anything.
12659 if test -z "$aix_libpath"; then
12660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12663 rm -f core conftest.err conftest.$ac_objext \
12664 conftest$ac_exeext conftest.$ac_ext
12665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12667 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12668 # Warning - without using the other run time loading flags,
12669 # -berok will link without error, but may produce a broken library.
12670 no_undefined_flag_GO=' ${wl}-bernotok'
12671 allow_undefined_flag_GO=' ${wl}-berok'
12672 if test "$with_gnu_ld" = yes; then
12673 # We only use this code for GNU lds that support --whole-archive.
12674 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12675 else
12676 # Exported symbols can be pulled into shared objects from archives
12677 whole_archive_flag_spec_GO='$convenience'
12679 archive_cmds_need_lc_GO=yes
12680 # This is similar to how AIX traditionally builds its shared libraries.
12681 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'
12686 amigaos*)
12687 case $host_cpu in
12688 powerpc)
12689 # see comment about AmigaOS4 .so support
12690 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 archive_expsym_cmds_GO=''
12693 m68k)
12694 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)'
12695 hardcode_libdir_flag_spec_GO='-L$libdir'
12696 hardcode_minus_L_GO=yes
12698 esac
12701 bsdi[45]*)
12702 export_dynamic_flag_spec_GO=-rdynamic
12705 cygwin* | mingw* | pw32* | cegcc*)
12706 # When not using gcc, we currently assume that we are using
12707 # Microsoft Visual C++.
12708 # hardcode_libdir_flag_spec is actually meaningless, as there is
12709 # no search path for DLLs.
12710 hardcode_libdir_flag_spec_GO=' '
12711 allow_undefined_flag_GO=unsupported
12712 # Tell ltmain to make .lib files, not .a files.
12713 libext=lib
12714 # Tell ltmain to make .dll files, not .so files.
12715 shrext_cmds=".dll"
12716 # FIXME: Setting linknames here is a bad hack.
12717 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12718 # The linker will automatically build a .lib file if we build a DLL.
12719 old_archive_from_new_cmds_GO='true'
12720 # FIXME: Should let the user specify the lib program.
12721 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12722 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12723 enable_shared_with_static_runtimes_GO=yes
12726 darwin* | rhapsody*)
12729 archive_cmds_need_lc_GO=no
12730 hardcode_direct_GO=no
12731 hardcode_automatic_GO=yes
12732 hardcode_shlibpath_var_GO=unsupported
12733 if test "$lt_cv_ld_force_load" = "yes"; then
12734 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\"`'
12735 else
12736 whole_archive_flag_spec_GO=''
12738 link_all_deplibs_GO=yes
12739 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12740 case $cc_basename in
12741 ifort*) _lt_dar_can_shared=yes ;;
12742 *) _lt_dar_can_shared=$GCC ;;
12743 esac
12744 if test "$_lt_dar_can_shared" = "yes"; then
12745 output_verbose_link_cmd=func_echo_all
12746 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}"
12747 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12748 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}"
12749 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}"
12751 else
12752 ld_shlibs_GO=no
12757 dgux*)
12758 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12759 hardcode_libdir_flag_spec_GO='-L$libdir'
12760 hardcode_shlibpath_var_GO=no
12763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12764 # support. Future versions do this automatically, but an explicit c++rt0.o
12765 # does not break anything, and helps significantly (at the cost of a little
12766 # extra space).
12767 freebsd2.2*)
12768 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12769 hardcode_libdir_flag_spec_GO='-R$libdir'
12770 hardcode_direct_GO=yes
12771 hardcode_shlibpath_var_GO=no
12774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12775 freebsd2.*)
12776 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12777 hardcode_direct_GO=yes
12778 hardcode_minus_L_GO=yes
12779 hardcode_shlibpath_var_GO=no
12782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12783 freebsd* | dragonfly*)
12784 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12785 hardcode_libdir_flag_spec_GO='-R$libdir'
12786 hardcode_direct_GO=yes
12787 hardcode_shlibpath_var_GO=no
12790 hpux9*)
12791 if test "$GCC" = yes; then
12792 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'
12793 else
12794 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'
12796 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12797 hardcode_libdir_separator_GO=:
12798 hardcode_direct_GO=yes
12800 # hardcode_minus_L: Not really in the search PATH,
12801 # but as the default location of the library.
12802 hardcode_minus_L_GO=yes
12803 export_dynamic_flag_spec_GO='${wl}-E'
12806 hpux10*)
12807 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12808 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12809 else
12810 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12812 if test "$with_gnu_ld" = no; then
12813 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12814 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12815 hardcode_libdir_separator_GO=:
12816 hardcode_direct_GO=yes
12817 hardcode_direct_absolute_GO=yes
12818 export_dynamic_flag_spec_GO='${wl}-E'
12819 # hardcode_minus_L: Not really in the search PATH,
12820 # but as the default location of the library.
12821 hardcode_minus_L_GO=yes
12825 hpux11*)
12826 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12827 case $host_cpu in
12828 hppa*64*)
12829 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12831 ia64*)
12832 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12835 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12837 esac
12838 else
12839 case $host_cpu in
12840 hppa*64*)
12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12843 ia64*)
12844 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12847 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12849 esac
12851 if test "$with_gnu_ld" = no; then
12852 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12853 hardcode_libdir_separator_GO=:
12855 case $host_cpu in
12856 hppa*64*|ia64*)
12857 hardcode_direct_GO=no
12858 hardcode_shlibpath_var_GO=no
12861 hardcode_direct_GO=yes
12862 hardcode_direct_absolute_GO=yes
12863 export_dynamic_flag_spec_GO='${wl}-E'
12865 # hardcode_minus_L: Not really in the search PATH,
12866 # but as the default location of the library.
12867 hardcode_minus_L_GO=yes
12869 esac
12873 irix5* | irix6* | nonstopux*)
12874 if test "$GCC" = yes; then
12875 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'
12876 # Try to use the -exported_symbol ld option, if it does not
12877 # work, assume that -exports_file does not work either and
12878 # implicitly export all symbols.
12879 save_LDFLAGS="$LDFLAGS"
12880 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883 int foo(void) {}
12884 _ACEOF
12885 if ac_fn_c_try_link "$LINENO"; then :
12886 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'
12889 rm -f core conftest.err conftest.$ac_objext \
12890 conftest$ac_exeext conftest.$ac_ext
12891 LDFLAGS="$save_LDFLAGS"
12892 else
12893 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'
12894 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'
12896 archive_cmds_need_lc_GO='no'
12897 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12898 hardcode_libdir_separator_GO=:
12899 inherit_rpath_GO=yes
12900 link_all_deplibs_GO=yes
12903 netbsd*)
12904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12905 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12906 else
12907 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12909 hardcode_libdir_flag_spec_GO='-R$libdir'
12910 hardcode_direct_GO=yes
12911 hardcode_shlibpath_var_GO=no
12914 newsos6)
12915 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_direct_GO=yes
12917 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12918 hardcode_libdir_separator_GO=:
12919 hardcode_shlibpath_var_GO=no
12922 *nto* | *qnx*)
12925 openbsd*)
12926 if test -f /usr/libexec/ld.so; then
12927 hardcode_direct_GO=yes
12928 hardcode_shlibpath_var_GO=no
12929 hardcode_direct_absolute_GO=yes
12930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12931 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12933 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12934 export_dynamic_flag_spec_GO='${wl}-E'
12935 else
12936 case $host_os in
12937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12938 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12939 hardcode_libdir_flag_spec_GO='-R$libdir'
12942 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12943 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12945 esac
12947 else
12948 ld_shlibs_GO=no
12952 os2*)
12953 hardcode_libdir_flag_spec_GO='-L$libdir'
12954 hardcode_minus_L_GO=yes
12955 allow_undefined_flag_GO=unsupported
12956 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'
12957 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12960 osf3*)
12961 if test "$GCC" = yes; then
12962 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12963 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'
12964 else
12965 allow_undefined_flag_GO=' -expect_unresolved \*'
12966 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'
12968 archive_cmds_need_lc_GO='no'
12969 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator_GO=:
12973 osf4* | osf5*) # as osf3* with the addition of -msym flag
12974 if test "$GCC" = yes; then
12975 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12976 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'
12977 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12978 else
12979 allow_undefined_flag_GO=' -expect_unresolved \*'
12980 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'
12981 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~
12982 $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'
12984 # Both c and cxx compiler support -rpath directly
12985 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12987 archive_cmds_need_lc_GO='no'
12988 hardcode_libdir_separator_GO=:
12991 solaris*)
12992 no_undefined_flag_GO=' -z defs'
12993 if test "$GCC" = yes; then
12994 wlarc='${wl}'
12995 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12996 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12998 else
12999 case `$CC -V 2>&1` in
13000 *"Compilers 5.0"*)
13001 wlarc=''
13002 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13003 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13007 wlarc='${wl}'
13008 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13009 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13012 esac
13014 hardcode_libdir_flag_spec_GO='-R$libdir'
13015 hardcode_shlibpath_var_GO=no
13016 case $host_os in
13017 solaris2.[0-5] | solaris2.[0-5].*) ;;
13019 # The compiler driver will combine and reorder linker options,
13020 # but understands `-z linker_flag'. GCC discards it without `$wl',
13021 # but is careful enough not to reorder.
13022 # Supported since Solaris 2.6 (maybe 2.5.1?)
13023 if test "$GCC" = yes; then
13024 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13025 else
13026 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13029 esac
13030 link_all_deplibs_GO=yes
13033 sunos4*)
13034 if test "x$host_vendor" = xsequent; then
13035 # Use $CC to link under sequent, because it throws in some extra .o
13036 # files that make .init and .fini sections work.
13037 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13038 else
13039 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13041 hardcode_libdir_flag_spec_GO='-L$libdir'
13042 hardcode_direct_GO=yes
13043 hardcode_minus_L_GO=yes
13044 hardcode_shlibpath_var_GO=no
13047 sysv4)
13048 case $host_vendor in
13049 sni)
13050 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13051 hardcode_direct_GO=yes # is this really true???
13053 siemens)
13054 ## LD is ld it makes a PLAMLIB
13055 ## CC just makes a GrossModule.
13056 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13057 reload_cmds_GO='$CC -r -o $output$reload_objs'
13058 hardcode_direct_GO=no
13060 motorola)
13061 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13062 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13064 esac
13065 runpath_var='LD_RUN_PATH'
13066 hardcode_shlibpath_var_GO=no
13069 sysv4.3*)
13070 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13071 hardcode_shlibpath_var_GO=no
13072 export_dynamic_flag_spec_GO='-Bexport'
13075 sysv4*MP*)
13076 if test -d /usr/nec; then
13077 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13078 hardcode_shlibpath_var_GO=no
13079 runpath_var=LD_RUN_PATH
13080 hardcode_runpath_var=yes
13081 ld_shlibs_GO=yes
13085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13086 no_undefined_flag_GO='${wl}-z,text'
13087 archive_cmds_need_lc_GO=no
13088 hardcode_shlibpath_var_GO=no
13089 runpath_var='LD_RUN_PATH'
13091 if test "$GCC" = yes; then
13092 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 else
13095 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 sysv5* | sco3.2v5* | sco5v6*)
13101 # Note: We can NOT use -z defs as we might desire, because we do not
13102 # link with -lc, and that would cause any symbols used from libc to
13103 # always be unresolved, which means just about no library would
13104 # ever link correctly. If we're not using GNU ld we use -z text
13105 # though, which does catch some bad symbols but isn't as heavy-handed
13106 # as -z defs.
13107 no_undefined_flag_GO='${wl}-z,text'
13108 allow_undefined_flag_GO='${wl}-z,nodefs'
13109 archive_cmds_need_lc_GO=no
13110 hardcode_shlibpath_var_GO=no
13111 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13112 hardcode_libdir_separator_GO=':'
13113 link_all_deplibs_GO=yes
13114 export_dynamic_flag_spec_GO='${wl}-Bexport'
13115 runpath_var='LD_RUN_PATH'
13117 if test "$GCC" = yes; then
13118 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 else
13121 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 uts4*)
13127 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128 hardcode_libdir_flag_spec_GO='-L$libdir'
13129 hardcode_shlibpath_var_GO=no
13133 ld_shlibs_GO=no
13135 esac
13137 if test x$host_vendor = xsni; then
13138 case $host in
13139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13140 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13142 esac
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13147 $as_echo "$ld_shlibs_GO" >&6; }
13148 test "$ld_shlibs_GO" = no && can_build_shared=no
13150 with_gnu_ld_GO=$with_gnu_ld
13158 # Do we need to explicitly link libc?
13160 case "x$archive_cmds_need_lc_GO" in
13161 x|xyes)
13162 # Assume -lc should be added
13163 archive_cmds_need_lc_GO=yes
13165 if test "$enable_shared" = yes && test "$GCC" = yes; then
13166 case $archive_cmds_GO in
13167 *'~'*)
13168 # FIXME: we may have to deal with multi-command sequences.
13170 '$CC '*)
13171 # Test whether the compiler implicitly links with -lc since on some
13172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13173 # to ld, don't add -lc before -lgcc.
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13175 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13176 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 $RM conftest*
13180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13183 (eval $ac_compile) 2>&5
13184 ac_status=$?
13185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13186 test $ac_status = 0; } 2>conftest.err; then
13187 soname=conftest
13188 lib=conftest
13189 libobjs=conftest.$ac_objext
13190 deplibs=
13191 wl=$lt_prog_compiler_wl_GO
13192 pic_flag=$lt_prog_compiler_pic_GO
13193 compiler_flags=-v
13194 linker_flags=-v
13195 verstring=
13196 output_objdir=.
13197 libname=conftest
13198 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13199 allow_undefined_flag_GO=
13200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13201 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13202 ac_status=$?
13203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204 test $ac_status = 0; }
13205 then
13206 lt_cv_archive_cmds_need_lc_GO=no
13207 else
13208 lt_cv_archive_cmds_need_lc_GO=yes
13210 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13211 else
13212 cat conftest.err 1>&5
13214 $RM conftest*
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13218 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13219 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13221 esac
13224 esac
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13290 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13291 hardcode_action_GO=
13292 if test -n "$hardcode_libdir_flag_spec_GO" ||
13293 test -n "$runpath_var_GO" ||
13294 test "X$hardcode_automatic_GO" = "Xyes" ; then
13296 # We can hardcode non-existent directories.
13297 if test "$hardcode_direct_GO" != no &&
13298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13299 # have to relink, otherwise we might link with an installed library
13300 # when we should be linking with a yet-to-be-installed one
13301 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13302 test "$hardcode_minus_L_GO" != no; then
13303 # Linking always hardcodes the temporary library directory.
13304 hardcode_action_GO=relink
13305 else
13306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13307 hardcode_action_GO=immediate
13309 else
13310 # We cannot hardcode anything, or else we can only hardcode existing
13311 # directories.
13312 hardcode_action_GO=unsupported
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13315 $as_echo "$hardcode_action_GO" >&6; }
13317 if test "$hardcode_action_GO" = relink ||
13318 test "$inherit_rpath_GO" = yes; then
13319 # Fast installation is not supported
13320 enable_fast_install=no
13321 elif test "$shlibpath_overrides_runpath" = yes ||
13322 test "$enable_shared" = no; then
13323 # Fast installation is not necessary
13324 enable_fast_install=needless
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342 GCC=$lt_save_GCC
13343 CC="$lt_save_CC"
13348 ac_config_commands="$ac_config_commands libtool"
13353 # Only expand once:
13359 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13362 for ac_prog in gawk mawk nawk awk
13364 # Extract the first word of "$ac_prog", so it can be a program name with args.
13365 set dummy $ac_prog; ac_word=$2
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367 $as_echo_n "checking for $ac_word... " >&6; }
13368 if test "${ac_cv_prog_AWK+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13370 else
13371 if test -n "$AWK"; then
13372 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13373 else
13374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375 for as_dir in $PATH
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 for ac_exec_ext in '' $ac_executable_extensions; do
13380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13381 ac_cv_prog_AWK="$ac_prog"
13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 break 2
13385 done
13386 done
13387 IFS=$as_save_IFS
13391 AWK=$ac_cv_prog_AWK
13392 if test -n "$AWK"; then
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13394 $as_echo "$AWK" >&6; }
13395 else
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397 $as_echo "no" >&6; }
13401 test -n "$AWK" && break
13402 done
13405 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13408 # Check whether --enable-werror was given.
13409 if test "${enable_werror+set}" = set; then :
13410 enableval=$enable_werror;
13413 if test "x$enable_werror" != "xno"; then
13414 WERROR="-Werror"
13418 glibgo_toolexecdir=no
13419 glibgo_toolexeclibdir=no
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13422 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13423 # Check whether --enable-version-specific-runtime-libs was given.
13424 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13425 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13426 yes) version_specific_libs=yes ;;
13427 no) version_specific_libs=no ;;
13428 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13429 esac
13430 else
13431 version_specific_libs=no
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13435 $as_echo "$version_specific_libs" >&6; }
13437 # Version-specific runtime libs processing.
13438 if test $version_specific_libs = yes; then
13439 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13440 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13443 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13444 # Install a library built with a cross compiler in tooldir, not libdir.
13445 if test -n "$with_cross_host" &&
13446 test x"$with_cross_host" != x"no"; then
13447 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13448 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13449 else
13450 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13451 nover_glibgo_toolexeclibdir='${libdir}'
13453 multi_os_directory=`$GOC -print-multi-os-directory`
13454 case $multi_os_directory in
13455 .) ;; # Avoid trailing /.
13456 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13457 esac
13459 if test x"$glibgo_toolexecdir" = x"no"; then
13460 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13461 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13468 # See if the user wants to configure without libffi. Some
13469 # architectures don't support it. FIXME: We should set a default
13470 # based on the host.
13472 # Check whether --with-libffi was given.
13473 if test "${with_libffi+set}" = set; then :
13474 withval=$with_libffi; :
13475 else
13476 with_libffi=${with_libffi_default-yes}
13480 LIBFFI=
13481 LIBFFIINCS=
13482 if test "$with_libffi" != no; then
13484 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13486 LIBFFI=../libffi/libffi_convenience.la
13487 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13492 # See if the user wants to configure without libatomic. This is useful if we are
13493 # on an architecture for which libgo does not need an atomic support library and
13494 # libatomic does not support our C compiler.
13496 # Check whether --with-libatomic was given.
13497 if test "${with_libatomic+set}" = set; then :
13498 withval=$with_libatomic; :
13499 else
13500 with_libatomic=${with_libatomic_default-yes}
13504 LIBATOMIC=
13505 if test "$with_libatomic" != no; then
13506 LIBATOMIC=../libatomic/libatomic_convenience.la
13510 # Used to tell GNU make to include a file without telling automake to
13511 # include it.
13512 go_include="-include"
13515 is_darwin=no
13516 is_freebsd=no
13517 is_irix=no
13518 is_linux=no
13519 is_netbsd=no
13520 is_openbsd=no
13521 is_dragonfly=no
13522 is_rtems=no
13523 is_solaris=no
13524 GOOS=unknown
13525 case ${host} in
13526 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13527 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13528 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13529 *-*-linux*) is_linux=yes; GOOS=linux ;;
13530 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13531 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13532 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13533 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13534 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13535 esac
13536 if test $is_darwin = yes; then
13537 LIBGO_IS_DARWIN_TRUE=
13538 LIBGO_IS_DARWIN_FALSE='#'
13539 else
13540 LIBGO_IS_DARWIN_TRUE='#'
13541 LIBGO_IS_DARWIN_FALSE=
13544 if test $is_freebsd = yes; then
13545 LIBGO_IS_FREEBSD_TRUE=
13546 LIBGO_IS_FREEBSD_FALSE='#'
13547 else
13548 LIBGO_IS_FREEBSD_TRUE='#'
13549 LIBGO_IS_FREEBSD_FALSE=
13552 if test $is_irix = yes; then
13553 LIBGO_IS_IRIX_TRUE=
13554 LIBGO_IS_IRIX_FALSE='#'
13555 else
13556 LIBGO_IS_IRIX_TRUE='#'
13557 LIBGO_IS_IRIX_FALSE=
13560 if test $is_linux = yes; then
13561 LIBGO_IS_LINUX_TRUE=
13562 LIBGO_IS_LINUX_FALSE='#'
13563 else
13564 LIBGO_IS_LINUX_TRUE='#'
13565 LIBGO_IS_LINUX_FALSE=
13568 if test $is_netbsd = yes; then
13569 LIBGO_IS_NETBSD_TRUE=
13570 LIBGO_IS_NETBSD_FALSE='#'
13571 else
13572 LIBGO_IS_NETBSD_TRUE='#'
13573 LIBGO_IS_NETBSD_FALSE=
13576 if test $is_openbsd = yes; then
13577 LIBGO_IS_OPENBSD_TRUE=
13578 LIBGO_IS_OPENBSD_FALSE='#'
13579 else
13580 LIBGO_IS_OPENBSD_TRUE='#'
13581 LIBGO_IS_OPENBSD_FALSE=
13584 if test $is_dragonfly = yes; then
13585 LIBGO_IS_DRAGONFLY_TRUE=
13586 LIBGO_IS_DRAGONFLY_FALSE='#'
13587 else
13588 LIBGO_IS_DRAGONFLY_TRUE='#'
13589 LIBGO_IS_DRAGONFLY_FALSE=
13592 if test $is_rtems = yes; then
13593 LIBGO_IS_RTEMS_TRUE=
13594 LIBGO_IS_RTEMS_FALSE='#'
13595 else
13596 LIBGO_IS_RTEMS_TRUE='#'
13597 LIBGO_IS_RTEMS_FALSE=
13600 if test $is_solaris = yes; then
13601 LIBGO_IS_SOLARIS_TRUE=
13602 LIBGO_IS_SOLARIS_FALSE='#'
13603 else
13604 LIBGO_IS_SOLARIS_TRUE='#'
13605 LIBGO_IS_SOLARIS_FALSE=
13610 USE_DEJAGNU=no
13611 case ${host} in
13612 *-*-rtems*) USE_DEJAGNU=yes ;;
13613 ${build}) ;;
13614 *) USE_DEJAGNU=yes ;;
13615 esac
13618 is_386=no
13619 is_alpha=no
13620 is_arm=no
13621 is_arm64=no
13622 is_m68k=no
13623 mips_abi=unknown
13624 is_ppc=no
13625 is_ppc64=no
13626 is_ppc64le=no
13627 is_s390=no
13628 is_s390x=no
13629 is_sparc=no
13630 is_sparc64=no
13631 is_x86_64=no
13632 GOARCH=unknown
13633 case ${host} in
13634 alpha*-*-*)
13635 is_alpha=yes
13636 GOARCH=alpha
13638 aarch64-*-*)
13639 is_arm64=yes
13640 GOARCH=arm64
13642 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13643 is_arm=yes
13644 GOARCH=arm
13646 i[34567]86-*-* | x86_64-*-*)
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 #ifdef __x86_64__
13651 #error 64-bit
13652 #endif
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 is_386=yes
13656 else
13657 is_x86_64=yes
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 if test "$is_386" = "yes"; then
13661 GOARCH=386
13662 else
13663 GOARCH=amd64
13666 m68k*-*-*)
13667 is_m68k=yes
13668 GOARCH=m68k
13670 mips*-*-*)
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 #if _MIPS_SIM != _ABIO32
13675 #error not o32
13676 #endif
13677 _ACEOF
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679 mips_abi="o32"
13680 else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 #if _MIPS_SIM != _ABIN32
13685 #error not n32
13686 #endif
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689 mips_abi="n32"
13690 else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 #if _MIPS_SIM != _ABI64
13695 #error not n64
13696 #endif
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 mips_abi="n64"
13700 else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #if _MIPS_SIM != _ABIO64
13705 #error not o64
13706 #endif
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 mips_abi="o64"
13710 else
13711 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13712 mips_abi="n32"
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 case "$mips_abi" in
13722 "o32") GOARCH=mipso32 ;;
13723 "n32") GOARCH=mipsn32 ;;
13724 "n64") GOARCH=mipsn64 ;;
13725 "o64") GOARCH=mipso64 ;;
13726 esac
13728 rs6000*-*-* | powerpc*-*-*)
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 #ifdef _ARCH_PPC64
13733 #error 64-bit
13734 #endif
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737 is_ppc=yes
13738 else
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13743 #error 64be
13744 #endif
13745 _ACEOF
13746 if ac_fn_c_try_compile "$LINENO"; then :
13747 is_ppc64le=yes
13748 else
13749 is_ppc64=yes
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 if test "$is_ppc" = "yes"; then
13755 GOARCH=ppc
13756 elif test "$is_ppc64" = "yes"; then
13757 GOARCH=ppc64
13758 else
13759 GOARCH=ppc64le
13762 s390*-*-*)
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13766 #if defined(__s390x__)
13767 #error 64-bit
13768 #endif
13769 _ACEOF
13770 if ac_fn_c_try_compile "$LINENO"; then :
13771 is_s390=yes
13772 else
13773 is_s390x=yes
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 if test "$is_s390" = "yes"; then
13777 GOARCH=s390
13778 else
13779 GOARCH=s390x
13782 sparc*-*-*)
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 #if defined(__sparcv9) || defined(__arch64__)
13787 #error 64-bit
13788 #endif
13789 _ACEOF
13790 if ac_fn_c_try_compile "$LINENO"; then :
13791 is_sparc=yes
13792 else
13793 is_sparc64=yes
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 if test "$is_sparc" = "yes"; then
13797 GOARCH=sparc
13798 else
13799 GOARCH=sparc64
13802 esac
13803 if test $is_386 = yes; then
13804 LIBGO_IS_386_TRUE=
13805 LIBGO_IS_386_FALSE='#'
13806 else
13807 LIBGO_IS_386_TRUE='#'
13808 LIBGO_IS_386_FALSE=
13811 if test $is_alpha = yes; then
13812 LIBGO_IS_ALPHA_TRUE=
13813 LIBGO_IS_ALPHA_FALSE='#'
13814 else
13815 LIBGO_IS_ALPHA_TRUE='#'
13816 LIBGO_IS_ALPHA_FALSE=
13819 if test $is_arm = yes; then
13820 LIBGO_IS_ARM_TRUE=
13821 LIBGO_IS_ARM_FALSE='#'
13822 else
13823 LIBGO_IS_ARM_TRUE='#'
13824 LIBGO_IS_ARM_FALSE=
13827 if test $is_arm64 = yes; then
13828 LIBGO_IS_ARM64_TRUE=
13829 LIBGO_IS_ARM64_FALSE='#'
13830 else
13831 LIBGO_IS_ARM64_TRUE='#'
13832 LIBGO_IS_ARM64_FALSE=
13835 if test $is_m68k = yes; then
13836 LIBGO_IS_M68K_TRUE=
13837 LIBGO_IS_M68K_FALSE='#'
13838 else
13839 LIBGO_IS_M68K_TRUE='#'
13840 LIBGO_IS_M68K_FALSE=
13843 if test $mips_abi != unknown; then
13844 LIBGO_IS_MIPS_TRUE=
13845 LIBGO_IS_MIPS_FALSE='#'
13846 else
13847 LIBGO_IS_MIPS_TRUE='#'
13848 LIBGO_IS_MIPS_FALSE=
13851 if test $mips_abi = o32; then
13852 LIBGO_IS_MIPSO32_TRUE=
13853 LIBGO_IS_MIPSO32_FALSE='#'
13854 else
13855 LIBGO_IS_MIPSO32_TRUE='#'
13856 LIBGO_IS_MIPSO32_FALSE=
13859 if test $mips_abi = n32; then
13860 LIBGO_IS_MIPSN32_TRUE=
13861 LIBGO_IS_MIPSN32_FALSE='#'
13862 else
13863 LIBGO_IS_MIPSN32_TRUE='#'
13864 LIBGO_IS_MIPSN32_FALSE=
13867 if test $mips_abi = n64; then
13868 LIBGO_IS_MIPSN64_TRUE=
13869 LIBGO_IS_MIPSN64_FALSE='#'
13870 else
13871 LIBGO_IS_MIPSN64_TRUE='#'
13872 LIBGO_IS_MIPSN64_FALSE=
13875 if test $mips_abi = o64; then
13876 LIBGO_IS_MIPSO64_TRUE=
13877 LIBGO_IS_MIPSO64_FALSE='#'
13878 else
13879 LIBGO_IS_MIPSO64_TRUE='#'
13880 LIBGO_IS_MIPSO64_FALSE=
13883 if test $is_ppc = yes; then
13884 LIBGO_IS_PPC_TRUE=
13885 LIBGO_IS_PPC_FALSE='#'
13886 else
13887 LIBGO_IS_PPC_TRUE='#'
13888 LIBGO_IS_PPC_FALSE=
13891 if test $is_ppc64 = yes; then
13892 LIBGO_IS_PPC64_TRUE=
13893 LIBGO_IS_PPC64_FALSE='#'
13894 else
13895 LIBGO_IS_PPC64_TRUE='#'
13896 LIBGO_IS_PPC64_FALSE=
13899 if test $is_ppc64le = yes; then
13900 LIBGO_IS_PPC64LE_TRUE=
13901 LIBGO_IS_PPC64LE_FALSE='#'
13902 else
13903 LIBGO_IS_PPC64LE_TRUE='#'
13904 LIBGO_IS_PPC64LE_FALSE=
13907 if test $is_s390 = yes; then
13908 LIBGO_IS_S390_TRUE=
13909 LIBGO_IS_S390_FALSE='#'
13910 else
13911 LIBGO_IS_S390_TRUE='#'
13912 LIBGO_IS_S390_FALSE=
13915 if test $is_s390x = yes; then
13916 LIBGO_IS_S390X_TRUE=
13917 LIBGO_IS_S390X_FALSE='#'
13918 else
13919 LIBGO_IS_S390X_TRUE='#'
13920 LIBGO_IS_S390X_FALSE=
13923 if test $is_sparc = yes; then
13924 LIBGO_IS_SPARC_TRUE=
13925 LIBGO_IS_SPARC_FALSE='#'
13926 else
13927 LIBGO_IS_SPARC_TRUE='#'
13928 LIBGO_IS_SPARC_FALSE=
13931 if test $is_sparc64 = yes; then
13932 LIBGO_IS_SPARC64_TRUE=
13933 LIBGO_IS_SPARC64_FALSE='#'
13934 else
13935 LIBGO_IS_SPARC64_TRUE='#'
13936 LIBGO_IS_SPARC64_FALSE=
13939 if test $is_x86_64 = yes; then
13940 LIBGO_IS_X86_64_TRUE=
13941 LIBGO_IS_X86_64_FALSE='#'
13942 else
13943 LIBGO_IS_X86_64_TRUE='#'
13944 LIBGO_IS_X86_64_FALSE=
13949 GO_LIBCALL_OS_FILE=
13950 GO_LIBCALL_OS_ARCH_FILE=
13951 GO_SYSCALL_OS_FILE=
13952 GO_SYSCALL_OS_ARCH_FILE=
13953 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13954 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13956 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13957 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13959 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13960 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13962 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13963 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13970 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13971 case "$target" in
13972 mips-sgi-irix6.5*)
13973 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13974 # msghdr in <sys/socket.h>.
13975 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13977 *-*-solaris2.1[01])
13978 # Solaris 10+ needs this so struct msghdr gets the msg_control
13979 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13980 # above doesn't work with C99.
13981 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13983 esac
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13987 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13988 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 CFLAGS_hold=$CFLAGS
13992 CFLAGS="$CFLAGS -fsplit-stack"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995 int i;
13996 _ACEOF
13997 if ac_fn_c_try_compile "$LINENO"; then :
13998 libgo_cv_c_split_stack_supported=yes
13999 else
14000 libgo_cv_c_split_stack_supported=no
14002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 CFLAGS=$CFLAGS_hold
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14006 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14007 if test "$libgo_cv_c_split_stack_supported" = yes; then
14008 SPLIT_STACK=-fsplit-stack
14010 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14012 else
14013 SPLIT_STACK=
14016 if test "$libgo_cv_c_split_stack_supported" = yes; then
14017 USING_SPLIT_STACK_TRUE=
14018 USING_SPLIT_STACK_FALSE='#'
14019 else
14020 USING_SPLIT_STACK_TRUE='#'
14021 USING_SPLIT_STACK_FALSE=
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14026 $as_echo_n "checking whether linker supports split stack... " >&6; }
14027 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 libgo_cv_c_linker_supports_split_stack=no
14031 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14032 libgo_cv_c_linker_supports_split_stack=yes
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14036 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14037 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14039 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14044 $as_echo_n "checking whether compiler is llgo... " >&6; }
14045 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 libgo_cv_c_goc_is_llgo=no
14049 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14050 libgo_cv_c_goc_is_llgo=yes
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14054 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14055 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14056 GOC_IS_LLGO_TRUE=
14057 GOC_IS_LLGO_FALSE='#'
14058 else
14059 GOC_IS_LLGO_TRUE='#'
14060 GOC_IS_LLGO_FALSE=
14064 MATH_LIBS=
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14066 $as_echo_n "checking for sqrt in -lm... " >&6; }
14067 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lm $LIBS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char sqrt ();
14083 main ()
14085 return sqrt ();
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 ac_cv_lib_m_sqrt=yes
14092 else
14093 ac_cv_lib_m_sqrt=no
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14100 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14101 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14102 MATH_LIBS=-lm
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14108 $as_echo_n "checking for socket libraries... " >&6; }
14109 if test "${libgo_cv_lib_sockets+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 libgo_cv_lib_sockets=
14113 libgo_check_both=no
14114 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14115 if test "x$ac_cv_func_connect" = x""yes; then :
14116 libgo_check_socket=no
14117 else
14118 libgo_check_socket=yes
14121 if test "$libgo_check_socket" = "yes"; then
14122 unset ac_cv_func_connect
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14124 $as_echo_n "checking for main in -lsocket... " >&6; }
14125 if test "${ac_cv_lib_socket_main+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lsocket $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14135 main ()
14137 return main ();
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 ac_cv_lib_socket_main=yes
14144 else
14145 ac_cv_lib_socket_main=no
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14152 $as_echo "$ac_cv_lib_socket_main" >&6; }
14153 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14154 libgo_cv_lib_sockets="-lsocket"
14155 else
14156 libgo_check_both=yes
14160 if test "$libgo_check_both" = "yes"; then
14161 libgo_old_libs=$LIBS
14162 LIBS="$LIBS -lsocket -lnsl"
14163 unset ac_cv_func_accept
14164 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14165 if test "x$ac_cv_func_accept" = x""yes; then :
14166 libgo_check_nsl=no
14167 libgo_cv_lib_sockets="-lsocket -lnsl"
14170 unset ac_cv_func_accept
14171 LIBS=$libgo_old_libs
14173 unset ac_cv_func_gethostbyname
14174 libgo_old_libs="$LIBS"
14175 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14176 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14180 $as_echo_n "checking for main in -lnsl... " >&6; }
14181 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 ac_check_lib_save_LIBS=$LIBS
14185 LIBS="-lnsl $LIBS"
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14191 main ()
14193 return main ();
14195 return 0;
14197 _ACEOF
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 ac_cv_lib_nsl_main=yes
14200 else
14201 ac_cv_lib_nsl_main=no
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14208 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14209 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14210 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14215 unset ac_cv_func_gethostbyname
14216 LIBS=$libgo_old_libs
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14220 $as_echo "$libgo_cv_lib_sockets" >&6; }
14221 NET_LIBS="$libgo_cv_lib_sockets"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14225 $as_echo_n "checking whether -pthread is supported... " >&6; }
14226 if test "${libgo_cv_lib_pthread+set}" = set; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 CFLAGS_hold=$CFLAGS
14230 CFLAGS="$CFLAGS -pthread"
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 int i;
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 libgo_cv_lib_pthread=yes
14237 else
14238 libgo_cv_lib_pthread=no
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 CFLAGS=$CFLAGS_hold
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14244 $as_echo "$libgo_cv_lib_pthread" >&6; }
14245 PTHREAD_CFLAGS=
14246 if test "$libgo_cv_lib_pthread" = yes; then
14247 PTHREAD_CFLAGS=-pthread
14251 PTHREAD_LIBS=
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14253 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14254 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 ac_check_lib_save_LIBS=$LIBS
14258 LIBS="-lpthread $LIBS"
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14262 /* Override any GCC internal prototype to avoid an error.
14263 Use char because int might match the return type of a GCC
14264 builtin and then its argument prototype would still apply. */
14265 #ifdef __cplusplus
14266 extern "C"
14267 #endif
14268 char pthread_create ();
14270 main ()
14272 return pthread_create ();
14274 return 0;
14276 _ACEOF
14277 if ac_fn_c_try_link "$LINENO"; then :
14278 ac_cv_lib_pthread_pthread_create=yes
14279 else
14280 ac_cv_lib_pthread_pthread_create=no
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 LIBS=$ac_check_lib_save_LIBS
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14287 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14288 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14289 PTHREAD_LIBS=-lpthread
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14295 $as_echo_n "checking for library containing sched_yield... " >&6; }
14296 if test "${ac_cv_search_sched_yield+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 ac_func_search_save_LIBS=$LIBS
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char sched_yield ();
14311 main ()
14313 return sched_yield ();
14315 return 0;
14317 _ACEOF
14318 for ac_lib in '' rt; do
14319 if test -z "$ac_lib"; then
14320 ac_res="none required"
14321 else
14322 ac_res=-l$ac_lib
14323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 ac_cv_search_sched_yield=$ac_res
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext
14330 if test "${ac_cv_search_sched_yield+set}" = set; then :
14331 break
14333 done
14334 if test "${ac_cv_search_sched_yield+set}" = set; then :
14336 else
14337 ac_cv_search_sched_yield=no
14339 rm conftest.$ac_ext
14340 LIBS=$ac_func_search_save_LIBS
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14343 $as_echo "$ac_cv_search_sched_yield" >&6; }
14344 ac_res=$ac_cv_search_sched_yield
14345 if test "$ac_res" != no; then :
14346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14351 $as_echo_n "checking for library containing nanosleep... " >&6; }
14352 if test "${ac_cv_search_nanosleep+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 ac_func_search_save_LIBS=$LIBS
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char nanosleep ();
14367 main ()
14369 return nanosleep ();
14371 return 0;
14373 _ACEOF
14374 for ac_lib in '' rt; do
14375 if test -z "$ac_lib"; then
14376 ac_res="none required"
14377 else
14378 ac_res=-l$ac_lib
14379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14381 if ac_fn_c_try_link "$LINENO"; then :
14382 ac_cv_search_nanosleep=$ac_res
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext
14386 if test "${ac_cv_search_nanosleep+set}" = set; then :
14387 break
14389 done
14390 if test "${ac_cv_search_nanosleep+set}" = set; then :
14392 else
14393 ac_cv_search_nanosleep=no
14395 rm conftest.$ac_ext
14396 LIBS=$ac_func_search_save_LIBS
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14399 $as_echo "$ac_cv_search_nanosleep" >&6; }
14400 ac_res=$ac_cv_search_nanosleep
14401 if test "$ac_res" != no; then :
14402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14408 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14409 if test "${ac_cv_c_bigendian+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 ac_cv_c_bigendian=unknown
14413 # See if we're dealing with a universal compiler.
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 #ifndef __APPLE_CC__
14417 not a universal capable compiler
14418 #endif
14419 typedef int dummy;
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14424 # Check for potential -arch flags. It is not universal unless
14425 # there are at least two -arch flags with different values.
14426 ac_arch=
14427 ac_prev=
14428 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14429 if test -n "$ac_prev"; then
14430 case $ac_word in
14431 i?86 | x86_64 | ppc | ppc64)
14432 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14433 ac_arch=$ac_word
14434 else
14435 ac_cv_c_bigendian=universal
14436 break
14439 esac
14440 ac_prev=
14441 elif test "x$ac_word" = "x-arch"; then
14442 ac_prev=arch
14444 done
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 if test $ac_cv_c_bigendian = unknown; then
14448 # See if sys/param.h defines the BYTE_ORDER macro.
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 #include <sys/types.h>
14452 #include <sys/param.h>
14455 main ()
14457 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14458 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14459 && LITTLE_ENDIAN)
14460 bogus endian macros
14461 #endif
14464 return 0;
14466 _ACEOF
14467 if ac_fn_c_try_compile "$LINENO"; then :
14468 # It does; now see whether it defined to BIG_ENDIAN or not.
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 #include <sys/types.h>
14472 #include <sys/param.h>
14475 main ()
14477 #if BYTE_ORDER != BIG_ENDIAN
14478 not big endian
14479 #endif
14482 return 0;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_c_bigendian=yes
14487 else
14488 ac_cv_c_bigendian=no
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 if test $ac_cv_c_bigendian = unknown; then
14495 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <limits.h>
14501 main ()
14503 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14504 bogus endian macros
14505 #endif
14508 return 0;
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 # It does; now see whether it defined to _BIG_ENDIAN or not.
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14515 #include <limits.h>
14518 main ()
14520 #ifndef _BIG_ENDIAN
14521 not big endian
14522 #endif
14525 return 0;
14527 _ACEOF
14528 if ac_fn_c_try_compile "$LINENO"; then :
14529 ac_cv_c_bigendian=yes
14530 else
14531 ac_cv_c_bigendian=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 if test $ac_cv_c_bigendian = unknown; then
14538 # Compile a test program.
14539 if test "$cross_compiling" = yes; then :
14540 # Try to guess by grepping values from an object file.
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 short int ascii_mm[] =
14544 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14545 short int ascii_ii[] =
14546 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14547 int use_ascii (int i) {
14548 return ascii_mm[i] + ascii_ii[i];
14550 short int ebcdic_ii[] =
14551 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14552 short int ebcdic_mm[] =
14553 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14554 int use_ebcdic (int i) {
14555 return ebcdic_mm[i] + ebcdic_ii[i];
14557 extern int foo;
14560 main ()
14562 return use_ascii (foo) == use_ebcdic (foo);
14564 return 0;
14566 _ACEOF
14567 if ac_fn_c_try_compile "$LINENO"; then :
14568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14569 ac_cv_c_bigendian=yes
14571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14572 if test "$ac_cv_c_bigendian" = unknown; then
14573 ac_cv_c_bigendian=no
14574 else
14575 # finding both strings is unlikely to happen, but who knows?
14576 ac_cv_c_bigendian=unknown
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 $ac_includes_default
14586 main ()
14589 /* Are we little or big endian? From Harbison&Steele. */
14590 union
14592 long int l;
14593 char c[sizeof (long int)];
14594 } u;
14595 u.l = 1;
14596 return u.c[sizeof (long int) - 1] == 1;
14599 return 0;
14601 _ACEOF
14602 if ac_fn_c_try_run "$LINENO"; then :
14603 ac_cv_c_bigendian=no
14604 else
14605 ac_cv_c_bigendian=yes
14607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14608 conftest.$ac_objext conftest.beam conftest.$ac_ext
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14614 $as_echo "$ac_cv_c_bigendian" >&6; }
14615 case $ac_cv_c_bigendian in #(
14616 yes)
14617 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14618 ;; #(
14620 ;; #(
14621 universal)
14623 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14625 ;; #(
14627 as_fn_error "unknown endianness
14628 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14629 esac
14634 # Check whether --with-system-libunwind was given.
14635 if test "${with_system_libunwind+set}" = set; then :
14636 withval=$with_system_libunwind;
14639 # If system-libunwind was not specifically set, pick a default setting.
14640 if test x$with_system_libunwind = x; then
14641 case ${target} in
14642 ia64-*-hpux*) with_system_libunwind=yes ;;
14643 *) with_system_libunwind=no ;;
14644 esac
14646 # Based on system-libunwind and target, do we have ipinfo?
14647 if test x$with_system_libunwind = xyes; then
14648 case ${target} in
14649 ia64-*-*) have_unwind_getipinfo=no ;;
14650 *) have_unwind_getipinfo=yes ;;
14651 esac
14652 else
14653 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14655 case ${target} in
14656 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14657 *) have_unwind_getipinfo=yes ;;
14658 esac
14662 if test x$have_unwind_getipinfo = xyes; then
14664 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14669 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
14670 do :
14671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14672 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14673 eval as_val=\$$as_ac_Header
14674 if test "x$as_val" = x""yes; then :
14675 cat >>confdefs.h <<_ACEOF
14676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14677 _ACEOF
14681 done
14684 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
14685 do :
14686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14688 #include <sys/socket.h>
14689 #endif
14692 eval as_val=\$$as_ac_Header
14693 if test "x$as_val" = x""yes; then :
14694 cat >>confdefs.h <<_ACEOF
14695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 _ACEOF
14700 done
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14704 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14705 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 CFLAGS_hold=$CFLAGS
14709 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14713 #include <sys/types.h>
14714 #ifdef HAVE_LINUX_FILTER_H
14715 #include <linux/filter.h>
14716 #endif
14717 #include <ustat.h>
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721 libgo_cv_c_ustat_h=yes
14722 else
14723 libgo_cv_c_ustat_h=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 CFLAGS=$CFLAGS_hold
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14729 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14730 if test $libgo_cv_c_ustat_h = yes; then
14732 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14736 if test "$ac_cv_header_sys_mman_h" = yes; then
14737 HAVE_SYS_MMAN_H_TRUE=
14738 HAVE_SYS_MMAN_H_FALSE='#'
14739 else
14740 HAVE_SYS_MMAN_H_TRUE='#'
14741 HAVE_SYS_MMAN_H_FALSE=
14745 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14746 do :
14747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14748 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14749 eval as_val=\$$as_ac_var
14750 if test "x$as_val" = x""yes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14753 _ACEOF
14756 done
14758 if test "$ac_cv_func_strerror_r" = yes; then
14759 HAVE_STRERROR_R_TRUE=
14760 HAVE_STRERROR_R_FALSE='#'
14761 else
14762 HAVE_STRERROR_R_TRUE='#'
14763 HAVE_STRERROR_R_FALSE=
14766 if test "$ac_cv_func_wait4" = yes; then
14767 HAVE_WAIT4_TRUE=
14768 HAVE_WAIT4_FALSE='#'
14769 else
14770 HAVE_WAIT4_TRUE='#'
14771 HAVE_WAIT4_FALSE=
14775 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
14776 do :
14777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14779 eval as_val=\$$as_ac_var
14780 if test "x$as_val" = x""yes; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14783 _ACEOF
14786 done
14788 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14789 if test "x$ac_cv_type_off_t" = x""yes; then :
14791 else
14793 cat >>confdefs.h <<_ACEOF
14794 #define off_t long int
14795 _ACEOF
14799 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14800 if test "x$ac_cv_type_loff_t" = x""yes; then :
14802 cat >>confdefs.h <<_ACEOF
14803 #define HAVE_LOFF_T 1
14804 _ACEOF
14810 LIBS_hold="$LIBS"
14811 LIBS="$LIBS -lm"
14812 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14813 do :
14814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14816 eval as_val=\$$as_ac_var
14817 if test "x$as_val" = x""yes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14820 _ACEOF
14823 done
14825 LIBS="$LIBS_hold"
14827 CFLAGS_hold="$CFLAGS"
14828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14829 LIBS_hold="$LIBS"
14830 LIBS="$LIBS $PTHREAD_LIBS"
14831 for ac_func in sem_timedwait
14832 do :
14833 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14834 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14835 cat >>confdefs.h <<_ACEOF
14836 #define HAVE_SEM_TIMEDWAIT 1
14837 _ACEOF
14840 done
14842 CFLAGS="$CFLAGS_hold"
14843 LIBS="$LIBS_hold"
14845 LIBS_hold="$LIBS"
14846 LIBS="$LIBS $MATH_LIBS"
14847 for ac_func in matherr
14848 do :
14849 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14850 if test "x$ac_cv_func_matherr" = x""yes; then :
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_MATHERR 1
14853 _ACEOF
14856 done
14858 LIBS="$LIBS_hold"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14861 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14862 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14869 uint32 i;
14870 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14872 _ACEOF
14873 if ac_fn_c_try_link "$LINENO"; then :
14874 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14875 else
14876 libgo_cv_func___sync_bool_compare_and_swap_4=no
14878 rm -f core conftest.err conftest.$ac_objext \
14879 conftest$ac_exeext conftest.$ac_ext
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14882 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14883 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14885 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14890 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14891 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14897 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14898 uint64 i;
14899 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14904 else
14905 libgo_cv_func___sync_bool_compare_and_swap_8=no
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14911 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14912 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14914 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14919 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14920 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14926 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14927 uint32 i;
14928 int main() { return __sync_fetch_and_add (&i, 1); }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 libgo_cv_func___sync_fetch_and_add_4=yes
14933 else
14934 libgo_cv_func___sync_fetch_and_add_4=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14940 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14941 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14943 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14948 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14949 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14955 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14956 uint64 i;
14957 int main() { return __sync_add_and_fetch (&i, 1); }
14959 _ACEOF
14960 if ac_fn_c_try_link "$LINENO"; then :
14961 libgo_cv_func___sync_add_and_fetch_8=yes
14962 else
14963 libgo_cv_func___sync_add_and_fetch_8=no
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14969 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14970 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14972 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14977 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14978 if test "${libgo_cv_c_stringops+set}" = set; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 CFLAGS_hold=$CFLAGS
14982 CFLAGS="$CFLAGS -minline-all-stringops"
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 int i;
14986 _ACEOF
14987 if ac_fn_c_try_compile "$LINENO"; then :
14988 libgo_cv_c_stringops=yes
14989 else
14990 libgo_cv_c_stringops=no
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 CFLAGS=$CFLAGS_hold
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14996 $as_echo "$libgo_cv_c_stringops" >&6; }
14997 STRINGOPS_FLAG=
14998 if test "$libgo_cv_c_stringops" = yes; then
14999 STRINGOPS_FLAG=-minline-all-stringops
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15004 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15005 if test "${libgo_cv_c_fancymath+set}" = set; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008 CFLAGS_hold=$CFLAGS
15009 CFLAGS="$CFLAGS -mfancy-math-387"
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012 int i;
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015 libgo_cv_c_fancymath=yes
15016 else
15017 libgo_cv_c_fancymath=no
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 CFLAGS=$CFLAGS_hold
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15023 $as_echo "$libgo_cv_c_fancymath" >&6; }
15024 MATH_FLAG=
15025 if test "$libgo_cv_c_fancymath" = yes; then
15026 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15027 else
15028 MATH_FLAG="-ffp-contract=off"
15032 CFLAGS_hold=$CFLAGS
15033 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15034 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15035 if test "x$ac_cv_type_off64_t" = x""yes; then :
15037 cat >>confdefs.h <<_ACEOF
15038 #define HAVE_OFF64_T 1
15039 _ACEOF
15044 CFLAGS=$CFLAGS_hold
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15047 $as_echo_n "checking epoll_event size... " >&6; }
15048 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15049 $as_echo_n "(cached) " >&6
15050 else
15051 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15053 else
15054 libgo_cv_c_epoll_event_size=0
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15059 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15060 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15064 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15065 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15069 #include <sys/epoll.h>"; then :
15071 else
15072 libgo_cv_c_epoll_event_fd_offset=0
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15077 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15078 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #include <sys/stat.h>
15085 _ACEOF
15086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15087 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15088 have_stat_timespec=yes
15089 else
15090 have_stat_timespec=no
15092 rm -f conftest*
15094 if test $have_stat_timespec = yes; then
15095 HAVE_STAT_TIMESPEC_TRUE=
15096 HAVE_STAT_TIMESPEC_FALSE='#'
15097 else
15098 HAVE_STAT_TIMESPEC_TRUE='#'
15099 HAVE_STAT_TIMESPEC_FALSE=
15103 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15105 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15106 libgo_has_struct_exception=yes
15107 else
15108 libgo_has_struct_exception=no
15111 if test "$libgo_has_struct_exception" = "yes"; then
15113 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15118 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15119 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 CFLAGS_hold="$CFLAGS"
15123 CFLAGS="$PTHREAD_CFLAGS"
15124 LIBS_hold="$LIBS"
15125 LIBS="$LIBS $PTHREAD_LIBS"
15126 # The cast to long int works around a bug in the HP C Compiler
15127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15129 # This bug is HP SR number 8606223364.
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15131 $as_echo_n "checking size of void *... " >&6; }
15132 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15137 else
15138 if test "$ac_cv_type_void_p" = yes; then
15139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15141 { as_fn_set_status 77
15142 as_fn_error "cannot compute sizeof (void *)
15143 See \`config.log' for more details." "$LINENO" 5; }; }
15144 else
15145 ac_cv_sizeof_void_p=0
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15151 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15155 cat >>confdefs.h <<_ACEOF
15156 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15157 _ACEOF
15160 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15161 if test "$cross_compiling" = yes; then :
15162 case "$target:$ptr_type_size" in
15163 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15164 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15166 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15167 esac
15169 else
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15173 #include <pthread.h>
15174 #include <stdlib.h>
15175 #include <ucontext.h>
15176 #include <unistd.h>
15178 __thread int tls;
15180 static char stack[10 * 1024 * 1024];
15181 static ucontext_t c;
15183 /* Called via makecontext/setcontext. */
15185 static void
15186 cfn (void)
15188 exit (tls);
15191 /* Called via pthread_create. */
15193 static void *
15194 tfn (void *dummy)
15196 /* The thread should still see this value after calling
15197 setcontext. */
15198 tls = 0;
15200 setcontext (&c);
15202 /* The call to setcontext should not return. */
15203 abort ();
15207 main ()
15209 pthread_t tid;
15211 /* The thread should not see this value. */
15212 tls = 1;
15214 if (getcontext (&c) < 0)
15215 abort ();
15217 c.uc_stack.ss_sp = stack;
15218 #ifdef MAKECONTEXT_STACK_TOP
15219 c.uc_stack.ss_sp += sizeof stack;
15220 #endif
15221 c.uc_stack.ss_flags = 0;
15222 c.uc_stack.ss_size = sizeof stack;
15223 c.uc_link = NULL;
15224 makecontext (&c, cfn, 0);
15226 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15227 abort ();
15229 if (pthread_join (tid, NULL) != 0)
15230 abort ();
15232 /* The thread should have called exit. */
15233 abort ();
15236 _ACEOF
15237 if ac_fn_c_try_run "$LINENO"; then :
15238 libgo_cv_lib_setcontext_clobbers_tls=no
15239 else
15240 libgo_cv_lib_setcontext_clobbers_tls=yes
15242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15243 conftest.$ac_objext conftest.beam conftest.$ac_ext
15246 CFLAGS="$CFLAGS_hold"
15247 LIBS="$LIBS_hold"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15251 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15252 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15254 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15259 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15260 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15264 libgo_cv_ro_eh_frame=no
15265 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15266 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15267 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15268 libgo_cv_ro_eh_frame=yes
15269 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15270 | grep -v '#write' > /dev/null; then
15271 libgo_cv_ro_eh_frame=yes
15274 rm -f conftest.*
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15278 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15279 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15281 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15283 else
15285 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15290 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15291 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 CFLAGS_hold=$CFLAGS
15295 CFLAGS="$CFLAGS -Qunused-arguments"
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 int i;
15299 _ACEOF
15300 if ac_fn_c_try_compile "$LINENO"; then :
15301 libgo_cv_c_unused_arguments=yes
15302 else
15303 libgo_cv_c_unused_arguments=no
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 CFLAGS=$CFLAGS_hold
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15309 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15312 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15313 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15317 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15318 CFLAGS_hold=$CFLAGS
15319 if test "$libgo_cv_c_unused_arguments" = yes; then
15320 CFLAGS="$CFLAGS -Qunused-arguments"
15322 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15323 libgo_cv_as_comdat_gnu=yes
15324 else
15325 libgo_cv_as_comdat_gnu=no
15327 CFLAGS=$CFLAGS_hold
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15331 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15332 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15334 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15339 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15340 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15344 libgo_cv_as_x86_pcrel=yes
15345 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15346 CFLAGS_hold=$CFLAGS
15347 if test "$libgo_cv_c_unused_arguments" = yes; then
15348 CFLAGS="$CFLAGS -Qunused-arguments"
15350 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15351 libgo_cv_as_x86_pcrel=no
15353 CFLAGS=$CFLAGS_hold
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15357 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15358 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15360 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15365 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15366 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15367 $as_echo_n "(cached) " >&6
15368 else
15370 libgo_cv_as_x86_64_unwind_section_type=yes
15371 echo '.section .eh_frame,"a",@unwind' > conftest.s
15372 CFLAGS_hold=$CFLAGS
15373 if test "$libgo_cv_c_unused_arguments" = yes; then
15374 CFLAGS="$CFLAGS -Qunused-arguments"
15376 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15377 libgo_cv_as_x86_64_unwind_section_type=no
15379 CFLAGS=$CFLAGS_hold
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15383 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15384 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15386 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15390 cat >confcache <<\_ACEOF
15391 # This file is a shell script that caches the results of configure
15392 # tests run on this system so they can be shared between configure
15393 # scripts and configure runs, see configure's option --config-cache.
15394 # It is not useful on other systems. If it contains results you don't
15395 # want to keep, you may remove or edit it.
15397 # config.status only pays attention to the cache file if you give it
15398 # the --recheck option to rerun configure.
15400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15402 # following values.
15404 _ACEOF
15406 # The following way of writing the cache mishandles newlines in values,
15407 # but we know of no workaround that is simple, portable, and efficient.
15408 # So, we kill variables containing newlines.
15409 # Ultrix sh set writes to stderr and can't be redirected directly,
15410 # and sets the high bit in the cache file unless we assign to the vars.
15412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15413 eval ac_val=\$$ac_var
15414 case $ac_val in #(
15415 *${as_nl}*)
15416 case $ac_var in #(
15417 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15419 esac
15420 case $ac_var in #(
15421 _ | IFS | as_nl) ;; #(
15422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15423 *) { eval $ac_var=; unset $ac_var;} ;;
15424 esac ;;
15425 esac
15426 done
15428 (set) 2>&1 |
15429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15430 *${as_nl}ac_space=\ *)
15431 # `set' does not quote correctly, so add quotes: double-quote
15432 # substitution turns \\\\ into \\, and sed turns \\ into \.
15433 sed -n \
15434 "s/'/'\\\\''/g;
15435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15436 ;; #(
15438 # `set' quotes correctly as required by POSIX, so do not add quotes.
15439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15441 esac |
15442 sort
15444 sed '
15445 /^ac_cv_env_/b end
15446 t clear
15447 :clear
15448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15449 t end
15450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15451 :end' >>confcache
15452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15453 if test -w "$cache_file"; then
15454 test "x$cache_file" != "x/dev/null" &&
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15456 $as_echo "$as_me: updating cache $cache_file" >&6;}
15457 cat confcache >$cache_file
15458 else
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15460 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15463 rm -f confcache
15465 if test ${multilib} = yes; then
15466 multilib_arg="--enable-multilib"
15467 else
15468 multilib_arg=
15471 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15474 ac_config_commands="$ac_config_commands default"
15477 cat >confcache <<\_ACEOF
15478 # This file is a shell script that caches the results of configure
15479 # tests run on this system so they can be shared between configure
15480 # scripts and configure runs, see configure's option --config-cache.
15481 # It is not useful on other systems. If it contains results you don't
15482 # want to keep, you may remove or edit it.
15484 # config.status only pays attention to the cache file if you give it
15485 # the --recheck option to rerun configure.
15487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15489 # following values.
15491 _ACEOF
15493 # The following way of writing the cache mishandles newlines in values,
15494 # but we know of no workaround that is simple, portable, and efficient.
15495 # So, we kill variables containing newlines.
15496 # Ultrix sh set writes to stderr and can't be redirected directly,
15497 # and sets the high bit in the cache file unless we assign to the vars.
15499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15500 eval ac_val=\$$ac_var
15501 case $ac_val in #(
15502 *${as_nl}*)
15503 case $ac_var in #(
15504 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15506 esac
15507 case $ac_var in #(
15508 _ | IFS | as_nl) ;; #(
15509 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15510 *) { eval $ac_var=; unset $ac_var;} ;;
15511 esac ;;
15512 esac
15513 done
15515 (set) 2>&1 |
15516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15517 *${as_nl}ac_space=\ *)
15518 # `set' does not quote correctly, so add quotes: double-quote
15519 # substitution turns \\\\ into \\, and sed turns \\ into \.
15520 sed -n \
15521 "s/'/'\\\\''/g;
15522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15523 ;; #(
15525 # `set' quotes correctly as required by POSIX, so do not add quotes.
15526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15528 esac |
15529 sort
15531 sed '
15532 /^ac_cv_env_/b end
15533 t clear
15534 :clear
15535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15536 t end
15537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15538 :end' >>confcache
15539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15540 if test -w "$cache_file"; then
15541 test "x$cache_file" != "x/dev/null" &&
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15543 $as_echo "$as_me: updating cache $cache_file" >&6;}
15544 cat confcache >$cache_file
15545 else
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15550 rm -f confcache
15552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15553 # Let make expand exec_prefix.
15554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15556 DEFS=-DHAVE_CONFIG_H
15558 ac_libobjs=
15559 ac_ltlibobjs=
15560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15561 # 1. Remove the extension, and $U if already installed.
15562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15563 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15565 # will be set to the directory where LIBOBJS objects are built.
15566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15568 done
15569 LIBOBJS=$ac_libobjs
15571 LTLIBOBJS=$ac_ltlibobjs
15574 if test -n "$EXEEXT"; then
15575 am__EXEEXT_TRUE=
15576 am__EXEEXT_FALSE='#'
15577 else
15578 am__EXEEXT_TRUE='#'
15579 am__EXEEXT_FALSE=
15582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15583 as_fn_error "conditional \"AMDEP\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15587 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15591 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15595 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15599 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15603 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15607 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15611 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15615 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15619 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15623 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15627 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15631 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15635 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15639 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15643 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15647 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15651 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15655 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15659 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15663 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15667 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15671 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15675 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15679 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15683 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15687 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15691 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15695 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15699 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15703 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15706 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15707 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15712 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15716 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15720 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15724 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 : ${CONFIG_STATUS=./config.status}
15729 ac_write_fail=0
15730 ac_clean_files_save=$ac_clean_files
15731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15734 as_write_fail=0
15735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15736 #! $SHELL
15737 # Generated by $as_me.
15738 # Run this file to recreate the current configuration.
15739 # Compiler output produced by configure, useful for debugging
15740 # configure, is in config.log if it exists.
15742 debug=false
15743 ac_cs_recheck=false
15744 ac_cs_silent=false
15746 SHELL=\${CONFIG_SHELL-$SHELL}
15747 export SHELL
15748 _ASEOF
15749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15750 ## -------------------- ##
15751 ## M4sh Initialization. ##
15752 ## -------------------- ##
15754 # Be more Bourne compatible
15755 DUALCASE=1; export DUALCASE # for MKS sh
15756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15757 emulate sh
15758 NULLCMD=:
15759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15760 # is contrary to our usage. Disable this feature.
15761 alias -g '${1+"$@"}'='"$@"'
15762 setopt NO_GLOB_SUBST
15763 else
15764 case `(set -o) 2>/dev/null` in #(
15765 *posix*) :
15766 set -o posix ;; #(
15767 *) :
15769 esac
15773 as_nl='
15775 export as_nl
15776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15780 # Prefer a ksh shell builtin over an external printf program on Solaris,
15781 # but without wasting forks for bash or zsh.
15782 if test -z "$BASH_VERSION$ZSH_VERSION" \
15783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15784 as_echo='print -r --'
15785 as_echo_n='print -rn --'
15786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15787 as_echo='printf %s\n'
15788 as_echo_n='printf %s'
15789 else
15790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15792 as_echo_n='/usr/ucb/echo -n'
15793 else
15794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15795 as_echo_n_body='eval
15796 arg=$1;
15797 case $arg in #(
15798 *"$as_nl"*)
15799 expr "X$arg" : "X\\(.*\\)$as_nl";
15800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15801 esac;
15802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15804 export as_echo_n_body
15805 as_echo_n='sh -c $as_echo_n_body as_echo'
15807 export as_echo_body
15808 as_echo='sh -c $as_echo_body as_echo'
15811 # The user is always right.
15812 if test "${PATH_SEPARATOR+set}" != set; then
15813 PATH_SEPARATOR=:
15814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15816 PATH_SEPARATOR=';'
15821 # IFS
15822 # We need space, tab and new line, in precisely that order. Quoting is
15823 # there to prevent editors from complaining about space-tab.
15824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15825 # splitting by setting IFS to empty value.)
15826 IFS=" "" $as_nl"
15828 # Find who we are. Look in the path if we contain no directory separator.
15829 case $0 in #((
15830 *[\\/]* ) as_myself=$0 ;;
15831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15834 IFS=$as_save_IFS
15835 test -z "$as_dir" && as_dir=.
15836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15837 done
15838 IFS=$as_save_IFS
15841 esac
15842 # We did not find ourselves, most probably we were run as `sh COMMAND'
15843 # in which case we are not to be found in the path.
15844 if test "x$as_myself" = x; then
15845 as_myself=$0
15847 if test ! -f "$as_myself"; then
15848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15849 exit 1
15852 # Unset variables that we do not need and which cause bugs (e.g. in
15853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15854 # suppresses any "Segmentation fault" message there. '((' could
15855 # trigger a bug in pdksh 5.2.14.
15856 for as_var in BASH_ENV ENV MAIL MAILPATH
15857 do eval test x\${$as_var+set} = xset \
15858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15859 done
15860 PS1='$ '
15861 PS2='> '
15862 PS4='+ '
15864 # NLS nuisances.
15865 LC_ALL=C
15866 export LC_ALL
15867 LANGUAGE=C
15868 export LANGUAGE
15870 # CDPATH.
15871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15874 # as_fn_error ERROR [LINENO LOG_FD]
15875 # ---------------------------------
15876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15878 # script with status $?, using 1 if that was 0.
15879 as_fn_error ()
15881 as_status=$?; test $as_status -eq 0 && as_status=1
15882 if test "$3"; then
15883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15886 $as_echo "$as_me: error: $1" >&2
15887 as_fn_exit $as_status
15888 } # as_fn_error
15891 # as_fn_set_status STATUS
15892 # -----------------------
15893 # Set $? to STATUS, without forking.
15894 as_fn_set_status ()
15896 return $1
15897 } # as_fn_set_status
15899 # as_fn_exit STATUS
15900 # -----------------
15901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15902 as_fn_exit ()
15904 set +e
15905 as_fn_set_status $1
15906 exit $1
15907 } # as_fn_exit
15909 # as_fn_unset VAR
15910 # ---------------
15911 # Portably unset VAR.
15912 as_fn_unset ()
15914 { eval $1=; unset $1;}
15916 as_unset=as_fn_unset
15917 # as_fn_append VAR VALUE
15918 # ----------------------
15919 # Append the text in VALUE to the end of the definition contained in VAR. Take
15920 # advantage of any shell optimizations that allow amortized linear growth over
15921 # repeated appends, instead of the typical quadratic growth present in naive
15922 # implementations.
15923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15924 eval 'as_fn_append ()
15926 eval $1+=\$2
15928 else
15929 as_fn_append ()
15931 eval $1=\$$1\$2
15933 fi # as_fn_append
15935 # as_fn_arith ARG...
15936 # ------------------
15937 # Perform arithmetic evaluation on the ARGs, and store the result in the
15938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15939 # must be portable across $(()) and expr.
15940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15941 eval 'as_fn_arith ()
15943 as_val=$(( $* ))
15945 else
15946 as_fn_arith ()
15948 as_val=`expr "$@" || test $? -eq 1`
15950 fi # as_fn_arith
15953 if expr a : '\(a\)' >/dev/null 2>&1 &&
15954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15955 as_expr=expr
15956 else
15957 as_expr=false
15960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15961 as_basename=basename
15962 else
15963 as_basename=false
15966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15967 as_dirname=dirname
15968 else
15969 as_dirname=false
15972 as_me=`$as_basename -- "$0" ||
15973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15974 X"$0" : 'X\(//\)$' \| \
15975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15976 $as_echo X/"$0" |
15977 sed '/^.*\/\([^/][^/]*\)\/*$/{
15978 s//\1/
15981 /^X\/\(\/\/\)$/{
15982 s//\1/
15985 /^X\/\(\/\).*/{
15986 s//\1/
15989 s/.*/./; q'`
15991 # Avoid depending upon Character Ranges.
15992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15995 as_cr_digits='0123456789'
15996 as_cr_alnum=$as_cr_Letters$as_cr_digits
15998 ECHO_C= ECHO_N= ECHO_T=
15999 case `echo -n x` in #(((((
16000 -n*)
16001 case `echo 'xy\c'` in
16002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16003 xy) ECHO_C='\c';;
16004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16005 ECHO_T=' ';;
16006 esac;;
16008 ECHO_N='-n';;
16009 esac
16011 rm -f conf$$ conf$$.exe conf$$.file
16012 if test -d conf$$.dir; then
16013 rm -f conf$$.dir/conf$$.file
16014 else
16015 rm -f conf$$.dir
16016 mkdir conf$$.dir 2>/dev/null
16018 if (echo >conf$$.file) 2>/dev/null; then
16019 if ln -s conf$$.file conf$$ 2>/dev/null; then
16020 as_ln_s='ln -s'
16021 # ... but there are two gotchas:
16022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16024 # In both cases, we have to default to `cp -p'.
16025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16026 as_ln_s='cp -p'
16027 elif ln conf$$.file conf$$ 2>/dev/null; then
16028 as_ln_s=ln
16029 else
16030 as_ln_s='cp -p'
16032 else
16033 as_ln_s='cp -p'
16035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16036 rmdir conf$$.dir 2>/dev/null
16039 # as_fn_mkdir_p
16040 # -------------
16041 # Create "$as_dir" as a directory, including parents if necessary.
16042 as_fn_mkdir_p ()
16045 case $as_dir in #(
16046 -*) as_dir=./$as_dir;;
16047 esac
16048 test -d "$as_dir" || eval $as_mkdir_p || {
16049 as_dirs=
16050 while :; do
16051 case $as_dir in #(
16052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16053 *) as_qdir=$as_dir;;
16054 esac
16055 as_dirs="'$as_qdir' $as_dirs"
16056 as_dir=`$as_dirname -- "$as_dir" ||
16057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16058 X"$as_dir" : 'X\(//\)[^/]' \| \
16059 X"$as_dir" : 'X\(//\)$' \| \
16060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16061 $as_echo X"$as_dir" |
16062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16063 s//\1/
16066 /^X\(\/\/\)[^/].*/{
16067 s//\1/
16070 /^X\(\/\/\)$/{
16071 s//\1/
16074 /^X\(\/\).*/{
16075 s//\1/
16078 s/.*/./; q'`
16079 test -d "$as_dir" && break
16080 done
16081 test -z "$as_dirs" || eval "mkdir $as_dirs"
16082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16085 } # as_fn_mkdir_p
16086 if mkdir -p . 2>/dev/null; then
16087 as_mkdir_p='mkdir -p "$as_dir"'
16088 else
16089 test -d ./-p && rmdir ./-p
16090 as_mkdir_p=false
16093 if test -x / >/dev/null 2>&1; then
16094 as_test_x='test -x'
16095 else
16096 if ls -dL / >/dev/null 2>&1; then
16097 as_ls_L_option=L
16098 else
16099 as_ls_L_option=
16101 as_test_x='
16102 eval sh -c '\''
16103 if test -d "$1"; then
16104 test -d "$1/.";
16105 else
16106 case $1 in #(
16107 -*)set "./$1";;
16108 esac;
16109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16110 ???[sx]*):;;*)false;;esac;fi
16111 '\'' sh
16114 as_executable_p=$as_test_x
16116 # Sed expression to map a string onto a valid CPP name.
16117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16119 # Sed expression to map a string onto a valid variable name.
16120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16123 exec 6>&1
16124 ## ----------------------------------- ##
16125 ## Main body of $CONFIG_STATUS script. ##
16126 ## ----------------------------------- ##
16127 _ASEOF
16128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 # Save the log message, to keep $0 and so on meaningful, and to
16132 # report actual input values of CONFIG_FILES etc. instead of their
16133 # values after options handling.
16134 ac_log="
16135 This file was extended by package-unused $as_me version-unused, which was
16136 generated by GNU Autoconf 2.64. Invocation command line was
16138 CONFIG_FILES = $CONFIG_FILES
16139 CONFIG_HEADERS = $CONFIG_HEADERS
16140 CONFIG_LINKS = $CONFIG_LINKS
16141 CONFIG_COMMANDS = $CONFIG_COMMANDS
16142 $ $0 $@
16144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16147 _ACEOF
16149 case $ac_config_files in *"
16150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16151 esac
16153 case $ac_config_headers in *"
16154 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16155 esac
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159 # Files that config.status was made for.
16160 config_files="$ac_config_files"
16161 config_headers="$ac_config_headers"
16162 config_commands="$ac_config_commands"
16164 _ACEOF
16166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16167 ac_cs_usage="\
16168 \`$as_me' instantiates files and other configuration actions
16169 from templates according to the current configuration. Unless the files
16170 and actions are specified as TAGs, all are instantiated by default.
16172 Usage: $0 [OPTION]... [TAG]...
16174 -h, --help print this help, then exit
16175 -V, --version print version number and configuration settings, then exit
16176 -q, --quiet, --silent
16177 do not print progress messages
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
16185 Configuration files:
16186 $config_files
16188 Configuration headers:
16189 $config_headers
16191 Configuration commands:
16192 $config_commands
16194 Report bugs to the package provider."
16196 _ACEOF
16197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16198 ac_cs_version="\\
16199 package-unused config.status version-unused
16200 configured by $0, generated by GNU Autoconf 2.64,
16201 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16203 Copyright (C) 2009 Free Software Foundation, Inc.
16204 This config.status script is free software; the Free Software Foundation
16205 gives unlimited permission to copy, distribute and modify it."
16207 ac_pwd='$ac_pwd'
16208 srcdir='$srcdir'
16209 INSTALL='$INSTALL'
16210 MKDIR_P='$MKDIR_P'
16211 AWK='$AWK'
16212 test -n "\$AWK" || AWK=awk
16213 _ACEOF
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 # The default lists apply if the user does not specify any file.
16217 ac_need_defaults=:
16218 while test $# != 0
16220 case $1 in
16221 --*=*)
16222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16223 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16224 ac_shift=:
16227 ac_option=$1
16228 ac_optarg=$2
16229 ac_shift=shift
16231 esac
16233 case $ac_option in
16234 # Handling of the options.
16235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16236 ac_cs_recheck=: ;;
16237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16238 $as_echo "$ac_cs_version"; exit ;;
16239 --debug | --debu | --deb | --de | --d | -d )
16240 debug=: ;;
16241 --file | --fil | --fi | --f )
16242 $ac_shift
16243 case $ac_optarg in
16244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16245 esac
16246 as_fn_append CONFIG_FILES " '$ac_optarg'"
16247 ac_need_defaults=false;;
16248 --header | --heade | --head | --hea )
16249 $ac_shift
16250 case $ac_optarg in
16251 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16252 esac
16253 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16254 ac_need_defaults=false;;
16255 --he | --h)
16256 # Conflict between --help and --header
16257 as_fn_error "ambiguous option: \`$1'
16258 Try \`$0 --help' for more information.";;
16259 --help | --hel | -h )
16260 $as_echo "$ac_cs_usage"; exit ;;
16261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16263 ac_cs_silent=: ;;
16265 # This is an error.
16266 -*) as_fn_error "unrecognized option: \`$1'
16267 Try \`$0 --help' for more information." ;;
16269 *) as_fn_append ac_config_targets " $1"
16270 ac_need_defaults=false ;;
16272 esac
16273 shift
16274 done
16276 ac_configure_extra_args=
16278 if $ac_cs_silent; then
16279 exec 6>/dev/null
16280 ac_configure_extra_args="$ac_configure_extra_args --silent"
16283 _ACEOF
16284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16285 if \$ac_cs_recheck; then
16286 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16287 shift
16288 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16289 CONFIG_SHELL='$SHELL'
16290 export CONFIG_SHELL
16291 exec "\$@"
16294 _ACEOF
16295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 exec 5>>config.log
16298 echo
16299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16300 ## Running $as_me. ##
16301 _ASBOX
16302 $as_echo "$ac_log"
16303 } >&5
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 # INIT-COMMANDS
16311 srcdir="$srcdir"
16312 host="$host"
16313 target="$target"
16314 with_multisubdir="$with_multisubdir"
16315 with_multisrctop="$with_multisrctop"
16316 with_target_subdir="$with_target_subdir"
16317 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16318 multi_basedir="$multi_basedir"
16319 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16320 CC="$CC"
16321 CXX="$CXX"
16322 GFORTRAN="$GFORTRAN"
16323 GCJ="$GCJ"
16324 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16327 # The HP-UX ksh and POSIX shell print the target directory to stdout
16328 # if CDPATH is set.
16329 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16331 sed_quote_subst='$sed_quote_subst'
16332 double_quote_subst='$double_quote_subst'
16333 delay_variable_subst='$delay_variable_subst'
16334 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16335 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16336 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16337 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16338 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16339 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16340 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16341 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16342 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16343 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16344 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16345 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16346 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16347 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16348 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16349 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16350 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16351 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16352 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16353 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16354 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16355 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16356 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16357 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16358 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16359 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16360 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16361 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16364 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16365 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16366 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16367 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16368 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16369 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16370 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16371 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16372 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16373 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16374 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16375 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16376 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16377 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16378 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16379 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16380 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16381 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16382 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"`'
16383 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16384 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16385 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16387 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16388 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16389 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16390 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16414 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16415 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16416 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16417 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16418 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16419 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16420 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16421 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16422 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16423 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16424 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16425 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16426 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16427 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16428 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16429 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16430 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16431 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16432 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16433 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16434 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16435 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16436 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16437 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16438 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16439 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16440 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16441 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16442 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16443 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16444 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16445 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16446 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16447 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16454 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16455 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16456 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16457 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16458 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16459 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16460 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16461 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16462 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16463 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16465 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16466 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16467 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16468 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16469 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16470 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16471 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16472 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16473 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16474 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16475 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16476 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16477 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16478 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16479 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16480 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16481 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16482 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16483 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16484 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16485 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16486 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16487 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16488 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16489 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16490 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16491 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16492 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16493 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16494 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16495 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16496 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16498 LTCC='$LTCC'
16499 LTCFLAGS='$LTCFLAGS'
16500 compiler='$compiler_DEFAULT'
16502 # A function that is used when there is no print builtin or printf.
16503 func_fallback_echo ()
16505 eval 'cat <<_LTECHO_EOF
16507 _LTECHO_EOF'
16510 # Quote evaled strings.
16511 for var in SED \
16512 GREP \
16513 EGREP \
16514 FGREP \
16515 SHELL \
16516 ECHO \
16517 LD \
16518 NM \
16519 LN_S \
16520 lt_SP2NL \
16521 lt_NL2SP \
16522 reload_flag \
16523 OBJDUMP \
16524 deplibs_check_method \
16525 file_magic_cmd \
16526 AR \
16527 AR_FLAGS \
16528 STRIP \
16529 RANLIB \
16530 CC \
16531 CFLAGS \
16532 compiler \
16533 lt_cv_sys_global_symbol_pipe \
16534 lt_cv_sys_global_symbol_to_cdecl \
16535 lt_cv_sys_global_symbol_to_c_name_address \
16536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16537 lt_prog_compiler_no_builtin_flag \
16538 lt_prog_compiler_wl \
16539 lt_prog_compiler_pic \
16540 lt_prog_compiler_static \
16541 lt_cv_prog_compiler_c_o \
16542 need_locks \
16543 DSYMUTIL \
16544 NMEDIT \
16545 LIPO \
16546 OTOOL \
16547 OTOOL64 \
16548 shrext_cmds \
16549 export_dynamic_flag_spec \
16550 whole_archive_flag_spec \
16551 compiler_needs_object \
16552 with_gnu_ld \
16553 allow_undefined_flag \
16554 no_undefined_flag \
16555 hardcode_libdir_flag_spec \
16556 hardcode_libdir_flag_spec_ld \
16557 hardcode_libdir_separator \
16558 fix_srcfile_path \
16559 exclude_expsyms \
16560 include_expsyms \
16561 file_list_spec \
16562 variables_saved_for_relink \
16563 libname_spec \
16564 library_names_spec \
16565 soname_spec \
16566 install_override_mode \
16567 finish_eval \
16568 old_striplib \
16569 striplib \
16570 LD_GO \
16571 reload_flag_GO \
16572 compiler_GO \
16573 lt_prog_compiler_no_builtin_flag_GO \
16574 lt_prog_compiler_wl_GO \
16575 lt_prog_compiler_pic_GO \
16576 lt_prog_compiler_static_GO \
16577 lt_cv_prog_compiler_c_o_GO \
16578 export_dynamic_flag_spec_GO \
16579 whole_archive_flag_spec_GO \
16580 compiler_needs_object_GO \
16581 with_gnu_ld_GO \
16582 allow_undefined_flag_GO \
16583 no_undefined_flag_GO \
16584 hardcode_libdir_flag_spec_GO \
16585 hardcode_libdir_flag_spec_ld_GO \
16586 hardcode_libdir_separator_GO \
16587 fix_srcfile_path_GO \
16588 exclude_expsyms_GO \
16589 include_expsyms_GO \
16590 file_list_spec_GO; do
16591 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16592 *[\\\\\\\`\\"\\\$]*)
16593 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16596 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16598 esac
16599 done
16601 # Double-quote double-evaled strings.
16602 for var in reload_cmds \
16603 old_postinstall_cmds \
16604 old_postuninstall_cmds \
16605 old_archive_cmds \
16606 extract_expsyms_cmds \
16607 old_archive_from_new_cmds \
16608 old_archive_from_expsyms_cmds \
16609 archive_cmds \
16610 archive_expsym_cmds \
16611 module_cmds \
16612 module_expsym_cmds \
16613 export_symbols_cmds \
16614 prelink_cmds \
16615 postinstall_cmds \
16616 postuninstall_cmds \
16617 finish_cmds \
16618 sys_lib_search_path_spec \
16619 sys_lib_dlsearch_path_spec \
16620 reload_cmds_GO \
16621 old_archive_cmds_GO \
16622 old_archive_from_new_cmds_GO \
16623 old_archive_from_expsyms_cmds_GO \
16624 archive_cmds_GO \
16625 archive_expsym_cmds_GO \
16626 module_cmds_GO \
16627 module_expsym_cmds_GO \
16628 export_symbols_cmds_GO \
16629 prelink_cmds_GO; do
16630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16631 *[\\\\\\\`\\"\\\$]*)
16632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16637 esac
16638 done
16640 ac_aux_dir='$ac_aux_dir'
16641 xsi_shell='$xsi_shell'
16642 lt_shell_append='$lt_shell_append'
16644 # See if we are running on zsh, and set the options which allow our
16645 # commands through without removal of \ escapes INIT.
16646 if test -n "\${ZSH_VERSION+set}" ; then
16647 setopt NO_GLOB_SUBST
16651 PACKAGE='$PACKAGE'
16652 VERSION='$VERSION'
16653 TIMESTAMP='$TIMESTAMP'
16654 RM='$RM'
16655 ofile='$ofile'
16662 # Variables needed in config.status (file generation) which aren't already
16663 # passed by autoconf.
16664 SUBDIRS="$SUBDIRS"
16667 _ACEOF
16669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16671 # Handling of arguments.
16672 for ac_config_target in $ac_config_targets
16674 case $ac_config_target in
16675 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16676 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16677 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16678 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16680 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16681 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16683 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16684 esac
16685 done
16688 # If the user did not use the arguments to specify the items to instantiate,
16689 # then the envvar interface is used. Set only those that are not.
16690 # We use the long form for the default assignment because of an extremely
16691 # bizarre bug on SunOS 4.1.3.
16692 if $ac_need_defaults; then
16693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16698 # Have a temporary directory for convenience. Make it in the build tree
16699 # simply because there is no reason against having it here, and in addition,
16700 # creating and moving files from /tmp can sometimes cause problems.
16701 # Hook for its removal unless debugging.
16702 # Note that there is a small window in which the directory will not be cleaned:
16703 # after its creation but before its name has been assigned to `$tmp'.
16704 $debug ||
16706 tmp=
16707 trap 'exit_status=$?
16708 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16710 trap 'as_fn_exit 1' 1 2 13 15
16712 # Create a (secure) tmp directory for tmp files.
16715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16716 test -n "$tmp" && test -d "$tmp"
16717 } ||
16719 tmp=./conf$$-$RANDOM
16720 (umask 077 && mkdir "$tmp")
16721 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16723 # Set up the scripts for CONFIG_FILES section.
16724 # No need to generate them if there are no CONFIG_FILES.
16725 # This happens for instance with `./config.status config.h'.
16726 if test -n "$CONFIG_FILES"; then
16729 ac_cr=`echo X | tr X '\015'`
16730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16731 # But we know of no other shell where ac_cr would be empty at this
16732 # point, so we can use a bashism as a fallback.
16733 if test "x$ac_cr" = x; then
16734 eval ac_cr=\$\'\\r\'
16736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16738 ac_cs_awk_cr='\r'
16739 else
16740 ac_cs_awk_cr=$ac_cr
16743 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16744 _ACEOF
16748 echo "cat >conf$$subs.awk <<_ACEOF" &&
16749 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16750 echo "_ACEOF"
16751 } >conf$$subs.sh ||
16752 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16754 ac_delim='%!_!# '
16755 for ac_last_try in false false false false false :; do
16756 . ./conf$$subs.sh ||
16757 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16759 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16760 if test $ac_delim_n = $ac_delim_num; then
16761 break
16762 elif $ac_last_try; then
16763 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16764 else
16765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16767 done
16768 rm -f conf$$subs.sh
16770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16771 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16772 _ACEOF
16773 sed -n '
16775 s/^/S["/; s/!.*/"]=/
16778 s/^[^!]*!//
16779 :repl
16780 t repl
16781 s/'"$ac_delim"'$//
16782 t delim
16785 s/\(.\{148\}\).*/\1/
16786 t more1
16787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16790 b repl
16791 :more1
16792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16795 s/.\{148\}//
16796 t nl
16797 :delim
16799 s/\(.\{148\}\).*/\1/
16800 t more2
16801 s/["\\]/\\&/g; s/^/"/; s/$/"/
16804 :more2
16805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16808 s/.\{148\}//
16809 t delim
16810 ' <conf$$subs.awk | sed '
16811 /^[^""]/{
16813 s/\n//
16815 ' >>$CONFIG_STATUS || ac_write_fail=1
16816 rm -f conf$$subs.awk
16817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16818 _ACAWK
16819 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16820 for (key in S) S_is_set[key] = 1
16821 FS = "\a"
16825 line = $ 0
16826 nfields = split(line, field, "@")
16827 substed = 0
16828 len = length(field[1])
16829 for (i = 2; i < nfields; i++) {
16830 key = field[i]
16831 keylen = length(key)
16832 if (S_is_set[key]) {
16833 value = S[key]
16834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16835 len += length(value) + length(field[++i])
16836 substed = 1
16837 } else
16838 len += 1 + keylen
16841 print line
16844 _ACAWK
16845 _ACEOF
16846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16849 else
16851 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16852 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16853 _ACEOF
16855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16857 # trailing colons and then remove the whole line if VPATH becomes empty
16858 # (actually we leave an empty line to preserve line numbers).
16859 if test "x$srcdir" = x.; then
16860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16861 s/:*\$(srcdir):*/:/
16862 s/:*\${srcdir}:*/:/
16863 s/:*@srcdir@:*/:/
16864 s/^\([^=]*=[ ]*\):*/\1/
16865 s/:*$//
16866 s/^[^=]*=[ ]*$//
16870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16871 fi # test -n "$CONFIG_FILES"
16873 # Set up the scripts for CONFIG_HEADERS section.
16874 # No need to generate them if there are no CONFIG_HEADERS.
16875 # This happens for instance with `./config.status Makefile'.
16876 if test -n "$CONFIG_HEADERS"; then
16877 cat >"$tmp/defines.awk" <<\_ACAWK ||
16878 BEGIN {
16879 _ACEOF
16881 # Transform confdefs.h into an awk script `defines.awk', embedded as
16882 # here-document in config.status, that substitutes the proper values into
16883 # config.h.in to produce config.h.
16885 # Create a delimiter string that does not exist in confdefs.h, to ease
16886 # handling of long lines.
16887 ac_delim='%!_!# '
16888 for ac_last_try in false false :; do
16889 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16890 if test -z "$ac_t"; then
16891 break
16892 elif $ac_last_try; then
16893 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16894 else
16895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16897 done
16899 # For the awk script, D is an array of macro values keyed by name,
16900 # likewise P contains macro parameters if any. Preserve backslash
16901 # newline sequences.
16903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16904 sed -n '
16905 s/.\{148\}/&'"$ac_delim"'/g
16906 t rset
16907 :rset
16908 s/^[ ]*#[ ]*define[ ][ ]*/ /
16909 t def
16911 :def
16912 s/\\$//
16913 t bsnl
16914 s/["\\]/\\&/g
16915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16916 D["\1"]=" \3"/p
16917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16919 :bsnl
16920 s/["\\]/\\&/g
16921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16922 D["\1"]=" \3\\\\\\n"\\/p
16923 t cont
16924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16925 t cont
16927 :cont
16929 s/.\{148\}/&'"$ac_delim"'/g
16930 t clear
16931 :clear
16932 s/\\$//
16933 t bsnlc
16934 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16936 :bsnlc
16937 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16938 b cont
16939 ' <confdefs.h | sed '
16940 s/'"$ac_delim"'/"\\\
16941 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16944 for (key in D) D_is_set[key] = 1
16945 FS = "\a"
16947 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16948 line = \$ 0
16949 split(line, arg, " ")
16950 if (arg[1] == "#") {
16951 defundef = arg[2]
16952 mac1 = arg[3]
16953 } else {
16954 defundef = substr(arg[1], 2)
16955 mac1 = arg[2]
16957 split(mac1, mac2, "(") #)
16958 macro = mac2[1]
16959 prefix = substr(line, 1, index(line, defundef) - 1)
16960 if (D_is_set[macro]) {
16961 # Preserve the white space surrounding the "#".
16962 print prefix "define", macro P[macro] D[macro]
16963 next
16964 } else {
16965 # Replace #undef with comments. This is necessary, for example,
16966 # in the case of _POSIX_SOURCE, which is predefined and required
16967 # on some systems where configure will not decide to define it.
16968 if (defundef == "undef") {
16969 print "/*", prefix defundef, macro, "*/"
16970 next
16974 { print }
16975 _ACAWK
16976 _ACEOF
16977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16978 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16979 fi # test -n "$CONFIG_HEADERS"
16982 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16983 shift
16984 for ac_tag
16986 case $ac_tag in
16987 :[FHLC]) ac_mode=$ac_tag; continue;;
16988 esac
16989 case $ac_mode$ac_tag in
16990 :[FHL]*:*);;
16991 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16992 :[FH]-) ac_tag=-:-;;
16993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16994 esac
16995 ac_save_IFS=$IFS
16996 IFS=:
16997 set x $ac_tag
16998 IFS=$ac_save_IFS
16999 shift
17000 ac_file=$1
17001 shift
17003 case $ac_mode in
17004 :L) ac_source=$1;;
17005 :[FH])
17006 ac_file_inputs=
17007 for ac_f
17009 case $ac_f in
17010 -) ac_f="$tmp/stdin";;
17011 *) # Look for the file first in the build tree, then in the source tree
17012 # (if the path is not absolute). The absolute path cannot be DOS-style,
17013 # because $ac_f cannot contain `:'.
17014 test -f "$ac_f" ||
17015 case $ac_f in
17016 [\\/$]*) false;;
17017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17018 esac ||
17019 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17020 esac
17021 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17022 as_fn_append ac_file_inputs " '$ac_f'"
17023 done
17025 # Let's still pretend it is `configure' which instantiates (i.e., don't
17026 # use $as_me), people would be surprised to read:
17027 # /* config.h. Generated by config.status. */
17028 configure_input='Generated from '`
17029 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17030 `' by configure.'
17031 if test x"$ac_file" != x-; then
17032 configure_input="$ac_file. $configure_input"
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17034 $as_echo "$as_me: creating $ac_file" >&6;}
17036 # Neutralize special characters interpreted by sed in replacement strings.
17037 case $configure_input in #(
17038 *\&* | *\|* | *\\* )
17039 ac_sed_conf_input=`$as_echo "$configure_input" |
17040 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17041 *) ac_sed_conf_input=$configure_input;;
17042 esac
17044 case $ac_tag in
17045 *:-:* | *:-) cat >"$tmp/stdin" \
17046 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17047 esac
17049 esac
17051 ac_dir=`$as_dirname -- "$ac_file" ||
17052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17053 X"$ac_file" : 'X\(//\)[^/]' \| \
17054 X"$ac_file" : 'X\(//\)$' \| \
17055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17056 $as_echo X"$ac_file" |
17057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17058 s//\1/
17061 /^X\(\/\/\)[^/].*/{
17062 s//\1/
17065 /^X\(\/\/\)$/{
17066 s//\1/
17069 /^X\(\/\).*/{
17070 s//\1/
17073 s/.*/./; q'`
17074 as_dir="$ac_dir"; as_fn_mkdir_p
17075 ac_builddir=.
17077 case "$ac_dir" in
17078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17080 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17081 # A ".." for each directory in $ac_dir_suffix.
17082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17083 case $ac_top_builddir_sub in
17084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17086 esac ;;
17087 esac
17088 ac_abs_top_builddir=$ac_pwd
17089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17090 # for backward compatibility:
17091 ac_top_builddir=$ac_top_build_prefix
17093 case $srcdir in
17094 .) # We are building in place.
17095 ac_srcdir=.
17096 ac_top_srcdir=$ac_top_builddir_sub
17097 ac_abs_top_srcdir=$ac_pwd ;;
17098 [\\/]* | ?:[\\/]* ) # Absolute name.
17099 ac_srcdir=$srcdir$ac_dir_suffix;
17100 ac_top_srcdir=$srcdir
17101 ac_abs_top_srcdir=$srcdir ;;
17102 *) # Relative name.
17103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17104 ac_top_srcdir=$ac_top_build_prefix$srcdir
17105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17106 esac
17107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17110 case $ac_mode in
17113 # CONFIG_FILE
17116 case $INSTALL in
17117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17119 esac
17120 ac_MKDIR_P=$MKDIR_P
17121 case $MKDIR_P in
17122 [\\/$]* | ?:[\\/]* ) ;;
17123 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17124 esac
17125 _ACEOF
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 # If the template does not know about datarootdir, expand it.
17129 # FIXME: This hack should be removed a few years after 2.60.
17130 ac_datarootdir_hack=; ac_datarootdir_seen=
17131 ac_sed_dataroot='
17132 /datarootdir/ {
17136 /@datadir@/p
17137 /@docdir@/p
17138 /@infodir@/p
17139 /@localedir@/p
17140 /@mandir@/p'
17141 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17142 *datarootdir*) ac_datarootdir_seen=yes;;
17143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17145 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17146 _ACEOF
17147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17148 ac_datarootdir_hack='
17149 s&@datadir@&$datadir&g
17150 s&@docdir@&$docdir&g
17151 s&@infodir@&$infodir&g
17152 s&@localedir@&$localedir&g
17153 s&@mandir@&$mandir&g
17154 s&\\\${datarootdir}&$datarootdir&g' ;;
17155 esac
17156 _ACEOF
17158 # Neutralize VPATH when `$srcdir' = `.'.
17159 # Shell code in configure.ac might set extrasub.
17160 # FIXME: do we really want to maintain this feature?
17161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17162 ac_sed_extra="$ac_vpsub
17163 $extrasub
17164 _ACEOF
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17168 s|@configure_input@|$ac_sed_conf_input|;t t
17169 s&@top_builddir@&$ac_top_builddir_sub&;t t
17170 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17171 s&@srcdir@&$ac_srcdir&;t t
17172 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17173 s&@top_srcdir@&$ac_top_srcdir&;t t
17174 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17175 s&@builddir@&$ac_builddir&;t t
17176 s&@abs_builddir@&$ac_abs_builddir&;t t
17177 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17178 s&@INSTALL@&$ac_INSTALL&;t t
17179 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17180 $ac_datarootdir_hack
17182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17183 || as_fn_error "could not create $ac_file" "$LINENO" 5
17185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17186 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17189 which seems to be undefined. Please make sure it is defined." >&5
17190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17191 which seems to be undefined. Please make sure it is defined." >&2;}
17193 rm -f "$tmp/stdin"
17194 case $ac_file in
17195 -) cat "$tmp/out" && rm -f "$tmp/out";;
17196 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17197 esac \
17198 || as_fn_error "could not create $ac_file" "$LINENO" 5
17202 # CONFIG_HEADER
17204 if test x"$ac_file" != x-; then
17206 $as_echo "/* $configure_input */" \
17207 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17208 } >"$tmp/config.h" \
17209 || as_fn_error "could not create $ac_file" "$LINENO" 5
17210 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17212 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17213 else
17214 rm -f "$ac_file"
17215 mv "$tmp/config.h" "$ac_file" \
17216 || as_fn_error "could not create $ac_file" "$LINENO" 5
17218 else
17219 $as_echo "/* $configure_input */" \
17220 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17221 || as_fn_error "could not create -" "$LINENO" 5
17223 # Compute "$ac_file"'s index in $config_headers.
17224 _am_arg="$ac_file"
17225 _am_stamp_count=1
17226 for _am_header in $config_headers :; do
17227 case $_am_header in
17228 $_am_arg | $_am_arg:* )
17229 break ;;
17231 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17232 esac
17233 done
17234 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17235 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$_am_arg" : 'X\(//\)[^/]' \| \
17237 X"$_am_arg" : 'X\(//\)$' \| \
17238 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17239 $as_echo X"$_am_arg" |
17240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17241 s//\1/
17244 /^X\(\/\/\)[^/].*/{
17245 s//\1/
17248 /^X\(\/\/\)$/{
17249 s//\1/
17252 /^X\(\/\).*/{
17253 s//\1/
17256 s/.*/./; q'`/stamp-h$_am_stamp_count
17259 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17260 $as_echo "$as_me: executing $ac_file commands" >&6;}
17262 esac
17265 case $ac_file$ac_mode in
17266 "default-1":C)
17267 # Only add multilib support code if we just rebuilt the top-level
17268 # Makefile.
17269 case " $CONFIG_FILES " in
17270 *" Makefile "*)
17271 ac_file=Makefile . ${multi_basedir}/config-ml.in
17273 esac ;;
17274 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17275 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17276 # are listed without --file. Let's play safe and only enable the eval
17277 # if we detect the quoting.
17278 case $CONFIG_FILES in
17279 *\'*) eval set x "$CONFIG_FILES" ;;
17280 *) set x $CONFIG_FILES ;;
17281 esac
17282 shift
17283 for mf
17285 # Strip MF so we end up with the name of the file.
17286 mf=`echo "$mf" | sed -e 's/:.*$//'`
17287 # Check whether this is an Automake generated Makefile or not.
17288 # We used to match only the files named `Makefile.in', but
17289 # some people rename them; so instead we look at the file content.
17290 # Grep'ing the first line is not enough: some people post-process
17291 # each Makefile.in and add a new line on top of each file to say so.
17292 # Grep'ing the whole file is not good either: AIX grep has a line
17293 # limit of 2048, but all sed's we know have understand at least 4000.
17294 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17295 dirpart=`$as_dirname -- "$mf" ||
17296 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297 X"$mf" : 'X\(//\)[^/]' \| \
17298 X"$mf" : 'X\(//\)$' \| \
17299 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17300 $as_echo X"$mf" |
17301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17302 s//\1/
17305 /^X\(\/\/\)[^/].*/{
17306 s//\1/
17309 /^X\(\/\/\)$/{
17310 s//\1/
17313 /^X\(\/\).*/{
17314 s//\1/
17317 s/.*/./; q'`
17318 else
17319 continue
17321 # Extract the definition of DEPDIR, am__include, and am__quote
17322 # from the Makefile without running `make'.
17323 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17324 test -z "$DEPDIR" && continue
17325 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17326 test -z "am__include" && continue
17327 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17328 # When using ansi2knr, U may be empty or an underscore; expand it
17329 U=`sed -n 's/^U = //p' < "$mf"`
17330 # Find all dependency output files, they are included files with
17331 # $(DEPDIR) in their names. We invoke sed twice because it is the
17332 # simplest approach to changing $(DEPDIR) to its actual value in the
17333 # expansion.
17334 for file in `sed -n "
17335 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17336 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17337 # Make sure the directory exists.
17338 test -f "$dirpart/$file" && continue
17339 fdir=`$as_dirname -- "$file" ||
17340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17341 X"$file" : 'X\(//\)[^/]' \| \
17342 X"$file" : 'X\(//\)$' \| \
17343 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17344 $as_echo X"$file" |
17345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17346 s//\1/
17349 /^X\(\/\/\)[^/].*/{
17350 s//\1/
17353 /^X\(\/\/\)$/{
17354 s//\1/
17357 /^X\(\/\).*/{
17358 s//\1/
17361 s/.*/./; q'`
17362 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17363 # echo "creating $dirpart/$file"
17364 echo '# dummy' > "$dirpart/$file"
17365 done
17366 done
17369 "libtool":C)
17371 # See if we are running on zsh, and set the options which allow our
17372 # commands through without removal of \ escapes.
17373 if test -n "${ZSH_VERSION+set}" ; then
17374 setopt NO_GLOB_SUBST
17377 cfgfile="${ofile}T"
17378 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17379 $RM "$cfgfile"
17381 cat <<_LT_EOF >> "$cfgfile"
17382 #! $SHELL
17384 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17385 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17387 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17389 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17390 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17391 # Written by Gordon Matzigkeit, 1996
17393 # This file is part of GNU Libtool.
17395 # GNU Libtool is free software; you can redistribute it and/or
17396 # modify it under the terms of the GNU General Public License as
17397 # published by the Free Software Foundation; either version 2 of
17398 # the License, or (at your option) any later version.
17400 # As a special exception to the GNU General Public License,
17401 # if you distribute this file as part of a program or library that
17402 # is built using GNU Libtool, you may include this file under the
17403 # same distribution terms that you use for the rest of that program.
17405 # GNU Libtool is distributed in the hope that it will be useful,
17406 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17407 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17408 # GNU General Public License for more details.
17410 # You should have received a copy of the GNU General Public License
17411 # along with GNU Libtool; see the file COPYING. If not, a copy
17412 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17413 # obtained by writing to the Free Software Foundation, Inc.,
17414 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17417 # The names of the tagged configurations supported by this script.
17418 available_tags="GO "
17420 # ### BEGIN LIBTOOL CONFIG
17422 # A sed program that does not truncate output.
17423 SED=$lt_SED
17425 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17426 Xsed="\$SED -e 1s/^X//"
17428 # A grep program that handles long lines.
17429 GREP=$lt_GREP
17431 # An ERE matcher.
17432 EGREP=$lt_EGREP
17434 # A literal string matcher.
17435 FGREP=$lt_FGREP
17437 # Shell to use when invoking shell scripts.
17438 SHELL=$lt_SHELL
17440 # An echo program that protects backslashes.
17441 ECHO=$lt_ECHO
17443 # Which release of libtool.m4 was used?
17444 macro_version=$macro_version
17445 macro_revision=$macro_revision
17447 # Whether or not to build shared libraries.
17448 build_libtool_libs=$enable_shared
17450 # Whether or not to build static libraries.
17451 build_old_libs=$enable_static
17453 # What type of objects to build.
17454 pic_mode=$pic_mode
17456 # Whether or not to optimize for fast installation.
17457 fast_install=$enable_fast_install
17459 # The host system.
17460 host_alias=$host_alias
17461 host=$host
17462 host_os=$host_os
17464 # The build system.
17465 build_alias=$build_alias
17466 build=$build
17467 build_os=$build_os
17469 # A BSD- or MS-compatible name lister.
17470 NM=$lt_NM
17472 # Whether we need soft or hard links.
17473 LN_S=$lt_LN_S
17475 # What is the maximum length of a command?
17476 max_cmd_len=$max_cmd_len
17478 # Object file suffix (normally "o").
17479 objext=$ac_objext
17481 # Executable file suffix (normally "").
17482 exeext=$exeext
17484 # whether the shell understands "unset".
17485 lt_unset=$lt_unset
17487 # turn spaces into newlines.
17488 SP2NL=$lt_lt_SP2NL
17490 # turn newlines into spaces.
17491 NL2SP=$lt_lt_NL2SP
17493 # An object symbol dumper.
17494 OBJDUMP=$lt_OBJDUMP
17496 # Method to check whether dependent libraries are shared objects.
17497 deplibs_check_method=$lt_deplibs_check_method
17499 # Command to use when deplibs_check_method == "file_magic".
17500 file_magic_cmd=$lt_file_magic_cmd
17502 # The archiver.
17503 AR=$lt_AR
17504 AR_FLAGS=$lt_AR_FLAGS
17506 # A symbol stripping program.
17507 STRIP=$lt_STRIP
17509 # Commands used to install an old-style archive.
17510 RANLIB=$lt_RANLIB
17511 old_postinstall_cmds=$lt_old_postinstall_cmds
17512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17514 # Whether to use a lock for old archive extraction.
17515 lock_old_archive_extraction=$lock_old_archive_extraction
17517 # A C compiler.
17518 LTCC=$lt_CC
17520 # LTCC compiler flags.
17521 LTCFLAGS=$lt_CFLAGS
17523 # Take the output of nm and produce a listing of raw symbols and C names.
17524 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17526 # Transform the output of nm in a proper C declaration.
17527 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17529 # Transform the output of nm in a C name address pair.
17530 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17532 # Transform the output of nm in a C name address pair when lib prefix is needed.
17533 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17535 # The name of the directory that contains temporary libtool files.
17536 objdir=$objdir
17538 # Used to examine libraries when file_magic_cmd begins with "file".
17539 MAGIC_CMD=$MAGIC_CMD
17541 # Must we lock files when doing compilation?
17542 need_locks=$lt_need_locks
17544 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17545 DSYMUTIL=$lt_DSYMUTIL
17547 # Tool to change global to local symbols on Mac OS X.
17548 NMEDIT=$lt_NMEDIT
17550 # Tool to manipulate fat objects and archives on Mac OS X.
17551 LIPO=$lt_LIPO
17553 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17554 OTOOL=$lt_OTOOL
17556 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17557 OTOOL64=$lt_OTOOL64
17559 # Old archive suffix (normally "a").
17560 libext=$libext
17562 # Shared library suffix (normally ".so").
17563 shrext_cmds=$lt_shrext_cmds
17565 # The commands to extract the exported symbol list from a shared archive.
17566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17568 # Variables whose values should be saved in libtool wrapper scripts and
17569 # restored at link time.
17570 variables_saved_for_relink=$lt_variables_saved_for_relink
17572 # Do we need the "lib" prefix for modules?
17573 need_lib_prefix=$need_lib_prefix
17575 # Do we need a version for libraries?
17576 need_version=$need_version
17578 # Library versioning type.
17579 version_type=$version_type
17581 # Shared library runtime path variable.
17582 runpath_var=$runpath_var
17584 # Shared library path variable.
17585 shlibpath_var=$shlibpath_var
17587 # Is shlibpath searched before the hard-coded library search path?
17588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17590 # Format of library name prefix.
17591 libname_spec=$lt_libname_spec
17593 # List of archive names. First name is the real one, the rest are links.
17594 # The last name is the one that the linker finds with -lNAME
17595 library_names_spec=$lt_library_names_spec
17597 # The coded name of the library, if different from the real name.
17598 soname_spec=$lt_soname_spec
17600 # Permission mode override for installation of shared libraries.
17601 install_override_mode=$lt_install_override_mode
17603 # Command to use after installation of a shared archive.
17604 postinstall_cmds=$lt_postinstall_cmds
17606 # Command to use after uninstallation of a shared archive.
17607 postuninstall_cmds=$lt_postuninstall_cmds
17609 # Commands used to finish a libtool library installation in a directory.
17610 finish_cmds=$lt_finish_cmds
17612 # As "finish_cmds", except a single script fragment to be evaled but
17613 # not shown.
17614 finish_eval=$lt_finish_eval
17616 # Whether we should hardcode library paths into libraries.
17617 hardcode_into_libs=$hardcode_into_libs
17619 # Compile-time system search path for libraries.
17620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17622 # Run-time system search path for libraries.
17623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17625 # Whether dlopen is supported.
17626 dlopen_support=$enable_dlopen
17628 # Whether dlopen of programs is supported.
17629 dlopen_self=$enable_dlopen_self
17631 # Whether dlopen of statically linked programs is supported.
17632 dlopen_self_static=$enable_dlopen_self_static
17634 # Commands to strip libraries.
17635 old_striplib=$lt_old_striplib
17636 striplib=$lt_striplib
17639 # The linker used to build libraries.
17640 LD=$lt_LD
17642 # How to create reloadable object files.
17643 reload_flag=$lt_reload_flag
17644 reload_cmds=$lt_reload_cmds
17646 # Commands used to build an old-style archive.
17647 old_archive_cmds=$lt_old_archive_cmds
17649 # A language specific compiler.
17650 CC=$lt_compiler
17652 # Is the compiler the GNU compiler?
17653 with_gcc=$GCC
17655 # Compiler flag to turn off builtin functions.
17656 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17658 # How to pass a linker flag through the compiler.
17659 wl=$lt_lt_prog_compiler_wl
17661 # Additional compiler flags for building library objects.
17662 pic_flag=$lt_lt_prog_compiler_pic
17664 # Compiler flag to prevent dynamic linking.
17665 link_static_flag=$lt_lt_prog_compiler_static
17667 # Does compiler simultaneously support -c and -o options?
17668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17670 # Whether or not to add -lc for building shared libraries.
17671 build_libtool_need_lc=$archive_cmds_need_lc
17673 # Whether or not to disallow shared libs when runtime libs are static.
17674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17676 # Compiler flag to allow reflexive dlopens.
17677 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17679 # Compiler flag to generate shared objects directly from archives.
17680 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17682 # Whether the compiler copes with passing no objects directly.
17683 compiler_needs_object=$lt_compiler_needs_object
17685 # Create an old-style archive from a shared archive.
17686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17688 # Create a temporary old-style archive to link instead of a shared archive.
17689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17691 # Commands used to build a shared archive.
17692 archive_cmds=$lt_archive_cmds
17693 archive_expsym_cmds=$lt_archive_expsym_cmds
17695 # Commands used to build a loadable module if different from building
17696 # a shared archive.
17697 module_cmds=$lt_module_cmds
17698 module_expsym_cmds=$lt_module_expsym_cmds
17700 # Whether we are building with GNU ld or not.
17701 with_gnu_ld=$lt_with_gnu_ld
17703 # Flag that allows shared libraries with undefined symbols to be built.
17704 allow_undefined_flag=$lt_allow_undefined_flag
17706 # Flag that enforces no undefined symbols.
17707 no_undefined_flag=$lt_no_undefined_flag
17709 # Flag to hardcode \$libdir into a binary during linking.
17710 # This must work even if \$libdir does not exist
17711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17713 # If ld is used when linking, flag to hardcode \$libdir into a binary
17714 # during linking. This must work even if \$libdir does not exist.
17715 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17717 # Whether we need a single "-rpath" flag with a separated argument.
17718 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17721 # DIR into the resulting binary.
17722 hardcode_direct=$hardcode_direct
17724 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17725 # DIR into the resulting binary and the resulting library dependency is
17726 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17727 # library is relocated.
17728 hardcode_direct_absolute=$hardcode_direct_absolute
17730 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17731 # into the resulting binary.
17732 hardcode_minus_L=$hardcode_minus_L
17734 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17735 # into the resulting binary.
17736 hardcode_shlibpath_var=$hardcode_shlibpath_var
17738 # Set to "yes" if building a shared library automatically hardcodes DIR
17739 # into the library and all subsequent libraries and executables linked
17740 # against it.
17741 hardcode_automatic=$hardcode_automatic
17743 # Set to yes if linker adds runtime paths of dependent libraries
17744 # to runtime path list.
17745 inherit_rpath=$inherit_rpath
17747 # Whether libtool must link a program against all its dependency libraries.
17748 link_all_deplibs=$link_all_deplibs
17750 # Fix the shell variable \$srcfile for the compiler.
17751 fix_srcfile_path=$lt_fix_srcfile_path
17753 # Set to "yes" if exported symbols are required.
17754 always_export_symbols=$always_export_symbols
17756 # The commands to list exported symbols.
17757 export_symbols_cmds=$lt_export_symbols_cmds
17759 # Symbols that should not be listed in the preloaded symbols.
17760 exclude_expsyms=$lt_exclude_expsyms
17762 # Symbols that must always be exported.
17763 include_expsyms=$lt_include_expsyms
17765 # Commands necessary for linking programs (against libraries) with templates.
17766 prelink_cmds=$lt_prelink_cmds
17768 # Specify filename containing input files.
17769 file_list_spec=$lt_file_list_spec
17771 # How to hardcode a shared library path into an executable.
17772 hardcode_action=$hardcode_action
17774 # ### END LIBTOOL CONFIG
17776 _LT_EOF
17778 case $host_os in
17779 aix3*)
17780 cat <<\_LT_EOF >> "$cfgfile"
17781 # AIX sometimes has problems with the GCC collect2 program. For some
17782 # reason, if we set the COLLECT_NAMES environment variable, the problems
17783 # vanish in a puff of smoke.
17784 if test "X${COLLECT_NAMES+set}" != Xset; then
17785 COLLECT_NAMES=
17786 export COLLECT_NAMES
17788 _LT_EOF
17790 esac
17793 ltmain="$ac_aux_dir/ltmain.sh"
17796 # We use sed instead of cat because bash on DJGPP gets confused if
17797 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17798 # text mode, it properly converts lines to CR/LF. This bash problem
17799 # is reportedly fixed, but why not run on old versions too?
17800 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17801 || (rm -f "$cfgfile"; exit 1)
17803 case $xsi_shell in
17804 yes)
17805 cat << \_LT_EOF >> "$cfgfile"
17807 # func_dirname file append nondir_replacement
17808 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17809 # otherwise set result to NONDIR_REPLACEMENT.
17810 func_dirname ()
17812 case ${1} in
17813 */*) func_dirname_result="${1%/*}${2}" ;;
17814 * ) func_dirname_result="${3}" ;;
17815 esac
17818 # func_basename file
17819 func_basename ()
17821 func_basename_result="${1##*/}"
17824 # func_dirname_and_basename file append nondir_replacement
17825 # perform func_basename and func_dirname in a single function
17826 # call:
17827 # dirname: Compute the dirname of FILE. If nonempty,
17828 # add APPEND to the result, otherwise set result
17829 # to NONDIR_REPLACEMENT.
17830 # value returned in "$func_dirname_result"
17831 # basename: Compute filename of FILE.
17832 # value retuned in "$func_basename_result"
17833 # Implementation must be kept synchronized with func_dirname
17834 # and func_basename. For efficiency, we do not delegate to
17835 # those functions but instead duplicate the functionality here.
17836 func_dirname_and_basename ()
17838 case ${1} in
17839 */*) func_dirname_result="${1%/*}${2}" ;;
17840 * ) func_dirname_result="${3}" ;;
17841 esac
17842 func_basename_result="${1##*/}"
17845 # func_stripname prefix suffix name
17846 # strip PREFIX and SUFFIX off of NAME.
17847 # PREFIX and SUFFIX must not contain globbing or regex special
17848 # characters, hashes, percent signs, but SUFFIX may contain a leading
17849 # dot (in which case that matches only a dot).
17850 func_stripname ()
17852 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17853 # positional parameters, so assign one to ordinary parameter first.
17854 func_stripname_result=${3}
17855 func_stripname_result=${func_stripname_result#"${1}"}
17856 func_stripname_result=${func_stripname_result%"${2}"}
17859 # func_opt_split
17860 func_opt_split ()
17862 func_opt_split_opt=${1%%=*}
17863 func_opt_split_arg=${1#*=}
17866 # func_lo2o object
17867 func_lo2o ()
17869 case ${1} in
17870 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17871 *) func_lo2o_result=${1} ;;
17872 esac
17875 # func_xform libobj-or-source
17876 func_xform ()
17878 func_xform_result=${1%.*}.lo
17881 # func_arith arithmetic-term...
17882 func_arith ()
17884 func_arith_result=$(( $* ))
17887 # func_len string
17888 # STRING may not start with a hyphen.
17889 func_len ()
17891 func_len_result=${#1}
17894 _LT_EOF
17896 *) # Bourne compatible functions.
17897 cat << \_LT_EOF >> "$cfgfile"
17899 # func_dirname file append nondir_replacement
17900 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17901 # otherwise set result to NONDIR_REPLACEMENT.
17902 func_dirname ()
17904 # Extract subdirectory from the argument.
17905 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17906 if test "X$func_dirname_result" = "X${1}"; then
17907 func_dirname_result="${3}"
17908 else
17909 func_dirname_result="$func_dirname_result${2}"
17913 # func_basename file
17914 func_basename ()
17916 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17920 # func_stripname prefix suffix name
17921 # strip PREFIX and SUFFIX off of NAME.
17922 # PREFIX and SUFFIX must not contain globbing or regex special
17923 # characters, hashes, percent signs, but SUFFIX may contain a leading
17924 # dot (in which case that matches only a dot).
17925 # func_strip_suffix prefix name
17926 func_stripname ()
17928 case ${2} in
17929 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17930 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17931 esac
17934 # sed scripts:
17935 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17936 my_sed_long_arg='1s/^-[^=]*=//'
17938 # func_opt_split
17939 func_opt_split ()
17941 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17942 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17945 # func_lo2o object
17946 func_lo2o ()
17948 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17951 # func_xform libobj-or-source
17952 func_xform ()
17954 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17957 # func_arith arithmetic-term...
17958 func_arith ()
17960 func_arith_result=`expr "$@"`
17963 # func_len string
17964 # STRING may not start with a hyphen.
17965 func_len ()
17967 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17970 _LT_EOF
17971 esac
17973 case $lt_shell_append in
17974 yes)
17975 cat << \_LT_EOF >> "$cfgfile"
17977 # func_append var value
17978 # Append VALUE to the end of shell variable VAR.
17979 func_append ()
17981 eval "$1+=\$2"
17983 _LT_EOF
17986 cat << \_LT_EOF >> "$cfgfile"
17988 # func_append var value
17989 # Append VALUE to the end of shell variable VAR.
17990 func_append ()
17992 eval "$1=\$$1\$2"
17995 _LT_EOF
17997 esac
18000 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18001 || (rm -f "$cfgfile"; exit 1)
18003 mv -f "$cfgfile" "$ofile" ||
18004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18005 chmod +x "$ofile"
18008 cat <<_LT_EOF >> "$ofile"
18010 # ### BEGIN LIBTOOL TAG CONFIG: GO
18012 # The linker used to build libraries.
18013 LD=$lt_LD_GO
18015 # How to create reloadable object files.
18016 reload_flag=$lt_reload_flag_GO
18017 reload_cmds=$lt_reload_cmds_GO
18019 # Commands used to build an old-style archive.
18020 old_archive_cmds=$lt_old_archive_cmds_GO
18022 # A language specific compiler.
18023 CC=$lt_compiler_GO
18025 # Is the compiler the GNU compiler?
18026 with_gcc=$GCC_GO
18028 # Compiler flag to turn off builtin functions.
18029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18031 # How to pass a linker flag through the compiler.
18032 wl=$lt_lt_prog_compiler_wl_GO
18034 # Additional compiler flags for building library objects.
18035 pic_flag=$lt_lt_prog_compiler_pic_GO
18037 # Compiler flag to prevent dynamic linking.
18038 link_static_flag=$lt_lt_prog_compiler_static_GO
18040 # Does compiler simultaneously support -c and -o options?
18041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18043 # Whether or not to add -lc for building shared libraries.
18044 build_libtool_need_lc=$archive_cmds_need_lc_GO
18046 # Whether or not to disallow shared libs when runtime libs are static.
18047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18049 # Compiler flag to allow reflexive dlopens.
18050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18052 # Compiler flag to generate shared objects directly from archives.
18053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18055 # Whether the compiler copes with passing no objects directly.
18056 compiler_needs_object=$lt_compiler_needs_object_GO
18058 # Create an old-style archive from a shared archive.
18059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18061 # Create a temporary old-style archive to link instead of a shared archive.
18062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18064 # Commands used to build a shared archive.
18065 archive_cmds=$lt_archive_cmds_GO
18066 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18068 # Commands used to build a loadable module if different from building
18069 # a shared archive.
18070 module_cmds=$lt_module_cmds_GO
18071 module_expsym_cmds=$lt_module_expsym_cmds_GO
18073 # Whether we are building with GNU ld or not.
18074 with_gnu_ld=$lt_with_gnu_ld_GO
18076 # Flag that allows shared libraries with undefined symbols to be built.
18077 allow_undefined_flag=$lt_allow_undefined_flag_GO
18079 # Flag that enforces no undefined symbols.
18080 no_undefined_flag=$lt_no_undefined_flag_GO
18082 # Flag to hardcode \$libdir into a binary during linking.
18083 # This must work even if \$libdir does not exist
18084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18086 # If ld is used when linking, flag to hardcode \$libdir into a binary
18087 # during linking. This must work even if \$libdir does not exist.
18088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18090 # Whether we need a single "-rpath" flag with a separated argument.
18091 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18094 # DIR into the resulting binary.
18095 hardcode_direct=$hardcode_direct_GO
18097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18098 # DIR into the resulting binary and the resulting library dependency is
18099 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18100 # library is relocated.
18101 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18103 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18104 # into the resulting binary.
18105 hardcode_minus_L=$hardcode_minus_L_GO
18107 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18108 # into the resulting binary.
18109 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18111 # Set to "yes" if building a shared library automatically hardcodes DIR
18112 # into the library and all subsequent libraries and executables linked
18113 # against it.
18114 hardcode_automatic=$hardcode_automatic_GO
18116 # Set to yes if linker adds runtime paths of dependent libraries
18117 # to runtime path list.
18118 inherit_rpath=$inherit_rpath_GO
18120 # Whether libtool must link a program against all its dependency libraries.
18121 link_all_deplibs=$link_all_deplibs_GO
18123 # Fix the shell variable \$srcfile for the compiler.
18124 fix_srcfile_path=$lt_fix_srcfile_path_GO
18126 # Set to "yes" if exported symbols are required.
18127 always_export_symbols=$always_export_symbols_GO
18129 # The commands to list exported symbols.
18130 export_symbols_cmds=$lt_export_symbols_cmds_GO
18132 # Symbols that should not be listed in the preloaded symbols.
18133 exclude_expsyms=$lt_exclude_expsyms_GO
18135 # Symbols that must always be exported.
18136 include_expsyms=$lt_include_expsyms_GO
18138 # Commands necessary for linking programs (against libraries) with templates.
18139 prelink_cmds=$lt_prelink_cmds_GO
18141 # Specify filename containing input files.
18142 file_list_spec=$lt_file_list_spec_GO
18144 # How to hardcode a shared library path into an executable.
18145 hardcode_action=$hardcode_action_GO
18147 # ### END LIBTOOL TAG CONFIG: GO
18148 _LT_EOF
18151 "default":C) if test -n "$CONFIG_FILES"; then
18152 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18153 # that multilib installs will end up installed in the correct place.
18154 # The testsuite needs it for multilib-aware ABI baseline files.
18155 # To work around this not being passed down from config-ml.in ->
18156 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18157 # append it here. Only modify Makefiles that have just been created.
18159 # Also, get rid of this simulated-VPATH thing that automake does.
18160 cat > vpsed << \_EOF
18161 s!`test -f '$<' || echo '$(srcdir)/'`!!
18162 _EOF
18163 for i in $SUBDIRS; do
18164 case $CONFIG_FILES in
18165 *${i}/Makefile*)
18166 #echo "Adding MULTISUBDIR to $i/Makefile"
18167 sed -f vpsed $i/Makefile > tmp
18168 grep '^MULTISUBDIR =' Makefile >> tmp
18169 mv tmp $i/Makefile
18171 esac
18172 done
18173 rm vpsed
18177 esac
18178 done # for ac_tag
18181 as_fn_exit 0
18182 _ACEOF
18183 ac_clean_files=$ac_clean_files_save
18185 test $ac_write_fail = 0 ||
18186 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18189 # configure is writing to config.log, and then calls config.status.
18190 # config.status does its own redirection, appending to config.log.
18191 # Unfortunately, on DOS this fails, as config.log is still kept open
18192 # by configure, so config.status won't be able to write to it; its
18193 # output is simply discarded. So we exec the FD to /dev/null,
18194 # effectively closing config.log, so it can be properly (re)opened and
18195 # appended to by config.status. When coming back to configure, we
18196 # need to make the FD available again.
18197 if test "$no_create" != yes; then
18198 ac_cs_success=:
18199 ac_config_status_args=
18200 test "$silent" = yes &&
18201 ac_config_status_args="$ac_config_status_args --quiet"
18202 exec 5>/dev/null
18203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18204 exec 5>>config.log
18205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18206 # would make configure fail if this is the last instruction.
18207 $ac_cs_success || as_fn_exit $?
18209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}