2013-05-20 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / libgo / configure
blobe1d37dc2d7b2f6b02594b7a0f08d4e65070e279b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM_FALSE
651 LIBGO_IS_ARM_TRUE
652 LIBGO_IS_ALPHA_FALSE
653 LIBGO_IS_ALPHA_TRUE
654 LIBGO_IS_386_FALSE
655 LIBGO_IS_386_TRUE
656 USE_DEJAGNU
657 GOOS
658 LIBGO_IS_SOLARIS_FALSE
659 LIBGO_IS_SOLARIS_TRUE
660 LIBGO_IS_RTEMS_FALSE
661 LIBGO_IS_RTEMS_TRUE
662 LIBGO_IS_OPENBSD_FALSE
663 LIBGO_IS_OPENBSD_TRUE
664 LIBGO_IS_NETBSD_FALSE
665 LIBGO_IS_NETBSD_TRUE
666 LIBGO_IS_LINUX_FALSE
667 LIBGO_IS_LINUX_TRUE
668 LIBGO_IS_IRIX_FALSE
669 LIBGO_IS_IRIX_TRUE
670 LIBGO_IS_FREEBSD_FALSE
671 LIBGO_IS_FREEBSD_TRUE
672 LIBGO_IS_DARWIN_FALSE
673 LIBGO_IS_DARWIN_TRUE
674 go_include
675 LIBFFIINCS
676 LIBFFI
677 nover_glibgo_toolexeclibdir
678 glibgo_toolexeclibdir
679 glibgo_toolexecdir
680 WERROR
681 WARN_FLAGS
682 CC_FOR_BUILD
683 enable_static
684 enable_shared
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
692 OBJDUMP
693 LN_S
695 ac_ct_DUMPBIN
696 DUMPBIN
697 LIBTOOL
698 OBJCOPY
699 RANLIB
701 FGREP
702 EGREP
703 GREP
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 GOCFLAGS
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 multi_basedir
762 libtool_VERSION
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_multilib
805 enable_dependency_tracking
806 enable_maintainer_mode
807 with_gnu_ld
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 enable_libtool_lock
813 enable_werror
814 enable_version_specific_runtime_libs
815 with_libffi
816 with_system_libunwind
817 enable_sjlj_exceptions
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
823 CPPFLAGS'
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
874 ac_prev=
875 ac_dashdash=
876 for ac_option
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
894 ac_dashdash=yes ;;
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
913 --config-cache | -C)
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 esac
1231 done
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1317 /^X\(\/\/\)$/{
1318 s//\1/
1321 /^X\(\/\).*/{
1322 s//\1/
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1330 else
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340 pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1359 # Report the --help message.
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
1365 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1372 Defaults for the options are specified in brackets.
1374 Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1396 For better control, use the options below.
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418 _ACEOF
1420 cat <<\_ACEOF
1422 Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1427 System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 --target=TARGET configure for building compilers for TARGET [HOST]
1431 _ACEOF
1434 if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of package-unused version-unused:";;
1437 esac
1438 cat <<\_ACEOF
1440 Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-multilib build many library versions (default)
1445 --disable-dependency-tracking speeds up one-time build
1446 --enable-dependency-tracking do not reject slow dependency extractors
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-werror turns on -Werror [default=yes]
1455 --enable-version-specific-runtime-libs
1456 Specify that runtime libraries should be installed
1457 in a compiler-specific directory
1458 --enable-sjlj-exceptions
1459 force use of builtin_setjmp for exceptions
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --without-libffi don't use libffi
1468 --with-system-libunwind use installed libunwind
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 GOC Go compiler command
1479 GOCFLAGS Go compiler flags
1480 CPP C preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 _ACEOF
1487 ac_status=$?
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 package-unused configure version-unused
1549 generated by GNU Autoconf 2.64
1551 Copyright (C) 2009 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555 exit
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_link LINENO
1601 # -----------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_link ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest$ac_exeext
1607 if { { ac_try="$ac_link"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest$ac_exeext && {
1626 test "$cross_compiling" = yes ||
1627 $as_test_x conftest$ac_exeext
1628 }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=1
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 return $ac_retval
1644 } # ac_fn_c_try_link
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists and can be compiled using the include files in
1649 # INCLUDES, setting the cache variable VAR accordingly.
1650 ac_fn_c_check_header_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1657 else
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 eval "$3=yes"
1665 else
1666 eval "$3=no"
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 } # ac_fn_c_check_header_compile
1677 # ac_fn_c_try_cpp LINENO
1678 # ----------------------
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_cpp ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } >/dev/null && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=1
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1712 } # ac_fn_c_try_cpp
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1754 } # ac_fn_c_try_run
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1784 #undef $2
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1801 main ()
1803 return $2 ();
1805 return 0;
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_func
1823 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 # the include files in INCLUDES and setting the cache variable VAR
1827 # accordingly.
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 else
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1851 else
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1867 else
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 yes:no: )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 no:yes:* )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 esac
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 eval "$3=\$ac_header_compiler"
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_check_header_mongrel
1910 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911 # -------------------------------------------
1912 # Tests whether TYPE exists after having included INCLUDES, setting cache
1913 # variable VAR accordingly.
1914 ac_fn_c_check_type ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 eval "$3=no"
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 main ()
1929 if (sizeof ($2))
1930 return 0;
1932 return 0;
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 main ()
1942 if (sizeof (($2)))
1943 return 0;
1945 return 0;
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1950 else
1951 eval "$3=yes"
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_c_check_type
1964 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1965 # --------------------------------------------
1966 # Tries to find the compile-time value of EXPR in a program that includes
1967 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1968 # computed
1969 ac_fn_c_compute_int ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if test "$cross_compiling" = yes; then
1973 # Depending upon the size, compute the lo and hi bounds.
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 main ()
1980 static int test_array [1 - 2 * !(($2) >= 0)];
1981 test_array [0] = 0
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=$ac_mid; break
2005 else
2006 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2007 if test $ac_lo -le $ac_mid; then
2008 ac_lo= ac_hi=
2009 break
2011 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 done
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 main ()
2022 static int test_array [1 - 2 * !(($2) < 0)];
2023 test_array [0] = 0
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_hi=-1 ac_mid=-1
2031 while :; do
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2039 test_array [0] = 0
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_lo=$ac_mid; break
2047 else
2048 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2049 if test $ac_mid -le $ac_hi; then
2050 ac_lo= ac_hi=
2051 break
2053 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 else
2058 ac_lo= ac_hi=
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 # Binary search between lo and hi bounds.
2064 while test "x$ac_lo" != "x$ac_hi"; do
2065 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 test_array [0] = 0
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=$ac_mid
2081 else
2082 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086 case $ac_lo in #((
2087 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088 '') ac_retval=1 ;;
2089 esac
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2094 static long int longval () { return $2; }
2095 static unsigned long int ulongval () { return $2; }
2096 #include <stdio.h>
2097 #include <stdlib.h>
2099 main ()
2102 FILE *f = fopen ("conftest.val", "w");
2103 if (! f)
2104 return 1;
2105 if (($2) < 0)
2107 long int i = longval ();
2108 if (i != ($2))
2109 return 1;
2110 fprintf (f, "%ld", i);
2112 else
2114 unsigned long int i = ulongval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%lu", i);
2119 /* Do not output a trailing newline, as this causes \r\n confusion
2120 on some platforms. */
2121 return ferror (f) || fclose (f) != 0;
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_run "$LINENO"; then :
2128 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129 else
2130 ac_retval=1
2132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 rm -f conftest.val
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 return $ac_retval
2140 } # ac_fn_c_compute_int
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2145 It was created by package-unused $as_me version-unused, which was
2146 generated by GNU Autoconf 2.64. Invocation command line was
2148 $ $0 $@
2150 _ACEOF
2151 exec 5>>config.log
2153 cat <<_ASUNAME
2154 ## --------- ##
2155 ## Platform. ##
2156 ## --------- ##
2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2175 _ASUNAME
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2183 done
2184 IFS=$as_save_IFS
2186 } >&5
2188 cat >&5 <<_ACEOF
2191 ## ----------- ##
2192 ## Core tests. ##
2193 ## ----------- ##
2195 _ACEOF
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2203 ac_configure_args=
2204 ac_configure_args0=
2205 ac_configure_args1=
2206 ac_must_keep_next=false
2207 for ac_pass in 1 2
2209 for ac_arg
2211 case $ac_arg in
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2215 continue ;;
2216 *\'*)
2217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac
2219 case $ac_pass in
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2225 else
2226 case $ac_arg in
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 esac
2235 -* ) ac_must_keep_next=true ;;
2236 esac
2238 as_fn_append ac_configure_args " '$ac_arg'"
2240 esac
2241 done
2242 done
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log. We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2254 echo
2256 cat <<\_ASBOX
2257 ## ---------------- ##
2258 ## Cache variables. ##
2259 ## ---------------- ##
2260 _ASBOX
2261 echo
2262 # The following way of writing the cache mishandles newlines in values,
2264 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in #(
2267 *${as_nl}*)
2268 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 esac
2272 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2276 esac ;;
2277 esac
2278 done
2279 (set) 2>&1 |
2280 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2282 sed -n \
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 ;; #(
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2289 esac |
2290 sort
2292 echo
2294 cat <<\_ASBOX
2295 ## ----------------- ##
2296 ## Output variables. ##
2297 ## ----------------- ##
2298 _ASBOX
2299 echo
2300 for ac_var in $ac_subst_vars
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2310 if test -n "$ac_subst_files"; then
2311 cat <<\_ASBOX
2312 ## ------------------- ##
2313 ## File substitutions. ##
2314 ## ------------------- ##
2315 _ASBOX
2316 echo
2317 for ac_var in $ac_subst_files
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2328 if test -s confdefs.h; then
2329 cat <<\_ASBOX
2330 ## ----------- ##
2331 ## confdefs.h. ##
2332 ## ----------- ##
2333 _ASBOX
2334 echo
2335 cat confdefs.h
2336 echo
2338 test "$ac_signal" != 0 &&
2339 $as_echo "$as_me: caught signal $ac_signal"
2340 $as_echo "$as_me: exit $exit_status"
2341 } >&5
2342 rm -f core *.core core.conftest.* &&
2343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344 exit $exit_status
2346 for ac_signal in 1 2 13 15; do
2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348 done
2349 ac_signal=0
2351 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2352 rm -f -r conftest* confdefs.h
2354 $as_echo "/* confdefs.h */" > confdefs.h
2356 # Predefined preprocessor variables.
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_NAME "$PACKAGE_NAME"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_STRING "$PACKAGE_STRING"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_URL "$PACKAGE_URL"
2380 _ACEOF
2383 # Let the site file select an alternate cache file if it wants to.
2384 # Prefer an explicitly selected file to automatically selected ones.
2385 ac_site_file1=NONE
2386 ac_site_file2=NONE
2387 if test -n "$CONFIG_SITE"; then
2388 ac_site_file1=$CONFIG_SITE
2389 elif test "x$prefix" != xNONE; then
2390 ac_site_file1=$prefix/share/config.site
2391 ac_site_file2=$prefix/etc/config.site
2392 else
2393 ac_site_file1=$ac_default_prefix/share/config.site
2394 ac_site_file2=$ac_default_prefix/etc/config.site
2396 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2398 test "x$ac_site_file" = xNONE && continue
2399 if test -r "$ac_site_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file"
2405 done
2407 if test -r "$cache_file"; then
2408 # Some versions of bash will fail to source /dev/null (special
2409 # files actually), so we avoid doing that.
2410 if test -f "$cache_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412 $as_echo "$as_me: loading cache $cache_file" >&6;}
2413 case $cache_file in
2414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415 *) . "./$cache_file";;
2416 esac
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420 $as_echo "$as_me: creating cache $cache_file" >&6;}
2421 >$cache_file
2424 # Check that the precious variables saved in the cache have kept the same
2425 # value.
2426 ac_cache_corrupted=false
2427 for ac_var in $ac_precious_vars; do
2428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2429 eval ac_new_set=\$ac_env_${ac_var}_set
2430 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2431 eval ac_new_val=\$ac_env_${ac_var}_value
2432 case $ac_old_set,$ac_new_set in
2433 set,)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2437 ,set)
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2439 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2440 ac_cache_corrupted=: ;;
2441 ,);;
2443 if test "x$ac_old_val" != "x$ac_new_val"; then
2444 # differences in whitespace do not lead to failure.
2445 ac_old_val_w=`echo x $ac_old_val`
2446 ac_new_val_w=`echo x $ac_new_val`
2447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2449 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2450 ac_cache_corrupted=:
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2453 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2454 eval $ac_var=\$ac_old_val
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2457 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2459 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2460 fi;;
2461 esac
2462 # Pass precious variables to config.status.
2463 if test "$ac_new_set" = set; then
2464 case $ac_new_val in
2465 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2466 *) ac_arg=$ac_var=$ac_new_val ;;
2467 esac
2468 case " $ac_configure_args " in
2469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2470 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2471 esac
2473 done
2474 if $ac_cache_corrupted; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2478 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2479 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2481 ## -------------------- ##
2482 ## Main body of script. ##
2483 ## -------------------- ##
2485 ac_ext=c
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 ac_config_headers="$ac_config_headers config.h"
2499 libtool_VERSION=3:1:0
2502 # Default to --enable-multilib
2503 # Check whether --enable-multilib was given.
2504 if test "${enable_multilib+set}" = set; then :
2505 enableval=$enable_multilib; case "$enableval" in
2506 yes) multilib=yes ;;
2507 no) multilib=no ;;
2508 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2509 esac
2510 else
2511 multilib=yes
2515 # We may get other options which we leave undocumented:
2516 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2517 # See config-ml.in if you want the gory details.
2519 if test "$srcdir" = "."; then
2520 if test "$with_target_subdir" != "."; then
2521 multi_basedir="$srcdir/$with_multisrctop../.."
2522 else
2523 multi_basedir="$srcdir/$with_multisrctop.."
2525 else
2526 multi_basedir="$srcdir/.."
2530 # Even if the default multilib is not a cross compilation,
2531 # it may be that some of the other multilibs are.
2532 if test $cross_compiling = no && test $multilib = yes \
2533 && test "x${with_multisubdir}" != x ; then
2534 cross_compiling=maybe
2537 ac_config_commands="$ac_config_commands default-1"
2540 ac_aux_dir=
2541 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2542 for ac_t in install-sh install.sh shtool; do
2543 if test -f "$ac_dir/$ac_t"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/$ac_t -c"
2546 break 2
2548 done
2549 done
2550 if test -z "$ac_aux_dir"; then
2551 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563 # Make sure we can run config.sub.
2564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2565 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2568 $as_echo_n "checking build system type... " >&6; }
2569 if test "${ac_cv_build+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 ac_build_alias=$build_alias
2573 test "x$ac_build_alias" = x &&
2574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575 test "x$ac_build_alias" = x &&
2576 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2582 $as_echo "$ac_cv_build" >&6; }
2583 case $ac_cv_build in
2584 *-*-*) ;;
2585 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2586 esac
2587 build=$ac_cv_build
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_build
2590 shift
2591 build_cpu=$1
2592 build_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 build_os=$*
2597 IFS=$ac_save_IFS
2598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2602 $as_echo_n "checking host system type... " >&6; }
2603 if test "${ac_cv_host+set}" = set; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test "x$host_alias" = x; then
2607 ac_cv_host=$ac_cv_build
2608 else
2609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2615 $as_echo "$ac_cv_host" >&6; }
2616 case $ac_cv_host in
2617 *-*-*) ;;
2618 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2619 esac
2620 host=$ac_cv_host
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_host
2623 shift
2624 host_cpu=$1
2625 host_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 host_os=$*
2630 IFS=$ac_save_IFS
2631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2635 $as_echo_n "checking target system type... " >&6; }
2636 if test "${ac_cv_target+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test "x$target_alias" = x; then
2640 ac_cv_target=$ac_cv_host
2641 else
2642 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2643 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2648 $as_echo "$ac_cv_target" >&6; }
2649 case $ac_cv_target in
2650 *-*-*) ;;
2651 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2652 esac
2653 target=$ac_cv_target
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_target
2656 shift
2657 target_cpu=$1
2658 target_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 target_os=$*
2663 IFS=$ac_save_IFS
2664 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2667 # The aliases save the names the user supplied, while $host etc.
2668 # will get canonicalized.
2669 test -n "$target_alias" &&
2670 test "$program_prefix$program_suffix$program_transform_name" = \
2671 NONENONEs,x,x, &&
2672 program_prefix=${target_alias}-
2674 target_alias=${target_alias-$host_alias}
2676 am__api_version='1.11'
2678 # Find a good install program. We prefer a C program (faster),
2679 # so one script is as good as another. But avoid the broken or
2680 # incompatible versions:
2681 # SysV /etc/install, /usr/sbin/install
2682 # SunOS /usr/etc/install
2683 # IRIX /sbin/install
2684 # AIX /bin/install
2685 # AmigaOS /C/install, which installs bootblocks on floppy discs
2686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704 case $as_dir/ in #((
2705 ./ | .// | /[cC]/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708 /usr/ucb/* ) ;;
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2739 done
2740 done
2742 esac
2744 done
2745 IFS=$as_save_IFS
2747 rm -rf conftest.one conftest.two conftest.dir
2750 if test "${ac_cv_path_install+set}" = set; then
2751 INSTALL=$ac_cv_path_install
2752 else
2753 # As a last resort, use the slow shell script. Don't cache a
2754 # value for INSTALL within a source directory, because that will
2755 # break other packages using the cache if that directory is
2756 # removed, or if the value is a relative name.
2757 INSTALL=$ac_install_sh
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2761 $as_echo "$INSTALL" >&6; }
2763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764 # It thinks the first close brace ends the variable substitution.
2765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772 $as_echo_n "checking whether build environment is sane... " >&6; }
2773 # Just in case
2774 sleep 1
2775 echo timestamp > conftest.file
2776 # Reject unsafe characters in $srcdir or the absolute working directory
2777 # name. Accept space and tab only in the latter.
2778 am_lf='
2780 case `pwd` in
2781 *[\\\"\#\$\&\'\`$am_lf]*)
2782 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2783 esac
2784 case $srcdir in
2785 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2786 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2787 esac
2789 # Do `set' in a subshell so we don't clobber the current shell's
2790 # arguments. Must try -L first in case configure is actually a
2791 # symlink; some systems play weird games with the mod time of symlinks
2792 # (eg FreeBSD returns the mod time of the symlink's containing
2793 # directory).
2794 if (
2795 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2796 if test "$*" = "X"; then
2797 # -L didn't work.
2798 set X `ls -t "$srcdir/configure" conftest.file`
2800 rm -f conftest.file
2801 if test "$*" != "X $srcdir/configure conftest.file" \
2802 && test "$*" != "X conftest.file $srcdir/configure"; then
2804 # If neither matched, then we have a broken ls. This can happen
2805 # if, for instance, CONFIG_SHELL is bash and it inherits a
2806 # broken ls alias from the environment. This has actually
2807 # happened. Such a system could not be considered "sane".
2808 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2809 alias in your environment" "$LINENO" 5
2812 test "$2" = conftest.file
2814 then
2815 # Ok.
2817 else
2818 as_fn_error "newly created file is older than distributed files!
2819 Check your system clock" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822 $as_echo "yes" >&6; }
2823 test "$program_prefix" != NONE &&
2824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825 # Use a double $ so make ignores it.
2826 test "$program_suffix" != NONE &&
2827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828 # Double any \ or $.
2829 # By default was `s,x,x', remove it if useless.
2830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2833 # expand $ac_aux_dir to an absolute path
2834 am_aux_dir=`cd $ac_aux_dir && pwd`
2836 if test x"${MISSING+set}" != xset; then
2837 case $am_aux_dir in
2838 *\ * | *\ *)
2839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2842 esac
2844 # Use eval to expand $SHELL
2845 if eval "$MISSING --run true"; then
2846 am_missing_run="$MISSING --run "
2847 else
2848 am_missing_run=
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2850 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2853 if test x"${install_sh}" != xset; then
2854 case $am_aux_dir in
2855 *\ * | *\ *)
2856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2858 install_sh="\${SHELL} $am_aux_dir/install-sh"
2859 esac
2862 # Installed binaries are usually stripped using `strip' when the user
2863 # run `make install-strip'. However `strip' might not be the right
2864 # tool to use in cross-compilation environments, therefore Automake
2865 # will honor the `STRIP' environment variable to overrule this program.
2866 if test "$cross_compiling" != no; then
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_STRIP+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$STRIP"; then
2876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 STRIP=$ac_cv_prog_STRIP
2896 if test -n "$STRIP"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898 $as_echo "$STRIP" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2938 $as_echo "$ac_ct_STRIP" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2944 if test "x$ac_ct_STRIP" = x; then
2945 STRIP=":"
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953 STRIP=$ac_ct_STRIP
2955 else
2956 STRIP="$ac_cv_prog_STRIP"
2960 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2963 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2964 if test -z "$MKDIR_P"; then
2965 if test "${ac_cv_path_mkdir+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_prog in mkdir gmkdir; do
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977 'mkdir (GNU coreutils) '* | \
2978 'mkdir (coreutils) '* | \
2979 'mkdir (fileutils) '4.1*)
2980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2981 break 3;;
2982 esac
2983 done
2984 done
2985 done
2986 IFS=$as_save_IFS
2990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2992 else
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
2997 test -d ./--version && rmdir ./--version
2998 MKDIR_P="$ac_install_sh -d"
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002 $as_echo "$MKDIR_P" >&6; }
3004 mkdir_p="$MKDIR_P"
3005 case $mkdir_p in
3006 [\\/$]* | ?:[\\/]*) ;;
3007 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3008 esac
3010 for ac_prog in gawk mawk nawk awk
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_AWK+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$AWK"; then
3020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_AWK="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 AWK=$ac_cv_prog_AWK
3040 if test -n "$AWK"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042 $as_echo "$AWK" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3049 test -n "$AWK" && break
3050 done
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3053 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3054 set x ${MAKE-make}
3055 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3056 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat >conftest.make <<\_ACEOF
3060 SHELL = /bin/sh
3061 all:
3062 @echo '@@@%%%=$(MAKE)=@@@%%%'
3063 _ACEOF
3064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3065 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3066 *@@@%%%=?*=@@@%%%*)
3067 eval ac_cv_prog_make_${ac_make}_set=yes;;
3069 eval ac_cv_prog_make_${ac_make}_set=no;;
3070 esac
3071 rm -f conftest.make
3073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075 $as_echo "yes" >&6; }
3076 SET_MAKE=
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 SET_MAKE="MAKE=${MAKE-make}"
3083 rm -rf .tst 2>/dev/null
3084 mkdir .tst 2>/dev/null
3085 if test -d .tst; then
3086 am__leading_dot=.
3087 else
3088 am__leading_dot=_
3090 rmdir .tst 2>/dev/null
3092 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3093 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3094 # is not polluted with repeated "-I."
3095 am__isrc=' -I$(srcdir)'
3096 # test to see if srcdir already configured
3097 if test -f $srcdir/config.status; then
3098 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3102 # test whether we have cygpath
3103 if test -z "$CYGPATH_W"; then
3104 if (cygpath --version) >/dev/null 2>/dev/null; then
3105 CYGPATH_W='cygpath -w'
3106 else
3107 CYGPATH_W=echo
3112 # Define the identity of the package.
3113 PACKAGE='libgo'
3114 VERSION='version-unused'
3117 # Some tools Automake needs.
3119 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3122 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3125 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3128 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3131 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3133 # We need awk for the "check" target. The system "awk" is bad on
3134 # some platforms.
3135 # Always define AMTAR for backward compatibility.
3137 AMTAR=${AMTAR-"${am_missing_run}tar"}
3139 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3194 if test -z "$ac_cv_prog_CC"; then
3195 ac_ct_CC=$CC
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3243 else
3244 CC="$ac_cv_prog_CC"
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if test "${ac_cv_prog_CC+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3270 done
3271 done
3272 IFS=$as_save_IFS
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 ac_prog_rejected=no
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3309 continue
3311 ac_cv_prog_CC="cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3319 if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3322 shift
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3327 shift
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3369 done
3370 done
3371 IFS=$as_save_IFS
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$CC" && break
3386 done
3388 if test -z "$CC"; then
3389 ac_ct_CC=$CC
3390 for ac_prog in cl.exe
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$ac_ct_CC" && break
3430 done
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details." "$LINENO" 5; }
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 set X $ac_compile
3456 ac_compiler=$2
3457 for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 ac_status=$?
3467 if test -s conftest.err; then
3468 sed '10a\
3469 ... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3472 rm -f conftest.er1 conftest.err
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 done
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3486 return 0;
3488 _ACEOF
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3493 # of exeext.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495 $as_echo_n "checking for C compiler default output file name... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3501 ac_rmfiles=
3502 for ac_file in $ac_files
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 esac
3508 done
3509 rm -f $ac_rmfiles
3511 if { { ac_try="$ac_link_default"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3526 # Autoconf.
3527 for ac_file in $ac_files ''
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3533 [ab].out )
3534 # We found the default executable, but exeext='' is most
3535 # certainly right.
3536 break;;
3537 *.* )
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539 then :; else
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3546 # actually working.
3547 break;;
3549 break;;
3550 esac
3551 done
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3554 else
3555 ac_file=''
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558 $as_echo "$ac_file" >&6; }
3559 if test -z "$ac_file"; then :
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 { as_fn_set_status 77
3566 as_fn_error "C compiler cannot create executables
3567 See \`config.log' for more details." "$LINENO" 5; }; }
3569 ac_exeext=$ac_cv_exeext
3571 # Check that the compiler produces executables we can run. If not, either
3572 # the compiler is broken, or we cross compile.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 $as_echo_n "checking whether the C compiler works... " >&6; }
3575 # If not cross compiling, check that we can run a simple program.
3576 if test "$cross_compiling" != yes; then
3577 if { ac_try='./$ac_file'
3578 { { case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_try") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; }; then
3588 cross_compiling=no
3589 else
3590 if test "$cross_compiling" = maybe; then
3591 cross_compiling=yes
3592 else
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error "cannot run C compiled programs.
3596 If you meant to cross compile, use \`--host'.
3597 See \`config.log' for more details." "$LINENO" 5; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 $as_echo "yes" >&6; }
3604 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3605 ac_clean_files=$ac_clean_files_save
3606 # Check that the compiler produces executables we can run. If not, either
3607 # the compiler is broken, or we cross compile.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609 $as_echo_n "checking whether we are cross compiling... " >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3611 $as_echo "$cross_compiling" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3614 $as_echo_n "checking for suffix of executables... " >&6; }
3615 if { { ac_try="$ac_link"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_link") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3628 # work properly (i.e., refer to `conftest.exe'), while it won't with
3629 # `rm'.
3630 for ac_file in conftest.exe conftest conftest.*; do
3631 test -f "$ac_file" || continue
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3635 break;;
3636 * ) break;;
3637 esac
3638 done
3639 else
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error "cannot compute suffix of executables: cannot compile and link
3643 See \`config.log' for more details." "$LINENO" 5; }
3645 rm -f conftest$ac_cv_exeext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3647 $as_echo "$ac_cv_exeext" >&6; }
3649 rm -f conftest.$ac_ext
3650 EXEEXT=$ac_cv_exeext
3651 ac_exeext=$EXEEXT
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653 $as_echo_n "checking for suffix of object files... " >&6; }
3654 if test "${ac_cv_objext+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3661 main ()
3665 return 0;
3667 _ACEOF
3668 rm -f conftest.o conftest.obj
3669 if { { ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compile") 2>&5
3677 ac_status=$?
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }; then :
3680 for ac_file in conftest.o conftest.obj conftest.*; do
3681 test -f "$ac_file" || continue;
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685 break;;
3686 esac
3687 done
3688 else
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error "cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details." "$LINENO" 5; }
3697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700 $as_echo "$ac_cv_objext" >&6; }
3701 OBJEXT=$ac_cv_objext
3702 ac_objext=$OBJEXT
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3712 main ()
3714 #ifndef __GNUC__
3715 choke me
3716 #endif
3719 return 0;
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_compiler_gnu=yes
3724 else
3725 ac_compiler_gnu=no
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3734 GCC=yes
3735 else
3736 GCC=
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if test "${ac_cv_prog_cc_g+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 ac_save_c_werror_flag=$ac_c_werror_flag
3746 ac_c_werror_flag=yes
3747 ac_cv_prog_cc_g=no
3748 CFLAGS="-g"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 main ()
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_g=yes
3762 else
3763 CFLAGS=""
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3777 else
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3779 CFLAGS="-g"
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_cv_prog_cc_g=yes
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802 $as_echo "$ac_cv_prog_cc_g" >&6; }
3803 if test "$ac_test_CFLAGS" = set; then
3804 CFLAGS=$ac_save_CFLAGS
3805 elif test $ac_cv_prog_cc_g = yes; then
3806 if test "$GCC" = yes; then
3807 CFLAGS="-g -O2"
3808 else
3809 CFLAGS="-g"
3811 else
3812 if test "$GCC" = yes; then
3813 CFLAGS="-O2"
3814 else
3815 CFLAGS=
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 ac_cv_prog_cc_c89=no
3824 ac_save_CC=$CC
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <stdarg.h>
3828 #include <stdio.h>
3829 #include <sys/types.h>
3830 #include <sys/stat.h>
3831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3832 struct buf { int x; };
3833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834 static char *e (p, i)
3835 char **p;
3836 int i;
3838 return p[i];
3840 static char *f (char * (*g) (char **, int), char **p, ...)
3842 char *s;
3843 va_list v;
3844 va_start (v,p);
3845 s = g (p, va_arg (v,int));
3846 va_end (v);
3847 return s;
3850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3851 function prototypes and stuff, but not '\xHH' hex character constants.
3852 These don't provoke an error unfortunately, instead are silently treated
3853 as 'x'. The following induces an error, until -std is added to get
3854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3855 array size at least. It's necessary to write '\x00'==0 to get something
3856 that's true only with -std. */
3857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860 inside strings and character constants. */
3861 #define FOO(x) 'x'
3862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3864 int test (int i, double x);
3865 struct s1 {int (*f) (int a);};
3866 struct s2 {int (*f) (double a);};
3867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868 int argc;
3869 char **argv;
3871 main ()
3873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3875 return 0;
3877 _ACEOF
3878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3881 CC="$ac_save_CC $ac_arg"
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_cv_prog_cc_c89=$ac_arg
3885 rm -f core conftest.err conftest.$ac_objext
3886 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887 done
3888 rm -f conftest.$ac_ext
3889 CC=$ac_save_CC
3892 # AC_CACHE_VAL
3893 case "x$ac_cv_prog_cc_c89" in
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896 $as_echo "none needed" >&6; } ;;
3897 xno)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899 $as_echo "unsupported" >&6; } ;;
3901 CC="$CC $ac_cv_prog_cc_c89"
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904 esac
3905 if test "x$ac_cv_prog_cc_c89" != xno; then :
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 DEPDIR="${am__leading_dot}deps"
3916 ac_config_commands="$ac_config_commands depfiles"
3919 am_make=${MAKE-make}
3920 cat > confinc << 'END'
3921 am__doit:
3922 @echo this is the am__doit target
3923 .PHONY: am__doit
3925 # If we don't find an include directive, just comment out the code.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3928 am__include="#"
3929 am__quote=
3930 _am_result=none
3931 # First try GNU make style include.
3932 echo "include confinc" > confmf
3933 # Ignore all kinds of additional output from `make'.
3934 case `$am_make -s -f confmf 2> /dev/null` in #(
3935 *the\ am__doit\ target*)
3936 am__include=include
3937 am__quote=
3938 _am_result=GNU
3940 esac
3941 # Now try BSD make style include.
3942 if test "$am__include" = "#"; then
3943 echo '.include "confinc"' > confmf
3944 case `$am_make -s -f confmf 2> /dev/null` in #(
3945 *the\ am__doit\ target*)
3946 am__include=.include
3947 am__quote="\""
3948 _am_result=BSD
3950 esac
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955 $as_echo "$_am_result" >&6; }
3956 rm -f confinc confmf
3958 # Check whether --enable-dependency-tracking was given.
3959 if test "${enable_dependency_tracking+set}" = set; then :
3960 enableval=$enable_dependency_tracking;
3963 if test "x$enable_dependency_tracking" != xno; then
3964 am_depcomp="$ac_aux_dir/depcomp"
3965 AMDEPBACKSLASH='\'
3967 if test "x$enable_dependency_tracking" != xno; then
3968 AMDEP_TRUE=
3969 AMDEP_FALSE='#'
3970 else
3971 AMDEP_TRUE='#'
3972 AMDEP_FALSE=
3977 depcc="$CC" am_compiler_list=
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3980 $as_echo_n "checking dependency style of $depcc... " >&6; }
3981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985 # We make a subdir and do the tests there. Otherwise we can end up
3986 # making bogus files that we don't know about and never remove. For
3987 # instance it was reported that on HP-UX the gcc test will end up
3988 # making a dummy file named `D' -- because `-MD' means `put the output
3989 # in D'.
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4007 am__universal=false
4008 case " $depcc " in #(
4009 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010 esac
4012 for depmode in $am_compiler_list; do
4013 # Setup a source with many dependencies, because some compilers
4014 # like to wrap large dependency lists on column 80 (with \), and
4015 # we should not choose a depcomp mode which is confused by this.
4017 # We need to recreate these files for each test, as the compiler may
4018 # overwrite some of them when testing with obscure command lines.
4019 # This happens at least with the AIX C compiler.
4020 : > sub/conftest.c
4021 for i in 1 2 3 4 5 6; do
4022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
4026 done
4027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030 # mode. It turns out that the SunPro C++ compiler does not properly
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
4033 am__obj=sub/conftest.${OBJEXT-o}
4034 am__minus_obj="-o $am__obj"
4035 case $depmode in
4036 gcc)
4037 # This depmode causes a compiler race in universal mode.
4038 test "$am__universal" = false || continue
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4049 msvisualcpp | msvcmsys)
4050 # This compiler won't grok `-c -o', but also, the minuso test has
4051 # not run yet. These depmodes are late enough in the game, and
4052 # so weak that their functioning should not be impacted.
4053 am__obj=conftest.${OBJEXT-o}
4054 am__minus_obj=
4056 none) break ;;
4057 esac
4058 if depmode=$depmode \
4059 source=sub/conftest.c object=$am__obj \
4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062 >/dev/null 2>conftest.err &&
4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067 # icc doesn't choke on unknown options, it will just issue warnings
4068 # or remarks (even with -Werror). So we grep stderr for any message
4069 # that says an option was ignored or not supported.
4070 # When given -MP, icc 7.0 and 7.1 complain thusly:
4071 # icc: Command line warning: ignoring option '-M'; no argument required
4072 # The diagnosis changed in icc 8.0:
4073 # icc: Command line remark: option '-MP' not supported
4074 if (grep 'ignoring option' conftest.err ||
4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076 am_cv_CC_dependencies_compiler_type=$depmode
4077 break
4080 done
4082 cd ..
4083 rm -rf conftest.dir
4084 else
4085 am_cv_CC_dependencies_compiler_type=none
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094 test "x$enable_dependency_tracking" != xno \
4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_TRUE=
4097 am__fastdepCC_FALSE='#'
4098 else
4099 am__fastdepCC_TRUE='#'
4100 am__fastdepCC_FALSE=
4104 ac_ext=go
4105 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compile_gnu=yes
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_GOC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$GOC"; then
4117 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 GOC=$ac_cv_prog_GOC
4137 if test -n "$GOC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139 $as_echo "$GOC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4147 if test -z "$ac_cv_prog_GOC"; then
4148 ac_ct_GOC=$GOC
4149 # Extract the first word of "gccgo", so it can be a program name with args.
4150 set dummy gccgo; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$ac_ct_GOC"; then
4157 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_GOC="gccgo"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4170 done
4171 done
4172 IFS=$as_save_IFS
4176 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177 if test -n "$ac_ct_GOC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179 $as_echo "$ac_ct_GOC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4185 if test "x$ac_ct_GOC" = x; then
4186 GOC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 GOC=$ac_ct_GOC
4196 else
4197 GOC="$ac_cv_prog_GOC"
4200 if test -z "$GOC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_GOC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$GOC"; then
4210 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 GOC=$ac_cv_prog_GOC
4230 if test -n "$GOC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232 $as_echo "$GOC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4241 if test -z "$GOC"; then
4242 # Extract the first word of "gccgo", so it can be a program name with args.
4243 set dummy gccgo; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_GOC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$GOC"; then
4250 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251 else
4252 ac_prog_rejected=no
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261 ac_prog_rejected=yes
4262 continue
4264 ac_cv_prog_GOC="gccgo"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4272 if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_GOC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set GOC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4286 GOC=$ac_cv_prog_GOC
4287 if test -n "$GOC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289 $as_echo "$GOC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 { { ac_try="$ac_compiler --version >&5"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler --version >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314 ... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321 GOCFLAGS="-g -O2"
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4334 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4335 # Check whether --enable-maintainer-mode was given.
4336 if test "${enable_maintainer_mode+set}" = set; then :
4337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4338 else
4339 USE_MAINTAINER_MODE=no
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4344 if test $USE_MAINTAINER_MODE = yes; then
4345 MAINTAINER_MODE_TRUE=
4346 MAINTAINER_MODE_FALSE='#'
4347 else
4348 MAINTAINER_MODE_TRUE='#'
4349 MAINTAINER_MODE_FALSE=
4352 MAINT=$MAINTAINER_MODE_TRUE
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4357 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4358 if test "${ac_cv_path_SED+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4362 for ac_i in 1 2 3 4 5 6 7; do
4363 ac_script="$ac_script$as_nl$ac_script"
4364 done
4365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4366 { ac_script=; unset ac_script;}
4367 if test -z "$SED"; then
4368 ac_path_SED_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in sed gsed; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4379 # Check for GNU ac_path_SED and select it if it is found.
4380 # Check for GNU $ac_path_SED
4381 case `"$ac_path_SED" --version 2>&1` in
4382 *GNU*)
4383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo '' >> "conftest.nl"
4393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_SED_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_SED="$ac_path_SED"
4399 ac_path_SED_max=$ac_count
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405 esac
4407 $ac_path_SED_found && break 3
4408 done
4409 done
4410 done
4411 IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_SED"; then
4413 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4415 else
4416 ac_cv_path_SED=$SED
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4421 $as_echo "$ac_cv_path_SED" >&6; }
4422 SED="$ac_cv_path_SED"
4423 rm -f conftest.sed
4425 test -z "$SED" && SED=sed
4426 Xsed="$SED -e 1s/^X//"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if test "${ac_cv_path_GREP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491 else
4492 ac_cv_path_GREP=$GREP
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if test "${ac_cv_path_EGREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4524 *GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 esac
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553 IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 else
4558 ac_cv_path_EGREP=$EGREP
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4569 $as_echo_n "checking for fgrep... " >&6; }
4570 if test "${ac_cv_path_FGREP+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4574 then ac_cv_path_FGREP="$GREP -F"
4575 else
4576 if test -z "$FGREP"; then
4577 ac_path_FGREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in fgrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4588 # Check for GNU ac_path_FGREP and select it if it is found.
4589 # Check for GNU $ac_path_FGREP
4590 case `"$ac_path_FGREP" --version 2>&1` in
4591 *GNU*)
4592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'FGREP' >> "conftest.nl"
4602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_FGREP="$ac_path_FGREP"
4608 ac_path_FGREP_max=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4616 $ac_path_FGREP_found && break 3
4617 done
4618 done
4619 done
4620 IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_FGREP"; then
4622 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 else
4625 ac_cv_path_FGREP=$FGREP
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4631 $as_echo "$ac_cv_path_FGREP" >&6; }
4632 FGREP="$ac_cv_path_FGREP"
4635 test -z "$GREP" && GREP=grep
4653 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4658 $as_echo_n "checking how to print strings... " >&6; }
4659 # Test print first, because it will be a builtin if present.
4660 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4661 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4662 ECHO='print -r --'
4663 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4664 ECHO='printf %s\n'
4665 else
4666 # Use this function as a fallback that always works.
4667 func_fallback_echo ()
4669 eval 'cat <<_LTECHO_EOF
4671 _LTECHO_EOF'
4673 ECHO='func_fallback_echo'
4676 # func_echo_all arg...
4677 # Invoke $ECHO with all args, space-separated.
4678 func_echo_all ()
4680 $ECHO ""
4683 case "$ECHO" in
4684 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4685 $as_echo "printf" >&6; } ;;
4686 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4687 $as_echo "print -r" >&6; } ;;
4688 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4689 $as_echo "cat" >&6; } ;;
4690 esac
4707 # Check whether --with-gnu-ld was given.
4708 if test "${with_gnu_ld+set}" = set; then :
4709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4710 else
4711 with_gnu_ld=no
4714 ac_prog=ld
4715 if test "$GCC" = yes; then
4716 # Check if gcc -print-prog-name=ld gives a path.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4718 $as_echo_n "checking for ld used by $CC... " >&6; }
4719 case $host in
4720 *-*-mingw*)
4721 # gcc leaves a trailing carriage return which upsets mingw
4722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4725 esac
4726 case $ac_prog in
4727 # Accept absolute paths.
4728 [\\/]* | ?:[\\/]*)
4729 re_direlt='/[^/][^/]*/\.\./'
4730 # Canonicalize the pathname of ld
4731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4734 done
4735 test -z "$LD" && LD="$ac_prog"
4738 # If it fails, then pretend we aren't using GCC.
4739 ac_prog=ld
4742 # If it is relative, then search for the first ld in PATH.
4743 with_gnu_ld=unknown
4745 esac
4746 elif test "$with_gnu_ld" = yes; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4748 $as_echo_n "checking for GNU ld... " >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4751 $as_echo_n "checking for non-GNU ld... " >&6; }
4753 if test "${lt_cv_path_LD+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -z "$LD"; then
4757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4758 for ac_dir in $PATH; do
4759 IFS="$lt_save_ifs"
4760 test -z "$ac_dir" && ac_dir=.
4761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4762 lt_cv_path_LD="$ac_dir/$ac_prog"
4763 # Check to see if the program is GNU ld. I'd rather use --version,
4764 # but apparently some variants of GNU ld only accept -v.
4765 # Break only if it was the GNU/non-GNU ld that we prefer.
4766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4767 *GNU* | *'with BFD'*)
4768 test "$with_gnu_ld" != no && break
4771 test "$with_gnu_ld" != yes && break
4773 esac
4775 done
4776 IFS="$lt_save_ifs"
4777 else
4778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4782 LD="$lt_cv_path_LD"
4783 if test -n "$LD"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4785 $as_echo "$LD" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4790 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4793 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4797 case `$LD -v 2>&1 </dev/null` in
4798 *GNU* | *'with BFD'*)
4799 lt_cv_prog_gnu_ld=yes
4802 lt_cv_prog_gnu_ld=no
4804 esac
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4808 with_gnu_ld=$lt_cv_prog_gnu_ld
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$RANLIB"; then
4827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 RANLIB=$ac_cv_prog_RANLIB
4847 if test -n "$RANLIB"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4849 $as_echo "$RANLIB" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860 set dummy ranlib; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887 if test -n "$ac_ct_RANLIB"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4889 $as_echo "$ac_ct_RANLIB" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4895 if test "x$ac_ct_RANLIB" = x; then
4896 RANLIB=":"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 RANLIB=$ac_ct_RANLIB
4906 else
4907 RANLIB="$ac_cv_prog_RANLIB"
4910 if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$OBJCOPY"; then
4919 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 OBJCOPY=$ac_cv_prog_OBJCOPY
4939 if test -n "$OBJCOPY"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4941 $as_echo "$OBJCOPY" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4949 if test -z "$ac_cv_prog_OBJCOPY"; then
4950 ac_ct_OBJCOPY=$OBJCOPY
4951 # Extract the first word of "objcopy", so it can be a program name with args.
4952 set dummy objcopy; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_OBJCOPY"; then
4959 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4979 if test -n "$ac_ct_OBJCOPY"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4981 $as_echo "$ac_ct_OBJCOPY" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4987 if test "x$ac_ct_OBJCOPY" = x; then
4988 OBJCOPY="missing-objcopy"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 OBJCOPY=$ac_ct_OBJCOPY
4998 else
4999 OBJCOPY="$ac_cv_prog_OBJCOPY"
5003 enable_dlopen=yes
5007 case `pwd` in
5008 *\ * | *\ *)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5011 esac
5015 macro_version='2.2.7a'
5016 macro_revision='1.3134'
5030 ltmain="$ac_aux_dir/ltmain.sh"
5032 # Backslashify metacharacters that are still active within
5033 # double-quoted strings.
5034 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5036 # Same as above, but do not quote variable references.
5037 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5039 # Sed substitution to delay expansion of an escaped shell variable in a
5040 # double_quote_subst'ed string.
5041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5043 # Sed substitution to delay expansion of an escaped single quote.
5044 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5046 # Sed substitution to avoid accidental globbing in evaled expressions
5047 no_glob_subst='s/\*/\\\*/g'
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5050 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5051 if test "${lt_cv_path_NM+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$NM"; then
5055 # Let the user override the test.
5056 lt_cv_path_NM="$NM"
5057 else
5058 lt_nm_to_check="${ac_tool_prefix}nm"
5059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5060 lt_nm_to_check="$lt_nm_to_check nm"
5062 for lt_tmp_nm in $lt_nm_to_check; do
5063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5065 IFS="$lt_save_ifs"
5066 test -z "$ac_dir" && ac_dir=.
5067 tmp_nm="$ac_dir/$lt_tmp_nm"
5068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 # Check to see if the nm accepts a BSD-compat flag.
5070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071 # nm: unknown option "B" ignored
5072 # Tru64's nm complains that /dev/null is an invalid object file
5073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5074 */dev/null* | *'Invalid file or object type'*)
5075 lt_cv_path_NM="$tmp_nm -B"
5076 break
5079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5080 */dev/null*)
5081 lt_cv_path_NM="$tmp_nm -p"
5082 break
5085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086 continue # so that we can try to find one that supports BSD flags
5088 esac
5090 esac
5092 done
5093 IFS="$lt_save_ifs"
5094 done
5095 : ${lt_cv_path_NM=no}
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099 $as_echo "$lt_cv_path_NM" >&6; }
5100 if test "$lt_cv_path_NM" != "no"; then
5101 NM="$lt_cv_path_NM"
5102 else
5103 # Didn't find any BSD compatible name lister, look for dumpbin.
5104 if test -n "$DUMPBIN"; then :
5105 # Let the user override the test.
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in dumpbin "link -dump"
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$DUMPBIN"; then
5118 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 DUMPBIN=$ac_cv_prog_DUMPBIN
5138 if test -n "$DUMPBIN"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5140 $as_echo "$DUMPBIN" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$DUMPBIN" && break
5148 done
5150 if test -z "$DUMPBIN"; then
5151 ac_ct_DUMPBIN=$DUMPBIN
5152 for ac_prog in dumpbin "link -dump"
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5182 if test -n "$ac_ct_DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5184 $as_echo "$ac_ct_DUMPBIN" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$ac_ct_DUMPBIN" && break
5192 done
5194 if test "x$ac_ct_DUMPBIN" = x; then
5195 DUMPBIN=":"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 DUMPBIN=$ac_ct_DUMPBIN
5207 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208 *COFF*)
5209 DUMPBIN="$DUMPBIN -symbols"
5212 DUMPBIN=:
5214 esac
5217 if test "$DUMPBIN" != ":"; then
5218 NM="$DUMPBIN"
5221 test -z "$NM" && NM=nm
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5229 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5230 if test "${lt_cv_nm_interface+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 lt_cv_nm_interface="BSD nm"
5234 echo "int some_variable = 0;" > conftest.$ac_ext
5235 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5236 (eval "$ac_compile" 2>conftest.err)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5240 cat conftest.err >&5
5241 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5242 cat conftest.out >&5
5243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5244 lt_cv_nm_interface="MS dumpbin"
5246 rm -f conftest*
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5249 $as_echo "$lt_cv_nm_interface" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5252 $as_echo_n "checking whether ln -s works... " >&6; }
5253 LN_S=$as_ln_s
5254 if test "$LN_S" = "ln -s"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5259 $as_echo "no, using $LN_S" >&6; }
5262 # find the maximum length of command line arguments
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5264 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5269 teststring="ABCD"
5271 case $build_os in
5272 msdosdjgpp*)
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5280 gnu*)
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5287 cygwin* | mingw* | cegcc*)
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5298 mint*)
5299 # On MiNT this can take a long time and run out of memory.
5300 lt_cv_sys_max_cmd_len=8192;
5303 amigaos*)
5304 # On AmigaOS with pdksh, this test takes hours, literally.
5305 # So we just punt and use a minimum line length of 8192.
5306 lt_cv_sys_max_cmd_len=8192;
5309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310 # This has been around since 386BSD, at least. Likely further.
5311 if test -x /sbin/sysctl; then
5312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5313 elif test -x /usr/sbin/sysctl; then
5314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5315 else
5316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5318 # And add a safety zone
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5323 interix*)
5324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5325 lt_cv_sys_max_cmd_len=196608
5328 osf*)
5329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331 # nice to cause kernel panics so lets avoid the loop below.
5332 # First set a reasonable default.
5333 lt_cv_sys_max_cmd_len=16384
5335 if test -x /sbin/sysconfig; then
5336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338 esac
5341 sco3.2v5*)
5342 lt_cv_sys_max_cmd_len=102400
5344 sysv5* | sco5v6* | sysv4.2uw2*)
5345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346 if test -n "$kargmax"; then
5347 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5348 else
5349 lt_cv_sys_max_cmd_len=32768
5353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5357 else
5358 # Make teststring a little bigger before we do anything with it.
5359 # a 1K string should be a reasonable start.
5360 for i in 1 2 3 4 5 6 7 8 ; do
5361 teststring=$teststring$teststring
5362 done
5363 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5364 # If test is not a shell built-in, we'll probably end up computing a
5365 # maximum length that is only half of the actual maximum length, but
5366 # we can't tell.
5367 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5368 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5369 test $i != 17 # 1/2 MB should be enough
5371 i=`expr $i + 1`
5372 teststring=$teststring$teststring
5373 done
5374 # Only check the string length outside the loop.
5375 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5376 teststring=
5377 # Add a significant safety factor because C++ compilers can tack on
5378 # massive amounts of additional arguments before passing them to the
5379 # linker. It appears as though 1/2 is a usable value.
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5383 esac
5387 if test -n $lt_cv_sys_max_cmd_len ; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5389 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5392 $as_echo "none" >&6; }
5394 max_cmd_len=$lt_cv_sys_max_cmd_len
5401 : ${CP="cp -f"}
5402 : ${MV="mv -f"}
5403 : ${RM="rm -f"}
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5406 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5407 # Try some XSI features
5408 xsi_shell=no
5409 ( _lt_dummy="a/b/c"
5410 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5411 = c,a/b,, \
5412 && eval 'test $(( 1 + 1 )) -eq 2 \
5413 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5414 && xsi_shell=yes
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5416 $as_echo "$xsi_shell" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5420 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5421 lt_shell_append=no
5422 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5423 >/dev/null 2>&1 \
5424 && lt_shell_append=yes
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5426 $as_echo "$lt_shell_append" >&6; }
5429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 lt_unset=unset
5431 else
5432 lt_unset=false
5439 # test EBCDIC or ASCII
5440 case `echo X|tr X '\101'` in
5441 A) # ASCII based system
5442 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5443 lt_SP2NL='tr \040 \012'
5444 lt_NL2SP='tr \015\012 \040\040'
5446 *) # EBCDIC based system
5447 lt_SP2NL='tr \100 \n'
5448 lt_NL2SP='tr \r\n \100\100'
5450 esac
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5461 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5462 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 lt_cv_ld_reload_flag='-r'
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5468 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5469 reload_flag=$lt_cv_ld_reload_flag
5470 case $reload_flag in
5471 "" | " "*) ;;
5472 *) reload_flag=" $reload_flag" ;;
5473 esac
5474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475 case $host_os in
5476 darwin*)
5477 if test "$GCC" = yes; then
5478 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5479 else
5480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5483 esac
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$OBJDUMP"; then
5502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 OBJDUMP=$ac_cv_prog_OBJDUMP
5522 if test -n "$OBJDUMP"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5524 $as_echo "$OBJDUMP" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5532 if test -z "$ac_cv_prog_OBJDUMP"; then
5533 ac_ct_OBJDUMP=$OBJDUMP
5534 # Extract the first word of "objdump", so it can be a program name with args.
5535 set dummy objdump; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5562 if test -n "$ac_ct_OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5564 $as_echo "$ac_ct_OBJDUMP" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5570 if test "x$ac_ct_OBJDUMP" = x; then
5571 OBJDUMP="false"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 OBJDUMP=$ac_ct_OBJDUMP
5581 else
5582 OBJDUMP="$ac_cv_prog_OBJDUMP"
5585 test -z "$OBJDUMP" && OBJDUMP=objdump
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 lt_cv_file_magic_cmd='$MAGIC_CMD'
5601 lt_cv_file_magic_test_file=
5602 lt_cv_deplibs_check_method='unknown'
5603 # Need to set the preceding variable on all platforms that support
5604 # interlibrary dependencies.
5605 # 'none' -- dependencies not supported.
5606 # `unknown' -- same as none, but documents that we really don't know.
5607 # 'pass_all' -- all dependencies passed with no checks.
5608 # 'test_compile' -- check by making test program.
5609 # 'file_magic [[regex]]' -- check by looking for files in library path
5610 # which responds to the $file_magic_cmd with a given extended regex.
5611 # If you have `file' or equivalent on your system and you're not sure
5612 # whether `pass_all' will *always* work, you probably want this one.
5614 case $host_os in
5615 aix[4-9]*)
5616 lt_cv_deplibs_check_method=pass_all
5619 beos*)
5620 lt_cv_deplibs_check_method=pass_all
5623 bsdi[45]*)
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625 lt_cv_file_magic_cmd='/usr/bin/file -L'
5626 lt_cv_file_magic_test_file=/shlib/libc.so
5629 cygwin*)
5630 # func_win32_libid is a shell function defined in ltmain.sh
5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632 lt_cv_file_magic_cmd='func_win32_libid'
5635 mingw* | pw32*)
5636 # Base MSYS/MinGW do not provide the 'file' command needed by
5637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638 # unless we find 'file', for example because we are cross-compiling.
5639 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5640 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5642 lt_cv_file_magic_cmd='func_win32_libid'
5643 else
5644 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5645 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 cegcc*)
5650 # use the weaker test based on 'objdump'. See mingw*.
5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5655 darwin* | rhapsody*)
5656 lt_cv_deplibs_check_method=pass_all
5659 freebsd* | dragonfly*)
5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5661 case $host_cpu in
5662 i*86 )
5663 # Not sure whether the presence of OpenBSD here was a mistake.
5664 # Let's accept both of them until this is cleared up.
5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5669 esac
5670 else
5671 lt_cv_deplibs_check_method=pass_all
5675 gnu*)
5676 lt_cv_deplibs_check_method=pass_all
5679 haiku*)
5680 lt_cv_deplibs_check_method=pass_all
5683 hpux10.20* | hpux11*)
5684 lt_cv_file_magic_cmd=/usr/bin/file
5685 case $host_cpu in
5686 ia64*)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5690 hppa*64*)
5691 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]'
5692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5698 esac
5701 interix[3-9]*)
5702 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5706 irix5* | irix6* | nonstopux*)
5707 case $LD in
5708 *-32|*"-32 ") libmagic=32-bit;;
5709 *-n32|*"-n32 ") libmagic=N32;;
5710 *-64|*"-64 ") libmagic=64-bit;;
5711 *) libmagic=never-match;;
5712 esac
5713 lt_cv_deplibs_check_method=pass_all
5716 # This must be Linux ELF.
5717 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5718 lt_cv_deplibs_check_method=pass_all
5721 netbsd*)
5722 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5724 else
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5729 newos6*)
5730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5731 lt_cv_file_magic_cmd=/usr/bin/file
5732 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5735 *nto* | *qnx*)
5736 lt_cv_deplibs_check_method=pass_all
5739 openbsd*)
5740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5742 else
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5747 osf3* | osf4* | osf5*)
5748 lt_cv_deplibs_check_method=pass_all
5751 rdos*)
5752 lt_cv_deplibs_check_method=pass_all
5755 solaris*)
5756 lt_cv_deplibs_check_method=pass_all
5759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5760 lt_cv_deplibs_check_method=pass_all
5763 sysv4 | sysv4.3*)
5764 case $host_vendor in
5765 motorola)
5766 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]'
5767 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5769 ncr)
5770 lt_cv_deplibs_check_method=pass_all
5772 sequent)
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5776 sni)
5777 lt_cv_file_magic_cmd='/bin/file'
5778 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5779 lt_cv_file_magic_test_file=/lib/libc.so
5781 siemens)
5782 lt_cv_deplibs_check_method=pass_all
5785 lt_cv_deplibs_check_method=pass_all
5787 esac
5790 tpf*)
5791 lt_cv_deplibs_check_method=pass_all
5793 esac
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5797 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5798 file_magic_cmd=$lt_cv_file_magic_cmd
5799 deplibs_check_method=$lt_cv_deplibs_check_method
5800 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}ar; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_AR+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$AR"; then
5822 ac_cv_prog_AR="$AR" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_AR="${ac_tool_prefix}ar"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 AR=$ac_cv_prog_AR
5842 if test -n "$AR"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5844 $as_echo "$AR" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5852 if test -z "$ac_cv_prog_AR"; then
5853 ac_ct_AR=$AR
5854 # Extract the first word of "ar", so it can be a program name with args.
5855 set dummy ar; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$ac_ct_AR"; then
5862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_AR="ar"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5875 done
5876 done
5877 IFS=$as_save_IFS
5881 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5882 if test -n "$ac_ct_AR"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5884 $as_echo "$ac_ct_AR" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5890 if test "x$ac_ct_AR" = x; then
5891 AR="false"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899 AR=$ac_ct_AR
5901 else
5902 AR="$ac_cv_prog_AR"
5905 test -z "$AR" && AR=ar
5906 test -z "$AR_FLAGS" && AR_FLAGS=cru
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}strip; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_STRIP+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$STRIP"; then
5927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5949 $as_echo "$STRIP" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5957 if test -z "$ac_cv_prog_STRIP"; then
5958 ac_ct_STRIP=$STRIP
5959 # Extract the first word of "strip", so it can be a program name with args.
5960 set dummy strip; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$ac_ct_STRIP"; then
5967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_STRIP="strip"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5980 done
5981 done
5982 IFS=$as_save_IFS
5986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987 if test -n "$ac_ct_STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5989 $as_echo "$ac_ct_STRIP" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5995 if test "x$ac_ct_STRIP" = x; then
5996 STRIP=":"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004 STRIP=$ac_ct_STRIP
6006 else
6007 STRIP="$ac_cv_prog_STRIP"
6010 test -z "$STRIP" && STRIP=:
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$RANLIB"; then
6026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6039 done
6040 done
6041 IFS=$as_save_IFS
6045 RANLIB=$ac_cv_prog_RANLIB
6046 if test -n "$RANLIB"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6048 $as_echo "$RANLIB" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6056 if test -z "$ac_cv_prog_RANLIB"; then
6057 ac_ct_RANLIB=$RANLIB
6058 # Extract the first word of "ranlib", so it can be a program name with args.
6059 set dummy ranlib; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$ac_ct_RANLIB"; then
6066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_RANLIB="ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6079 done
6080 done
6081 IFS=$as_save_IFS
6085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086 if test -n "$ac_ct_RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6088 $as_echo "$ac_ct_RANLIB" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6094 if test "x$ac_ct_RANLIB" = x; then
6095 RANLIB=":"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 RANLIB=$ac_ct_RANLIB
6105 else
6106 RANLIB="$ac_cv_prog_RANLIB"
6109 test -z "$RANLIB" && RANLIB=:
6116 # Determine commands to create old-style static archives.
6117 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6118 old_postinstall_cmds='chmod 644 $oldlib'
6119 old_postuninstall_cmds=
6121 if test -n "$RANLIB"; then
6122 case $host_os in
6123 openbsd*)
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6129 esac
6130 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6133 case $host_os in
6134 darwin*)
6135 lock_old_archive_extraction=yes ;;
6137 lock_old_archive_extraction=no ;;
6138 esac
6178 # If no C compiler was specified, use CC.
6179 LTCC=${LTCC-"$CC"}
6181 # If no C compiler flags were specified, use CFLAGS.
6182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6184 # Allow CC to be a program name with arguments.
6185 compiler=$CC
6188 # Check for command to grab the raw symbol name followed by C symbol from nm.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6190 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6191 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6195 # These are sane defaults that work on at least a few old systems.
6196 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6198 # Character class describing NM global symbol codes.
6199 symcode='[BCDEGRST]'
6201 # Regexp to match symbols that can be accessed directly from C.
6202 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6204 # Define system-specific variables.
6205 case $host_os in
6206 aix*)
6207 symcode='[BCDT]'
6209 cygwin* | mingw* | pw32* | cegcc*)
6210 symcode='[ABCDGISTW]'
6212 hpux*)
6213 if test "$host_cpu" = ia64; then
6214 symcode='[ABCDEGRST]'
6217 irix* | nonstopux*)
6218 symcode='[BCDEGRST]'
6220 osf*)
6221 symcode='[BCDEGQRST]'
6223 solaris*)
6224 symcode='[BDRT]'
6226 sco3.2v5*)
6227 symcode='[DT]'
6229 sysv4.2uw2*)
6230 symcode='[DT]'
6232 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6233 symcode='[ABDT]'
6235 sysv4)
6236 symcode='[DFNSTU]'
6238 esac
6240 # If we're using GNU nm, then use its standard symbol codes.
6241 case `$NM -V 2>&1` in
6242 *GNU* | *'with BFD'*)
6243 symcode='[ABCDGIRSTW]' ;;
6244 esac
6246 # Transform an extracted symbol line into a proper C declaration.
6247 # Some systems (esp. on ia64) link data and code symbols differently,
6248 # so use this general approach.
6249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6251 # Transform an extracted symbol line into symbol name and symbol address
6252 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6253 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'"
6255 # Handle CRLF in mingw tool chain
6256 opt_cr=
6257 case $build_os in
6258 mingw*)
6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261 esac
6263 # Try without a prefix underscore, then with it.
6264 for ac_symprfx in "" "_"; do
6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6267 symxfrm="\\1 $ac_symprfx\\2 \\2"
6269 # Write the raw and C identifiers.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271 # Fake it for dumpbin and say T for any non-static function
6272 # and D for any global variable.
6273 # Also find C++ and __fastcall symbols from MSVC++,
6274 # which start with @ or ?.
6275 lt_cv_sys_global_symbol_pipe="$AWK '"\
6276 " {last_section=section; section=\$ 3};"\
6277 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6278 " \$ 0!~/External *\|/{next};"\
6279 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6280 " {if(hide[section]) next};"\
6281 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6282 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6283 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6284 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6285 " ' prfx=^$ac_symprfx"
6286 else
6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6290 # Check to see that the pipe works correctly.
6291 pipe_works=no
6293 rm -f conftest*
6294 cat > conftest.$ac_ext <<_LT_EOF
6295 #ifdef __cplusplus
6296 extern "C" {
6297 #endif
6298 char nm_test_var;
6299 void nm_test_func(void);
6300 void nm_test_func(void){}
6301 #ifdef __cplusplus
6303 #endif
6304 int main(){nm_test_var='a';nm_test_func();return(0);}
6305 _LT_EOF
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 # Now try to grab the symbols.
6313 nlist=conftest.nm
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; } && test -s "$nlist"; then
6319 # Try sorting and uniquifying the output.
6320 if sort "$nlist" | uniq > "$nlist"T; then
6321 mv -f "$nlist"T "$nlist"
6322 else
6323 rm -f "$nlist"T
6326 # Make sure that we snagged all the symbols we need.
6327 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329 cat <<_LT_EOF > conftest.$ac_ext
6330 #ifdef __cplusplus
6331 extern "C" {
6332 #endif
6334 _LT_EOF
6335 # Now generate the symbol file.
6336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6338 cat <<_LT_EOF >> conftest.$ac_ext
6340 /* The mapping between symbol names and symbols. */
6341 const struct {
6342 const char *name;
6343 void *address;
6345 lt__PROGRAM__LTX_preloaded_symbols[] =
6347 { "@PROGRAM@", (void *) 0 },
6348 _LT_EOF
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350 cat <<\_LT_EOF >> conftest.$ac_ext
6351 {0, (void *) 0}
6354 /* This works around a problem in FreeBSD linker */
6355 #ifdef FREEBSD_WORKAROUND
6356 static const void *lt_preloaded_setup() {
6357 return lt__PROGRAM__LTX_preloaded_symbols;
6359 #endif
6361 #ifdef __cplusplus
6363 #endif
6364 _LT_EOF
6365 # Now try linking the two files.
6366 mv conftest.$ac_objext conftstm.$ac_objext
6367 lt_save_LIBS="$LIBS"
6368 lt_save_CFLAGS="$CFLAGS"
6369 LIBS="conftstm.$ac_objext"
6370 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6376 pipe_works=yes
6378 LIBS="$lt_save_LIBS"
6379 CFLAGS="$lt_save_CFLAGS"
6380 else
6381 echo "cannot find nm_test_func in $nlist" >&5
6383 else
6384 echo "cannot find nm_test_var in $nlist" >&5
6386 else
6387 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389 else
6390 echo "$progname: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 rm -rf conftest* conftst*
6395 # Do not use the global_symbol_pipe unless it works.
6396 if test "$pipe_works" = yes; then
6397 break
6398 else
6399 lt_cv_sys_global_symbol_pipe=
6401 done
6405 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406 lt_cv_sys_global_symbol_to_cdecl=
6408 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410 $as_echo "failed" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413 $as_echo "ok" >&6; }
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then :
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445 # Some flags need to be propagated to the compiler or linker for good
6446 # libtool support.
6447 case $host in
6448 ia64-*-hpux*)
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *ELF-32*)
6458 HPUX_IA64_MODE="32"
6460 *ELF-64*)
6461 HPUX_IA64_MODE="64"
6463 esac
6465 rm -rf conftest*
6467 *-*-irix6*)
6468 # Find out which ABI we are using.
6469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 LD="${LD-ld} -melf32bsmip"
6480 *N32*)
6481 LD="${LD-ld} -melf32bmipn32"
6483 *64-bit*)
6484 LD="${LD-ld} -melf64bmip"
6486 esac
6487 else
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -32"
6492 *N32*)
6493 LD="${LD-ld} -n32"
6495 *64-bit*)
6496 LD="${LD-ld} -64"
6498 esac
6501 rm -rf conftest*
6504 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6505 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.o` in
6514 *32-bit*)
6515 case $host in
6516 x86_64-*kfreebsd*-gnu)
6517 LD="${LD-ld} -m elf_i386_fbsd"
6519 x86_64-*linux*)
6520 LD="${LD-ld} -m elf_i386"
6522 ppc64-*linux*|powerpc64-*linux*)
6523 LD="${LD-ld} -m elf32ppclinux"
6525 s390x-*linux*)
6526 LD="${LD-ld} -m elf_s390"
6528 sparc64-*linux*)
6529 LD="${LD-ld} -m elf32_sparc"
6531 esac
6533 *64-bit*)
6534 case $host in
6535 x86_64-*kfreebsd*-gnu)
6536 LD="${LD-ld} -m elf_x86_64_fbsd"
6538 x86_64-*linux*)
6539 LD="${LD-ld} -m elf_x86_64"
6541 ppc*-*linux*|powerpc*-*linux*)
6542 LD="${LD-ld} -m elf64ppc"
6544 s390*-*linux*|s390*-*tpf*)
6545 LD="${LD-ld} -m elf64_s390"
6547 sparc*-*linux*)
6548 LD="${LD-ld} -m elf64_sparc"
6550 esac
6552 esac
6554 rm -rf conftest*
6557 *-*-sco3.2v5*)
6558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6559 SAVE_CFLAGS="$CFLAGS"
6560 CFLAGS="$CFLAGS -belf"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6562 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6563 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 ac_ext=c
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6576 main ()
6580 return 0;
6582 _ACEOF
6583 if ac_fn_c_try_link "$LINENO"; then :
6584 lt_cv_cc_needs_belf=yes
6585 else
6586 lt_cv_cc_needs_belf=no
6588 rm -f core conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6598 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6601 CFLAGS="$SAVE_CFLAGS"
6604 *-*solaris*)
6605 # Find out which ABI we are using.
6606 echo 'int i;' > conftest.$ac_ext
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 case `/usr/bin/file conftest.o` in
6613 *64-bit*)
6614 case $lt_cv_prog_gnu_ld in
6615 yes*)
6616 case $host in
6617 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6618 LD="${LD-ld} -m elf_x86_64"
6620 sparc*-*-solaris*)
6621 LD="${LD-ld} -m elf64_sparc"
6623 esac
6624 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6625 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6626 LD="${LD-ld}_sol2"
6630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6631 LD="${LD-ld} -64"
6634 esac
6636 esac
6638 rm -rf conftest*
6640 esac
6642 need_locks="$enable_libtool_lock"
6645 case $host_os in
6646 rhapsody* | darwin*)
6647 if test -n "$ac_tool_prefix"; then
6648 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6649 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$DSYMUTIL"; then
6656 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6669 done
6670 done
6671 IFS=$as_save_IFS
6675 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6676 if test -n "$DSYMUTIL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6678 $as_echo "$DSYMUTIL" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6686 if test -z "$ac_cv_prog_DSYMUTIL"; then
6687 ac_ct_DSYMUTIL=$DSYMUTIL
6688 # Extract the first word of "dsymutil", so it can be a program name with args.
6689 set dummy dsymutil; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$ac_ct_DSYMUTIL"; then
6696 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6716 if test -n "$ac_ct_DSYMUTIL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6718 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6724 if test "x$ac_ct_DSYMUTIL" = x; then
6725 DSYMUTIL=":"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728 yes:)
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731 ac_tool_warned=yes ;;
6732 esac
6733 DSYMUTIL=$ac_ct_DSYMUTIL
6735 else
6736 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$NMEDIT"; then
6748 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 NMEDIT=$ac_cv_prog_NMEDIT
6768 if test -n "$NMEDIT"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6770 $as_echo "$NMEDIT" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_NMEDIT"; then
6779 ac_ct_NMEDIT=$NMEDIT
6780 # Extract the first word of "nmedit", so it can be a program name with args.
6781 set dummy nmedit; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$ac_ct_NMEDIT"; then
6788 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6801 done
6802 done
6803 IFS=$as_save_IFS
6807 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6808 if test -n "$ac_ct_NMEDIT"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6810 $as_echo "$ac_ct_NMEDIT" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_NMEDIT" = x; then
6817 NMEDIT=":"
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825 NMEDIT=$ac_ct_NMEDIT
6827 else
6828 NMEDIT="$ac_cv_prog_NMEDIT"
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_LIPO+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$LIPO"; then
6840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6859 LIPO=$ac_cv_prog_LIPO
6860 if test -n "$LIPO"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6862 $as_echo "$LIPO" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6870 if test -z "$ac_cv_prog_LIPO"; then
6871 ac_ct_LIPO=$LIPO
6872 # Extract the first word of "lipo", so it can be a program name with args.
6873 set dummy lipo; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_LIPO"; then
6880 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_ac_ct_LIPO="lipo"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6893 done
6894 done
6895 IFS=$as_save_IFS
6899 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6900 if test -n "$ac_ct_LIPO"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6902 $as_echo "$ac_ct_LIPO" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 if test "x$ac_ct_LIPO" = x; then
6909 LIPO=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 LIPO=$ac_ct_LIPO
6919 else
6920 LIPO="$ac_cv_prog_LIPO"
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}otool; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$OTOOL"; then
6932 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 OTOOL=$ac_cv_prog_OTOOL
6952 if test -n "$OTOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6954 $as_echo "$OTOOL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6962 if test -z "$ac_cv_prog_OTOOL"; then
6963 ac_ct_OTOOL=$OTOOL
6964 # Extract the first word of "otool", so it can be a program name with args.
6965 set dummy otool; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_OTOOL"; then
6972 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_OTOOL="otool"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6991 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6992 if test -n "$ac_ct_OTOOL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6994 $as_echo "$ac_ct_OTOOL" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7000 if test "x$ac_ct_OTOOL" = x; then
7001 OTOOL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 OTOOL=$ac_ct_OTOOL
7011 else
7012 OTOOL="$ac_cv_prog_OTOOL"
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$OTOOL64"; then
7024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 OTOOL64=$ac_cv_prog_OTOOL64
7044 if test -n "$OTOOL64"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7046 $as_echo "$OTOOL64" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7054 if test -z "$ac_cv_prog_OTOOL64"; then
7055 ac_ct_OTOOL64=$OTOOL64
7056 # Extract the first word of "otool64", so it can be a program name with args.
7057 set dummy otool64; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_OTOOL64"; then
7064 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_OTOOL64="otool64"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7077 done
7078 done
7079 IFS=$as_save_IFS
7083 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7084 if test -n "$ac_ct_OTOOL64"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7086 $as_echo "$ac_ct_OTOOL64" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7092 if test "x$ac_ct_OTOOL64" = x; then
7093 OTOOL64=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 OTOOL64=$ac_ct_OTOOL64
7103 else
7104 OTOOL64="$ac_cv_prog_OTOOL64"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7134 $as_echo_n "checking for -single_module linker flag... " >&6; }
7135 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 lt_cv_apple_cc_single_mod=no
7139 if test -z "${LT_MULTI_MODULE}"; then
7140 # By default we will add the -single_module flag. You can override
7141 # by either setting the environment variable LT_MULTI_MODULE
7142 # non-empty at configure time, or by adding -multi_module to the
7143 # link flags.
7144 rm -rf libconftest.dylib*
7145 echo "int foo(void){return 1;}" > conftest.c
7146 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7147 -dynamiclib -Wl,-single_module conftest.c" >&5
7148 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7150 _lt_result=$?
7151 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7152 lt_cv_apple_cc_single_mod=yes
7153 else
7154 cat conftest.err >&5
7156 rm -rf libconftest.dylib*
7157 rm -f conftest.*
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7161 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7163 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7164 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 lt_cv_ld_exported_symbols_list=no
7168 save_LDFLAGS=$LDFLAGS
7169 echo "_main" > conftest.sym
7170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7175 main ()
7179 return 0;
7181 _ACEOF
7182 if ac_fn_c_try_link "$LINENO"; then :
7183 lt_cv_ld_exported_symbols_list=yes
7184 else
7185 lt_cv_ld_exported_symbols_list=no
7187 rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 LDFLAGS="$save_LDFLAGS"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7193 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7195 $as_echo_n "checking for -force_load linker flag... " >&6; }
7196 if test "${lt_cv_ld_force_load+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_ld_force_load=no
7200 cat > conftest.c << _LT_EOF
7201 int forced_loaded() { return 2;}
7202 _LT_EOF
7203 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7205 echo "$AR cru libconftest.a conftest.o" >&5
7206 $AR cru libconftest.a conftest.o 2>&5
7207 cat > conftest.c << _LT_EOF
7208 int main() { return 0;}
7209 _LT_EOF
7210 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7211 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7212 _lt_result=$?
7213 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7214 lt_cv_ld_force_load=yes
7215 else
7216 cat conftest.err >&5
7218 rm -f conftest.err libconftest.a conftest conftest.c
7219 rm -rf conftest.dSYM
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7223 $as_echo "$lt_cv_ld_force_load" >&6; }
7224 case $host_os in
7225 rhapsody* | darwin1.[012])
7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7227 darwin1.*)
7228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229 darwin*) # darwin 5.x on
7230 # if running on 10.5 or later, the deployment target defaults
7231 # to the OS version, if on x86, and 10.4, the deployment
7232 # target defaults to 10.4. Don't you love it?
7233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 10.[012]*)
7237 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7238 10.*)
7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7240 esac
7242 esac
7243 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7244 _lt_dar_single_mod='$single_module'
7246 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7247 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7248 else
7249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7251 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7252 _lt_dsymutil='~$DSYMUTIL $lib || :'
7253 else
7254 _lt_dsymutil=
7257 esac
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7265 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7266 # On Suns, sometimes $CPP names a directory.
7267 if test -n "$CPP" && test -d "$CPP"; then
7268 CPP=
7270 if test -z "$CPP"; then
7271 if test "${ac_cv_prog_CPP+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 # Double quotes because CPP needs to be expanded
7275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7277 ac_preproc_ok=false
7278 for ac_c_preproc_warn_flag in '' yes
7280 # Use a header file that comes with gcc, so configuring glibc
7281 # with a fresh cross-compiler works.
7282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 # <limits.h> exists even on freestanding compilers.
7284 # On the NeXT, cc -E runs the code through the compiler's parser,
7285 # not just through cpp. "Syntax error" is here to catch this case.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #ifdef __STDC__
7289 # include <limits.h>
7290 #else
7291 # include <assert.h>
7292 #endif
7293 Syntax error
7294 _ACEOF
7295 if ac_fn_c_try_cpp "$LINENO"; then :
7297 else
7298 # Broken: fails on valid input.
7299 continue
7301 rm -f conftest.err conftest.$ac_ext
7303 # OK, works on sane cases. Now check whether nonexistent headers
7304 # can be detected and how.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 #include <ac_nonexistent.h>
7308 _ACEOF
7309 if ac_fn_c_try_cpp "$LINENO"; then :
7310 # Broken: success on invalid input.
7311 continue
7312 else
7313 # Passes both tests.
7314 ac_preproc_ok=:
7315 break
7317 rm -f conftest.err conftest.$ac_ext
7319 done
7320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7321 rm -f conftest.err conftest.$ac_ext
7322 if $ac_preproc_ok; then :
7323 break
7326 done
7327 ac_cv_prog_CPP=$CPP
7330 CPP=$ac_cv_prog_CPP
7331 else
7332 ac_cv_prog_CPP=$CPP
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7335 $as_echo "$CPP" >&6; }
7336 ac_preproc_ok=false
7337 for ac_c_preproc_warn_flag in '' yes
7339 # Use a header file that comes with gcc, so configuring glibc
7340 # with a fresh cross-compiler works.
7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342 # <limits.h> exists even on freestanding compilers.
7343 # On the NeXT, cc -E runs the code through the compiler's parser,
7344 # not just through cpp. "Syntax error" is here to catch this case.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #ifdef __STDC__
7348 # include <limits.h>
7349 #else
7350 # include <assert.h>
7351 #endif
7352 Syntax error
7353 _ACEOF
7354 if ac_fn_c_try_cpp "$LINENO"; then :
7356 else
7357 # Broken: fails on valid input.
7358 continue
7360 rm -f conftest.err conftest.$ac_ext
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if ac_fn_c_try_cpp "$LINENO"; then :
7369 # Broken: success on invalid input.
7370 continue
7371 else
7372 # Passes both tests.
7373 ac_preproc_ok=:
7374 break
7376 rm -f conftest.err conftest.$ac_ext
7378 done
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then :
7383 else
7384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7386 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7387 See \`config.log' for more details." "$LINENO" 5; }
7390 ac_ext=c
7391 ac_cpp='$CPP $CPPFLAGS'
7392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7398 $as_echo_n "checking for ANSI C header files... " >&6; }
7399 if test "${ac_cv_header_stdc+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <stdlib.h>
7405 #include <stdarg.h>
7406 #include <string.h>
7407 #include <float.h>
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 ac_cv_header_stdc=yes
7419 else
7420 ac_cv_header_stdc=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 if test $ac_cv_header_stdc = yes; then
7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 #include <string.h>
7430 _ACEOF
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "memchr" >/dev/null 2>&1; then :
7434 else
7435 ac_cv_header_stdc=no
7437 rm -f conftest*
7441 if test $ac_cv_header_stdc = yes; then
7442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <stdlib.h>
7447 _ACEOF
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "free" >/dev/null 2>&1; then :
7451 else
7452 ac_cv_header_stdc=no
7454 rm -f conftest*
7458 if test $ac_cv_header_stdc = yes; then
7459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7460 if test "$cross_compiling" = yes; then :
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <ctype.h>
7466 #include <stdlib.h>
7467 #if ((' ' & 0x0FF) == 0x020)
7468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7470 #else
7471 # define ISLOWER(c) \
7472 (('a' <= (c) && (c) <= 'i') \
7473 || ('j' <= (c) && (c) <= 'r') \
7474 || ('s' <= (c) && (c) <= 'z'))
7475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7476 #endif
7478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7480 main ()
7482 int i;
7483 for (i = 0; i < 256; i++)
7484 if (XOR (islower (i), ISLOWER (i))
7485 || toupper (i) != TOUPPER (i))
7486 return 2;
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_run "$LINENO"; then :
7492 else
7493 ac_cv_header_stdc=no
7495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7496 conftest.$ac_objext conftest.beam conftest.$ac_ext
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7502 $as_echo "$ac_cv_header_stdc" >&6; }
7503 if test $ac_cv_header_stdc = yes; then
7505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7510 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7511 inttypes.h stdint.h unistd.h
7512 do :
7513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7516 eval as_val=\$$as_ac_Header
7517 if test "x$as_val" = x""yes; then :
7518 cat >>confdefs.h <<_ACEOF
7519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7524 done
7527 for ac_header in dlfcn.h
7528 do :
7529 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7531 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7532 cat >>confdefs.h <<_ACEOF
7533 #define HAVE_DLFCN_H 1
7534 _ACEOF
7538 done
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_GOC+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$GOC"; then
7549 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7564 IFS=$as_save_IFS
7568 GOC=$ac_cv_prog_GOC
7569 if test -n "$GOC"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7571 $as_echo "$GOC" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7579 if test -z "$ac_cv_prog_GOC"; then
7580 ac_ct_GOC=$GOC
7581 # Extract the first word of "gccgo", so it can be a program name with args.
7582 set dummy gccgo; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_GOC"; then
7589 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_ac_ct_GOC="gccgo"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7609 if test -n "$ac_ct_GOC"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7611 $as_echo "$ac_ct_GOC" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7617 if test "x$ac_ct_GOC" = x; then
7618 GOC=""
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 GOC=$ac_ct_GOC
7628 else
7629 GOC="$ac_cv_prog_GOC"
7637 # Set options
7642 enable_win32_dll=no
7645 # Check whether --enable-shared was given.
7646 if test "${enable_shared+set}" = set; then :
7647 enableval=$enable_shared; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_shared=yes ;;
7650 no) enable_shared=no ;;
7652 enable_shared=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_shared=yes
7660 done
7661 IFS="$lt_save_ifs"
7663 esac
7664 else
7665 enable_shared=yes
7676 # Check whether --enable-static was given.
7677 if test "${enable_static+set}" = set; then :
7678 enableval=$enable_static; p=${PACKAGE-default}
7679 case $enableval in
7680 yes) enable_static=yes ;;
7681 no) enable_static=no ;;
7683 enable_static=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7687 IFS="$lt_save_ifs"
7688 if test "X$pkg" = "X$p"; then
7689 enable_static=yes
7691 done
7692 IFS="$lt_save_ifs"
7694 esac
7695 else
7696 enable_static=yes
7708 # Check whether --with-pic was given.
7709 if test "${with_pic+set}" = set; then :
7710 withval=$with_pic; pic_mode="$withval"
7711 else
7712 pic_mode=default
7716 test -z "$pic_mode" && pic_mode=default
7724 # Check whether --enable-fast-install was given.
7725 if test "${enable_fast_install+set}" = set; then :
7726 enableval=$enable_fast_install; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_fast_install=yes ;;
7729 no) enable_fast_install=no ;;
7731 enable_fast_install=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7735 IFS="$lt_save_ifs"
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install=yes
7739 done
7740 IFS="$lt_save_ifs"
7742 esac
7743 else
7744 enable_fast_install=yes
7757 # This can be used to rebuild libtool when needed
7758 LIBTOOL_DEPS="$ltmain"
7760 # Always use our own libtool.
7761 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788 test -z "$LN_S" && LN_S="ln -s"
7803 if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808 $as_echo_n "checking for objdir... " >&6; }
7809 if test "${lt_cv_objdir+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f .libs 2>/dev/null
7813 mkdir .libs 2>/dev/null
7814 if test -d .libs; then
7815 lt_cv_objdir=.libs
7816 else
7817 # MS-DOS does not allow filenames that begin with a dot.
7818 lt_cv_objdir=_libs
7820 rmdir .libs 2>/dev/null
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823 $as_echo "$lt_cv_objdir" >&6; }
7824 objdir=$lt_cv_objdir
7830 cat >>confdefs.h <<_ACEOF
7831 #define LT_OBJDIR "$lt_cv_objdir/"
7832 _ACEOF
7837 case $host_os in
7838 aix3*)
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset; then
7843 COLLECT_NAMES=
7844 export COLLECT_NAMES
7847 esac
7849 # Global variables:
7850 ofile=libtool
7851 can_build_shared=yes
7853 # All known linkers require a `.a' archive for static linking (except MSVC,
7854 # which needs '.lib').
7855 libext=a
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7859 old_CC="$CC"
7860 old_CFLAGS="$CFLAGS"
7862 # Set sane defaults for various variables
7863 test -z "$CC" && CC=cc
7864 test -z "$LTCC" && LTCC=$CC
7865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866 test -z "$LD" && LD=ld
7867 test -z "$ac_objext" && ac_objext=o
7869 for cc_temp in $compiler""; do
7870 case $cc_temp in
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873 \-*) ;;
7874 *) break;;
7875 esac
7876 done
7877 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 # Only perform the check for file, if the check method requires it
7881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882 case $deplibs_check_method in
7883 file_magic*)
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $MAGIC_CMD in
7891 [\\/*] | ?:[\\/]*)
7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 lt_save_MAGIC_CMD="$MAGIC_CMD"
7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir in $ac_dummy; do
7899 IFS="$lt_save_ifs"
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7905 "file_magic "*)
7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909 $EGREP "$file_magic_regex" > /dev/null; then
7911 else
7912 cat <<_LT_EOF 1>&2
7914 *** Warning: the command libtool uses to detect shared libraries,
7915 *** $file_magic_cmd, produces output that libtool cannot recognize.
7916 *** The result is that libtool may fail to recognize shared libraries
7917 *** as such. This will affect the creation of libtool libraries that
7918 *** depend on shared libraries, but programs linked with such libtool
7919 *** libraries will work regardless of this problem. Nevertheless, you
7920 *** may want to report the problem to your system manager and/or to
7921 *** bug-libtool@gnu.org
7923 _LT_EOF
7924 fi ;;
7925 esac
7927 break
7929 done
7930 IFS="$lt_save_ifs"
7931 MAGIC_CMD="$lt_save_MAGIC_CMD"
7933 esac
7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937 if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939 $as_echo "$MAGIC_CMD" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7949 if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952 $as_echo_n "checking for file... " >&6; }
7953 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 case $MAGIC_CMD in
7957 [\\/*] | ?:[\\/]*)
7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 lt_save_MAGIC_CMD="$MAGIC_CMD"
7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir in $ac_dummy; do
7965 IFS="$lt_save_ifs"
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7971 "file_magic "*)
7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975 $EGREP "$file_magic_regex" > /dev/null; then
7977 else
7978 cat <<_LT_EOF 1>&2
7980 *** Warning: the command libtool uses to detect shared libraries,
7981 *** $file_magic_cmd, produces output that libtool cannot recognize.
7982 *** The result is that libtool may fail to recognize shared libraries
7983 *** as such. This will affect the creation of libtool libraries that
7984 *** depend on shared libraries, but programs linked with such libtool
7985 *** libraries will work regardless of this problem. Nevertheless, you
7986 *** may want to report the problem to your system manager and/or to
7987 *** bug-libtool@gnu.org
7989 _LT_EOF
7990 fi ;;
7991 esac
7993 break
7995 done
7996 IFS="$lt_save_ifs"
7997 MAGIC_CMD="$lt_save_MAGIC_CMD"
7999 esac
8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003 if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005 $as_echo "$MAGIC_CMD" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8012 else
8013 MAGIC_CMD=:
8019 esac
8021 # Use C for the default configuration in the libtool script
8023 lt_save_CC="$CC"
8024 ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # Source file extension for C test sources.
8032 ac_ext=c
8034 # Object file extension for compiled C test sources.
8035 objext=o
8036 objext=$objext
8038 # Code to be used in simple compile tests
8039 lt_simple_compile_test_code="int some_variable = 0;"
8041 # Code to be used in simple link tests
8042 lt_simple_link_test_code='int main(){return(0);}'
8050 # If no C compiler was specified, use CC.
8051 LTCC=${LTCC-"$CC"}
8053 # If no C compiler flags were specified, use CFLAGS.
8054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056 # Allow CC to be a program name with arguments.
8057 compiler=$CC
8059 # Save the default compiler, since it gets overwritten when the other
8060 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061 compiler_DEFAULT=$CC
8063 # save warnings/boilerplate of simple test code
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_compiler_boilerplate=`cat conftest.err`
8068 $RM conftest*
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_linker_boilerplate=`cat conftest.err`
8074 $RM -r conftest*
8077 ## CAVEAT EMPTOR:
8078 ## There is no encapsulation within the following macros, do not change
8079 ## the running order or otherwise move them around unless you know exactly
8080 ## what you are doing...
8081 if test -n "$compiler"; then
8083 lt_prog_compiler_no_builtin_flag=
8085 if test "$GCC" = yes; then
8086 case $cc_basename in
8087 nvcc*)
8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091 esac
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 lt_cv_prog_compiler_rtti_exceptions=no
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-fno-rtti -fno-exceptions"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err)
8113 ac_status=$?
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_rtti_exceptions=yes
8125 $RM conftest*
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133 else
8144 lt_prog_compiler_wl=
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_static=
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_static='-static'
8155 case $host_os in
8156 aix*)
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static='-Bstatic'
8164 amigaos*)
8165 case $host_cpu in
8166 powerpc)
8167 # see comment about AmigaOS4 .so support
8168 lt_prog_compiler_pic='-fPIC'
8170 m68k)
8171 # FIXME: we need at least 68020 code to build shared libraries, but
8172 # adding the `-m68020' flag to GCC prevents building anything better,
8173 # like `-m68040'.
8174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8176 esac
8179 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8180 # PIC is the default for these OSes.
8183 mingw* | cygwin* | pw32* | os2* | cegcc*)
8184 # This hack is so that the source file can tell whether it is being
8185 # built for inclusion in a dll (and should export symbols for example).
8186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8187 # (--disable-auto-import) libraries
8188 lt_prog_compiler_pic='-DDLL_EXPORT'
8191 darwin* | rhapsody*)
8192 # PIC is the default on this platform
8193 # Common symbols not allowed in MH_DYLIB files
8194 lt_prog_compiler_pic='-fno-common'
8197 haiku*)
8198 # PIC is the default for Haiku.
8199 # The "-static" flag exists, but is broken.
8200 lt_prog_compiler_static=
8203 hpux*)
8204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8206 # sets the default TLS model and affects inlining.
8207 case $host_cpu in
8208 hppa*64*)
8209 # +Z the default
8212 lt_prog_compiler_pic='-fPIC'
8214 esac
8217 interix[3-9]*)
8218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8219 # Instead, we relocate shared libraries at runtime.
8222 msdosdjgpp*)
8223 # Just because we use GCC doesn't mean we suddenly get shared libraries
8224 # on systems that don't support them.
8225 lt_prog_compiler_can_build_shared=no
8226 enable_shared=no
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
8235 sysv4*MP*)
8236 if test -d /usr/nec; then
8237 lt_prog_compiler_pic=-Kconform_pic
8242 lt_prog_compiler_pic='-fPIC'
8244 esac
8246 case $cc_basename in
8247 nvcc*) # Cuda Compiler Driver 2.2
8248 lt_prog_compiler_wl='-Xlinker '
8249 lt_prog_compiler_pic='-Xcompiler -fPIC'
8251 esac
8252 else
8253 # PORTME Check for flag to pass linker flags through the system compiler.
8254 case $host_os in
8255 aix*)
8256 lt_prog_compiler_wl='-Wl,'
8257 if test "$host_cpu" = ia64; then
8258 # AIX 5 now supports IA64 processor
8259 lt_prog_compiler_static='-Bstatic'
8260 else
8261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8265 mingw* | cygwin* | pw32* | os2* | cegcc*)
8266 # This hack is so that the source file can tell whether it is being
8267 # built for inclusion in a dll (and should export symbols for example).
8268 lt_prog_compiler_pic='-DDLL_EXPORT'
8271 hpux9* | hpux10* | hpux11*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274 # not for PA HP-UX.
8275 case $host_cpu in
8276 hppa*64*|ia64*)
8277 # +Z the default
8280 lt_prog_compiler_pic='+Z'
8282 esac
8283 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8284 lt_prog_compiler_static='${wl}-a ${wl}archive'
8287 irix5* | irix6* | nonstopux*)
8288 lt_prog_compiler_wl='-Wl,'
8289 # PIC (with -KPIC) is the default.
8290 lt_prog_compiler_static='-non_shared'
8293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8294 case $cc_basename in
8295 # old Intel for x86_64 which still supported -KPIC.
8296 ecc*)
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-KPIC'
8299 lt_prog_compiler_static='-static'
8301 # icc used to be incompatible with GCC.
8302 # ICC 10 doesn't accept -KPIC any more.
8303 icc* | ifort*)
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='-fPIC'
8306 lt_prog_compiler_static='-static'
8308 # Lahey Fortran 8.1.
8309 lf95*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='--shared'
8312 lt_prog_compiler_static='--static'
8314 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8315 # Portland Group compilers (*not* the Pentium gcc compiler,
8316 # which looks to be a dead project)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fpic'
8319 lt_prog_compiler_static='-Bstatic'
8321 ccc*)
8322 lt_prog_compiler_wl='-Wl,'
8323 # All Alpha code is PIC.
8324 lt_prog_compiler_static='-non_shared'
8326 xl* | bgxl* | bgf* | mpixl*)
8327 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-qpic'
8330 lt_prog_compiler_static='-qstaticlink'
8333 case `$CC -V 2>&1 | sed 5q` in
8334 *Sun\ F* | *Sun*Fortran*)
8335 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl=''
8340 *Sun\ C*)
8341 # Sun C 5.9
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl='-Wl,'
8346 esac
8348 esac
8351 newsos6)
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8362 osf3* | osf4* | osf5*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All OSF/1 code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8368 rdos*)
8369 lt_prog_compiler_static='-non_shared'
8372 solaris*)
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 case $cc_basename in
8376 f77* | f90* | f95*)
8377 lt_prog_compiler_wl='-Qoption ld ';;
8379 lt_prog_compiler_wl='-Wl,';;
8380 esac
8383 sunos4*)
8384 lt_prog_compiler_wl='-Qoption ld '
8385 lt_prog_compiler_pic='-PIC'
8386 lt_prog_compiler_static='-Bstatic'
8389 sysv4 | sysv4.2uw2* | sysv4.3*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8395 sysv4*MP*)
8396 if test -d /usr/nec ;then
8397 lt_prog_compiler_pic='-Kconform_pic'
8398 lt_prog_compiler_static='-Bstatic'
8402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8408 unicos*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_can_build_shared=no
8413 uts4*)
8414 lt_prog_compiler_pic='-pic'
8415 lt_prog_compiler_static='-Bstatic'
8419 lt_prog_compiler_can_build_shared=no
8421 esac
8424 case $host_os in
8425 # For platforms which do not support PIC, -DPIC is meaningless:
8426 *djgpp*)
8427 lt_prog_compiler_pic=
8430 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8432 esac
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8434 $as_echo "$lt_prog_compiler_pic" >&6; }
8442 # Check to make sure the PIC flag actually works.
8444 if test -n "$lt_prog_compiler_pic"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8447 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 lt_cv_prog_compiler_pic_works=no
8451 ac_outfile=conftest.$ac_objext
8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454 # Insert the option either (1) after the last *FLAGS variable, or
8455 # (2) before a word containing "conftest.", or (3) at the end.
8456 # Note that $ac_compile itself does not contain backslashes and begins
8457 # with a dollar sign (not a hyphen), so the echo should work correctly.
8458 # The option is referenced via a variable to avoid confusing sed.
8459 lt_compile=`echo "$ac_compile" | $SED \
8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462 -e 's:$: $lt_compiler_flag:'`
8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464 (eval "$lt_compile" 2>conftest.err)
8465 ac_status=$?
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 if (exit $ac_status) && test -s "$ac_outfile"; then
8469 # The compiler can only warn and ignore the option if not recognized
8470 # So say no if there are warnings other than the usual output.
8471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474 lt_cv_prog_compiler_pic_works=yes
8477 $RM conftest*
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8481 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8483 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8484 case $lt_prog_compiler_pic in
8485 "" | " "*) ;;
8486 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8487 esac
8488 else
8489 lt_prog_compiler_pic=
8490 lt_prog_compiler_can_build_shared=no
8501 # Check to make sure the static flag actually works.
8503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8505 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8506 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 lt_cv_prog_compiler_static_works=no
8510 save_LDFLAGS="$LDFLAGS"
8511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8514 # The linker can only warn and ignore the option if not recognized
8515 # So say no if there are warnings
8516 if test -s conftest.err; then
8517 # Append any errors to the config.log.
8518 cat conftest.err 1>&5
8519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if diff conftest.exp conftest.er2 >/dev/null; then
8522 lt_cv_prog_compiler_static_works=yes
8524 else
8525 lt_cv_prog_compiler_static_works=yes
8528 $RM -r conftest*
8529 LDFLAGS="$save_LDFLAGS"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8533 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8535 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8537 else
8538 lt_prog_compiler_static=
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8548 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 lt_cv_prog_compiler_c_o=no
8553 $RM -r conftest 2>/dev/null
8554 mkdir conftest
8555 cd conftest
8556 mkdir out
8557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559 lt_compiler_flag="-o out/conftest2.$ac_objext"
8560 # Insert the option either (1) after the last *FLAGS variable, or
8561 # (2) before a word containing "conftest.", or (3) at the end.
8562 # Note that $ac_compile itself does not contain backslashes and begins
8563 # with a dollar sign (not a hyphen), so the echo should work correctly.
8564 lt_compile=`echo "$ac_compile" | $SED \
8565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567 -e 's:$: $lt_compiler_flag:'`
8568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8569 (eval "$lt_compile" 2>out/conftest.err)
8570 ac_status=$?
8571 cat out/conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8574 then
8575 # The compiler can only warn and ignore the option if not recognized
8576 # So say no if there are warnings
8577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8580 lt_cv_prog_compiler_c_o=yes
8583 chmod u+w . 2>&5
8584 $RM conftest*
8585 # SGI C++ compiler will create directory out/ii_files/ for
8586 # template instantiation
8587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8588 $RM out/* && rmdir out
8589 cd ..
8590 $RM -r conftest
8591 $RM conftest*
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8595 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8603 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8604 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 lt_cv_prog_compiler_c_o=no
8608 $RM -r conftest 2>/dev/null
8609 mkdir conftest
8610 cd conftest
8611 mkdir out
8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-o out/conftest2.$ac_objext"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 lt_compile=`echo "$ac_compile" | $SED \
8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622 -e 's:$: $lt_compiler_flag:'`
8623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8624 (eval "$lt_compile" 2>out/conftest.err)
8625 ac_status=$?
8626 cat out/conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8629 then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_c_o=yes
8638 chmod u+w . 2>&5
8639 $RM conftest*
8640 # SGI C++ compiler will create directory out/ii_files/ for
8641 # template instantiation
8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8643 $RM out/* && rmdir out
8644 cd ..
8645 $RM -r conftest
8646 $RM conftest*
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8650 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8655 hard_links="nottested"
8656 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8657 # do not overwrite the value of need_locks provided by the user
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8659 $as_echo_n "checking if we can lock with hard links... " >&6; }
8660 hard_links=yes
8661 $RM conftest*
8662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663 touch conftest.a
8664 ln conftest.a conftest.b 2>&5 || hard_links=no
8665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8667 $as_echo "$hard_links" >&6; }
8668 if test "$hard_links" = no; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8670 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8671 need_locks=warn
8673 else
8674 need_locks=no
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8683 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8685 runpath_var=
8686 allow_undefined_flag=
8687 always_export_symbols=no
8688 archive_cmds=
8689 archive_expsym_cmds=
8690 compiler_needs_object=no
8691 enable_shared_with_static_runtimes=no
8692 export_dynamic_flag_spec=
8693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8694 hardcode_automatic=no
8695 hardcode_direct=no
8696 hardcode_direct_absolute=no
8697 hardcode_libdir_flag_spec=
8698 hardcode_libdir_flag_spec_ld=
8699 hardcode_libdir_separator=
8700 hardcode_minus_L=no
8701 hardcode_shlibpath_var=unsupported
8702 inherit_rpath=no
8703 link_all_deplibs=unknown
8704 module_cmds=
8705 module_expsym_cmds=
8706 old_archive_from_new_cmds=
8707 old_archive_from_expsyms_cmds=
8708 thread_safe_flag_spec=
8709 whole_archive_flag_spec=
8710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8712 include_expsyms=
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
8717 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
8723 # Exclude shared library initialization/finalization symbols.
8724 extract_expsyms_cmds=
8726 case $host_os in
8727 cygwin* | mingw* | pw32* | cegcc*)
8728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729 # When not using gcc, we currently assume that we are using
8730 # Microsoft Visual C++.
8731 if test "$GCC" != yes; then
8732 with_gnu_ld=no
8735 interix*)
8736 # we just hope/assume this is gcc and not c89 (= MSVC++)
8737 with_gnu_ld=yes
8739 openbsd*)
8740 with_gnu_ld=no
8742 esac
8744 ld_shlibs=yes
8746 # On some targets, GNU ld is compatible enough with the native linker
8747 # that we're better off using the native interface for both.
8748 lt_use_gnu_ld_interface=no
8749 if test "$with_gnu_ld" = yes; then
8750 case $host_os in
8751 aix*)
8752 # The AIX port of GNU ld has always aspired to compatibility
8753 # with the native linker. However, as the warning in the GNU ld
8754 # block says, versions before 2.19.5* couldn't really create working
8755 # shared libraries, regardless of the interface used.
8756 case `$LD -v 2>&1` in
8757 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8761 lt_use_gnu_ld_interface=yes
8763 esac
8766 lt_use_gnu_ld_interface=yes
8768 esac
8771 if test "$lt_use_gnu_ld_interface" = yes; then
8772 # If archive_cmds runs LD, not CC, wlarc should be empty
8773 wlarc='${wl}'
8775 # Set some defaults for GNU ld with shared library support. These
8776 # are reset later if shared libraries are not supported. Putting them
8777 # here allows them to be overridden if necessary.
8778 runpath_var=LD_RUN_PATH
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 export_dynamic_flag_spec='${wl}--export-dynamic'
8781 # ancient GNU ld didn't support --whole-archive et. al.
8782 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784 else
8785 whole_archive_flag_spec=
8787 supports_anon_versioning=no
8788 case `$LD -v 2>&1` in
8789 *GNU\ gold*) supports_anon_versioning=yes ;;
8790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793 *\ 2.11.*) ;; # other 2.11 versions
8794 *) supports_anon_versioning=yes ;;
8795 esac
8797 # See if GNU ld supports shared libraries.
8798 case $host_os in
8799 aix[3-9]*)
8800 # On AIX/PPC, the GNU linker is very broken
8801 if test "$host_cpu" != ia64; then
8802 ld_shlibs=no
8803 cat <<_LT_EOF 1>&2
8805 *** Warning: the GNU linker, at least up to release 2.19, is reported
8806 *** to be unable to reliably create shared libraries on AIX.
8807 *** Therefore, libtool is disabling shared libraries support. If you
8808 *** really care for shared libraries, you may want to install binutils
8809 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810 *** You will then need to restart the configuration process.
8812 _LT_EOF
8816 amigaos*)
8817 case $host_cpu in
8818 powerpc)
8819 # see comment about AmigaOS4 .so support
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds=''
8823 m68k)
8824 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)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8828 esac
8831 beos*)
8832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833 allow_undefined_flag=unsupported
8834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835 # support --undefined. This deserves some investigation. FIXME
8836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 else
8838 ld_shlibs=no
8842 cygwin* | mingw* | pw32* | cegcc*)
8843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844 # as there is no search path for DLLs.
8845 hardcode_libdir_flag_spec='-L$libdir'
8846 export_dynamic_flag_spec='${wl}--export-all-symbols'
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
8850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854 # If the export-symbols file already is a .def file (1st line
8855 # is EXPORTS), use it as is; otherwise, prepend...
8856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857 cp $export_symbols $output_objdir/$soname.def;
8858 else
8859 echo EXPORTS > $output_objdir/$soname.def;
8860 cat $export_symbols >> $output_objdir/$soname.def;
8862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 else
8864 ld_shlibs=no
8868 haiku*)
8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870 link_all_deplibs=yes
8873 interix[3-9]*)
8874 hardcode_direct=no
8875 hardcode_shlibpath_var=no
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877 export_dynamic_flag_spec='${wl}-E'
8878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8879 # Instead, shared libraries are loaded at an image base (0x10000000 by
8880 # default) and relocated if they conflict, which is a slow very memory
8881 # consuming and fragmenting process. To avoid this, we pick a random,
8882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8885 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'
8888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8889 tmp_diet=no
8890 if test "$host_os" = linux-dietlibc; then
8891 case $cc_basename in
8892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8893 esac
8895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8896 && test "$tmp_diet" = no
8897 then
8898 tmp_addflag=
8899 tmp_sharedflag='-shared'
8900 case $cc_basename,$host_cpu in
8901 pgcc*) # Portland Group C compiler
8902 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'
8903 tmp_addflag=' $pic_flag'
8905 pgf77* | pgf90* | pgf95* | pgfortran*)
8906 # Portland Group f77 and f90 compilers
8907 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'
8908 tmp_addflag=' $pic_flag -Mnomain' ;;
8909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8910 tmp_addflag=' -i_dynamic' ;;
8911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8912 tmp_addflag=' -i_dynamic -nofor_main' ;;
8913 ifc* | ifort*) # Intel Fortran compiler
8914 tmp_addflag=' -nofor_main' ;;
8915 lf95*) # Lahey Fortran 8.1
8916 whole_archive_flag_spec=
8917 tmp_sharedflag='--shared' ;;
8918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8919 tmp_sharedflag='-qmkshrobj'
8920 tmp_addflag= ;;
8921 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
8925 esac
8926 case `$CC -V 2>&1 | sed 5q` in
8927 *Sun\ C*) # Sun C 5.9
8928 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'
8929 compiler_needs_object=yes
8930 tmp_sharedflag='-G' ;;
8931 *Sun\ F*) # Sun Fortran 8.3
8932 tmp_sharedflag='-G' ;;
8933 esac
8934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 if test "x$supports_anon_versioning" = xyes; then
8937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939 echo "local: *; };" >> $output_objdir/$libname.ver~
8940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8943 case $cc_basename in
8944 xlf* | bgf* | bgxlf* | mpixlf*)
8945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8947 hardcode_libdir_flag_spec=
8948 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8949 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8950 if test "x$supports_anon_versioning" = xyes; then
8951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953 echo "local: *; };" >> $output_objdir/$libname.ver~
8954 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8957 esac
8958 else
8959 ld_shlibs=no
8963 netbsd*)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966 wlarc=
8967 else
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 solaris*)
8974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975 ld_shlibs=no
8976 cat <<_LT_EOF 1>&2
8978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979 *** create shared libraries on Solaris systems. Therefore, libtool
8980 *** is disabling shared libraries support. We urge you to upgrade GNU
8981 *** binutils to release 2.9.1 or newer. Another option is to modify
8982 *** your PATH or compiler configuration so that the native linker is
8983 *** used, and then restart.
8985 _LT_EOF
8986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995 case `$LD -v 2>&1` in
8996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997 ld_shlibs=no
8998 cat <<_LT_EOF 1>&2
9000 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001 *** reliably create shared libraries on SCO systems. Therefore, libtool
9002 *** is disabling shared libraries support. We urge you to upgrade GNU
9003 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9004 *** your PATH or compiler configuration so that the native linker is
9005 *** used, and then restart.
9007 _LT_EOF
9010 # For security reasons, it is highly recommended that you always
9011 # use absolute paths for naming shared libraries, and exclude the
9012 # DT_RUNPATH tag from executables and libraries. But doing so
9013 # requires that you compile everything twice, which is a pain.
9014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9022 esac
9025 sunos4*)
9026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 wlarc=
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9040 esac
9042 if test "$ld_shlibs" = no; then
9043 runpath_var=
9044 hardcode_libdir_flag_spec=
9045 export_dynamic_flag_spec=
9046 whole_archive_flag_spec=
9048 else
9049 # PORTME fill in a description of your system's linker (not GNU ld)
9050 case $host_os in
9051 aix3*)
9052 allow_undefined_flag=unsupported
9053 always_export_symbols=yes
9054 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'
9055 # Note: this linker hardcodes the directories in LIBPATH if there
9056 # are no directories specified by -L.
9057 hardcode_minus_L=yes
9058 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059 # Neither direct hardcoding nor static linking is supported with a
9060 # broken collect2.
9061 hardcode_direct=unsupported
9065 aix[4-9]*)
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9071 no_entry_flag=""
9072 else
9073 # If we're using GNU nm, then we don't want the "-C" option.
9074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9075 # Also, AIX nm treats weak defined symbols like other global
9076 # defined symbols, whereas GNU nm marks them as "W".
9077 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9078 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'
9079 else
9080 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'
9082 aix_use_runtimelinking=no
9084 # Test if we are trying to use run time linking or normal
9085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9086 # need to do runtime linking.
9087 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9088 for ld_flag in $LDFLAGS; do
9089 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9090 aix_use_runtimelinking=yes
9091 break
9093 done
9095 esac
9097 exp_sym_flag='-bexport'
9098 no_entry_flag='-bnoentry'
9101 # When large executables or shared objects are built, AIX ld can
9102 # have problems creating the table of contents. If linking a library
9103 # or program results in "error TOC overflow" add -mminimal-toc to
9104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9107 archive_cmds=''
9108 hardcode_direct=yes
9109 hardcode_direct_absolute=yes
9110 hardcode_libdir_separator=':'
9111 link_all_deplibs=yes
9112 file_list_spec='${wl}-f,'
9114 if test "$GCC" = yes; then
9115 case $host_os in aix4.[012]|aix4.[012].*)
9116 # We only want to do this on AIX 4.2 and lower, the check
9117 # below for broken collect2 doesn't work under 4.3+
9118 collect2name=`${CC} -print-prog-name=collect2`
9119 if test -f "$collect2name" &&
9120 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9121 then
9122 # We have reworked collect2
9124 else
9125 # We have old collect2
9126 hardcode_direct=unsupported
9127 # It fails to find uninstalled libraries when the uninstalled
9128 # path is not listed in the libpath. Setting hardcode_minus_L
9129 # to unsupported forces relinking
9130 hardcode_minus_L=yes
9131 hardcode_libdir_flag_spec='-L$libdir'
9132 hardcode_libdir_separator=
9135 esac
9136 shared_flag='-shared'
9137 if test "$aix_use_runtimelinking" = yes; then
9138 shared_flag="$shared_flag "'${wl}-G'
9140 else
9141 # not using gcc
9142 if test "$host_cpu" = ia64; then
9143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9144 # chokes on -Wl,-G. The following line is correct:
9145 shared_flag='-G'
9146 else
9147 if test "$aix_use_runtimelinking" = yes; then
9148 shared_flag='${wl}-G'
9149 else
9150 shared_flag='${wl}-bM:SRE'
9155 export_dynamic_flag_spec='${wl}-bexpall'
9156 # It seems that -bexpall does not export symbols beginning with
9157 # underscore (_), so it is better to generate a list of symbols to export.
9158 always_export_symbols=yes
9159 if test "$aix_use_runtimelinking" = yes; then
9160 # Warning - without using the other runtime loading flags (-brtl),
9161 # -berok will link without error, but may produce a broken library.
9162 allow_undefined_flag='-berok'
9163 # Determine the default libpath from the value encoded in an
9164 # empty executable.
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9169 main ()
9173 return 0;
9175 _ACEOF
9176 if ac_fn_c_try_link "$LINENO"; then :
9178 lt_aix_libpath_sed='
9179 /Import File Strings/,/^$/ {
9180 /^0/ {
9181 s/^0 *\(.*\)$/\1/
9185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 # Check for a 64-bit object if we didn't find anything.
9187 if test -z "$aix_libpath"; then
9188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196 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"
9197 else
9198 if test "$host_cpu" = ia64; then
9199 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9200 allow_undefined_flag="-z nodefs"
9201 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"
9202 else
9203 # Determine the default libpath from the value encoded in an
9204 # empty executable.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9209 main ()
9213 return 0;
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9218 lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 # Check for a 64-bit object if we didn't find anything.
9227 if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 # Warning - without using the other run time loading flags,
9237 # -berok will link without error, but may produce a broken library.
9238 no_undefined_flag=' ${wl}-bernotok'
9239 allow_undefined_flag=' ${wl}-berok'
9240 if test "$with_gnu_ld" = yes; then
9241 # We only use this code for GNU lds that support --whole-archive.
9242 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9243 else
9244 # Exported symbols can be pulled into shared objects from archives
9245 whole_archive_flag_spec='$convenience'
9247 archive_cmds_need_lc=yes
9248 # This is similar to how AIX traditionally builds its shared libraries.
9249 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'
9254 amigaos*)
9255 case $host_cpu in
9256 powerpc)
9257 # see comment about AmigaOS4 .so support
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds=''
9261 m68k)
9262 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)'
9263 hardcode_libdir_flag_spec='-L$libdir'
9264 hardcode_minus_L=yes
9266 esac
9269 bsdi[45]*)
9270 export_dynamic_flag_spec=-rdynamic
9273 cygwin* | mingw* | pw32* | cegcc*)
9274 # When not using gcc, we currently assume that we are using
9275 # Microsoft Visual C++.
9276 # hardcode_libdir_flag_spec is actually meaningless, as there is
9277 # no search path for DLLs.
9278 hardcode_libdir_flag_spec=' '
9279 allow_undefined_flag=unsupported
9280 # Tell ltmain to make .lib files, not .a files.
9281 libext=lib
9282 # Tell ltmain to make .dll files, not .so files.
9283 shrext_cmds=".dll"
9284 # FIXME: Setting linknames here is a bad hack.
9285 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9286 # The linker will automatically build a .lib file if we build a DLL.
9287 old_archive_from_new_cmds='true'
9288 # FIXME: Should let the user specify the lib program.
9289 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9290 fix_srcfile_path='`cygpath -w "$srcfile"`'
9291 enable_shared_with_static_runtimes=yes
9294 darwin* | rhapsody*)
9297 archive_cmds_need_lc=no
9298 hardcode_direct=no
9299 hardcode_automatic=yes
9300 hardcode_shlibpath_var=unsupported
9301 if test "$lt_cv_ld_force_load" = "yes"; then
9302 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\"`'
9303 else
9304 whole_archive_flag_spec=''
9306 link_all_deplibs=yes
9307 allow_undefined_flag="$_lt_dar_allow_undefined"
9308 case $cc_basename in
9309 ifort*) _lt_dar_can_shared=yes ;;
9310 *) _lt_dar_can_shared=$GCC ;;
9311 esac
9312 if test "$_lt_dar_can_shared" = "yes"; then
9313 output_verbose_link_cmd=func_echo_all
9314 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9315 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9316 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}"
9317 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}"
9319 else
9320 ld_shlibs=no
9325 dgux*)
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_shlibpath_var=no
9331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9332 # support. Future versions do this automatically, but an explicit c++rt0.o
9333 # does not break anything, and helps significantly (at the cost of a little
9334 # extra space).
9335 freebsd2.2*)
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9337 hardcode_libdir_flag_spec='-R$libdir'
9338 hardcode_direct=yes
9339 hardcode_shlibpath_var=no
9342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9343 freebsd2*)
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_direct=yes
9346 hardcode_minus_L=yes
9347 hardcode_shlibpath_var=no
9350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9351 freebsd* | dragonfly*)
9352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9358 hpux9*)
9359 if test "$GCC" = yes; then
9360 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'
9361 else
9362 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'
9364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365 hardcode_libdir_separator=:
9366 hardcode_direct=yes
9368 # hardcode_minus_L: Not really in the search PATH,
9369 # but as the default location of the library.
9370 hardcode_minus_L=yes
9371 export_dynamic_flag_spec='${wl}-E'
9374 hpux10*)
9375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9380 if test "$with_gnu_ld" = no; then
9381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9382 hardcode_libdir_flag_spec_ld='+b $libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 export_dynamic_flag_spec='${wl}-E'
9387 # hardcode_minus_L: Not really in the search PATH,
9388 # but as the default location of the library.
9389 hardcode_minus_L=yes
9393 hpux11*)
9394 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395 case $host_cpu in
9396 hppa*64*)
9397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 ia64*)
9400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9405 esac
9406 else
9407 case $host_cpu in
9408 hppa*64*)
9409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 ia64*)
9412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416 # Older versions of the 11.00 compiler do not understand -b yet
9417 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9419 $as_echo_n "checking if $CC understands -b... " >&6; }
9420 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 lt_cv_prog_compiler__b=no
9424 save_LDFLAGS="$LDFLAGS"
9425 LDFLAGS="$LDFLAGS -b"
9426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9428 # The linker can only warn and ignore the option if not recognized
9429 # So say no if there are warnings
9430 if test -s conftest.err; then
9431 # Append any errors to the config.log.
9432 cat conftest.err 1>&5
9433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435 if diff conftest.exp conftest.er2 >/dev/null; then
9436 lt_cv_prog_compiler__b=yes
9438 else
9439 lt_cv_prog_compiler__b=yes
9442 $RM -r conftest*
9443 LDFLAGS="$save_LDFLAGS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9447 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9449 if test x"$lt_cv_prog_compiler__b" = xyes; then
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 else
9452 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9456 esac
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_separator=:
9462 case $host_cpu in
9463 hppa*64*|ia64*)
9464 hardcode_direct=no
9465 hardcode_shlibpath_var=no
9468 hardcode_direct=yes
9469 hardcode_direct_absolute=yes
9470 export_dynamic_flag_spec='${wl}-E'
9472 # hardcode_minus_L: Not really in the search PATH,
9473 # but as the default location of the library.
9474 hardcode_minus_L=yes
9476 esac
9480 irix5* | irix6* | nonstopux*)
9481 if test "$GCC" = yes; then
9482 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'
9483 # Try to use the -exported_symbol ld option, if it does not
9484 # work, assume that -exports_file does not work either and
9485 # implicitly export all symbols.
9486 save_LDFLAGS="$LDFLAGS"
9487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 int foo(void) {}
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 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'
9496 rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 LDFLAGS="$save_LDFLAGS"
9499 else
9500 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'
9501 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'
9503 archive_cmds_need_lc='no'
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 inherit_rpath=yes
9507 link_all_deplibs=yes
9510 netbsd*)
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9513 else
9514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9521 newsos6)
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_direct=yes
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 hardcode_shlibpath_var=no
9529 *nto* | *qnx*)
9532 openbsd*)
9533 if test -f /usr/libexec/ld.so; then
9534 hardcode_direct=yes
9535 hardcode_shlibpath_var=no
9536 hardcode_direct_absolute=yes
9537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9541 export_dynamic_flag_spec='${wl}-E'
9542 else
9543 case $host_os in
9544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-R$libdir'
9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9552 esac
9554 else
9555 ld_shlibs=no
9559 os2*)
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_minus_L=yes
9562 allow_undefined_flag=unsupported
9563 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'
9564 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9567 osf3*)
9568 if test "$GCC" = yes; then
9569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570 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'
9571 else
9572 allow_undefined_flag=' -expect_unresolved \*'
9573 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'
9575 archive_cmds_need_lc='no'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9580 osf4* | osf5*) # as osf3* with the addition of -msym flag
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 else
9586 allow_undefined_flag=' -expect_unresolved \*'
9587 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'
9588 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~
9589 $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'
9591 # Both c and cxx compiler support -rpath directly
9592 hardcode_libdir_flag_spec='-rpath $libdir'
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_separator=:
9598 solaris*)
9599 no_undefined_flag=' -z defs'
9600 if test "$GCC" = yes; then
9601 wlarc='${wl}'
9602 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9605 else
9606 case `$CC -V 2>&1` in
9607 *"Compilers 5.0"*)
9608 wlarc=''
9609 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9614 wlarc='${wl}'
9615 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9619 esac
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_shlibpath_var=no
9623 case $host_os in
9624 solaris2.[0-5] | solaris2.[0-5].*) ;;
9626 # The compiler driver will combine and reorder linker options,
9627 # but understands `-z linker_flag'. GCC discards it without `$wl',
9628 # but is careful enough not to reorder.
9629 # Supported since Solaris 2.6 (maybe 2.5.1?)
9630 if test "$GCC" = yes; then
9631 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9632 else
9633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9636 esac
9637 link_all_deplibs=yes
9640 sunos4*)
9641 if test "x$host_vendor" = xsequent; then
9642 # Use $CC to link under sequent, because it throws in some extra .o
9643 # files that make .init and .fini sections work.
9644 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9645 else
9646 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_direct=yes
9650 hardcode_minus_L=yes
9651 hardcode_shlibpath_var=no
9654 sysv4)
9655 case $host_vendor in
9656 sni)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_direct=yes # is this really true???
9660 siemens)
9661 ## LD is ld it makes a PLAMLIB
9662 ## CC just makes a GrossModule.
9663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9664 reload_cmds='$CC -r -o $output$reload_objs'
9665 hardcode_direct=no
9667 motorola)
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9671 esac
9672 runpath_var='LD_RUN_PATH'
9673 hardcode_shlibpath_var=no
9676 sysv4.3*)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_shlibpath_var=no
9679 export_dynamic_flag_spec='-Bexport'
9682 sysv4*MP*)
9683 if test -d /usr/nec; then
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_shlibpath_var=no
9686 runpath_var=LD_RUN_PATH
9687 hardcode_runpath_var=yes
9688 ld_shlibs=yes
9692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9693 no_undefined_flag='${wl}-z,text'
9694 archive_cmds_need_lc=no
9695 hardcode_shlibpath_var=no
9696 runpath_var='LD_RUN_PATH'
9698 if test "$GCC" = yes; then
9699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 sysv5* | sco3.2v5* | sco5v6*)
9708 # Note: We can NOT use -z defs as we might desire, because we do not
9709 # link with -lc, and that would cause any symbols used from libc to
9710 # always be unresolved, which means just about no library would
9711 # ever link correctly. If we're not using GNU ld we use -z text
9712 # though, which does catch some bad symbols but isn't as heavy-handed
9713 # as -z defs.
9714 no_undefined_flag='${wl}-z,text'
9715 allow_undefined_flag='${wl}-z,nodefs'
9716 archive_cmds_need_lc=no
9717 hardcode_shlibpath_var=no
9718 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 export_dynamic_flag_spec='${wl}-Bexport'
9722 runpath_var='LD_RUN_PATH'
9724 if test "$GCC" = yes; then
9725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 else
9728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 uts4*)
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_shlibpath_var=no
9740 ld_shlibs=no
9742 esac
9744 if test x$host_vendor = xsni; then
9745 case $host in
9746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9749 esac
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9754 $as_echo "$ld_shlibs" >&6; }
9755 test "$ld_shlibs" = no && can_build_shared=no
9757 with_gnu_ld=$with_gnu_ld
9774 # Do we need to explicitly link libc?
9776 case "x$archive_cmds_need_lc" in
9777 x|xyes)
9778 # Assume -lc should be added
9779 archive_cmds_need_lc=yes
9781 if test "$enable_shared" = yes && test "$GCC" = yes; then
9782 case $archive_cmds in
9783 *'~'*)
9784 # FIXME: we may have to deal with multi-command sequences.
9786 '$CC '*)
9787 # Test whether the compiler implicitly links with -lc since on some
9788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9789 # to ld, don't add -lc before -lgcc.
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9792 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 $RM conftest*
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; } 2>conftest.err; then
9803 soname=conftest
9804 lib=conftest
9805 libobjs=conftest.$ac_objext
9806 deplibs=
9807 wl=$lt_prog_compiler_wl
9808 pic_flag=$lt_prog_compiler_pic
9809 compiler_flags=-v
9810 linker_flags=-v
9811 verstring=
9812 output_objdir=.
9813 libname=conftest
9814 lt_save_allow_undefined_flag=$allow_undefined_flag
9815 allow_undefined_flag=
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9817 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; }
9821 then
9822 lt_cv_archive_cmds_need_lc=no
9823 else
9824 lt_cv_archive_cmds_need_lc=yes
9826 allow_undefined_flag=$lt_save_allow_undefined_flag
9827 else
9828 cat conftest.err 1>&5
9830 $RM conftest*
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9834 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9835 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9837 esac
9840 esac
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10001 if test "$GCC" = yes; then
10002 case $host_os in
10003 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10004 *) lt_awk_arg="/^libraries:/" ;;
10005 esac
10006 case $host_os in
10007 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10008 *) lt_sed_strip_eq="s,=/,/,g" ;;
10009 esac
10010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10011 case $lt_search_path_spec in
10012 *\;*)
10013 # if the path contains ";" then we assume it to be the separator
10014 # otherwise default to the standard path separator (i.e. ":") - it is
10015 # assumed that no part of a normal pathname contains ";" but that should
10016 # okay in the real world where ";" in dirpaths is itself problematic.
10017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10022 esac
10023 # Ok, now we have the path, separated by spaces, we can step through it
10024 # and add multilib dir if necessary.
10025 lt_tmp_lt_search_path_spec=
10026 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10027 for lt_sys_path in $lt_search_path_spec; do
10028 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10030 else
10031 test -d "$lt_sys_path" && \
10032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10034 done
10035 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10036 BEGIN {RS=" "; FS="/|\n";} {
10037 lt_foo="";
10038 lt_count=0;
10039 for (lt_i = NF; lt_i > 0; lt_i--) {
10040 if ($lt_i != "" && $lt_i != ".") {
10041 if ($lt_i == "..") {
10042 lt_count++;
10043 } else {
10044 if (lt_count == 0) {
10045 lt_foo="/" $lt_i lt_foo;
10046 } else {
10047 lt_count--;
10052 if (lt_foo != "") { lt_freq[lt_foo]++; }
10053 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10055 # AWK program above erroneously prepends '/' to C:/dos/paths
10056 # for these hosts.
10057 case $host_os in
10058 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10059 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10060 esac
10061 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10062 else
10063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10065 library_names_spec=
10066 libname_spec='lib$name'
10067 soname_spec=
10068 shrext_cmds=".so"
10069 postinstall_cmds=
10070 postuninstall_cmds=
10071 finish_cmds=
10072 finish_eval=
10073 shlibpath_var=
10074 shlibpath_overrides_runpath=unknown
10075 version_type=none
10076 dynamic_linker="$host_os ld.so"
10077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078 need_lib_prefix=unknown
10079 hardcode_into_libs=no
10081 # when you set need_version to no, make sure it does not cause -set_version
10082 # flags to be left without arguments
10083 need_version=unknown
10085 case $host_os in
10086 aix3*)
10087 version_type=linux
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10089 shlibpath_var=LIBPATH
10091 # AIX 3 has no versioning support, so we append a major version to the name.
10092 soname_spec='${libname}${release}${shared_ext}$major'
10095 aix[4-9]*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 hardcode_into_libs=yes
10100 if test "$host_cpu" = ia64; then
10101 # AIX 5 supports IA64
10102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 else
10105 # With GCC up to 2.95.x, collect2 would create an import file
10106 # for dependence libraries. The import file would start with
10107 # the line `#! .'. This would cause the generated library to
10108 # depend on `.', always an invalid library. This was fixed in
10109 # development snapshots of GCC prior to 3.0.
10110 case $host_os in
10111 aix4 | aix4.[01] | aix4.[01].*)
10112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113 echo ' yes '
10114 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10116 else
10117 can_build_shared=no
10120 esac
10121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10122 # soname into executable. Probably we can add versioning support to
10123 # collect2, so additional links can be useful in future.
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10126 # instead of lib<name>.a to let people know that these are not
10127 # typical AIX shared libraries.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 else
10130 # We preserve .a as extension for shared libraries through AIX4.2
10131 # and later when we are not doing run time linking.
10132 library_names_spec='${libname}${release}.a $libname.a'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10135 shlibpath_var=LIBPATH
10139 amigaos*)
10140 case $host_cpu in
10141 powerpc)
10142 # Since July 2007 AmigaOS4 officially supports .so libraries.
10143 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 m68k)
10147 library_names_spec='$libname.ixlibrary $libname.a'
10148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10149 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'
10151 esac
10154 beos*)
10155 library_names_spec='${libname}${shared_ext}'
10156 dynamic_linker="$host_os ld.so"
10157 shlibpath_var=LIBRARY_PATH
10160 bsdi[45]*)
10161 version_type=linux
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10169 # the default ld.so.conf also contains /usr/contrib/lib and
10170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10171 # libtool to hard-code these into programs
10174 cygwin* | mingw* | pw32* | cegcc*)
10175 version_type=windows
10176 shrext_cmds=".dll"
10177 need_version=no
10178 need_lib_prefix=no
10180 case $GCC,$host_os in
10181 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10182 library_names_spec='$libname.dll.a'
10183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10184 postinstall_cmds='base_file=`basename \${file}`~
10185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10186 dldir=$destdir/`dirname \$dlpath`~
10187 test -d \$dldir || mkdir -p \$dldir~
10188 $install_prog $dir/$dlname \$dldir/$dlname~
10189 chmod a+x \$dldir/$dlname~
10190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10194 dlpath=$dir/\$dldll~
10195 $RM \$dlpath'
10196 shlibpath_overrides_runpath=yes
10198 case $host_os in
10199 cygwin*)
10200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10205 mingw* | cegcc*)
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 pw32*)
10210 # pw32 DLLs use 'pw' prefix rather than 'lib'
10211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10213 esac
10217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10219 esac
10220 dynamic_linker='Win32 ld.exe'
10221 # FIXME: first we should search . and the directory the executable is in
10222 shlibpath_var=PATH
10225 darwin* | rhapsody*)
10226 dynamic_linker="$host_os dyld"
10227 version_type=darwin
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10231 soname_spec='${libname}${release}${major}$shared_ext'
10232 shlibpath_overrides_runpath=yes
10233 shlibpath_var=DYLD_LIBRARY_PATH
10234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10240 dgux*)
10241 version_type=linux
10242 need_lib_prefix=no
10243 need_version=no
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10249 freebsd* | dragonfly*)
10250 # DragonFly does not have aout. When/if they implement a new
10251 # versioning mechanism, adjust this.
10252 if test -x /usr/bin/objformat; then
10253 objformat=`/usr/bin/objformat`
10254 else
10255 case $host_os in
10256 freebsd[123]*) objformat=aout ;;
10257 *) objformat=elf ;;
10258 esac
10260 version_type=freebsd-$objformat
10261 case $version_type in
10262 freebsd-elf*)
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10264 need_version=no
10265 need_lib_prefix=no
10267 freebsd-*)
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10269 need_version=yes
10271 esac
10272 shlibpath_var=LD_LIBRARY_PATH
10273 case $host_os in
10274 freebsd2*)
10275 shlibpath_overrides_runpath=yes
10277 freebsd3.[01]* | freebsdelf3.[01]*)
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10283 shlibpath_overrides_runpath=no
10284 hardcode_into_libs=yes
10286 *) # from 4.6 on, and DragonFly
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10290 esac
10293 gnu*)
10294 version_type=linux
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 hardcode_into_libs=yes
10303 haiku*)
10304 version_type=linux
10305 need_lib_prefix=no
10306 need_version=no
10307 dynamic_linker="$host_os runtime_loader"
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10313 hardcode_into_libs=yes
10316 hpux9* | hpux10* | hpux11*)
10317 # Give a soname corresponding to the major version so that dld.sl refuses to
10318 # link against other versions.
10319 version_type=sunos
10320 need_lib_prefix=no
10321 need_version=no
10322 case $host_cpu in
10323 ia64*)
10324 shrext_cmds='.so'
10325 hardcode_into_libs=yes
10326 dynamic_linker="$host_os dld.so"
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 if test "X$HPUX_IA64_MODE" = X32; then
10332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333 else
10334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10338 hppa*64*)
10339 shrext_cmds='.sl'
10340 hardcode_into_libs=yes
10341 dynamic_linker="$host_os dld.sl"
10342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 shrext_cmds='.sl'
10351 dynamic_linker="$host_os dld.sl"
10352 shlibpath_var=SHLIB_PATH
10353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10357 esac
10358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359 postinstall_cmds='chmod 555 $lib'
10360 # or fails outright, so override atomically:
10361 install_override_mode=555
10364 interix[3-9]*)
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10376 irix5* | irix6* | nonstopux*)
10377 case $host_os in
10378 nonstopux*) version_type=nonstopux ;;
10380 if test "$lt_cv_prog_gnu_ld" = yes; then
10381 version_type=linux
10382 else
10383 version_type=irix
10384 fi ;;
10385 esac
10386 need_lib_prefix=no
10387 need_version=no
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 case $host_os in
10391 irix5* | nonstopux*)
10392 libsuff= shlibsuff=
10395 case $LD in # libtool.m4 will add one of these switches to LD
10396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397 libsuff= shlibsuff= libmagic=32-bit;;
10398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399 libsuff=32 shlibsuff=N32 libmagic=N32;;
10400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402 *) libsuff= shlibsuff= libmagic=never-match;;
10403 esac
10405 esac
10406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410 hardcode_into_libs=yes
10413 # No shared lib support for Linux oldld, aout, or coff.
10414 linux*oldld* | linux*aout* | linux*coff*)
10415 dynamic_linker=no
10418 # This must be Linux ELF.
10419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 lt_cv_shlibpath_overrides_runpath=no
10434 save_LDFLAGS=$LDFLAGS
10435 save_libdir=$libdir
10436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10442 main ()
10446 return 0;
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451 lt_cv_shlibpath_overrides_runpath=yes
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LDFLAGS=$save_LDFLAGS
10457 libdir=$save_libdir
10461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10463 # This implies no fast_install, which is unacceptable.
10464 # Some rework will be needed to allow for fast_install
10465 # before this can be enabled.
10466 hardcode_into_libs=yes
10468 # Append ld.so.conf contents to the search path
10469 if test -f /etc/ld.so.conf; then
10470 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' ' '`
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10474 # We used to test for /lib/ld.so.1 and disable shared libraries on
10475 # powerpc, because MkLinux only supported shared libraries with the
10476 # GNU dynamic linker. Since this was broken with cross compilers,
10477 # most powerpc-linux boxes support dynamic linking these days and
10478 # people can always --disable-shared, the test was removed, and we
10479 # assume the GNU/Linux dynamic linker is in use.
10480 dynamic_linker='GNU/Linux ld.so'
10483 netbsd*)
10484 version_type=sunos
10485 need_lib_prefix=no
10486 need_version=no
10487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 dynamic_linker='NetBSD (a.out) ld.so'
10491 else
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='NetBSD ld.elf_so'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10501 newsos6)
10502 version_type=linux
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10508 *nto* | *qnx*)
10509 version_type=qnx
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 dynamic_linker='ldqnx.so'
10520 openbsd*)
10521 version_type=sunos
10522 sys_lib_dlsearch_path_spec="/usr/lib"
10523 need_lib_prefix=no
10524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525 case $host_os in
10526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10527 *) need_version=no ;;
10528 esac
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10533 case $host_os in
10534 openbsd2.[89] | openbsd2.[89].*)
10535 shlibpath_overrides_runpath=no
10538 shlibpath_overrides_runpath=yes
10540 esac
10541 else
10542 shlibpath_overrides_runpath=yes
10546 os2*)
10547 libname_spec='$name'
10548 shrext_cmds=".dll"
10549 need_lib_prefix=no
10550 library_names_spec='$libname${shared_ext} $libname.a'
10551 dynamic_linker='OS/2 ld.exe'
10552 shlibpath_var=LIBPATH
10555 osf3* | osf4* | osf5*)
10556 version_type=osf
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10566 rdos*)
10567 dynamic_linker=no
10570 solaris*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 # ldd complains unless libraries are executable
10580 postinstall_cmds='chmod +x $lib'
10583 sunos4*)
10584 version_type=sunos
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 if test "$with_gnu_ld" = yes; then
10590 need_lib_prefix=no
10592 need_version=yes
10595 sysv4 | sysv4.3*)
10596 version_type=linux
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 case $host_vendor in
10601 sni)
10602 shlibpath_overrides_runpath=no
10603 need_lib_prefix=no
10604 runpath_var=LD_RUN_PATH
10606 siemens)
10607 need_lib_prefix=no
10609 motorola)
10610 need_lib_prefix=no
10611 need_version=no
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10615 esac
10618 sysv4*MP*)
10619 if test -d /usr/nec ;then
10620 version_type=linux
10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622 soname_spec='$libname${shared_ext}.$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 version_type=freebsd-elf
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10636 if test "$with_gnu_ld" = yes; then
10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10638 else
10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10640 case $host_os in
10641 sco3.2v5*)
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10644 esac
10646 sys_lib_dlsearch_path_spec='/usr/lib'
10649 tpf*)
10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10651 version_type=linux
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10660 uts4*)
10661 version_type=linux
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10668 dynamic_linker=no
10670 esac
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672 $as_echo "$dynamic_linker" >&6; }
10673 test "$dynamic_linker" = no && can_build_shared=no
10675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676 if test "$GCC" = yes; then
10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10683 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10779 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10780 hardcode_action=
10781 if test -n "$hardcode_libdir_flag_spec" ||
10782 test -n "$runpath_var" ||
10783 test "X$hardcode_automatic" = "Xyes" ; then
10785 # We can hardcode non-existent directories.
10786 if test "$hardcode_direct" != no &&
10787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10788 # have to relink, otherwise we might link with an installed library
10789 # when we should be linking with a yet-to-be-installed one
10790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10791 test "$hardcode_minus_L" != no; then
10792 # Linking always hardcodes the temporary library directory.
10793 hardcode_action=relink
10794 else
10795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10796 hardcode_action=immediate
10798 else
10799 # We cannot hardcode anything, or else we can only hardcode existing
10800 # directories.
10801 hardcode_action=unsupported
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10804 $as_echo "$hardcode_action" >&6; }
10806 if test "$hardcode_action" = relink ||
10807 test "$inherit_rpath" = yes; then
10808 # Fast installation is not supported
10809 enable_fast_install=no
10810 elif test "$shlibpath_overrides_runpath" = yes ||
10811 test "$enable_shared" = no; then
10812 # Fast installation is not necessary
10813 enable_fast_install=needless
10821 if test "x$enable_dlopen" != xyes; then
10822 enable_dlopen=unknown
10823 enable_dlopen_self=unknown
10824 enable_dlopen_self_static=unknown
10825 else
10826 lt_cv_dlopen=no
10827 lt_cv_dlopen_libs=
10829 case $host_os in
10830 beos*)
10831 lt_cv_dlopen="load_add_on"
10832 lt_cv_dlopen_libs=
10833 lt_cv_dlopen_self=yes
10836 mingw* | pw32* | cegcc*)
10837 lt_cv_dlopen="LoadLibrary"
10838 lt_cv_dlopen_libs=
10841 cygwin*)
10842 lt_cv_dlopen="dlopen"
10843 lt_cv_dlopen_libs=
10846 darwin*)
10847 # if libdl is installed we need to link against it
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10850 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-ldl $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char dlopen ();
10866 main ()
10868 return dlopen ();
10870 return 0;
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_dl_dlopen=yes
10875 else
10876 ac_cv_lib_dl_dlopen=no
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886 else
10888 lt_cv_dlopen="dyld"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10898 if test "x$ac_cv_func_shl_load" = x""yes; then :
10899 lt_cv_dlopen="shl_load"
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10902 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10903 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldld $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char shl_load ();
10919 main ()
10921 return shl_load ();
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_dld_shl_load=yes
10928 else
10929 ac_cv_lib_dld_shl_load=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10936 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10937 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10939 else
10940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10941 if test "x$ac_cv_func_dlopen" = x""yes; then :
10942 lt_cv_dlopen="dlopen"
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10945 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldl $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10962 main ()
10964 return dlopen ();
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dl_dlopen=yes
10971 else
10972 ac_cv_lib_dl_dlopen=no
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10979 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10980 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10984 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10985 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lsvld $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char dlopen ();
11001 main ()
11003 return dlopen ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_svld_dlopen=yes
11010 else
11011 ac_cv_lib_svld_dlopen=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11018 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11019 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11023 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11024 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-ldld $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dld_link ();
11040 main ()
11042 return dld_link ();
11044 return 0;
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_dld_link=yes
11049 else
11050 ac_cv_lib_dld_dld_link=no
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11057 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11058 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11078 esac
11080 if test "x$lt_cv_dlopen" != xno; then
11081 enable_dlopen=yes
11082 else
11083 enable_dlopen=no
11086 case $lt_cv_dlopen in
11087 dlopen)
11088 save_CPPFLAGS="$CPPFLAGS"
11089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11091 save_LDFLAGS="$LDFLAGS"
11092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11094 save_LIBS="$LIBS"
11095 LIBS="$lt_cv_dlopen_libs $LIBS"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11098 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11099 if test "${lt_cv_dlopen_self+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test "$cross_compiling" = yes; then :
11103 lt_cv_dlopen_self=cross
11104 else
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<_LT_EOF
11108 #line 11108 "configure"
11109 #include "confdefs.h"
11111 #if HAVE_DLFCN_H
11112 #include <dlfcn.h>
11113 #endif
11115 #include <stdio.h>
11117 #ifdef RTLD_GLOBAL
11118 # define LT_DLGLOBAL RTLD_GLOBAL
11119 #else
11120 # ifdef DL_GLOBAL
11121 # define LT_DLGLOBAL DL_GLOBAL
11122 # else
11123 # define LT_DLGLOBAL 0
11124 # endif
11125 #endif
11127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129 #ifndef LT_DLLAZY_OR_NOW
11130 # ifdef RTLD_LAZY
11131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11132 # else
11133 # ifdef DL_LAZY
11134 # define LT_DLLAZY_OR_NOW DL_LAZY
11135 # else
11136 # ifdef RTLD_NOW
11137 # define LT_DLLAZY_OR_NOW RTLD_NOW
11138 # else
11139 # ifdef DL_NOW
11140 # define LT_DLLAZY_OR_NOW DL_NOW
11141 # else
11142 # define LT_DLLAZY_OR_NOW 0
11143 # endif
11144 # endif
11145 # endif
11146 # endif
11147 #endif
11149 /* When -fvisbility=hidden is used, assume the code has been annotated
11150 correspondingly for the symbols needed. */
11151 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11152 void fnord () __attribute__((visibility("default")));
11153 #endif
11155 void fnord () { int i=42; }
11156 int main ()
11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159 int status = $lt_dlunknown;
11161 if (self)
11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11164 else
11166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11167 else puts (dlerror ());
11169 /* dlclose (self); */
11171 else
11172 puts (dlerror ());
11174 return status;
11176 _LT_EOF
11177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11178 (eval $ac_link) 2>&5
11179 ac_status=$?
11180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11182 (./conftest; exit; ) >&5 2>/dev/null
11183 lt_status=$?
11184 case x$lt_status in
11185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11188 esac
11189 else :
11190 # compilation failed
11191 lt_cv_dlopen_self=no
11194 rm -fr conftest*
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11199 $as_echo "$lt_cv_dlopen_self" >&6; }
11201 if test "x$lt_cv_dlopen_self" = xyes; then
11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11204 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11205 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if test "$cross_compiling" = yes; then :
11209 lt_cv_dlopen_self_static=cross
11210 else
11211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11212 lt_status=$lt_dlunknown
11213 cat > conftest.$ac_ext <<_LT_EOF
11214 #line 11214 "configure"
11215 #include "confdefs.h"
11217 #if HAVE_DLFCN_H
11218 #include <dlfcn.h>
11219 #endif
11221 #include <stdio.h>
11223 #ifdef RTLD_GLOBAL
11224 # define LT_DLGLOBAL RTLD_GLOBAL
11225 #else
11226 # ifdef DL_GLOBAL
11227 # define LT_DLGLOBAL DL_GLOBAL
11228 # else
11229 # define LT_DLGLOBAL 0
11230 # endif
11231 #endif
11233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234 find out it does not work in some platform. */
11235 #ifndef LT_DLLAZY_OR_NOW
11236 # ifdef RTLD_LAZY
11237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11238 # else
11239 # ifdef DL_LAZY
11240 # define LT_DLLAZY_OR_NOW DL_LAZY
11241 # else
11242 # ifdef RTLD_NOW
11243 # define LT_DLLAZY_OR_NOW RTLD_NOW
11244 # else
11245 # ifdef DL_NOW
11246 # define LT_DLLAZY_OR_NOW DL_NOW
11247 # else
11248 # define LT_DLLAZY_OR_NOW 0
11249 # endif
11250 # endif
11251 # endif
11252 # endif
11253 #endif
11255 /* When -fvisbility=hidden is used, assume the code has been annotated
11256 correspondingly for the symbols needed. */
11257 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11258 void fnord () __attribute__((visibility("default")));
11259 #endif
11261 void fnord () { int i=42; }
11262 int main ()
11264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11265 int status = $lt_dlunknown;
11267 if (self)
11269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11270 else
11272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11273 else puts (dlerror ());
11275 /* dlclose (self); */
11277 else
11278 puts (dlerror ());
11280 return status;
11282 _LT_EOF
11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11284 (eval $ac_link) 2>&5
11285 ac_status=$?
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11288 (./conftest; exit; ) >&5 2>/dev/null
11289 lt_status=$?
11290 case x$lt_status in
11291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11294 esac
11295 else :
11296 # compilation failed
11297 lt_cv_dlopen_self_static=no
11300 rm -fr conftest*
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11305 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11308 CPPFLAGS="$save_CPPFLAGS"
11309 LDFLAGS="$save_LDFLAGS"
11310 LIBS="$save_LIBS"
11312 esac
11314 case $lt_cv_dlopen_self in
11315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11316 *) enable_dlopen_self=unknown ;;
11317 esac
11319 case $lt_cv_dlopen_self_static in
11320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11321 *) enable_dlopen_self_static=unknown ;;
11322 esac
11341 striplib=
11342 old_striplib=
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11344 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11345 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349 $as_echo "yes" >&6; }
11350 else
11351 # FIXME - insert some real tests, host_os isn't really good enough
11352 case $host_os in
11353 darwin*)
11354 if test -n "$STRIP" ; then
11355 striplib="$STRIP -x"
11356 old_striplib="$STRIP -S"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358 $as_echo "yes" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11368 esac
11382 # Report which library types will actually be built
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11384 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11386 $as_echo "$can_build_shared" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11389 $as_echo_n "checking whether to build shared libraries... " >&6; }
11390 test "$can_build_shared" = "no" && enable_shared=no
11392 # On AIX, shared libraries and static libraries use the same namespace, and
11393 # are all built from PIC.
11394 case $host_os in
11395 aix3*)
11396 test "$enable_shared" = yes && enable_static=no
11397 if test -n "$RANLIB"; then
11398 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11399 postinstall_cmds='$RANLIB $lib'
11403 aix[4-9]*)
11404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11405 test "$enable_shared" = yes && enable_static=no
11408 esac
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11410 $as_echo "$enable_shared" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11413 $as_echo_n "checking whether to build static libraries... " >&6; }
11414 # Make sure either enable_shared or enable_static is yes.
11415 test "$enable_shared" = yes || enable_static=yes
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11417 $as_echo "$enable_static" >&6; }
11423 ac_ext=c
11424 ac_cpp='$CPP $CPPFLAGS'
11425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11429 CC="$lt_save_CC"
11443 # Source file extension for Go test sources.
11444 ac_ext=go
11446 # Object file extension for compiled Go test sources.
11447 objext=o
11448 objext_GO=$objext
11450 # Code to be used in simple compile tests
11451 lt_simple_compile_test_code="package main; func main() { }"
11453 # Code to be used in simple link tests
11454 lt_simple_link_test_code='package main; func main() { }'
11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11463 # If no C compiler was specified, use CC.
11464 LTCC=${LTCC-"$CC"}
11466 # If no C compiler flags were specified, use CFLAGS.
11467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11469 # Allow CC to be a program name with arguments.
11470 compiler=$CC
11473 # save warnings/boilerplate of simple test code
11474 ac_outfile=conftest.$ac_objext
11475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_compiler_boilerplate=`cat conftest.err`
11478 $RM conftest*
11480 ac_outfile=conftest.$ac_objext
11481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11483 _lt_linker_boilerplate=`cat conftest.err`
11484 $RM -r conftest*
11487 # Allow CC to be a program name with arguments.
11488 lt_save_CC="$CC"
11489 lt_save_GCC="$GCC"
11490 GCC=yes
11491 CC=${GOC-"gccgo"}
11492 compiler=$CC
11493 compiler_GO=$CC
11494 LD_GO="$LD"
11495 for cc_temp in $compiler""; do
11496 case $cc_temp in
11497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499 \-*) ;;
11500 *) break;;
11501 esac
11502 done
11503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11506 # Go did not exist at the time GCC didn't implicitly link libc in.
11507 archive_cmds_need_lc_GO=no
11509 old_archive_cmds_GO=$old_archive_cmds
11511 ## CAVEAT EMPTOR:
11512 ## There is no encapsulation within the following macros, do not change
11513 ## the running order or otherwise move them around unless you know exactly
11514 ## what you are doing...
11515 if test -n "$compiler"; then
11517 lt_prog_compiler_no_builtin_flag_GO=
11519 if test "$GCC" = yes; then
11520 case $cc_basename in
11521 nvcc*)
11522 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11524 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11525 esac
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11528 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11529 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 lt_cv_prog_compiler_rtti_exceptions=no
11533 ac_outfile=conftest.$ac_objext
11534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11535 lt_compiler_flag="-fno-rtti -fno-exceptions"
11536 # Insert the option either (1) after the last *FLAGS variable, or
11537 # (2) before a word containing "conftest.", or (3) at the end.
11538 # Note that $ac_compile itself does not contain backslashes and begins
11539 # with a dollar sign (not a hyphen), so the echo should work correctly.
11540 # The option is referenced via a variable to avoid confusing sed.
11541 lt_compile=`echo "$ac_compile" | $SED \
11542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11544 -e 's:$: $lt_compiler_flag:'`
11545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11546 (eval "$lt_compile" 2>conftest.err)
11547 ac_status=$?
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 if (exit $ac_status) && test -s "$ac_outfile"; then
11551 # The compiler can only warn and ignore the option if not recognized
11552 # So say no if there are warnings other than the usual output.
11553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11556 lt_cv_prog_compiler_rtti_exceptions=yes
11559 $RM conftest*
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11563 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11565 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11566 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11567 else
11575 lt_prog_compiler_wl_GO=
11576 lt_prog_compiler_pic_GO=
11577 lt_prog_compiler_static_GO=
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11580 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11582 if test "$GCC" = yes; then
11583 lt_prog_compiler_wl_GO='-Wl,'
11584 lt_prog_compiler_static_GO='-static'
11586 case $host_os in
11587 aix*)
11588 # All AIX code is PIC.
11589 if test "$host_cpu" = ia64; then
11590 # AIX 5 now supports IA64 processor
11591 lt_prog_compiler_static_GO='-Bstatic'
11595 amigaos*)
11596 case $host_cpu in
11597 powerpc)
11598 # see comment about AmigaOS4 .so support
11599 lt_prog_compiler_pic_GO='-fPIC'
11601 m68k)
11602 # FIXME: we need at least 68020 code to build shared libraries, but
11603 # adding the `-m68020' flag to GCC prevents building anything better,
11604 # like `-m68040'.
11605 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11607 esac
11610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11611 # PIC is the default for these OSes.
11614 mingw* | cygwin* | pw32* | os2* | cegcc*)
11615 # This hack is so that the source file can tell whether it is being
11616 # built for inclusion in a dll (and should export symbols for example).
11617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11618 # (--disable-auto-import) libraries
11619 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11622 darwin* | rhapsody*)
11623 # PIC is the default on this platform
11624 # Common symbols not allowed in MH_DYLIB files
11625 lt_prog_compiler_pic_GO='-fno-common'
11628 haiku*)
11629 # PIC is the default for Haiku.
11630 # The "-static" flag exists, but is broken.
11631 lt_prog_compiler_static_GO=
11634 hpux*)
11635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11637 # sets the default TLS model and affects inlining.
11638 case $host_cpu in
11639 hppa*64*)
11640 # +Z the default
11643 lt_prog_compiler_pic_GO='-fPIC'
11645 esac
11648 interix[3-9]*)
11649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650 # Instead, we relocate shared libraries at runtime.
11653 msdosdjgpp*)
11654 # Just because we use GCC doesn't mean we suddenly get shared libraries
11655 # on systems that don't support them.
11656 lt_prog_compiler_can_build_shared_GO=no
11657 enable_shared=no
11660 *nto* | *qnx*)
11661 # QNX uses GNU C++, but need to define -shared option too, otherwise
11662 # it will coredump.
11663 lt_prog_compiler_pic_GO='-fPIC -shared'
11666 sysv4*MP*)
11667 if test -d /usr/nec; then
11668 lt_prog_compiler_pic_GO=-Kconform_pic
11673 lt_prog_compiler_pic_GO='-fPIC'
11675 esac
11677 case $cc_basename in
11678 nvcc*) # Cuda Compiler Driver 2.2
11679 lt_prog_compiler_wl_GO='-Xlinker '
11680 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11682 esac
11683 else
11684 # PORTME Check for flag to pass linker flags through the system compiler.
11685 case $host_os in
11686 aix*)
11687 lt_prog_compiler_wl_GO='-Wl,'
11688 if test "$host_cpu" = ia64; then
11689 # AIX 5 now supports IA64 processor
11690 lt_prog_compiler_static_GO='-Bstatic'
11691 else
11692 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11696 mingw* | cygwin* | pw32* | os2* | cegcc*)
11697 # This hack is so that the source file can tell whether it is being
11698 # built for inclusion in a dll (and should export symbols for example).
11699 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11702 hpux9* | hpux10* | hpux11*)
11703 lt_prog_compiler_wl_GO='-Wl,'
11704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11705 # not for PA HP-UX.
11706 case $host_cpu in
11707 hppa*64*|ia64*)
11708 # +Z the default
11711 lt_prog_compiler_pic_GO='+Z'
11713 esac
11714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11715 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11718 irix5* | irix6* | nonstopux*)
11719 lt_prog_compiler_wl_GO='-Wl,'
11720 # PIC (with -KPIC) is the default.
11721 lt_prog_compiler_static_GO='-non_shared'
11724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11725 case $cc_basename in
11726 # old Intel for x86_64 which still supported -KPIC.
11727 ecc*)
11728 lt_prog_compiler_wl_GO='-Wl,'
11729 lt_prog_compiler_pic_GO='-KPIC'
11730 lt_prog_compiler_static_GO='-static'
11732 # icc used to be incompatible with GCC.
11733 # ICC 10 doesn't accept -KPIC any more.
11734 icc* | ifort*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 lt_prog_compiler_pic_GO='-fPIC'
11737 lt_prog_compiler_static_GO='-static'
11739 # Lahey Fortran 8.1.
11740 lf95*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 lt_prog_compiler_pic_GO='--shared'
11743 lt_prog_compiler_static_GO='--static'
11745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11746 # Portland Group compilers (*not* the Pentium gcc compiler,
11747 # which looks to be a dead project)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-fpic'
11750 lt_prog_compiler_static_GO='-Bstatic'
11752 ccc*)
11753 lt_prog_compiler_wl_GO='-Wl,'
11754 # All Alpha code is PIC.
11755 lt_prog_compiler_static_GO='-non_shared'
11757 xl* | bgxl* | bgf* | mpixl*)
11758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11759 lt_prog_compiler_wl_GO='-Wl,'
11760 lt_prog_compiler_pic_GO='-qpic'
11761 lt_prog_compiler_static_GO='-qstaticlink'
11764 case `$CC -V 2>&1 | sed 5q` in
11765 *Sun\ F* | *Sun*Fortran*)
11766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11767 lt_prog_compiler_pic_GO='-KPIC'
11768 lt_prog_compiler_static_GO='-Bstatic'
11769 lt_prog_compiler_wl_GO=''
11771 *Sun\ C*)
11772 # Sun C 5.9
11773 lt_prog_compiler_pic_GO='-KPIC'
11774 lt_prog_compiler_static_GO='-Bstatic'
11775 lt_prog_compiler_wl_GO='-Wl,'
11777 esac
11779 esac
11782 newsos6)
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11787 *nto* | *qnx*)
11788 # QNX uses GNU C++, but need to define -shared option too, otherwise
11789 # it will coredump.
11790 lt_prog_compiler_pic_GO='-fPIC -shared'
11793 osf3* | osf4* | osf5*)
11794 lt_prog_compiler_wl_GO='-Wl,'
11795 # All OSF/1 code is PIC.
11796 lt_prog_compiler_static_GO='-non_shared'
11799 rdos*)
11800 lt_prog_compiler_static_GO='-non_shared'
11803 solaris*)
11804 lt_prog_compiler_pic_GO='-KPIC'
11805 lt_prog_compiler_static_GO='-Bstatic'
11806 case $cc_basename in
11807 f77* | f90* | f95*)
11808 lt_prog_compiler_wl_GO='-Qoption ld ';;
11810 lt_prog_compiler_wl_GO='-Wl,';;
11811 esac
11814 sunos4*)
11815 lt_prog_compiler_wl_GO='-Qoption ld '
11816 lt_prog_compiler_pic_GO='-PIC'
11817 lt_prog_compiler_static_GO='-Bstatic'
11820 sysv4 | sysv4.2uw2* | sysv4.3*)
11821 lt_prog_compiler_wl_GO='-Wl,'
11822 lt_prog_compiler_pic_GO='-KPIC'
11823 lt_prog_compiler_static_GO='-Bstatic'
11826 sysv4*MP*)
11827 if test -d /usr/nec ;then
11828 lt_prog_compiler_pic_GO='-Kconform_pic'
11829 lt_prog_compiler_static_GO='-Bstatic'
11833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_pic_GO='-KPIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11839 unicos*)
11840 lt_prog_compiler_wl_GO='-Wl,'
11841 lt_prog_compiler_can_build_shared_GO=no
11844 uts4*)
11845 lt_prog_compiler_pic_GO='-pic'
11846 lt_prog_compiler_static_GO='-Bstatic'
11850 lt_prog_compiler_can_build_shared_GO=no
11852 esac
11855 case $host_os in
11856 # For platforms which do not support PIC, -DPIC is meaningless:
11857 *djgpp*)
11858 lt_prog_compiler_pic_GO=
11861 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11863 esac
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11865 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11870 # Check to make sure the PIC flag actually works.
11872 if test -n "$lt_prog_compiler_pic_GO"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11875 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 lt_cv_prog_compiler_pic_works_GO=no
11879 ac_outfile=conftest.$ac_objext
11880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11882 # Insert the option either (1) after the last *FLAGS variable, or
11883 # (2) before a word containing "conftest.", or (3) at the end.
11884 # Note that $ac_compile itself does not contain backslashes and begins
11885 # with a dollar sign (not a hyphen), so the echo should work correctly.
11886 # The option is referenced via a variable to avoid confusing sed.
11887 lt_compile=`echo "$ac_compile" | $SED \
11888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890 -e 's:$: $lt_compiler_flag:'`
11891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11892 (eval "$lt_compile" 2>conftest.err)
11893 ac_status=$?
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 if (exit $ac_status) && test -s "$ac_outfile"; then
11897 # The compiler can only warn and ignore the option if not recognized
11898 # So say no if there are warnings other than the usual output.
11899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11902 lt_cv_prog_compiler_pic_works_GO=yes
11905 $RM conftest*
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11909 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11911 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11912 case $lt_prog_compiler_pic_GO in
11913 "" | " "*) ;;
11914 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11915 esac
11916 else
11917 lt_prog_compiler_pic_GO=
11918 lt_prog_compiler_can_build_shared_GO=no
11926 # Check to make sure the static flag actually works.
11928 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11931 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 lt_cv_prog_compiler_static_works_GO=no
11935 save_LDFLAGS="$LDFLAGS"
11936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11939 # The linker can only warn and ignore the option if not recognized
11940 # So say no if there are warnings
11941 if test -s conftest.err; then
11942 # Append any errors to the config.log.
11943 cat conftest.err 1>&5
11944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11946 if diff conftest.exp conftest.er2 >/dev/null; then
11947 lt_cv_prog_compiler_static_works_GO=yes
11949 else
11950 lt_cv_prog_compiler_static_works_GO=yes
11953 $RM -r conftest*
11954 LDFLAGS="$save_LDFLAGS"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11958 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11960 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11962 else
11963 lt_prog_compiler_static_GO=
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11971 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 lt_cv_prog_compiler_c_o_GO=no
11975 $RM -r conftest 2>/dev/null
11976 mkdir conftest
11977 cd conftest
11978 mkdir out
11979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11981 lt_compiler_flag="-o out/conftest2.$ac_objext"
11982 # Insert the option either (1) after the last *FLAGS variable, or
11983 # (2) before a word containing "conftest.", or (3) at the end.
11984 # Note that $ac_compile itself does not contain backslashes and begins
11985 # with a dollar sign (not a hyphen), so the echo should work correctly.
11986 lt_compile=`echo "$ac_compile" | $SED \
11987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11989 -e 's:$: $lt_compiler_flag:'`
11990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11991 (eval "$lt_compile" 2>out/conftest.err)
11992 ac_status=$?
11993 cat out/conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11996 then
11997 # The compiler can only warn and ignore the option if not recognized
11998 # So say no if there are warnings
11999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12002 lt_cv_prog_compiler_c_o_GO=yes
12005 chmod u+w . 2>&5
12006 $RM conftest*
12007 # SGI C++ compiler will create directory out/ii_files/ for
12008 # template instantiation
12009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12010 $RM out/* && rmdir out
12011 cd ..
12012 $RM -r conftest
12013 $RM conftest*
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12017 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12023 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 lt_cv_prog_compiler_c_o_GO=no
12027 $RM -r conftest 2>/dev/null
12028 mkdir conftest
12029 cd conftest
12030 mkdir out
12031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12033 lt_compiler_flag="-o out/conftest2.$ac_objext"
12034 # Insert the option either (1) after the last *FLAGS variable, or
12035 # (2) before a word containing "conftest.", or (3) at the end.
12036 # Note that $ac_compile itself does not contain backslashes and begins
12037 # with a dollar sign (not a hyphen), so the echo should work correctly.
12038 lt_compile=`echo "$ac_compile" | $SED \
12039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12041 -e 's:$: $lt_compiler_flag:'`
12042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12043 (eval "$lt_compile" 2>out/conftest.err)
12044 ac_status=$?
12045 cat out/conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12048 then
12049 # The compiler can only warn and ignore the option if not recognized
12050 # So say no if there are warnings
12051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12054 lt_cv_prog_compiler_c_o_GO=yes
12057 chmod u+w . 2>&5
12058 $RM conftest*
12059 # SGI C++ compiler will create directory out/ii_files/ for
12060 # template instantiation
12061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12062 $RM out/* && rmdir out
12063 cd ..
12064 $RM -r conftest
12065 $RM conftest*
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12069 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12074 hard_links="nottested"
12075 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12076 # do not overwrite the value of need_locks provided by the user
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12078 $as_echo_n "checking if we can lock with hard links... " >&6; }
12079 hard_links=yes
12080 $RM conftest*
12081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082 touch conftest.a
12083 ln conftest.a conftest.b 2>&5 || hard_links=no
12084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12086 $as_echo "$hard_links" >&6; }
12087 if test "$hard_links" = no; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12089 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12090 need_locks=warn
12092 else
12093 need_locks=no
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12101 runpath_var=
12102 allow_undefined_flag_GO=
12103 always_export_symbols_GO=no
12104 archive_cmds_GO=
12105 archive_expsym_cmds_GO=
12106 compiler_needs_object_GO=no
12107 enable_shared_with_static_runtimes_GO=no
12108 export_dynamic_flag_spec_GO=
12109 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12110 hardcode_automatic_GO=no
12111 hardcode_direct_GO=no
12112 hardcode_direct_absolute_GO=no
12113 hardcode_libdir_flag_spec_GO=
12114 hardcode_libdir_flag_spec_ld_GO=
12115 hardcode_libdir_separator_GO=
12116 hardcode_minus_L_GO=no
12117 hardcode_shlibpath_var_GO=unsupported
12118 inherit_rpath_GO=no
12119 link_all_deplibs_GO=unknown
12120 module_cmds_GO=
12121 module_expsym_cmds_GO=
12122 old_archive_from_new_cmds_GO=
12123 old_archive_from_expsyms_cmds_GO=
12124 thread_safe_flag_spec_GO=
12125 whole_archive_flag_spec_GO=
12126 # include_expsyms should be a list of space-separated symbols to be *always*
12127 # included in the symbol list
12128 include_expsyms_GO=
12129 # exclude_expsyms can be an extended regexp of symbols to exclude
12130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12132 # as well as any symbol that contains `d'.
12133 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12135 # platforms (ab)use it in PIC code, but their linkers get confused if
12136 # the symbol is explicitly referenced. Since portable code cannot
12137 # rely on this symbol name, it's probably fine to never include it in
12138 # preloaded symbol tables.
12139 # Exclude shared library initialization/finalization symbols.
12140 extract_expsyms_cmds=
12142 case $host_os in
12143 cygwin* | mingw* | pw32* | cegcc*)
12144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12145 # When not using gcc, we currently assume that we are using
12146 # Microsoft Visual C++.
12147 if test "$GCC" != yes; then
12148 with_gnu_ld=no
12151 interix*)
12152 # we just hope/assume this is gcc and not c89 (= MSVC++)
12153 with_gnu_ld=yes
12155 openbsd*)
12156 with_gnu_ld=no
12158 esac
12160 ld_shlibs_GO=yes
12162 # On some targets, GNU ld is compatible enough with the native linker
12163 # that we're better off using the native interface for both.
12164 lt_use_gnu_ld_interface=no
12165 if test "$with_gnu_ld" = yes; then
12166 case $host_os in
12167 aix*)
12168 # The AIX port of GNU ld has always aspired to compatibility
12169 # with the native linker. However, as the warning in the GNU ld
12170 # block says, versions before 2.19.5* couldn't really create working
12171 # shared libraries, regardless of the interface used.
12172 case `$LD -v 2>&1` in
12173 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12174 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12175 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12177 lt_use_gnu_ld_interface=yes
12179 esac
12182 lt_use_gnu_ld_interface=yes
12184 esac
12187 if test "$lt_use_gnu_ld_interface" = yes; then
12188 # If archive_cmds runs LD, not CC, wlarc should be empty
12189 wlarc='${wl}'
12191 # Set some defaults for GNU ld with shared library support. These
12192 # are reset later if shared libraries are not supported. Putting them
12193 # here allows them to be overridden if necessary.
12194 runpath_var=LD_RUN_PATH
12195 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12197 # ancient GNU ld didn't support --whole-archive et. al.
12198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12199 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200 else
12201 whole_archive_flag_spec_GO=
12203 supports_anon_versioning=no
12204 case `$LD -v 2>&1` in
12205 *GNU\ gold*) supports_anon_versioning=yes ;;
12206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12209 *\ 2.11.*) ;; # other 2.11 versions
12210 *) supports_anon_versioning=yes ;;
12211 esac
12213 # See if GNU ld supports shared libraries.
12214 case $host_os in
12215 aix[3-9]*)
12216 # On AIX/PPC, the GNU linker is very broken
12217 if test "$host_cpu" != ia64; then
12218 ld_shlibs_GO=no
12219 cat <<_LT_EOF 1>&2
12221 *** Warning: the GNU linker, at least up to release 2.19, is reported
12222 *** to be unable to reliably create shared libraries on AIX.
12223 *** Therefore, libtool is disabling shared libraries support. If you
12224 *** really care for shared libraries, you may want to install binutils
12225 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12226 *** You will then need to restart the configuration process.
12228 _LT_EOF
12232 amigaos*)
12233 case $host_cpu in
12234 powerpc)
12235 # see comment about AmigaOS4 .so support
12236 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_GO=''
12239 m68k)
12240 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)'
12241 hardcode_libdir_flag_spec_GO='-L$libdir'
12242 hardcode_minus_L_GO=yes
12244 esac
12247 beos*)
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag_GO=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 else
12254 ld_shlibs_GO=no
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec_GO='-L$libdir'
12262 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12263 allow_undefined_flag_GO=unsupported
12264 always_export_symbols_GO=no
12265 enable_shared_with_static_runtimes_GO=yes
12266 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12269 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270 # If the export-symbols file already is a .def file (1st line
12271 # is EXPORTS), use it as is; otherwise, prepend...
12272 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12273 cp $export_symbols $output_objdir/$soname.def;
12274 else
12275 echo EXPORTS > $output_objdir/$soname.def;
12276 cat $export_symbols >> $output_objdir/$soname.def;
12278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279 else
12280 ld_shlibs_GO=no
12284 haiku*)
12285 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 link_all_deplibs_GO=yes
12289 interix[3-9]*)
12290 hardcode_direct_GO=no
12291 hardcode_shlibpath_var_GO=no
12292 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12293 export_dynamic_flag_spec_GO='${wl}-E'
12294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12295 # Instead, shared libraries are loaded at an image base (0x10000000 by
12296 # default) and relocated if they conflict, which is a slow very memory
12297 # consuming and fragmenting process. To avoid this, we pick a random,
12298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12300 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'
12301 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'
12304 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12305 tmp_diet=no
12306 if test "$host_os" = linux-dietlibc; then
12307 case $cc_basename in
12308 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12309 esac
12311 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12312 && test "$tmp_diet" = no
12313 then
12314 tmp_addflag=
12315 tmp_sharedflag='-shared'
12316 case $cc_basename,$host_cpu in
12317 pgcc*) # Portland Group C compiler
12318 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'
12319 tmp_addflag=' $pic_flag'
12321 pgf77* | pgf90* | pgf95* | pgfortran*)
12322 # Portland Group f77 and f90 compilers
12323 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'
12324 tmp_addflag=' $pic_flag -Mnomain' ;;
12325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12326 tmp_addflag=' -i_dynamic' ;;
12327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12328 tmp_addflag=' -i_dynamic -nofor_main' ;;
12329 ifc* | ifort*) # Intel Fortran compiler
12330 tmp_addflag=' -nofor_main' ;;
12331 lf95*) # Lahey Fortran 8.1
12332 whole_archive_flag_spec_GO=
12333 tmp_sharedflag='--shared' ;;
12334 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12335 tmp_sharedflag='-qmkshrobj'
12336 tmp_addflag= ;;
12337 nvcc*) # Cuda Compiler Driver 2.2
12338 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'
12339 compiler_needs_object_GO=yes
12341 esac
12342 case `$CC -V 2>&1 | sed 5q` in
12343 *Sun\ C*) # Sun C 5.9
12344 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'
12345 compiler_needs_object_GO=yes
12346 tmp_sharedflag='-G' ;;
12347 *Sun\ F*) # Sun Fortran 8.3
12348 tmp_sharedflag='-G' ;;
12349 esac
12350 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12352 if test "x$supports_anon_versioning" = xyes; then
12353 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12355 echo "local: *; };" >> $output_objdir/$libname.ver~
12356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12359 case $cc_basename in
12360 xlf* | bgf* | bgxlf* | mpixlf*)
12361 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12362 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12363 hardcode_libdir_flag_spec_GO=
12364 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12365 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12366 if test "x$supports_anon_versioning" = xyes; then
12367 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12369 echo "local: *; };" >> $output_objdir/$libname.ver~
12370 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12373 esac
12374 else
12375 ld_shlibs_GO=no
12379 netbsd*)
12380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12381 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12382 wlarc=
12383 else
12384 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12389 solaris*)
12390 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12391 ld_shlibs_GO=no
12392 cat <<_LT_EOF 1>&2
12394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12395 *** create shared libraries on Solaris systems. Therefore, libtool
12396 *** is disabling shared libraries support. We urge you to upgrade GNU
12397 *** binutils to release 2.9.1 or newer. Another option is to modify
12398 *** your PATH or compiler configuration so that the native linker is
12399 *** used, and then restart.
12401 _LT_EOF
12402 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12403 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 else
12406 ld_shlibs_GO=no
12410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12411 case `$LD -v 2>&1` in
12412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12413 ld_shlibs_GO=no
12414 cat <<_LT_EOF 1>&2
12416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12417 *** reliably create shared libraries on SCO systems. Therefore, libtool
12418 *** is disabling shared libraries support. We urge you to upgrade GNU
12419 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12420 *** your PATH or compiler configuration so that the native linker is
12421 *** used, and then restart.
12423 _LT_EOF
12426 # For security reasons, it is highly recommended that you always
12427 # use absolute paths for naming shared libraries, and exclude the
12428 # DT_RUNPATH tag from executables and libraries. But doing so
12429 # requires that you compile everything twice, which is a pain.
12430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12432 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434 else
12435 ld_shlibs_GO=no
12438 esac
12441 sunos4*)
12442 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443 wlarc=
12444 hardcode_direct_GO=yes
12445 hardcode_shlibpath_var_GO=no
12449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12450 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452 else
12453 ld_shlibs_GO=no
12456 esac
12458 if test "$ld_shlibs_GO" = no; then
12459 runpath_var=
12460 hardcode_libdir_flag_spec_GO=
12461 export_dynamic_flag_spec_GO=
12462 whole_archive_flag_spec_GO=
12464 else
12465 # PORTME fill in a description of your system's linker (not GNU ld)
12466 case $host_os in
12467 aix3*)
12468 allow_undefined_flag_GO=unsupported
12469 always_export_symbols_GO=yes
12470 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'
12471 # Note: this linker hardcodes the directories in LIBPATH if there
12472 # are no directories specified by -L.
12473 hardcode_minus_L_GO=yes
12474 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12475 # Neither direct hardcoding nor static linking is supported with a
12476 # broken collect2.
12477 hardcode_direct_GO=unsupported
12481 aix[4-9]*)
12482 if test "$host_cpu" = ia64; then
12483 # On IA64, the linker does run time linking by default, so we don't
12484 # have to do anything special.
12485 aix_use_runtimelinking=no
12486 exp_sym_flag='-Bexport'
12487 no_entry_flag=""
12488 else
12489 # If we're using GNU nm, then we don't want the "-C" option.
12490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12491 # Also, AIX nm treats weak defined symbols like other global
12492 # defined symbols, whereas GNU nm marks them as "W".
12493 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12494 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'
12495 else
12496 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'
12498 aix_use_runtimelinking=no
12500 # Test if we are trying to use run time linking or normal
12501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12502 # need to do runtime linking.
12503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12504 for ld_flag in $LDFLAGS; do
12505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12506 aix_use_runtimelinking=yes
12507 break
12509 done
12511 esac
12513 exp_sym_flag='-bexport'
12514 no_entry_flag='-bnoentry'
12517 # When large executables or shared objects are built, AIX ld can
12518 # have problems creating the table of contents. If linking a library
12519 # or program results in "error TOC overflow" add -mminimal-toc to
12520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12523 archive_cmds_GO=''
12524 hardcode_direct_GO=yes
12525 hardcode_direct_absolute_GO=yes
12526 hardcode_libdir_separator_GO=':'
12527 link_all_deplibs_GO=yes
12528 file_list_spec_GO='${wl}-f,'
12530 if test "$GCC" = yes; then
12531 case $host_os in aix4.[012]|aix4.[012].*)
12532 # We only want to do this on AIX 4.2 and lower, the check
12533 # below for broken collect2 doesn't work under 4.3+
12534 collect2name=`${CC} -print-prog-name=collect2`
12535 if test -f "$collect2name" &&
12536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12537 then
12538 # We have reworked collect2
12540 else
12541 # We have old collect2
12542 hardcode_direct_GO=unsupported
12543 # It fails to find uninstalled libraries when the uninstalled
12544 # path is not listed in the libpath. Setting hardcode_minus_L
12545 # to unsupported forces relinking
12546 hardcode_minus_L_GO=yes
12547 hardcode_libdir_flag_spec_GO='-L$libdir'
12548 hardcode_libdir_separator_GO=
12551 esac
12552 shared_flag='-shared'
12553 if test "$aix_use_runtimelinking" = yes; then
12554 shared_flag="$shared_flag "'${wl}-G'
12556 else
12557 # not using gcc
12558 if test "$host_cpu" = ia64; then
12559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12560 # chokes on -Wl,-G. The following line is correct:
12561 shared_flag='-G'
12562 else
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag='${wl}-G'
12565 else
12566 shared_flag='${wl}-bM:SRE'
12571 export_dynamic_flag_spec_GO='${wl}-bexpall'
12572 # It seems that -bexpall does not export symbols beginning with
12573 # underscore (_), so it is better to generate a list of symbols to export.
12574 always_export_symbols_GO=yes
12575 if test "$aix_use_runtimelinking" = yes; then
12576 # Warning - without using the other runtime loading flags (-brtl),
12577 # -berok will link without error, but may produce a broken library.
12578 allow_undefined_flag_GO='-berok'
12579 # Determine the default libpath from the value encoded in an
12580 # empty executable.
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 main ()
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12594 lt_aix_libpath_sed='
12595 /Import File Strings/,/^$/ {
12596 /^0/ {
12597 s/^0 *\(.*\)$/\1/
12601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602 # Check for a 64-bit object if we didn't find anything.
12603 if test -z "$aix_libpath"; then
12604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12611 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12612 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"
12613 else
12614 if test "$host_cpu" = ia64; then
12615 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12616 allow_undefined_flag_GO="-z nodefs"
12617 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"
12618 else
12619 # Determine the default libpath from the value encoded in an
12620 # empty executable.
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12625 main ()
12629 return 0;
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12634 lt_aix_libpath_sed='
12635 /Import File Strings/,/^$/ {
12636 /^0/ {
12637 s/^0 *\(.*\)$/\1/
12641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642 # Check for a 64-bit object if we didn't find anything.
12643 if test -z "$aix_libpath"; then
12644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12651 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12652 # Warning - without using the other run time loading flags,
12653 # -berok will link without error, but may produce a broken library.
12654 no_undefined_flag_GO=' ${wl}-bernotok'
12655 allow_undefined_flag_GO=' ${wl}-berok'
12656 if test "$with_gnu_ld" = yes; then
12657 # We only use this code for GNU lds that support --whole-archive.
12658 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659 else
12660 # Exported symbols can be pulled into shared objects from archives
12661 whole_archive_flag_spec_GO='$convenience'
12663 archive_cmds_need_lc_GO=yes
12664 # This is similar to how AIX traditionally builds its shared libraries.
12665 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'
12670 amigaos*)
12671 case $host_cpu in
12672 powerpc)
12673 # see comment about AmigaOS4 .so support
12674 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675 archive_expsym_cmds_GO=''
12677 m68k)
12678 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)'
12679 hardcode_libdir_flag_spec_GO='-L$libdir'
12680 hardcode_minus_L_GO=yes
12682 esac
12685 bsdi[45]*)
12686 export_dynamic_flag_spec_GO=-rdynamic
12689 cygwin* | mingw* | pw32* | cegcc*)
12690 # When not using gcc, we currently assume that we are using
12691 # Microsoft Visual C++.
12692 # hardcode_libdir_flag_spec is actually meaningless, as there is
12693 # no search path for DLLs.
12694 hardcode_libdir_flag_spec_GO=' '
12695 allow_undefined_flag_GO=unsupported
12696 # Tell ltmain to make .lib files, not .a files.
12697 libext=lib
12698 # Tell ltmain to make .dll files, not .so files.
12699 shrext_cmds=".dll"
12700 # FIXME: Setting linknames here is a bad hack.
12701 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12702 # The linker will automatically build a .lib file if we build a DLL.
12703 old_archive_from_new_cmds_GO='true'
12704 # FIXME: Should let the user specify the lib program.
12705 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12706 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12707 enable_shared_with_static_runtimes_GO=yes
12710 darwin* | rhapsody*)
12713 archive_cmds_need_lc_GO=no
12714 hardcode_direct_GO=no
12715 hardcode_automatic_GO=yes
12716 hardcode_shlibpath_var_GO=unsupported
12717 if test "$lt_cv_ld_force_load" = "yes"; then
12718 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\"`'
12719 else
12720 whole_archive_flag_spec_GO=''
12722 link_all_deplibs_GO=yes
12723 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12724 case $cc_basename in
12725 ifort*) _lt_dar_can_shared=yes ;;
12726 *) _lt_dar_can_shared=$GCC ;;
12727 esac
12728 if test "$_lt_dar_can_shared" = "yes"; then
12729 output_verbose_link_cmd=func_echo_all
12730 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}"
12731 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12732 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}"
12733 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}"
12735 else
12736 ld_shlibs_GO=no
12741 dgux*)
12742 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12743 hardcode_libdir_flag_spec_GO='-L$libdir'
12744 hardcode_shlibpath_var_GO=no
12747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12748 # support. Future versions do this automatically, but an explicit c++rt0.o
12749 # does not break anything, and helps significantly (at the cost of a little
12750 # extra space).
12751 freebsd2.2*)
12752 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12753 hardcode_libdir_flag_spec_GO='-R$libdir'
12754 hardcode_direct_GO=yes
12755 hardcode_shlibpath_var_GO=no
12758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12759 freebsd2*)
12760 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12761 hardcode_direct_GO=yes
12762 hardcode_minus_L_GO=yes
12763 hardcode_shlibpath_var_GO=no
12766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12767 freebsd* | dragonfly*)
12768 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12769 hardcode_libdir_flag_spec_GO='-R$libdir'
12770 hardcode_direct_GO=yes
12771 hardcode_shlibpath_var_GO=no
12774 hpux9*)
12775 if test "$GCC" = yes; then
12776 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'
12777 else
12778 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'
12780 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_GO=:
12782 hardcode_direct_GO=yes
12784 # hardcode_minus_L: Not really in the search PATH,
12785 # but as the default location of the library.
12786 hardcode_minus_L_GO=yes
12787 export_dynamic_flag_spec_GO='${wl}-E'
12790 hpux10*)
12791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12792 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793 else
12794 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12796 if test "$with_gnu_ld" = no; then
12797 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12799 hardcode_libdir_separator_GO=:
12800 hardcode_direct_GO=yes
12801 hardcode_direct_absolute_GO=yes
12802 export_dynamic_flag_spec_GO='${wl}-E'
12803 # hardcode_minus_L: Not really in the search PATH,
12804 # but as the default location of the library.
12805 hardcode_minus_L_GO=yes
12809 hpux11*)
12810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12811 case $host_cpu in
12812 hppa*64*)
12813 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12815 ia64*)
12816 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12819 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12821 esac
12822 else
12823 case $host_cpu in
12824 hppa*64*)
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 ia64*)
12828 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12831 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12833 esac
12835 if test "$with_gnu_ld" = no; then
12836 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_GO=:
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 hardcode_direct_GO=no
12842 hardcode_shlibpath_var_GO=no
12845 hardcode_direct_GO=yes
12846 hardcode_direct_absolute_GO=yes
12847 export_dynamic_flag_spec_GO='${wl}-E'
12849 # hardcode_minus_L: Not really in the search PATH,
12850 # but as the default location of the library.
12851 hardcode_minus_L_GO=yes
12853 esac
12857 irix5* | irix6* | nonstopux*)
12858 if test "$GCC" = yes; then
12859 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'
12860 # Try to use the -exported_symbol ld option, if it does not
12861 # work, assume that -exports_file does not work either and
12862 # implicitly export all symbols.
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 int foo(void) {}
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 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'
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LDFLAGS="$save_LDFLAGS"
12876 else
12877 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'
12878 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'
12880 archive_cmds_need_lc_GO='no'
12881 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12882 hardcode_libdir_separator_GO=:
12883 inherit_rpath_GO=yes
12884 link_all_deplibs_GO=yes
12887 netbsd*)
12888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12889 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12890 else
12891 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12893 hardcode_libdir_flag_spec_GO='-R$libdir'
12894 hardcode_direct_GO=yes
12895 hardcode_shlibpath_var_GO=no
12898 newsos6)
12899 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct_GO=yes
12901 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_GO=:
12903 hardcode_shlibpath_var_GO=no
12906 *nto* | *qnx*)
12909 openbsd*)
12910 if test -f /usr/libexec/ld.so; then
12911 hardcode_direct_GO=yes
12912 hardcode_shlibpath_var_GO=no
12913 hardcode_direct_absolute_GO=yes
12914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12917 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12918 export_dynamic_flag_spec_GO='${wl}-E'
12919 else
12920 case $host_os in
12921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12922 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_libdir_flag_spec_GO='-R$libdir'
12926 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12929 esac
12931 else
12932 ld_shlibs_GO=no
12936 os2*)
12937 hardcode_libdir_flag_spec_GO='-L$libdir'
12938 hardcode_minus_L_GO=yes
12939 allow_undefined_flag_GO=unsupported
12940 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'
12941 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12944 osf3*)
12945 if test "$GCC" = yes; then
12946 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12947 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'
12948 else
12949 allow_undefined_flag_GO=' -expect_unresolved \*'
12950 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'
12952 archive_cmds_need_lc_GO='no'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954 hardcode_libdir_separator_GO=:
12957 osf4* | osf5*) # as osf3* with the addition of -msym flag
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12961 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12962 else
12963 allow_undefined_flag_GO=' -expect_unresolved \*'
12964 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'
12965 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~
12966 $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'
12968 # Both c and cxx compiler support -rpath directly
12969 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12971 archive_cmds_need_lc_GO='no'
12972 hardcode_libdir_separator_GO=:
12975 solaris*)
12976 no_undefined_flag_GO=' -z defs'
12977 if test "$GCC" = yes; then
12978 wlarc='${wl}'
12979 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12980 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12982 else
12983 case `$CC -V 2>&1` in
12984 *"Compilers 5.0"*)
12985 wlarc=''
12986 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12991 wlarc='${wl}'
12992 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12993 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12996 esac
12998 hardcode_libdir_flag_spec_GO='-R$libdir'
12999 hardcode_shlibpath_var_GO=no
13000 case $host_os in
13001 solaris2.[0-5] | solaris2.[0-5].*) ;;
13003 # The compiler driver will combine and reorder linker options,
13004 # but understands `-z linker_flag'. GCC discards it without `$wl',
13005 # but is careful enough not to reorder.
13006 # Supported since Solaris 2.6 (maybe 2.5.1?)
13007 if test "$GCC" = yes; then
13008 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13009 else
13010 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13013 esac
13014 link_all_deplibs_GO=yes
13017 sunos4*)
13018 if test "x$host_vendor" = xsequent; then
13019 # Use $CC to link under sequent, because it throws in some extra .o
13020 # files that make .init and .fini sections work.
13021 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13022 else
13023 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13025 hardcode_libdir_flag_spec_GO='-L$libdir'
13026 hardcode_direct_GO=yes
13027 hardcode_minus_L_GO=yes
13028 hardcode_shlibpath_var_GO=no
13031 sysv4)
13032 case $host_vendor in
13033 sni)
13034 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_direct_GO=yes # is this really true???
13037 siemens)
13038 ## LD is ld it makes a PLAMLIB
13039 ## CC just makes a GrossModule.
13040 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13041 reload_cmds_GO='$CC -r -o $output$reload_objs'
13042 hardcode_direct_GO=no
13044 motorola)
13045 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13048 esac
13049 runpath_var='LD_RUN_PATH'
13050 hardcode_shlibpath_var_GO=no
13053 sysv4.3*)
13054 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055 hardcode_shlibpath_var_GO=no
13056 export_dynamic_flag_spec_GO='-Bexport'
13059 sysv4*MP*)
13060 if test -d /usr/nec; then
13061 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13062 hardcode_shlibpath_var_GO=no
13063 runpath_var=LD_RUN_PATH
13064 hardcode_runpath_var=yes
13065 ld_shlibs_GO=yes
13069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070 no_undefined_flag_GO='${wl}-z,text'
13071 archive_cmds_need_lc_GO=no
13072 hardcode_shlibpath_var_GO=no
13073 runpath_var='LD_RUN_PATH'
13075 if test "$GCC" = yes; then
13076 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 else
13079 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13084 sysv5* | sco3.2v5* | sco5v6*)
13085 # Note: We can NOT use -z defs as we might desire, because we do not
13086 # link with -lc, and that would cause any symbols used from libc to
13087 # always be unresolved, which means just about no library would
13088 # ever link correctly. If we're not using GNU ld we use -z text
13089 # though, which does catch some bad symbols but isn't as heavy-handed
13090 # as -z defs.
13091 no_undefined_flag_GO='${wl}-z,text'
13092 allow_undefined_flag_GO='${wl}-z,nodefs'
13093 archive_cmds_need_lc_GO=no
13094 hardcode_shlibpath_var_GO=no
13095 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13096 hardcode_libdir_separator_GO=':'
13097 link_all_deplibs_GO=yes
13098 export_dynamic_flag_spec_GO='${wl}-Bexport'
13099 runpath_var='LD_RUN_PATH'
13101 if test "$GCC" = yes; then
13102 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 else
13105 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 uts4*)
13111 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_libdir_flag_spec_GO='-L$libdir'
13113 hardcode_shlibpath_var_GO=no
13117 ld_shlibs_GO=no
13119 esac
13121 if test x$host_vendor = xsni; then
13122 case $host in
13123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13124 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13126 esac
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13131 $as_echo "$ld_shlibs_GO" >&6; }
13132 test "$ld_shlibs_GO" = no && can_build_shared=no
13134 with_gnu_ld_GO=$with_gnu_ld
13142 # Do we need to explicitly link libc?
13144 case "x$archive_cmds_need_lc_GO" in
13145 x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_GO=yes
13149 if test "$enable_shared" = yes && test "$GCC" = yes; then
13150 case $archive_cmds_GO in
13151 *'~'*)
13152 # FIXME: we may have to deal with multi-command sequences.
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13160 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 $RM conftest*
13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13167 (eval $ac_compile) 2>&5
13168 ac_status=$?
13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170 test $ac_status = 0; } 2>conftest.err; then
13171 soname=conftest
13172 lib=conftest
13173 libobjs=conftest.$ac_objext
13174 deplibs=
13175 wl=$lt_prog_compiler_wl_GO
13176 pic_flag=$lt_prog_compiler_pic_GO
13177 compiler_flags=-v
13178 linker_flags=-v
13179 verstring=
13180 output_objdir=.
13181 libname=conftest
13182 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13183 allow_undefined_flag_GO=
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13185 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }
13189 then
13190 lt_cv_archive_cmds_need_lc_GO=no
13191 else
13192 lt_cv_archive_cmds_need_lc_GO=yes
13194 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13195 else
13196 cat conftest.err 1>&5
13198 $RM conftest*
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13202 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13203 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13205 esac
13208 esac
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13274 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13275 hardcode_action_GO=
13276 if test -n "$hardcode_libdir_flag_spec_GO" ||
13277 test -n "$runpath_var_GO" ||
13278 test "X$hardcode_automatic_GO" = "Xyes" ; then
13280 # We can hardcode non-existent directories.
13281 if test "$hardcode_direct_GO" != no &&
13282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283 # have to relink, otherwise we might link with an installed library
13284 # when we should be linking with a yet-to-be-installed one
13285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13286 test "$hardcode_minus_L_GO" != no; then
13287 # Linking always hardcodes the temporary library directory.
13288 hardcode_action_GO=relink
13289 else
13290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291 hardcode_action_GO=immediate
13293 else
13294 # We cannot hardcode anything, or else we can only hardcode existing
13295 # directories.
13296 hardcode_action_GO=unsupported
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13299 $as_echo "$hardcode_action_GO" >&6; }
13301 if test "$hardcode_action_GO" = relink ||
13302 test "$inherit_rpath_GO" = yes; then
13303 # Fast installation is not supported
13304 enable_fast_install=no
13305 elif test "$shlibpath_overrides_runpath" = yes ||
13306 test "$enable_shared" = no; then
13307 # Fast installation is not necessary
13308 enable_fast_install=needless
13319 ac_ext=c
13320 ac_cpp='$CPP $CPPFLAGS'
13321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326 GCC=$lt_save_GCC
13327 CC="$lt_save_CC"
13332 ac_config_commands="$ac_config_commands libtool"
13337 # Only expand once:
13343 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13346 for ac_prog in gawk mawk nawk awk
13348 # Extract the first word of "$ac_prog", so it can be a program name with args.
13349 set dummy $ac_prog; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_AWK+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$AWK"; then
13356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_AWK="$ac_prog"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 AWK=$ac_cv_prog_AWK
13376 if test -n "$AWK"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13378 $as_echo "$AWK" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13385 test -n "$AWK" && break
13386 done
13389 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13392 # Check whether --enable-werror was given.
13393 if test "${enable_werror+set}" = set; then :
13394 enableval=$enable_werror;
13397 if test "x$enable_werror" != "xno"; then
13398 WERROR="-Werror"
13402 glibgo_toolexecdir=no
13403 glibgo_toolexeclibdir=no
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13406 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13407 # Check whether --enable-version-specific-runtime-libs was given.
13408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13409 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13410 yes) version_specific_libs=yes ;;
13411 no) version_specific_libs=no ;;
13412 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13413 esac
13414 else
13415 version_specific_libs=no
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13419 $as_echo "$version_specific_libs" >&6; }
13421 # Version-specific runtime libs processing.
13422 if test $version_specific_libs = yes; then
13423 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13427 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13428 # Install a library built with a cross compiler in tooldir, not libdir.
13429 if test -n "$with_cross_host" &&
13430 test x"$with_cross_host" != x"no"; then
13431 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13432 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13433 else
13434 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13435 nover_glibgo_toolexeclibdir='${libdir}'
13437 multi_os_directory=`$CC -print-multi-os-directory`
13438 case $multi_os_directory in
13439 .) ;; # Avoid trailing /.
13440 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13441 esac
13443 if test x"$glibgo_toolexecdir" = x"no"; then
13444 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13445 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13452 # See if the user wants to configure without libffi. Some
13453 # architectures don't support it. FIXME: We should set a default
13454 # based on the host.
13456 # Check whether --with-libffi was given.
13457 if test "${with_libffi+set}" = set; then :
13458 withval=$with_libffi; :
13459 else
13460 with_libffi=${with_libffi_default-yes}
13464 LIBFFI=
13465 LIBFFIINCS=
13466 if test "$with_libffi" != no; then
13468 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13470 LIBFFI=../libffi/libffi_convenience.la
13471 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13476 # Used to tell GNU make to include a file without telling automake to
13477 # include it.
13478 go_include="-include"
13481 is_darwin=no
13482 is_freebsd=no
13483 is_irix=no
13484 is_linux=no
13485 is_netbsd=no
13486 is_openbsd=no
13487 is_rtems=no
13488 is_solaris=no
13489 GOOS=unknown
13490 case ${host} in
13491 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13492 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13493 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13494 *-*-linux*) is_linux=yes; GOOS=linux ;;
13495 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13496 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13497 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13498 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13499 esac
13500 if test $is_darwin = yes; then
13501 LIBGO_IS_DARWIN_TRUE=
13502 LIBGO_IS_DARWIN_FALSE='#'
13503 else
13504 LIBGO_IS_DARWIN_TRUE='#'
13505 LIBGO_IS_DARWIN_FALSE=
13508 if test $is_freebsd = yes; then
13509 LIBGO_IS_FREEBSD_TRUE=
13510 LIBGO_IS_FREEBSD_FALSE='#'
13511 else
13512 LIBGO_IS_FREEBSD_TRUE='#'
13513 LIBGO_IS_FREEBSD_FALSE=
13516 if test $is_irix = yes; then
13517 LIBGO_IS_IRIX_TRUE=
13518 LIBGO_IS_IRIX_FALSE='#'
13519 else
13520 LIBGO_IS_IRIX_TRUE='#'
13521 LIBGO_IS_IRIX_FALSE=
13524 if test $is_linux = yes; then
13525 LIBGO_IS_LINUX_TRUE=
13526 LIBGO_IS_LINUX_FALSE='#'
13527 else
13528 LIBGO_IS_LINUX_TRUE='#'
13529 LIBGO_IS_LINUX_FALSE=
13532 if test $is_netbsd = yes; then
13533 LIBGO_IS_NETBSD_TRUE=
13534 LIBGO_IS_NETBSD_FALSE='#'
13535 else
13536 LIBGO_IS_NETBSD_TRUE='#'
13537 LIBGO_IS_NETBSD_FALSE=
13540 if test $is_openbsd = yes; then
13541 LIBGO_IS_OPENBSD_TRUE=
13542 LIBGO_IS_OPENBSD_FALSE='#'
13543 else
13544 LIBGO_IS_OPENBSD_TRUE='#'
13545 LIBGO_IS_OPENBSD_FALSE=
13548 if test $is_rtems = yes; then
13549 LIBGO_IS_RTEMS_TRUE=
13550 LIBGO_IS_RTEMS_FALSE='#'
13551 else
13552 LIBGO_IS_RTEMS_TRUE='#'
13553 LIBGO_IS_RTEMS_FALSE=
13556 if test $is_solaris = yes; then
13557 LIBGO_IS_SOLARIS_TRUE=
13558 LIBGO_IS_SOLARIS_FALSE='#'
13559 else
13560 LIBGO_IS_SOLARIS_TRUE='#'
13561 LIBGO_IS_SOLARIS_FALSE=
13566 USE_DEJAGNU=no
13567 case ${host} in
13568 *-*-rtems*) USE_DEJAGNU=yes ;;
13569 ${build}) ;;
13570 *) USE_DEJAGNU=yes ;;
13571 esac
13574 is_386=no
13575 is_alpha=no
13576 is_arm=no
13577 is_m68k=no
13578 mips_abi=unknown
13579 is_ppc=no
13580 is_ppc64=no
13581 is_sparc=no
13582 is_sparc64=no
13583 is_x86_64=no
13584 GOARCH=unknown
13585 case ${host} in
13586 alpha*-*-*)
13587 is_alpha=yes
13588 GOARCH=alpha
13590 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13591 is_arm=yes
13592 GOARCH=arm
13594 i[34567]86-*-* | x86_64-*-*)
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 #ifdef __x86_64__
13599 #error 64-bit
13600 #endif
13601 _ACEOF
13602 if ac_fn_c_try_compile "$LINENO"; then :
13603 is_386=yes
13604 else
13605 is_x86_64=yes
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 if test "$is_386" = "yes"; then
13609 GOARCH=386
13610 else
13611 GOARCH=amd64
13614 m68k*-*-*)
13615 is_m68k=yes
13616 GOARCH=m68k
13618 mips*-*-*)
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13622 #if _MIPS_SIM != _ABIO32
13623 #error not o32
13624 #endif
13625 _ACEOF
13626 if ac_fn_c_try_compile "$LINENO"; then :
13627 mips_abi="o32"
13628 else
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13632 #if _MIPS_SIM != _ABIN32
13633 #error not n32
13634 #endif
13635 _ACEOF
13636 if ac_fn_c_try_compile "$LINENO"; then :
13637 mips_abi="n32"
13638 else
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 #if _MIPS_SIM != _ABI64
13643 #error not n64
13644 #endif
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"; then :
13647 mips_abi="n64"
13648 else
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13652 #if _MIPS_SIM != _ABIO64
13653 #error not o64
13654 #endif
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 mips_abi="o64"
13658 else
13659 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13660 mips_abi="n32"
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 case "$mips_abi" in
13670 "o32") GOARCH=mipso32 ;;
13671 "n32") GOARCH=mipsn32 ;;
13672 "n64") GOARCH=mipsn64 ;;
13673 "o64") GOARCH=mipso64 ;;
13674 esac
13676 rs6000*-*-* | powerpc*-*-*)
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13680 #ifdef _ARCH_PPC64
13681 #error 64-bit
13682 #endif
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 is_ppc=yes
13686 else
13687 is_ppc64=yes
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 if test "$is_ppc" = "yes"; then
13691 GOARCH=ppc
13692 else
13693 GOARCH=ppc64
13696 sparc*-*-*)
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 #if defined(__sparcv9) || defined(__arch64__)
13701 #error 64-bit
13702 #endif
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 is_sparc=yes
13706 else
13707 is_sparc64=yes
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 if test "$is_sparc" = "yes"; then
13711 GOARCH=sparc
13712 else
13713 GOARCH=sparc64
13716 esac
13717 if test $is_386 = yes; then
13718 LIBGO_IS_386_TRUE=
13719 LIBGO_IS_386_FALSE='#'
13720 else
13721 LIBGO_IS_386_TRUE='#'
13722 LIBGO_IS_386_FALSE=
13725 if test $is_alpha = yes; then
13726 LIBGO_IS_ALPHA_TRUE=
13727 LIBGO_IS_ALPHA_FALSE='#'
13728 else
13729 LIBGO_IS_ALPHA_TRUE='#'
13730 LIBGO_IS_ALPHA_FALSE=
13733 if test $is_arm = yes; then
13734 LIBGO_IS_ARM_TRUE=
13735 LIBGO_IS_ARM_FALSE='#'
13736 else
13737 LIBGO_IS_ARM_TRUE='#'
13738 LIBGO_IS_ARM_FALSE=
13741 if test $is_m68k = yes; then
13742 LIBGO_IS_M68K_TRUE=
13743 LIBGO_IS_M68K_FALSE='#'
13744 else
13745 LIBGO_IS_M68K_TRUE='#'
13746 LIBGO_IS_M68K_FALSE=
13749 if test $mips_abi != unknown; then
13750 LIBGO_IS_MIPS_TRUE=
13751 LIBGO_IS_MIPS_FALSE='#'
13752 else
13753 LIBGO_IS_MIPS_TRUE='#'
13754 LIBGO_IS_MIPS_FALSE=
13757 if test $mips_abi = o32; then
13758 LIBGO_IS_MIPSO32_TRUE=
13759 LIBGO_IS_MIPSO32_FALSE='#'
13760 else
13761 LIBGO_IS_MIPSO32_TRUE='#'
13762 LIBGO_IS_MIPSO32_FALSE=
13765 if test $mips_abi = n32; then
13766 LIBGO_IS_MIPSN32_TRUE=
13767 LIBGO_IS_MIPSN32_FALSE='#'
13768 else
13769 LIBGO_IS_MIPSN32_TRUE='#'
13770 LIBGO_IS_MIPSN32_FALSE=
13773 if test $mips_abi = n64; then
13774 LIBGO_IS_MIPSN64_TRUE=
13775 LIBGO_IS_MIPSN64_FALSE='#'
13776 else
13777 LIBGO_IS_MIPSN64_TRUE='#'
13778 LIBGO_IS_MIPSN64_FALSE=
13781 if test $mips_abi = o64; then
13782 LIBGO_IS_MIPSO64_TRUE=
13783 LIBGO_IS_MIPSO64_FALSE='#'
13784 else
13785 LIBGO_IS_MIPSO64_TRUE='#'
13786 LIBGO_IS_MIPSO64_FALSE=
13789 if test $is_ppc = yes; then
13790 LIBGO_IS_PPC_TRUE=
13791 LIBGO_IS_PPC_FALSE='#'
13792 else
13793 LIBGO_IS_PPC_TRUE='#'
13794 LIBGO_IS_PPC_FALSE=
13797 if test $is_ppc64 = yes; then
13798 LIBGO_IS_PPC64_TRUE=
13799 LIBGO_IS_PPC64_FALSE='#'
13800 else
13801 LIBGO_IS_PPC64_TRUE='#'
13802 LIBGO_IS_PPC64_FALSE=
13805 if test $is_sparc = yes; then
13806 LIBGO_IS_SPARC_TRUE=
13807 LIBGO_IS_SPARC_FALSE='#'
13808 else
13809 LIBGO_IS_SPARC_TRUE='#'
13810 LIBGO_IS_SPARC_FALSE=
13813 if test $is_sparc64 = yes; then
13814 LIBGO_IS_SPARC64_TRUE=
13815 LIBGO_IS_SPARC64_FALSE='#'
13816 else
13817 LIBGO_IS_SPARC64_TRUE='#'
13818 LIBGO_IS_SPARC64_FALSE=
13821 if test $is_x86_64 = yes; then
13822 LIBGO_IS_X86_64_TRUE=
13823 LIBGO_IS_X86_64_FALSE='#'
13824 else
13825 LIBGO_IS_X86_64_TRUE='#'
13826 LIBGO_IS_X86_64_FALSE=
13831 GO_LIBCALL_OS_FILE=
13832 GO_LIBCALL_OS_ARCH_FILE=
13833 GO_SYSCALL_OS_FILE=
13834 GO_SYSCALL_OS_ARCH_FILE=
13835 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13836 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13838 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13839 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13841 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13842 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13844 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13845 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13852 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13853 case "$target" in
13854 mips-sgi-irix6.5*)
13855 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13856 # msghdr in <sys/socket.h>.
13857 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13859 *-*-solaris2.[89])
13860 # Solaris 8/9 need this so struct msghdr gets the msg_control
13861 # etc. fields in <sys/socket.h> (_XPG4_2).
13862 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13864 *-*-solaris2.1[01])
13865 # Solaris 10+ needs this so struct msghdr gets the msg_control
13866 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13867 # above doesn't work with C99.
13868 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13870 esac
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13874 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13875 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 CFLAGS_hold=$CFLAGS
13879 CFLAGS="$CFLAGS -fsplit-stack"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 int i;
13883 _ACEOF
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885 libgo_cv_c_split_stack_supported=yes
13886 else
13887 libgo_cv_c_split_stack_supported=no
13889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 CFLAGS=$CFLAGS_hold
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13893 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13894 if test "$libgo_cv_c_split_stack_supported" = yes; then
13895 SPLIT_STACK=-fsplit-stack
13897 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13899 else
13900 SPLIT_STACK=
13903 if test "$libgo_cv_c_split_stack_supported" = yes; then
13904 USING_SPLIT_STACK_TRUE=
13905 USING_SPLIT_STACK_FALSE='#'
13906 else
13907 USING_SPLIT_STACK_TRUE='#'
13908 USING_SPLIT_STACK_FALSE=
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13913 $as_echo_n "checking whether linker supports split stack... " >&6; }
13914 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 libgo_cv_c_linker_supports_split_stack=no
13918 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13919 libgo_cv_c_linker_supports_split_stack=yes
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13923 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13924 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13926 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13930 MATH_LIBS=
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13932 $as_echo_n "checking for sqrt in -lm... " >&6; }
13933 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-lm $LIBS"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13944 #ifdef __cplusplus
13945 extern "C"
13946 #endif
13947 char sqrt ();
13949 main ()
13951 return sqrt ();
13953 return 0;
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957 ac_cv_lib_m_sqrt=yes
13958 else
13959 ac_cv_lib_m_sqrt=no
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13966 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13967 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13968 MATH_LIBS=-lm
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13974 $as_echo_n "checking for socket libraries... " >&6; }
13975 if test "${libgo_cv_lib_sockets+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 libgo_cv_lib_sockets=
13979 libgo_check_both=no
13980 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13981 if test "x$ac_cv_func_connect" = x""yes; then :
13982 libgo_check_socket=no
13983 else
13984 libgo_check_socket=yes
13987 if test "$libgo_check_socket" = "yes"; then
13988 unset ac_cv_func_connect
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13990 $as_echo_n "checking for main in -lsocket... " >&6; }
13991 if test "${ac_cv_lib_socket_main+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lsocket $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
14001 main ()
14003 return main ();
14005 return 0;
14007 _ACEOF
14008 if ac_fn_c_try_link "$LINENO"; then :
14009 ac_cv_lib_socket_main=yes
14010 else
14011 ac_cv_lib_socket_main=no
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
14015 LIBS=$ac_check_lib_save_LIBS
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14018 $as_echo "$ac_cv_lib_socket_main" >&6; }
14019 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14020 libgo_cv_lib_sockets="-lsocket"
14021 else
14022 libgo_check_both=yes
14026 if test "$libgo_check_both" = "yes"; then
14027 libgo_old_libs=$LIBS
14028 LIBS="$LIBS -lsocket -lnsl"
14029 unset ac_cv_func_accept
14030 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14031 if test "x$ac_cv_func_accept" = x""yes; then :
14032 libgo_check_nsl=no
14033 libgo_cv_lib_sockets="-lsocket -lnsl"
14036 unset ac_cv_func_accept
14037 LIBS=$libgo_old_libs
14039 unset ac_cv_func_gethostbyname
14040 libgo_old_libs="$LIBS"
14041 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14042 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14046 $as_echo_n "checking for main in -lnsl... " >&6; }
14047 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lnsl $LIBS"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14057 main ()
14059 return main ();
14061 return 0;
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 ac_cv_lib_nsl_main=yes
14066 else
14067 ac_cv_lib_nsl_main=no
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14074 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14075 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14076 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14081 unset ac_cv_func_gethostbyname
14082 LIBS=$libgo_old_libs
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14086 $as_echo "$libgo_cv_lib_sockets" >&6; }
14087 NET_LIBS="$libgo_cv_lib_sockets"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14091 $as_echo_n "checking whether -pthread is supported... " >&6; }
14092 if test "${libgo_cv_lib_pthread+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 CFLAGS_hold=$CFLAGS
14096 CFLAGS="$CFLAGS -pthread"
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 int i;
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 libgo_cv_lib_pthread=yes
14103 else
14104 libgo_cv_lib_pthread=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 CFLAGS=$CFLAGS_hold
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14110 $as_echo "$libgo_cv_lib_pthread" >&6; }
14111 PTHREAD_CFLAGS=
14112 if test "$libgo_cv_lib_pthread" = yes; then
14113 PTHREAD_CFLAGS=-pthread
14117 PTHREAD_LIBS=
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14119 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14120 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 ac_check_lib_save_LIBS=$LIBS
14124 LIBS="-lpthread $LIBS"
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14131 #ifdef __cplusplus
14132 extern "C"
14133 #endif
14134 char pthread_create ();
14136 main ()
14138 return pthread_create ();
14140 return 0;
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_lib_pthread_pthread_create=yes
14145 else
14146 ac_cv_lib_pthread_pthread_create=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14153 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14154 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14155 PTHREAD_LIBS=-lpthread
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14161 $as_echo_n "checking for library containing sched_yield... " >&6; }
14162 if test "${ac_cv_search_sched_yield+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 ac_func_search_save_LIBS=$LIBS
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char sched_yield ();
14177 main ()
14179 return sched_yield ();
14181 return 0;
14183 _ACEOF
14184 for ac_lib in '' rt; do
14185 if test -z "$ac_lib"; then
14186 ac_res="none required"
14187 else
14188 ac_res=-l$ac_lib
14189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 ac_cv_search_sched_yield=$ac_res
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext
14196 if test "${ac_cv_search_sched_yield+set}" = set; then :
14197 break
14199 done
14200 if test "${ac_cv_search_sched_yield+set}" = set; then :
14202 else
14203 ac_cv_search_sched_yield=no
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14209 $as_echo "$ac_cv_search_sched_yield" >&6; }
14210 ac_res=$ac_cv_search_sched_yield
14211 if test "$ac_res" != no; then :
14212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14217 $as_echo_n "checking for library containing nanosleep... " >&6; }
14218 if test "${ac_cv_search_nanosleep+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 ac_func_search_save_LIBS=$LIBS
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char nanosleep ();
14233 main ()
14235 return nanosleep ();
14237 return 0;
14239 _ACEOF
14240 for ac_lib in '' rt; do
14241 if test -z "$ac_lib"; then
14242 ac_res="none required"
14243 else
14244 ac_res=-l$ac_lib
14245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14247 if ac_fn_c_try_link "$LINENO"; then :
14248 ac_cv_search_nanosleep=$ac_res
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext
14252 if test "${ac_cv_search_nanosleep+set}" = set; then :
14253 break
14255 done
14256 if test "${ac_cv_search_nanosleep+set}" = set; then :
14258 else
14259 ac_cv_search_nanosleep=no
14261 rm conftest.$ac_ext
14262 LIBS=$ac_func_search_save_LIBS
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14265 $as_echo "$ac_cv_search_nanosleep" >&6; }
14266 ac_res=$ac_cv_search_nanosleep
14267 if test "$ac_res" != no; then :
14268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14274 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14275 if test "${ac_cv_c_bigendian+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 ac_cv_c_bigendian=unknown
14279 # See if we're dealing with a universal compiler.
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #ifndef __APPLE_CC__
14283 not a universal capable compiler
14284 #endif
14285 typedef int dummy;
14287 _ACEOF
14288 if ac_fn_c_try_compile "$LINENO"; then :
14290 # Check for potential -arch flags. It is not universal unless
14291 # there are at least two -arch flags with different values.
14292 ac_arch=
14293 ac_prev=
14294 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14295 if test -n "$ac_prev"; then
14296 case $ac_word in
14297 i?86 | x86_64 | ppc | ppc64)
14298 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14299 ac_arch=$ac_word
14300 else
14301 ac_cv_c_bigendian=universal
14302 break
14305 esac
14306 ac_prev=
14307 elif test "x$ac_word" = "x-arch"; then
14308 ac_prev=arch
14310 done
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313 if test $ac_cv_c_bigendian = unknown; then
14314 # See if sys/param.h defines the BYTE_ORDER macro.
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 #include <sys/types.h>
14318 #include <sys/param.h>
14321 main ()
14323 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14324 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14325 && LITTLE_ENDIAN)
14326 bogus endian macros
14327 #endif
14330 return 0;
14332 _ACEOF
14333 if ac_fn_c_try_compile "$LINENO"; then :
14334 # It does; now see whether it defined to BIG_ENDIAN or not.
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <sys/types.h>
14338 #include <sys/param.h>
14341 main ()
14343 #if BYTE_ORDER != BIG_ENDIAN
14344 not big endian
14345 #endif
14348 return 0;
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"; then :
14352 ac_cv_c_bigendian=yes
14353 else
14354 ac_cv_c_bigendian=no
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 if test $ac_cv_c_bigendian = unknown; then
14361 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 #include <limits.h>
14367 main ()
14369 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14370 bogus endian macros
14371 #endif
14374 return 0;
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378 # It does; now see whether it defined to _BIG_ENDIAN or not.
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 #include <limits.h>
14384 main ()
14386 #ifndef _BIG_ENDIAN
14387 not big endian
14388 #endif
14391 return 0;
14393 _ACEOF
14394 if ac_fn_c_try_compile "$LINENO"; then :
14395 ac_cv_c_bigendian=yes
14396 else
14397 ac_cv_c_bigendian=no
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 if test $ac_cv_c_bigendian = unknown; then
14404 # Compile a test program.
14405 if test "$cross_compiling" = yes; then :
14406 # Try to guess by grepping values from an object file.
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 short int ascii_mm[] =
14410 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14411 short int ascii_ii[] =
14412 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14413 int use_ascii (int i) {
14414 return ascii_mm[i] + ascii_ii[i];
14416 short int ebcdic_ii[] =
14417 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14418 short int ebcdic_mm[] =
14419 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14420 int use_ebcdic (int i) {
14421 return ebcdic_mm[i] + ebcdic_ii[i];
14423 extern int foo;
14426 main ()
14428 return use_ascii (foo) == use_ebcdic (foo);
14430 return 0;
14432 _ACEOF
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14435 ac_cv_c_bigendian=yes
14437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14438 if test "$ac_cv_c_bigendian" = unknown; then
14439 ac_cv_c_bigendian=no
14440 else
14441 # finding both strings is unlikely to happen, but who knows?
14442 ac_cv_c_bigendian=unknown
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 else
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 $ac_includes_default
14452 main ()
14455 /* Are we little or big endian? From Harbison&Steele. */
14456 union
14458 long int l;
14459 char c[sizeof (long int)];
14460 } u;
14461 u.l = 1;
14462 return u.c[sizeof (long int) - 1] == 1;
14465 return 0;
14467 _ACEOF
14468 if ac_fn_c_try_run "$LINENO"; then :
14469 ac_cv_c_bigendian=no
14470 else
14471 ac_cv_c_bigendian=yes
14473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14474 conftest.$ac_objext conftest.beam conftest.$ac_ext
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14480 $as_echo "$ac_cv_c_bigendian" >&6; }
14481 case $ac_cv_c_bigendian in #(
14482 yes)
14483 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14484 ;; #(
14486 ;; #(
14487 universal)
14489 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14491 ;; #(
14493 as_fn_error "unknown endianness
14494 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14495 esac
14500 # Check whether --with-system-libunwind was given.
14501 if test "${with_system_libunwind+set}" = set; then :
14502 withval=$with_system_libunwind;
14505 # If system-libunwind was not specifically set, pick a default setting.
14506 if test x$with_system_libunwind = x; then
14507 case ${target} in
14508 ia64-*-hpux*) with_system_libunwind=yes ;;
14509 *) with_system_libunwind=no ;;
14510 esac
14512 # Based on system-libunwind and target, do we have ipinfo?
14513 if test x$with_system_libunwind = xyes; then
14514 case ${target} in
14515 ia64-*-*) have_unwind_getipinfo=no ;;
14516 *) have_unwind_getipinfo=yes ;;
14517 esac
14518 else
14519 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14521 case ${target} in
14522 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14523 *) have_unwind_getipinfo=yes ;;
14524 esac
14528 if test x$have_unwind_getipinfo = xyes; then
14530 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14535 # Check whether --enable-sjlj-exceptions was given.
14536 if test "${enable_sjlj_exceptions+set}" = set; then :
14537 enableval=$enable_sjlj_exceptions; case "$enableval" in
14538 yes|no|auto) ;;
14539 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14540 esac
14541 else
14542 enable_sjlj_exceptions=auto
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14547 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14548 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 void bar ();
14555 void clean (int *);
14556 void foo ()
14558 int i __attribute__ ((cleanup (clean)));
14559 bar();
14562 _ACEOF
14563 CFLAGS_hold=$CFLAGS
14564 CFLAGS="--save-temps -fexceptions"
14565 libgo_cv_lib_sjlj_exceptions=unknown
14566 if ac_fn_c_try_compile; then :
14567 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14568 libgo_cv_lib_sjlj_exceptions=yes
14569 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14570 libgo_cv_lib_sjlj_exceptions=no
14573 CFLAGS=$CFLAGS_hold
14574 rm -f conftest*
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14578 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14580 if test "$enable_sjlj_exceptions" = "auto"; then
14581 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14584 case $enable_sjlj_exceptions in
14585 yes)
14587 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14593 as_fn_error "unable to detect exception model" "$LINENO" 5
14595 esac
14597 for ac_header in 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/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14598 do :
14599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14601 eval as_val=\$$as_ac_Header
14602 if test "x$as_val" = x""yes; then :
14603 cat >>confdefs.h <<_ACEOF
14604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14605 _ACEOF
14609 done
14612 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
14613 do :
14614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14616 #include <sys/socket.h>
14617 #endif
14620 eval as_val=\$$as_ac_Header
14621 if test "x$as_val" = x""yes; then :
14622 cat >>confdefs.h <<_ACEOF
14623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14624 _ACEOF
14628 done
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14632 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14633 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 CFLAGS_hold=$CFLAGS
14637 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14641 #include <sys/types.h>
14642 #ifdef HAVE_LINUX_FILTER_H
14643 #include <linux/filter.h>
14644 #endif
14645 #include <ustat.h>
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649 libgo_cv_c_ustat_h=yes
14650 else
14651 libgo_cv_c_ustat_h=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 CFLAGS=$CFLAGS_hold
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14657 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14658 if test $libgo_cv_c_ustat_h = yes; then
14660 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14664 if test "$ac_cv_header_sys_mman_h" = yes; then
14665 HAVE_SYS_MMAN_H_TRUE=
14666 HAVE_SYS_MMAN_H_FALSE='#'
14667 else
14668 HAVE_SYS_MMAN_H_TRUE='#'
14669 HAVE_SYS_MMAN_H_FALSE=
14673 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14674 do :
14675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14677 eval as_val=\$$as_ac_var
14678 if test "x$as_val" = x""yes; then :
14679 cat >>confdefs.h <<_ACEOF
14680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 _ACEOF
14684 done
14686 if test "$ac_cv_func_strerror_r" = yes; then
14687 HAVE_STRERROR_R_TRUE=
14688 HAVE_STRERROR_R_FALSE='#'
14689 else
14690 HAVE_STRERROR_R_TRUE='#'
14691 HAVE_STRERROR_R_FALSE=
14694 if test "$ac_cv_func_wait4" = yes; then
14695 HAVE_WAIT4_TRUE=
14696 HAVE_WAIT4_FALSE='#'
14697 else
14698 HAVE_WAIT4_TRUE='#'
14699 HAVE_WAIT4_FALSE=
14703 for ac_func in accept4 epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_init1 inotify_rm_watch mkdirat mknodat openat pipe2 renameat sync_file_range splice tee unlinkat unshare utimensat
14704 do :
14705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14707 eval as_val=\$$as_ac_var
14708 if test "x$as_val" = x""yes; then :
14709 cat >>confdefs.h <<_ACEOF
14710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14711 _ACEOF
14714 done
14716 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14717 if test "x$ac_cv_type_off_t" = x""yes; then :
14719 else
14721 cat >>confdefs.h <<_ACEOF
14722 #define off_t long int
14723 _ACEOF
14727 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14728 if test "x$ac_cv_type_loff_t" = x""yes; then :
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_LOFF_T 1
14732 _ACEOF
14738 LIBS_hold="$LIBS"
14739 LIBS="$LIBS -lm"
14740 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14741 do :
14742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14744 eval as_val=\$$as_ac_var
14745 if test "x$as_val" = x""yes; then :
14746 cat >>confdefs.h <<_ACEOF
14747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14748 _ACEOF
14751 done
14753 LIBS="$LIBS_hold"
14755 CFLAGS_hold="$CFLAGS"
14756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14757 LIBS_hold="$LIBS"
14758 LIBS="$LIBS $PTHREAD_LIBS"
14759 for ac_func in sem_timedwait
14760 do :
14761 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14762 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_SEM_TIMEDWAIT 1
14765 _ACEOF
14768 done
14770 CFLAGS="$CFLAGS_hold"
14771 LIBS="$LIBS_hold"
14773 LIBS_hold="$LIBS"
14774 LIBS="$LIBS $MATH_LIBS"
14775 for ac_func in matherr
14776 do :
14777 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14778 if test "x$ac_cv_func_matherr" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define HAVE_MATHERR 1
14781 _ACEOF
14784 done
14786 LIBS="$LIBS_hold"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14789 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14790 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14796 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14797 uint32 i;
14798 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14803 else
14804 libgo_cv_func___sync_bool_compare_and_swap_4=no
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14810 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14811 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14813 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14818 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14819 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14825 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14826 uint64 i;
14827 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14829 _ACEOF
14830 if ac_fn_c_try_link "$LINENO"; then :
14831 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14832 else
14833 libgo_cv_func___sync_bool_compare_and_swap_8=no
14835 rm -f core conftest.err conftest.$ac_objext \
14836 conftest$ac_exeext conftest.$ac_ext
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14839 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14840 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14842 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14847 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14848 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14855 uint32 i;
14856 int main() { return __sync_fetch_and_add (&i, 1); }
14858 _ACEOF
14859 if ac_fn_c_try_link "$LINENO"; then :
14860 libgo_cv_func___sync_fetch_and_add_4=yes
14861 else
14862 libgo_cv_func___sync_fetch_and_add_4=no
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext conftest.$ac_ext
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14868 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14869 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14871 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14876 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14877 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14884 uint64 i;
14885 int main() { return __sync_add_and_fetch (&i, 1); }
14887 _ACEOF
14888 if ac_fn_c_try_link "$LINENO"; then :
14889 libgo_cv_func___sync_add_and_fetch_8=yes
14890 else
14891 libgo_cv_func___sync_add_and_fetch_8=no
14893 rm -f core conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14897 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14898 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14900 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14905 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14906 if test "${libgo_cv_c_stringops+set}" = set; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 CFLAGS_hold=$CFLAGS
14910 CFLAGS="$CFLAGS -minline-all-stringops"
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 int i;
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916 libgo_cv_c_stringops=yes
14917 else
14918 libgo_cv_c_stringops=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 CFLAGS=$CFLAGS_hold
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14924 $as_echo "$libgo_cv_c_stringops" >&6; }
14925 STRINGOPS_FLAG=
14926 if test "$libgo_cv_c_stringops" = yes; then
14927 STRINGOPS_FLAG=-minline-all-stringops
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14932 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14933 if test "${libgo_cv_c_fancymath+set}" = set; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 CFLAGS_hold=$CFLAGS
14937 CFLAGS="$CFLAGS -mfancy-math-387"
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 int i;
14941 _ACEOF
14942 if ac_fn_c_try_compile "$LINENO"; then :
14943 libgo_cv_c_fancymath=yes
14944 else
14945 libgo_cv_c_fancymath=no
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 CFLAGS=$CFLAGS_hold
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14951 $as_echo "$libgo_cv_c_fancymath" >&6; }
14952 MATH_FLAG=
14953 if test "$libgo_cv_c_fancymath" = yes; then
14954 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14958 CFLAGS_hold=$CFLAGS
14959 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14960 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14961 if test "x$ac_cv_type_off64_t" = x""yes; then :
14963 cat >>confdefs.h <<_ACEOF
14964 #define HAVE_OFF64_T 1
14965 _ACEOF
14970 CFLAGS=$CFLAGS_hold
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14973 $as_echo_n "checking epoll_event size... " >&6; }
14974 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14979 else
14980 libgo_cv_c_epoll_event_size=0
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14985 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14986 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14990 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14991 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14995 #include <sys/epoll.h>"; then :
14997 else
14998 libgo_cv_c_epoll_event_fd_offset=0
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15003 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15004 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15007 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15009 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15010 libgo_has_struct_exception=yes
15011 else
15012 libgo_has_struct_exception=no
15015 if test "$libgo_has_struct_exception" = "yes"; then
15017 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15021 case "$target" in
15022 sparc*-*-solaris2.[89]*)
15023 libgo_cv_lib_makecontext_stack_top=yes
15026 libgo_cv_lib_makecontext_stack_top=no
15028 esac
15029 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
15031 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15036 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15037 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15038 $as_echo_n "(cached) " >&6
15039 else
15040 CFLAGS_hold="$CFLAGS"
15041 CFLAGS="$PTHREAD_CFLAGS"
15042 LIBS_hold="$LIBS"
15043 LIBS="$LIBS $PTHREAD_LIBS"
15044 # The cast to long int works around a bug in the HP C Compiler
15045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15047 # This bug is HP SR number 8606223364.
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15049 $as_echo_n "checking size of void *... " >&6; }
15050 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15051 $as_echo_n "(cached) " >&6
15052 else
15053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15055 else
15056 if test "$ac_cv_type_void_p" = yes; then
15057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15059 { as_fn_set_status 77
15060 as_fn_error "cannot compute sizeof (void *)
15061 See \`config.log' for more details." "$LINENO" 5; }; }
15062 else
15063 ac_cv_sizeof_void_p=0
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15069 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15073 cat >>confdefs.h <<_ACEOF
15074 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15075 _ACEOF
15078 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15079 if test "$cross_compiling" = yes; then :
15080 case "$target:$ptr_type_size" in
15081 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15082 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15084 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15085 esac
15087 else
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15091 #include <pthread.h>
15092 #include <stdlib.h>
15093 #include <ucontext.h>
15094 #include <unistd.h>
15096 __thread int tls;
15098 static char stack[10 * 1024 * 1024];
15099 static ucontext_t c;
15101 /* Called via makecontext/setcontext. */
15103 static void
15104 cfn (void)
15106 exit (tls);
15109 /* Called via pthread_create. */
15111 static void *
15112 tfn (void *dummy)
15114 /* The thread should still see this value after calling
15115 setcontext. */
15116 tls = 0;
15118 setcontext (&c);
15120 /* The call to setcontext should not return. */
15121 abort ();
15125 main ()
15127 pthread_t tid;
15129 /* The thread should not see this value. */
15130 tls = 1;
15132 if (getcontext (&c) < 0)
15133 abort ();
15135 c.uc_stack.ss_sp = stack;
15136 #ifdef MAKECONTEXT_STACK_TOP
15137 c.uc_stack.ss_sp += sizeof stack;
15138 #endif
15139 c.uc_stack.ss_flags = 0;
15140 c.uc_stack.ss_size = sizeof stack;
15141 c.uc_link = NULL;
15142 makecontext (&c, cfn, 0);
15144 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15145 abort ();
15147 if (pthread_join (tid, NULL) != 0)
15148 abort ();
15150 /* The thread should have called exit. */
15151 abort ();
15154 _ACEOF
15155 if ac_fn_c_try_run "$LINENO"; then :
15156 libgo_cv_lib_setcontext_clobbers_tls=no
15157 else
15158 libgo_cv_lib_setcontext_clobbers_tls=yes
15160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15161 conftest.$ac_objext conftest.beam conftest.$ac_ext
15164 CFLAGS="$CFLAGS_hold"
15165 LIBS="$LIBS_hold"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15169 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15170 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15172 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15176 cat >confcache <<\_ACEOF
15177 # This file is a shell script that caches the results of configure
15178 # tests run on this system so they can be shared between configure
15179 # scripts and configure runs, see configure's option --config-cache.
15180 # It is not useful on other systems. If it contains results you don't
15181 # want to keep, you may remove or edit it.
15183 # config.status only pays attention to the cache file if you give it
15184 # the --recheck option to rerun configure.
15186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15188 # following values.
15190 _ACEOF
15192 # The following way of writing the cache mishandles newlines in values,
15193 # but we know of no workaround that is simple, portable, and efficient.
15194 # So, we kill variables containing newlines.
15195 # Ultrix sh set writes to stderr and can't be redirected directly,
15196 # and sets the high bit in the cache file unless we assign to the vars.
15198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15199 eval ac_val=\$$ac_var
15200 case $ac_val in #(
15201 *${as_nl}*)
15202 case $ac_var in #(
15203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15205 esac
15206 case $ac_var in #(
15207 _ | IFS | as_nl) ;; #(
15208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15209 *) { eval $ac_var=; unset $ac_var;} ;;
15210 esac ;;
15211 esac
15212 done
15214 (set) 2>&1 |
15215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15216 *${as_nl}ac_space=\ *)
15217 # `set' does not quote correctly, so add quotes: double-quote
15218 # substitution turns \\\\ into \\, and sed turns \\ into \.
15219 sed -n \
15220 "s/'/'\\\\''/g;
15221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15222 ;; #(
15224 # `set' quotes correctly as required by POSIX, so do not add quotes.
15225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15227 esac |
15228 sort
15230 sed '
15231 /^ac_cv_env_/b end
15232 t clear
15233 :clear
15234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15235 t end
15236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15237 :end' >>confcache
15238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15239 if test -w "$cache_file"; then
15240 test "x$cache_file" != "x/dev/null" &&
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15242 $as_echo "$as_me: updating cache $cache_file" >&6;}
15243 cat confcache >$cache_file
15244 else
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15249 rm -f confcache
15251 if test ${multilib} = yes; then
15252 multilib_arg="--enable-multilib"
15253 else
15254 multilib_arg=
15257 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15260 ac_config_commands="$ac_config_commands default"
15263 cat >confcache <<\_ACEOF
15264 # This file is a shell script that caches the results of configure
15265 # tests run on this system so they can be shared between configure
15266 # scripts and configure runs, see configure's option --config-cache.
15267 # It is not useful on other systems. If it contains results you don't
15268 # want to keep, you may remove or edit it.
15270 # config.status only pays attention to the cache file if you give it
15271 # the --recheck option to rerun configure.
15273 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15274 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15275 # following values.
15277 _ACEOF
15279 # The following way of writing the cache mishandles newlines in values,
15280 # but we know of no workaround that is simple, portable, and efficient.
15281 # So, we kill variables containing newlines.
15282 # Ultrix sh set writes to stderr and can't be redirected directly,
15283 # and sets the high bit in the cache file unless we assign to the vars.
15285 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15286 eval ac_val=\$$ac_var
15287 case $ac_val in #(
15288 *${as_nl}*)
15289 case $ac_var in #(
15290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15292 esac
15293 case $ac_var in #(
15294 _ | IFS | as_nl) ;; #(
15295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15296 *) { eval $ac_var=; unset $ac_var;} ;;
15297 esac ;;
15298 esac
15299 done
15301 (set) 2>&1 |
15302 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15303 *${as_nl}ac_space=\ *)
15304 # `set' does not quote correctly, so add quotes: double-quote
15305 # substitution turns \\\\ into \\, and sed turns \\ into \.
15306 sed -n \
15307 "s/'/'\\\\''/g;
15308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15309 ;; #(
15311 # `set' quotes correctly as required by POSIX, so do not add quotes.
15312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15314 esac |
15315 sort
15317 sed '
15318 /^ac_cv_env_/b end
15319 t clear
15320 :clear
15321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15322 t end
15323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15324 :end' >>confcache
15325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15326 if test -w "$cache_file"; then
15327 test "x$cache_file" != "x/dev/null" &&
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15329 $as_echo "$as_me: updating cache $cache_file" >&6;}
15330 cat confcache >$cache_file
15331 else
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15333 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15336 rm -f confcache
15338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15339 # Let make expand exec_prefix.
15340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15342 DEFS=-DHAVE_CONFIG_H
15344 ac_libobjs=
15345 ac_ltlibobjs=
15346 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15347 # 1. Remove the extension, and $U if already installed.
15348 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15349 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15351 # will be set to the directory where LIBOBJS objects are built.
15352 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15353 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15354 done
15355 LIBOBJS=$ac_libobjs
15357 LTLIBOBJS=$ac_ltlibobjs
15360 if test -n "$EXEEXT"; then
15361 am__EXEEXT_TRUE=
15362 am__EXEEXT_FALSE='#'
15363 else
15364 am__EXEEXT_TRUE='#'
15365 am__EXEEXT_FALSE=
15368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15369 as_fn_error "conditional \"AMDEP\" was never defined.
15370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15373 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15377 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15381 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15385 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15389 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15392 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15393 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15397 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15401 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15405 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15409 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15413 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15417 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15421 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15424 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15425 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15429 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15432 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15433 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15436 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15437 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15440 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15441 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15444 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15445 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15448 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15449 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15452 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15453 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15456 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15457 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15461 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15464 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15465 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15468 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15469 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15473 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15474 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15477 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15478 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15481 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15482 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15486 : ${CONFIG_STATUS=./config.status}
15487 ac_write_fail=0
15488 ac_clean_files_save=$ac_clean_files
15489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15491 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492 as_write_fail=0
15493 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15494 #! $SHELL
15495 # Generated by $as_me.
15496 # Run this file to recreate the current configuration.
15497 # Compiler output produced by configure, useful for debugging
15498 # configure, is in config.log if it exists.
15500 debug=false
15501 ac_cs_recheck=false
15502 ac_cs_silent=false
15504 SHELL=\${CONFIG_SHELL-$SHELL}
15505 export SHELL
15506 _ASEOF
15507 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15508 ## -------------------- ##
15509 ## M4sh Initialization. ##
15510 ## -------------------- ##
15512 # Be more Bourne compatible
15513 DUALCASE=1; export DUALCASE # for MKS sh
15514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15515 emulate sh
15516 NULLCMD=:
15517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15518 # is contrary to our usage. Disable this feature.
15519 alias -g '${1+"$@"}'='"$@"'
15520 setopt NO_GLOB_SUBST
15521 else
15522 case `(set -o) 2>/dev/null` in #(
15523 *posix*) :
15524 set -o posix ;; #(
15525 *) :
15527 esac
15531 as_nl='
15533 export as_nl
15534 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15535 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15538 # Prefer a ksh shell builtin over an external printf program on Solaris,
15539 # but without wasting forks for bash or zsh.
15540 if test -z "$BASH_VERSION$ZSH_VERSION" \
15541 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15542 as_echo='print -r --'
15543 as_echo_n='print -rn --'
15544 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15545 as_echo='printf %s\n'
15546 as_echo_n='printf %s'
15547 else
15548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15549 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15550 as_echo_n='/usr/ucb/echo -n'
15551 else
15552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15553 as_echo_n_body='eval
15554 arg=$1;
15555 case $arg in #(
15556 *"$as_nl"*)
15557 expr "X$arg" : "X\\(.*\\)$as_nl";
15558 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15559 esac;
15560 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15562 export as_echo_n_body
15563 as_echo_n='sh -c $as_echo_n_body as_echo'
15565 export as_echo_body
15566 as_echo='sh -c $as_echo_body as_echo'
15569 # The user is always right.
15570 if test "${PATH_SEPARATOR+set}" != set; then
15571 PATH_SEPARATOR=:
15572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15574 PATH_SEPARATOR=';'
15579 # IFS
15580 # We need space, tab and new line, in precisely that order. Quoting is
15581 # there to prevent editors from complaining about space-tab.
15582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15583 # splitting by setting IFS to empty value.)
15584 IFS=" "" $as_nl"
15586 # Find who we are. Look in the path if we contain no directory separator.
15587 case $0 in #((
15588 *[\\/]* ) as_myself=$0 ;;
15589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15592 IFS=$as_save_IFS
15593 test -z "$as_dir" && as_dir=.
15594 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15595 done
15596 IFS=$as_save_IFS
15599 esac
15600 # We did not find ourselves, most probably we were run as `sh COMMAND'
15601 # in which case we are not to be found in the path.
15602 if test "x$as_myself" = x; then
15603 as_myself=$0
15605 if test ! -f "$as_myself"; then
15606 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15607 exit 1
15610 # Unset variables that we do not need and which cause bugs (e.g. in
15611 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15612 # suppresses any "Segmentation fault" message there. '((' could
15613 # trigger a bug in pdksh 5.2.14.
15614 for as_var in BASH_ENV ENV MAIL MAILPATH
15615 do eval test x\${$as_var+set} = xset \
15616 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15617 done
15618 PS1='$ '
15619 PS2='> '
15620 PS4='+ '
15622 # NLS nuisances.
15623 LC_ALL=C
15624 export LC_ALL
15625 LANGUAGE=C
15626 export LANGUAGE
15628 # CDPATH.
15629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15632 # as_fn_error ERROR [LINENO LOG_FD]
15633 # ---------------------------------
15634 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15635 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15636 # script with status $?, using 1 if that was 0.
15637 as_fn_error ()
15639 as_status=$?; test $as_status -eq 0 && as_status=1
15640 if test "$3"; then
15641 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15642 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15644 $as_echo "$as_me: error: $1" >&2
15645 as_fn_exit $as_status
15646 } # as_fn_error
15649 # as_fn_set_status STATUS
15650 # -----------------------
15651 # Set $? to STATUS, without forking.
15652 as_fn_set_status ()
15654 return $1
15655 } # as_fn_set_status
15657 # as_fn_exit STATUS
15658 # -----------------
15659 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15660 as_fn_exit ()
15662 set +e
15663 as_fn_set_status $1
15664 exit $1
15665 } # as_fn_exit
15667 # as_fn_unset VAR
15668 # ---------------
15669 # Portably unset VAR.
15670 as_fn_unset ()
15672 { eval $1=; unset $1;}
15674 as_unset=as_fn_unset
15675 # as_fn_append VAR VALUE
15676 # ----------------------
15677 # Append the text in VALUE to the end of the definition contained in VAR. Take
15678 # advantage of any shell optimizations that allow amortized linear growth over
15679 # repeated appends, instead of the typical quadratic growth present in naive
15680 # implementations.
15681 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15682 eval 'as_fn_append ()
15684 eval $1+=\$2
15686 else
15687 as_fn_append ()
15689 eval $1=\$$1\$2
15691 fi # as_fn_append
15693 # as_fn_arith ARG...
15694 # ------------------
15695 # Perform arithmetic evaluation on the ARGs, and store the result in the
15696 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15697 # must be portable across $(()) and expr.
15698 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15699 eval 'as_fn_arith ()
15701 as_val=$(( $* ))
15703 else
15704 as_fn_arith ()
15706 as_val=`expr "$@" || test $? -eq 1`
15708 fi # as_fn_arith
15711 if expr a : '\(a\)' >/dev/null 2>&1 &&
15712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15713 as_expr=expr
15714 else
15715 as_expr=false
15718 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15719 as_basename=basename
15720 else
15721 as_basename=false
15724 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15725 as_dirname=dirname
15726 else
15727 as_dirname=false
15730 as_me=`$as_basename -- "$0" ||
15731 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15732 X"$0" : 'X\(//\)$' \| \
15733 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15734 $as_echo X/"$0" |
15735 sed '/^.*\/\([^/][^/]*\)\/*$/{
15736 s//\1/
15739 /^X\/\(\/\/\)$/{
15740 s//\1/
15743 /^X\/\(\/\).*/{
15744 s//\1/
15747 s/.*/./; q'`
15749 # Avoid depending upon Character Ranges.
15750 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15751 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15752 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15753 as_cr_digits='0123456789'
15754 as_cr_alnum=$as_cr_Letters$as_cr_digits
15756 ECHO_C= ECHO_N= ECHO_T=
15757 case `echo -n x` in #(((((
15758 -n*)
15759 case `echo 'xy\c'` in
15760 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15761 xy) ECHO_C='\c';;
15762 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15763 ECHO_T=' ';;
15764 esac;;
15766 ECHO_N='-n';;
15767 esac
15769 rm -f conf$$ conf$$.exe conf$$.file
15770 if test -d conf$$.dir; then
15771 rm -f conf$$.dir/conf$$.file
15772 else
15773 rm -f conf$$.dir
15774 mkdir conf$$.dir 2>/dev/null
15776 if (echo >conf$$.file) 2>/dev/null; then
15777 if ln -s conf$$.file conf$$ 2>/dev/null; then
15778 as_ln_s='ln -s'
15779 # ... but there are two gotchas:
15780 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15781 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15782 # In both cases, we have to default to `cp -p'.
15783 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15784 as_ln_s='cp -p'
15785 elif ln conf$$.file conf$$ 2>/dev/null; then
15786 as_ln_s=ln
15787 else
15788 as_ln_s='cp -p'
15790 else
15791 as_ln_s='cp -p'
15793 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15794 rmdir conf$$.dir 2>/dev/null
15797 # as_fn_mkdir_p
15798 # -------------
15799 # Create "$as_dir" as a directory, including parents if necessary.
15800 as_fn_mkdir_p ()
15803 case $as_dir in #(
15804 -*) as_dir=./$as_dir;;
15805 esac
15806 test -d "$as_dir" || eval $as_mkdir_p || {
15807 as_dirs=
15808 while :; do
15809 case $as_dir in #(
15810 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15811 *) as_qdir=$as_dir;;
15812 esac
15813 as_dirs="'$as_qdir' $as_dirs"
15814 as_dir=`$as_dirname -- "$as_dir" ||
15815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15816 X"$as_dir" : 'X\(//\)[^/]' \| \
15817 X"$as_dir" : 'X\(//\)$' \| \
15818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15819 $as_echo X"$as_dir" |
15820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15821 s//\1/
15824 /^X\(\/\/\)[^/].*/{
15825 s//\1/
15828 /^X\(\/\/\)$/{
15829 s//\1/
15832 /^X\(\/\).*/{
15833 s//\1/
15836 s/.*/./; q'`
15837 test -d "$as_dir" && break
15838 done
15839 test -z "$as_dirs" || eval "mkdir $as_dirs"
15840 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15843 } # as_fn_mkdir_p
15844 if mkdir -p . 2>/dev/null; then
15845 as_mkdir_p='mkdir -p "$as_dir"'
15846 else
15847 test -d ./-p && rmdir ./-p
15848 as_mkdir_p=false
15851 if test -x / >/dev/null 2>&1; then
15852 as_test_x='test -x'
15853 else
15854 if ls -dL / >/dev/null 2>&1; then
15855 as_ls_L_option=L
15856 else
15857 as_ls_L_option=
15859 as_test_x='
15860 eval sh -c '\''
15861 if test -d "$1"; then
15862 test -d "$1/.";
15863 else
15864 case $1 in #(
15865 -*)set "./$1";;
15866 esac;
15867 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15868 ???[sx]*):;;*)false;;esac;fi
15869 '\'' sh
15872 as_executable_p=$as_test_x
15874 # Sed expression to map a string onto a valid CPP name.
15875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15877 # Sed expression to map a string onto a valid variable name.
15878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15881 exec 6>&1
15882 ## ----------------------------------- ##
15883 ## Main body of $CONFIG_STATUS script. ##
15884 ## ----------------------------------- ##
15885 _ASEOF
15886 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 # Save the log message, to keep $0 and so on meaningful, and to
15890 # report actual input values of CONFIG_FILES etc. instead of their
15891 # values after options handling.
15892 ac_log="
15893 This file was extended by package-unused $as_me version-unused, which was
15894 generated by GNU Autoconf 2.64. Invocation command line was
15896 CONFIG_FILES = $CONFIG_FILES
15897 CONFIG_HEADERS = $CONFIG_HEADERS
15898 CONFIG_LINKS = $CONFIG_LINKS
15899 CONFIG_COMMANDS = $CONFIG_COMMANDS
15900 $ $0 $@
15902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15905 _ACEOF
15907 case $ac_config_files in *"
15908 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15909 esac
15911 case $ac_config_headers in *"
15912 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15913 esac
15916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917 # Files that config.status was made for.
15918 config_files="$ac_config_files"
15919 config_headers="$ac_config_headers"
15920 config_commands="$ac_config_commands"
15922 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925 ac_cs_usage="\
15926 \`$as_me' instantiates files and other configuration actions
15927 from templates according to the current configuration. Unless the files
15928 and actions are specified as TAGs, all are instantiated by default.
15930 Usage: $0 [OPTION]... [TAG]...
15932 -h, --help print this help, then exit
15933 -V, --version print version number and configuration settings, then exit
15934 -q, --quiet, --silent
15935 do not print progress messages
15936 -d, --debug don't remove temporary files
15937 --recheck update $as_me by reconfiguring in the same conditions
15938 --file=FILE[:TEMPLATE]
15939 instantiate the configuration file FILE
15940 --header=FILE[:TEMPLATE]
15941 instantiate the configuration header FILE
15943 Configuration files:
15944 $config_files
15946 Configuration headers:
15947 $config_headers
15949 Configuration commands:
15950 $config_commands
15952 Report bugs to the package provider."
15954 _ACEOF
15955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_cs_version="\\
15957 package-unused config.status version-unused
15958 configured by $0, generated by GNU Autoconf 2.64,
15959 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15961 Copyright (C) 2009 Free Software Foundation, Inc.
15962 This config.status script is free software; the Free Software Foundation
15963 gives unlimited permission to copy, distribute and modify it."
15965 ac_pwd='$ac_pwd'
15966 srcdir='$srcdir'
15967 INSTALL='$INSTALL'
15968 MKDIR_P='$MKDIR_P'
15969 AWK='$AWK'
15970 test -n "\$AWK" || AWK=awk
15971 _ACEOF
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 # The default lists apply if the user does not specify any file.
15975 ac_need_defaults=:
15976 while test $# != 0
15978 case $1 in
15979 --*=*)
15980 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15982 ac_shift=:
15985 ac_option=$1
15986 ac_optarg=$2
15987 ac_shift=shift
15989 esac
15991 case $ac_option in
15992 # Handling of the options.
15993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15994 ac_cs_recheck=: ;;
15995 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15996 $as_echo "$ac_cs_version"; exit ;;
15997 --debug | --debu | --deb | --de | --d | -d )
15998 debug=: ;;
15999 --file | --fil | --fi | --f )
16000 $ac_shift
16001 case $ac_optarg in
16002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16003 esac
16004 as_fn_append CONFIG_FILES " '$ac_optarg'"
16005 ac_need_defaults=false;;
16006 --header | --heade | --head | --hea )
16007 $ac_shift
16008 case $ac_optarg in
16009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16010 esac
16011 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16012 ac_need_defaults=false;;
16013 --he | --h)
16014 # Conflict between --help and --header
16015 as_fn_error "ambiguous option: \`$1'
16016 Try \`$0 --help' for more information.";;
16017 --help | --hel | -h )
16018 $as_echo "$ac_cs_usage"; exit ;;
16019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16021 ac_cs_silent=: ;;
16023 # This is an error.
16024 -*) as_fn_error "unrecognized option: \`$1'
16025 Try \`$0 --help' for more information." ;;
16027 *) as_fn_append ac_config_targets " $1"
16028 ac_need_defaults=false ;;
16030 esac
16031 shift
16032 done
16034 ac_configure_extra_args=
16036 if $ac_cs_silent; then
16037 exec 6>/dev/null
16038 ac_configure_extra_args="$ac_configure_extra_args --silent"
16041 _ACEOF
16042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043 if \$ac_cs_recheck; then
16044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16045 shift
16046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16047 CONFIG_SHELL='$SHELL'
16048 export CONFIG_SHELL
16049 exec "\$@"
16052 _ACEOF
16053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16054 exec 5>>config.log
16056 echo
16057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16058 ## Running $as_me. ##
16059 _ASBOX
16060 $as_echo "$ac_log"
16061 } >&5
16063 _ACEOF
16064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066 # INIT-COMMANDS
16069 srcdir="$srcdir"
16070 host="$host"
16071 target="$target"
16072 with_multisubdir="$with_multisubdir"
16073 with_multisrctop="$with_multisrctop"
16074 with_target_subdir="$with_target_subdir"
16075 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16076 multi_basedir="$multi_basedir"
16077 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16078 CC="$CC"
16079 CXX="$CXX"
16080 GFORTRAN="$GFORTRAN"
16081 GCJ="$GCJ"
16082 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16085 # The HP-UX ksh and POSIX shell print the target directory to stdout
16086 # if CDPATH is set.
16087 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16089 sed_quote_subst='$sed_quote_subst'
16090 double_quote_subst='$double_quote_subst'
16091 delay_variable_subst='$delay_variable_subst'
16092 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16093 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16094 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16095 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16096 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16097 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16098 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16099 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16100 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16101 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16102 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16103 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16104 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16105 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16106 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16107 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16108 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16109 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16110 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16111 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16112 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16113 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16114 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16115 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16116 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16117 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16118 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16119 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16120 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16121 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16122 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16123 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16124 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16125 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16126 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16127 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16128 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16129 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16130 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16131 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16132 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16133 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16134 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16135 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16136 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16137 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16138 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16139 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16140 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"`'
16141 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16142 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16143 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16144 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16145 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16146 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16147 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16148 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16149 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16150 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16151 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16152 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16153 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16154 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16155 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16156 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16157 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16158 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16159 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16160 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16161 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16162 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16163 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16164 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16165 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16166 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16167 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16168 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16169 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16170 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16171 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16172 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16173 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16174 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16175 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16176 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16177 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16178 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16179 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16180 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16181 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16182 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16183 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16184 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16185 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16186 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16187 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16188 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16189 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16190 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16191 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16192 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16193 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16194 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16195 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16196 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16197 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16198 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16199 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16201 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16202 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16203 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16204 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16205 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16206 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16207 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16208 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16209 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16210 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16211 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16212 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16213 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16214 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16215 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16216 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16217 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16219 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16220 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16221 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16222 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16223 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16224 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16225 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16226 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16227 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16228 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16229 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16230 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16231 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16232 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16233 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16234 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16235 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16236 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16237 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16238 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16239 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16240 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16241 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16242 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16243 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16244 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16245 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16246 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16247 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16248 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16249 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16250 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16251 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16252 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16253 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16254 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16256 LTCC='$LTCC'
16257 LTCFLAGS='$LTCFLAGS'
16258 compiler='$compiler_DEFAULT'
16260 # A function that is used when there is no print builtin or printf.
16261 func_fallback_echo ()
16263 eval 'cat <<_LTECHO_EOF
16265 _LTECHO_EOF'
16268 # Quote evaled strings.
16269 for var in SED \
16270 GREP \
16271 EGREP \
16272 FGREP \
16273 SHELL \
16274 ECHO \
16275 LD \
16276 NM \
16277 LN_S \
16278 lt_SP2NL \
16279 lt_NL2SP \
16280 reload_flag \
16281 OBJDUMP \
16282 deplibs_check_method \
16283 file_magic_cmd \
16284 AR \
16285 AR_FLAGS \
16286 STRIP \
16287 RANLIB \
16288 CC \
16289 CFLAGS \
16290 compiler \
16291 lt_cv_sys_global_symbol_pipe \
16292 lt_cv_sys_global_symbol_to_cdecl \
16293 lt_cv_sys_global_symbol_to_c_name_address \
16294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16295 lt_prog_compiler_no_builtin_flag \
16296 lt_prog_compiler_wl \
16297 lt_prog_compiler_pic \
16298 lt_prog_compiler_static \
16299 lt_cv_prog_compiler_c_o \
16300 need_locks \
16301 DSYMUTIL \
16302 NMEDIT \
16303 LIPO \
16304 OTOOL \
16305 OTOOL64 \
16306 shrext_cmds \
16307 export_dynamic_flag_spec \
16308 whole_archive_flag_spec \
16309 compiler_needs_object \
16310 with_gnu_ld \
16311 allow_undefined_flag \
16312 no_undefined_flag \
16313 hardcode_libdir_flag_spec \
16314 hardcode_libdir_flag_spec_ld \
16315 hardcode_libdir_separator \
16316 fix_srcfile_path \
16317 exclude_expsyms \
16318 include_expsyms \
16319 file_list_spec \
16320 variables_saved_for_relink \
16321 libname_spec \
16322 library_names_spec \
16323 soname_spec \
16324 install_override_mode \
16325 finish_eval \
16326 old_striplib \
16327 striplib \
16328 LD_GO \
16329 reload_flag_GO \
16330 compiler_GO \
16331 lt_prog_compiler_no_builtin_flag_GO \
16332 lt_prog_compiler_wl_GO \
16333 lt_prog_compiler_pic_GO \
16334 lt_prog_compiler_static_GO \
16335 lt_cv_prog_compiler_c_o_GO \
16336 export_dynamic_flag_spec_GO \
16337 whole_archive_flag_spec_GO \
16338 compiler_needs_object_GO \
16339 with_gnu_ld_GO \
16340 allow_undefined_flag_GO \
16341 no_undefined_flag_GO \
16342 hardcode_libdir_flag_spec_GO \
16343 hardcode_libdir_flag_spec_ld_GO \
16344 hardcode_libdir_separator_GO \
16345 fix_srcfile_path_GO \
16346 exclude_expsyms_GO \
16347 include_expsyms_GO \
16348 file_list_spec_GO; do
16349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16350 *[\\\\\\\`\\"\\\$]*)
16351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16356 esac
16357 done
16359 # Double-quote double-evaled strings.
16360 for var in reload_cmds \
16361 old_postinstall_cmds \
16362 old_postuninstall_cmds \
16363 old_archive_cmds \
16364 extract_expsyms_cmds \
16365 old_archive_from_new_cmds \
16366 old_archive_from_expsyms_cmds \
16367 archive_cmds \
16368 archive_expsym_cmds \
16369 module_cmds \
16370 module_expsym_cmds \
16371 export_symbols_cmds \
16372 prelink_cmds \
16373 postinstall_cmds \
16374 postuninstall_cmds \
16375 finish_cmds \
16376 sys_lib_search_path_spec \
16377 sys_lib_dlsearch_path_spec \
16378 reload_cmds_GO \
16379 old_archive_cmds_GO \
16380 old_archive_from_new_cmds_GO \
16381 old_archive_from_expsyms_cmds_GO \
16382 archive_cmds_GO \
16383 archive_expsym_cmds_GO \
16384 module_cmds_GO \
16385 module_expsym_cmds_GO \
16386 export_symbols_cmds_GO \
16387 prelink_cmds_GO; do
16388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16389 *[\\\\\\\`\\"\\\$]*)
16390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16395 esac
16396 done
16398 ac_aux_dir='$ac_aux_dir'
16399 xsi_shell='$xsi_shell'
16400 lt_shell_append='$lt_shell_append'
16402 # See if we are running on zsh, and set the options which allow our
16403 # commands through without removal of \ escapes INIT.
16404 if test -n "\${ZSH_VERSION+set}" ; then
16405 setopt NO_GLOB_SUBST
16409 PACKAGE='$PACKAGE'
16410 VERSION='$VERSION'
16411 TIMESTAMP='$TIMESTAMP'
16412 RM='$RM'
16413 ofile='$ofile'
16420 # Variables needed in config.status (file generation) which aren't already
16421 # passed by autoconf.
16422 SUBDIRS="$SUBDIRS"
16425 _ACEOF
16427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 # Handling of arguments.
16430 for ac_config_target in $ac_config_targets
16432 case $ac_config_target in
16433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16434 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16435 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16436 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16437 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16438 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16439 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16441 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16442 esac
16443 done
16446 # If the user did not use the arguments to specify the items to instantiate,
16447 # then the envvar interface is used. Set only those that are not.
16448 # We use the long form for the default assignment because of an extremely
16449 # bizarre bug on SunOS 4.1.3.
16450 if $ac_need_defaults; then
16451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16456 # Have a temporary directory for convenience. Make it in the build tree
16457 # simply because there is no reason against having it here, and in addition,
16458 # creating and moving files from /tmp can sometimes cause problems.
16459 # Hook for its removal unless debugging.
16460 # Note that there is a small window in which the directory will not be cleaned:
16461 # after its creation but before its name has been assigned to `$tmp'.
16462 $debug ||
16464 tmp=
16465 trap 'exit_status=$?
16466 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16468 trap 'as_fn_exit 1' 1 2 13 15
16470 # Create a (secure) tmp directory for tmp files.
16473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16474 test -n "$tmp" && test -d "$tmp"
16475 } ||
16477 tmp=./conf$$-$RANDOM
16478 (umask 077 && mkdir "$tmp")
16479 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16481 # Set up the scripts for CONFIG_FILES section.
16482 # No need to generate them if there are no CONFIG_FILES.
16483 # This happens for instance with `./config.status config.h'.
16484 if test -n "$CONFIG_FILES"; then
16487 ac_cr=`echo X | tr X '\015'`
16488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16489 # But we know of no other shell where ac_cr would be empty at this
16490 # point, so we can use a bashism as a fallback.
16491 if test "x$ac_cr" = x; then
16492 eval ac_cr=\$\'\\r\'
16494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16496 ac_cs_awk_cr='\r'
16497 else
16498 ac_cs_awk_cr=$ac_cr
16501 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16502 _ACEOF
16506 echo "cat >conf$$subs.awk <<_ACEOF" &&
16507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16508 echo "_ACEOF"
16509 } >conf$$subs.sh ||
16510 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16512 ac_delim='%!_!# '
16513 for ac_last_try in false false false false false :; do
16514 . ./conf$$subs.sh ||
16515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16518 if test $ac_delim_n = $ac_delim_num; then
16519 break
16520 elif $ac_last_try; then
16521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16522 else
16523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16525 done
16526 rm -f conf$$subs.sh
16528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16529 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16530 _ACEOF
16531 sed -n '
16533 s/^/S["/; s/!.*/"]=/
16536 s/^[^!]*!//
16537 :repl
16538 t repl
16539 s/'"$ac_delim"'$//
16540 t delim
16543 s/\(.\{148\}\).*/\1/
16544 t more1
16545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16548 b repl
16549 :more1
16550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16553 s/.\{148\}//
16554 t nl
16555 :delim
16557 s/\(.\{148\}\).*/\1/
16558 t more2
16559 s/["\\]/\\&/g; s/^/"/; s/$/"/
16562 :more2
16563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16566 s/.\{148\}//
16567 t delim
16568 ' <conf$$subs.awk | sed '
16569 /^[^""]/{
16571 s/\n//
16573 ' >>$CONFIG_STATUS || ac_write_fail=1
16574 rm -f conf$$subs.awk
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 _ACAWK
16577 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16578 for (key in S) S_is_set[key] = 1
16579 FS = "\a"
16583 line = $ 0
16584 nfields = split(line, field, "@")
16585 substed = 0
16586 len = length(field[1])
16587 for (i = 2; i < nfields; i++) {
16588 key = field[i]
16589 keylen = length(key)
16590 if (S_is_set[key]) {
16591 value = S[key]
16592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16593 len += length(value) + length(field[++i])
16594 substed = 1
16595 } else
16596 len += 1 + keylen
16599 print line
16602 _ACAWK
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16607 else
16609 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16610 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16611 _ACEOF
16613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16615 # trailing colons and then remove the whole line if VPATH becomes empty
16616 # (actually we leave an empty line to preserve line numbers).
16617 if test "x$srcdir" = x.; then
16618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16619 s/:*\$(srcdir):*/:/
16620 s/:*\${srcdir}:*/:/
16621 s/:*@srcdir@:*/:/
16622 s/^\([^=]*=[ ]*\):*/\1/
16623 s/:*$//
16624 s/^[^=]*=[ ]*$//
16628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16629 fi # test -n "$CONFIG_FILES"
16631 # Set up the scripts for CONFIG_HEADERS section.
16632 # No need to generate them if there are no CONFIG_HEADERS.
16633 # This happens for instance with `./config.status Makefile'.
16634 if test -n "$CONFIG_HEADERS"; then
16635 cat >"$tmp/defines.awk" <<\_ACAWK ||
16636 BEGIN {
16637 _ACEOF
16639 # Transform confdefs.h into an awk script `defines.awk', embedded as
16640 # here-document in config.status, that substitutes the proper values into
16641 # config.h.in to produce config.h.
16643 # Create a delimiter string that does not exist in confdefs.h, to ease
16644 # handling of long lines.
16645 ac_delim='%!_!# '
16646 for ac_last_try in false false :; do
16647 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16648 if test -z "$ac_t"; then
16649 break
16650 elif $ac_last_try; then
16651 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16652 else
16653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16655 done
16657 # For the awk script, D is an array of macro values keyed by name,
16658 # likewise P contains macro parameters if any. Preserve backslash
16659 # newline sequences.
16661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16662 sed -n '
16663 s/.\{148\}/&'"$ac_delim"'/g
16664 t rset
16665 :rset
16666 s/^[ ]*#[ ]*define[ ][ ]*/ /
16667 t def
16669 :def
16670 s/\\$//
16671 t bsnl
16672 s/["\\]/\\&/g
16673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16674 D["\1"]=" \3"/p
16675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16677 :bsnl
16678 s/["\\]/\\&/g
16679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16680 D["\1"]=" \3\\\\\\n"\\/p
16681 t cont
16682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16683 t cont
16685 :cont
16687 s/.\{148\}/&'"$ac_delim"'/g
16688 t clear
16689 :clear
16690 s/\\$//
16691 t bsnlc
16692 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16694 :bsnlc
16695 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16696 b cont
16697 ' <confdefs.h | sed '
16698 s/'"$ac_delim"'/"\\\
16699 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 for (key in D) D_is_set[key] = 1
16703 FS = "\a"
16705 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16706 line = \$ 0
16707 split(line, arg, " ")
16708 if (arg[1] == "#") {
16709 defundef = arg[2]
16710 mac1 = arg[3]
16711 } else {
16712 defundef = substr(arg[1], 2)
16713 mac1 = arg[2]
16715 split(mac1, mac2, "(") #)
16716 macro = mac2[1]
16717 prefix = substr(line, 1, index(line, defundef) - 1)
16718 if (D_is_set[macro]) {
16719 # Preserve the white space surrounding the "#".
16720 print prefix "define", macro P[macro] D[macro]
16721 next
16722 } else {
16723 # Replace #undef with comments. This is necessary, for example,
16724 # in the case of _POSIX_SOURCE, which is predefined and required
16725 # on some systems where configure will not decide to define it.
16726 if (defundef == "undef") {
16727 print "/*", prefix defundef, macro, "*/"
16728 next
16732 { print }
16733 _ACAWK
16734 _ACEOF
16735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16736 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16737 fi # test -n "$CONFIG_HEADERS"
16740 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16741 shift
16742 for ac_tag
16744 case $ac_tag in
16745 :[FHLC]) ac_mode=$ac_tag; continue;;
16746 esac
16747 case $ac_mode$ac_tag in
16748 :[FHL]*:*);;
16749 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16750 :[FH]-) ac_tag=-:-;;
16751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16752 esac
16753 ac_save_IFS=$IFS
16754 IFS=:
16755 set x $ac_tag
16756 IFS=$ac_save_IFS
16757 shift
16758 ac_file=$1
16759 shift
16761 case $ac_mode in
16762 :L) ac_source=$1;;
16763 :[FH])
16764 ac_file_inputs=
16765 for ac_f
16767 case $ac_f in
16768 -) ac_f="$tmp/stdin";;
16769 *) # Look for the file first in the build tree, then in the source tree
16770 # (if the path is not absolute). The absolute path cannot be DOS-style,
16771 # because $ac_f cannot contain `:'.
16772 test -f "$ac_f" ||
16773 case $ac_f in
16774 [\\/$]*) false;;
16775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16776 esac ||
16777 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16778 esac
16779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16780 as_fn_append ac_file_inputs " '$ac_f'"
16781 done
16783 # Let's still pretend it is `configure' which instantiates (i.e., don't
16784 # use $as_me), people would be surprised to read:
16785 # /* config.h. Generated by config.status. */
16786 configure_input='Generated from '`
16787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16788 `' by configure.'
16789 if test x"$ac_file" != x-; then
16790 configure_input="$ac_file. $configure_input"
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16792 $as_echo "$as_me: creating $ac_file" >&6;}
16794 # Neutralize special characters interpreted by sed in replacement strings.
16795 case $configure_input in #(
16796 *\&* | *\|* | *\\* )
16797 ac_sed_conf_input=`$as_echo "$configure_input" |
16798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16799 *) ac_sed_conf_input=$configure_input;;
16800 esac
16802 case $ac_tag in
16803 *:-:* | *:-) cat >"$tmp/stdin" \
16804 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16805 esac
16807 esac
16809 ac_dir=`$as_dirname -- "$ac_file" ||
16810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16811 X"$ac_file" : 'X\(//\)[^/]' \| \
16812 X"$ac_file" : 'X\(//\)$' \| \
16813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16814 $as_echo X"$ac_file" |
16815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16816 s//\1/
16819 /^X\(\/\/\)[^/].*/{
16820 s//\1/
16823 /^X\(\/\/\)$/{
16824 s//\1/
16827 /^X\(\/\).*/{
16828 s//\1/
16831 s/.*/./; q'`
16832 as_dir="$ac_dir"; as_fn_mkdir_p
16833 ac_builddir=.
16835 case "$ac_dir" in
16836 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16839 # A ".." for each directory in $ac_dir_suffix.
16840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16841 case $ac_top_builddir_sub in
16842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16844 esac ;;
16845 esac
16846 ac_abs_top_builddir=$ac_pwd
16847 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16848 # for backward compatibility:
16849 ac_top_builddir=$ac_top_build_prefix
16851 case $srcdir in
16852 .) # We are building in place.
16853 ac_srcdir=.
16854 ac_top_srcdir=$ac_top_builddir_sub
16855 ac_abs_top_srcdir=$ac_pwd ;;
16856 [\\/]* | ?:[\\/]* ) # Absolute name.
16857 ac_srcdir=$srcdir$ac_dir_suffix;
16858 ac_top_srcdir=$srcdir
16859 ac_abs_top_srcdir=$srcdir ;;
16860 *) # Relative name.
16861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16862 ac_top_srcdir=$ac_top_build_prefix$srcdir
16863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16864 esac
16865 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16868 case $ac_mode in
16871 # CONFIG_FILE
16874 case $INSTALL in
16875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16877 esac
16878 ac_MKDIR_P=$MKDIR_P
16879 case $MKDIR_P in
16880 [\\/$]* | ?:[\\/]* ) ;;
16881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16882 esac
16883 _ACEOF
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886 # If the template does not know about datarootdir, expand it.
16887 # FIXME: This hack should be removed a few years after 2.60.
16888 ac_datarootdir_hack=; ac_datarootdir_seen=
16889 ac_sed_dataroot='
16890 /datarootdir/ {
16894 /@datadir@/p
16895 /@docdir@/p
16896 /@infodir@/p
16897 /@localedir@/p
16898 /@mandir@/p'
16899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16900 *datarootdir*) ac_datarootdir_seen=yes;;
16901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16904 _ACEOF
16905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 ac_datarootdir_hack='
16907 s&@datadir@&$datadir&g
16908 s&@docdir@&$docdir&g
16909 s&@infodir@&$infodir&g
16910 s&@localedir@&$localedir&g
16911 s&@mandir@&$mandir&g
16912 s&\\\${datarootdir}&$datarootdir&g' ;;
16913 esac
16914 _ACEOF
16916 # Neutralize VPATH when `$srcdir' = `.'.
16917 # Shell code in configure.ac might set extrasub.
16918 # FIXME: do we really want to maintain this feature?
16919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16920 ac_sed_extra="$ac_vpsub
16921 $extrasub
16922 _ACEOF
16923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16926 s|@configure_input@|$ac_sed_conf_input|;t t
16927 s&@top_builddir@&$ac_top_builddir_sub&;t t
16928 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16929 s&@srcdir@&$ac_srcdir&;t t
16930 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16931 s&@top_srcdir@&$ac_top_srcdir&;t t
16932 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16933 s&@builddir@&$ac_builddir&;t t
16934 s&@abs_builddir@&$ac_abs_builddir&;t t
16935 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16936 s&@INSTALL@&$ac_INSTALL&;t t
16937 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16938 $ac_datarootdir_hack
16940 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16941 || as_fn_error "could not create $ac_file" "$LINENO" 5
16943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16944 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16947 which seems to be undefined. Please make sure it is defined." >&5
16948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16949 which seems to be undefined. Please make sure it is defined." >&2;}
16951 rm -f "$tmp/stdin"
16952 case $ac_file in
16953 -) cat "$tmp/out" && rm -f "$tmp/out";;
16954 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16955 esac \
16956 || as_fn_error "could not create $ac_file" "$LINENO" 5
16960 # CONFIG_HEADER
16962 if test x"$ac_file" != x-; then
16964 $as_echo "/* $configure_input */" \
16965 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16966 } >"$tmp/config.h" \
16967 || as_fn_error "could not create $ac_file" "$LINENO" 5
16968 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16971 else
16972 rm -f "$ac_file"
16973 mv "$tmp/config.h" "$ac_file" \
16974 || as_fn_error "could not create $ac_file" "$LINENO" 5
16976 else
16977 $as_echo "/* $configure_input */" \
16978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16979 || as_fn_error "could not create -" "$LINENO" 5
16981 # Compute "$ac_file"'s index in $config_headers.
16982 _am_arg="$ac_file"
16983 _am_stamp_count=1
16984 for _am_header in $config_headers :; do
16985 case $_am_header in
16986 $_am_arg | $_am_arg:* )
16987 break ;;
16989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16990 esac
16991 done
16992 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16993 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16994 X"$_am_arg" : 'X\(//\)[^/]' \| \
16995 X"$_am_arg" : 'X\(//\)$' \| \
16996 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16997 $as_echo X"$_am_arg" |
16998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16999 s//\1/
17002 /^X\(\/\/\)[^/].*/{
17003 s//\1/
17006 /^X\(\/\/\)$/{
17007 s//\1/
17010 /^X\(\/\).*/{
17011 s//\1/
17014 s/.*/./; q'`/stamp-h$_am_stamp_count
17017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17018 $as_echo "$as_me: executing $ac_file commands" >&6;}
17020 esac
17023 case $ac_file$ac_mode in
17024 "default-1":C)
17025 # Only add multilib support code if we just rebuilt the top-level
17026 # Makefile.
17027 case " $CONFIG_FILES " in
17028 *" Makefile "*)
17029 ac_file=Makefile . ${multi_basedir}/config-ml.in
17031 esac ;;
17032 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17033 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17034 # are listed without --file. Let's play safe and only enable the eval
17035 # if we detect the quoting.
17036 case $CONFIG_FILES in
17037 *\'*) eval set x "$CONFIG_FILES" ;;
17038 *) set x $CONFIG_FILES ;;
17039 esac
17040 shift
17041 for mf
17043 # Strip MF so we end up with the name of the file.
17044 mf=`echo "$mf" | sed -e 's/:.*$//'`
17045 # Check whether this is an Automake generated Makefile or not.
17046 # We used to match only the files named `Makefile.in', but
17047 # some people rename them; so instead we look at the file content.
17048 # Grep'ing the first line is not enough: some people post-process
17049 # each Makefile.in and add a new line on top of each file to say so.
17050 # Grep'ing the whole file is not good either: AIX grep has a line
17051 # limit of 2048, but all sed's we know have understand at least 4000.
17052 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17053 dirpart=`$as_dirname -- "$mf" ||
17054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17055 X"$mf" : 'X\(//\)[^/]' \| \
17056 X"$mf" : 'X\(//\)$' \| \
17057 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17058 $as_echo X"$mf" |
17059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17060 s//\1/
17063 /^X\(\/\/\)[^/].*/{
17064 s//\1/
17067 /^X\(\/\/\)$/{
17068 s//\1/
17071 /^X\(\/\).*/{
17072 s//\1/
17075 s/.*/./; q'`
17076 else
17077 continue
17079 # Extract the definition of DEPDIR, am__include, and am__quote
17080 # from the Makefile without running `make'.
17081 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17082 test -z "$DEPDIR" && continue
17083 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17084 test -z "am__include" && continue
17085 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17086 # When using ansi2knr, U may be empty or an underscore; expand it
17087 U=`sed -n 's/^U = //p' < "$mf"`
17088 # Find all dependency output files, they are included files with
17089 # $(DEPDIR) in their names. We invoke sed twice because it is the
17090 # simplest approach to changing $(DEPDIR) to its actual value in the
17091 # expansion.
17092 for file in `sed -n "
17093 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17094 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17095 # Make sure the directory exists.
17096 test -f "$dirpart/$file" && continue
17097 fdir=`$as_dirname -- "$file" ||
17098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17099 X"$file" : 'X\(//\)[^/]' \| \
17100 X"$file" : 'X\(//\)$' \| \
17101 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17102 $as_echo X"$file" |
17103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17104 s//\1/
17107 /^X\(\/\/\)[^/].*/{
17108 s//\1/
17111 /^X\(\/\/\)$/{
17112 s//\1/
17115 /^X\(\/\).*/{
17116 s//\1/
17119 s/.*/./; q'`
17120 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17121 # echo "creating $dirpart/$file"
17122 echo '# dummy' > "$dirpart/$file"
17123 done
17124 done
17127 "libtool":C)
17129 # See if we are running on zsh, and set the options which allow our
17130 # commands through without removal of \ escapes.
17131 if test -n "${ZSH_VERSION+set}" ; then
17132 setopt NO_GLOB_SUBST
17135 cfgfile="${ofile}T"
17136 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17137 $RM "$cfgfile"
17139 cat <<_LT_EOF >> "$cfgfile"
17140 #! $SHELL
17142 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17143 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17148 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17149 # Written by Gordon Matzigkeit, 1996
17151 # This file is part of GNU Libtool.
17153 # GNU Libtool is free software; you can redistribute it and/or
17154 # modify it under the terms of the GNU General Public License as
17155 # published by the Free Software Foundation; either version 2 of
17156 # the License, or (at your option) any later version.
17158 # As a special exception to the GNU General Public License,
17159 # if you distribute this file as part of a program or library that
17160 # is built using GNU Libtool, you may include this file under the
17161 # same distribution terms that you use for the rest of that program.
17163 # GNU Libtool is distributed in the hope that it will be useful,
17164 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17166 # GNU General Public License for more details.
17168 # You should have received a copy of the GNU General Public License
17169 # along with GNU Libtool; see the file COPYING. If not, a copy
17170 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17171 # obtained by writing to the Free Software Foundation, Inc.,
17172 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17175 # The names of the tagged configurations supported by this script.
17176 available_tags="GO "
17178 # ### BEGIN LIBTOOL CONFIG
17180 # A sed program that does not truncate output.
17181 SED=$lt_SED
17183 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17184 Xsed="\$SED -e 1s/^X//"
17186 # A grep program that handles long lines.
17187 GREP=$lt_GREP
17189 # An ERE matcher.
17190 EGREP=$lt_EGREP
17192 # A literal string matcher.
17193 FGREP=$lt_FGREP
17195 # Shell to use when invoking shell scripts.
17196 SHELL=$lt_SHELL
17198 # An echo program that protects backslashes.
17199 ECHO=$lt_ECHO
17201 # Which release of libtool.m4 was used?
17202 macro_version=$macro_version
17203 macro_revision=$macro_revision
17205 # Whether or not to build shared libraries.
17206 build_libtool_libs=$enable_shared
17208 # Whether or not to build static libraries.
17209 build_old_libs=$enable_static
17211 # What type of objects to build.
17212 pic_mode=$pic_mode
17214 # Whether or not to optimize for fast installation.
17215 fast_install=$enable_fast_install
17217 # The host system.
17218 host_alias=$host_alias
17219 host=$host
17220 host_os=$host_os
17222 # The build system.
17223 build_alias=$build_alias
17224 build=$build
17225 build_os=$build_os
17227 # A BSD- or MS-compatible name lister.
17228 NM=$lt_NM
17230 # Whether we need soft or hard links.
17231 LN_S=$lt_LN_S
17233 # What is the maximum length of a command?
17234 max_cmd_len=$max_cmd_len
17236 # Object file suffix (normally "o").
17237 objext=$ac_objext
17239 # Executable file suffix (normally "").
17240 exeext=$exeext
17242 # whether the shell understands "unset".
17243 lt_unset=$lt_unset
17245 # turn spaces into newlines.
17246 SP2NL=$lt_lt_SP2NL
17248 # turn newlines into spaces.
17249 NL2SP=$lt_lt_NL2SP
17251 # An object symbol dumper.
17252 OBJDUMP=$lt_OBJDUMP
17254 # Method to check whether dependent libraries are shared objects.
17255 deplibs_check_method=$lt_deplibs_check_method
17257 # Command to use when deplibs_check_method == "file_magic".
17258 file_magic_cmd=$lt_file_magic_cmd
17260 # The archiver.
17261 AR=$lt_AR
17262 AR_FLAGS=$lt_AR_FLAGS
17264 # A symbol stripping program.
17265 STRIP=$lt_STRIP
17267 # Commands used to install an old-style archive.
17268 RANLIB=$lt_RANLIB
17269 old_postinstall_cmds=$lt_old_postinstall_cmds
17270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17272 # Whether to use a lock for old archive extraction.
17273 lock_old_archive_extraction=$lock_old_archive_extraction
17275 # A C compiler.
17276 LTCC=$lt_CC
17278 # LTCC compiler flags.
17279 LTCFLAGS=$lt_CFLAGS
17281 # Take the output of nm and produce a listing of raw symbols and C names.
17282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17284 # Transform the output of nm in a proper C declaration.
17285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17287 # Transform the output of nm in a C name address pair.
17288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17290 # Transform the output of nm in a C name address pair when lib prefix is needed.
17291 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17293 # The name of the directory that contains temporary libtool files.
17294 objdir=$objdir
17296 # Used to examine libraries when file_magic_cmd begins with "file".
17297 MAGIC_CMD=$MAGIC_CMD
17299 # Must we lock files when doing compilation?
17300 need_locks=$lt_need_locks
17302 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17303 DSYMUTIL=$lt_DSYMUTIL
17305 # Tool to change global to local symbols on Mac OS X.
17306 NMEDIT=$lt_NMEDIT
17308 # Tool to manipulate fat objects and archives on Mac OS X.
17309 LIPO=$lt_LIPO
17311 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17312 OTOOL=$lt_OTOOL
17314 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17315 OTOOL64=$lt_OTOOL64
17317 # Old archive suffix (normally "a").
17318 libext=$libext
17320 # Shared library suffix (normally ".so").
17321 shrext_cmds=$lt_shrext_cmds
17323 # The commands to extract the exported symbol list from a shared archive.
17324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17326 # Variables whose values should be saved in libtool wrapper scripts and
17327 # restored at link time.
17328 variables_saved_for_relink=$lt_variables_saved_for_relink
17330 # Do we need the "lib" prefix for modules?
17331 need_lib_prefix=$need_lib_prefix
17333 # Do we need a version for libraries?
17334 need_version=$need_version
17336 # Library versioning type.
17337 version_type=$version_type
17339 # Shared library runtime path variable.
17340 runpath_var=$runpath_var
17342 # Shared library path variable.
17343 shlibpath_var=$shlibpath_var
17345 # Is shlibpath searched before the hard-coded library search path?
17346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17348 # Format of library name prefix.
17349 libname_spec=$lt_libname_spec
17351 # List of archive names. First name is the real one, the rest are links.
17352 # The last name is the one that the linker finds with -lNAME
17353 library_names_spec=$lt_library_names_spec
17355 # The coded name of the library, if different from the real name.
17356 soname_spec=$lt_soname_spec
17358 # Permission mode override for installation of shared libraries.
17359 install_override_mode=$lt_install_override_mode
17361 # Command to use after installation of a shared archive.
17362 postinstall_cmds=$lt_postinstall_cmds
17364 # Command to use after uninstallation of a shared archive.
17365 postuninstall_cmds=$lt_postuninstall_cmds
17367 # Commands used to finish a libtool library installation in a directory.
17368 finish_cmds=$lt_finish_cmds
17370 # As "finish_cmds", except a single script fragment to be evaled but
17371 # not shown.
17372 finish_eval=$lt_finish_eval
17374 # Whether we should hardcode library paths into libraries.
17375 hardcode_into_libs=$hardcode_into_libs
17377 # Compile-time system search path for libraries.
17378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17380 # Run-time system search path for libraries.
17381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17383 # Whether dlopen is supported.
17384 dlopen_support=$enable_dlopen
17386 # Whether dlopen of programs is supported.
17387 dlopen_self=$enable_dlopen_self
17389 # Whether dlopen of statically linked programs is supported.
17390 dlopen_self_static=$enable_dlopen_self_static
17392 # Commands to strip libraries.
17393 old_striplib=$lt_old_striplib
17394 striplib=$lt_striplib
17397 # The linker used to build libraries.
17398 LD=$lt_LD
17400 # How to create reloadable object files.
17401 reload_flag=$lt_reload_flag
17402 reload_cmds=$lt_reload_cmds
17404 # Commands used to build an old-style archive.
17405 old_archive_cmds=$lt_old_archive_cmds
17407 # A language specific compiler.
17408 CC=$lt_compiler
17410 # Is the compiler the GNU compiler?
17411 with_gcc=$GCC
17413 # Compiler flag to turn off builtin functions.
17414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17416 # How to pass a linker flag through the compiler.
17417 wl=$lt_lt_prog_compiler_wl
17419 # Additional compiler flags for building library objects.
17420 pic_flag=$lt_lt_prog_compiler_pic
17422 # Compiler flag to prevent dynamic linking.
17423 link_static_flag=$lt_lt_prog_compiler_static
17425 # Does compiler simultaneously support -c and -o options?
17426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17428 # Whether or not to add -lc for building shared libraries.
17429 build_libtool_need_lc=$archive_cmds_need_lc
17431 # Whether or not to disallow shared libs when runtime libs are static.
17432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17434 # Compiler flag to allow reflexive dlopens.
17435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17437 # Compiler flag to generate shared objects directly from archives.
17438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17440 # Whether the compiler copes with passing no objects directly.
17441 compiler_needs_object=$lt_compiler_needs_object
17443 # Create an old-style archive from a shared archive.
17444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17446 # Create a temporary old-style archive to link instead of a shared archive.
17447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17449 # Commands used to build a shared archive.
17450 archive_cmds=$lt_archive_cmds
17451 archive_expsym_cmds=$lt_archive_expsym_cmds
17453 # Commands used to build a loadable module if different from building
17454 # a shared archive.
17455 module_cmds=$lt_module_cmds
17456 module_expsym_cmds=$lt_module_expsym_cmds
17458 # Whether we are building with GNU ld or not.
17459 with_gnu_ld=$lt_with_gnu_ld
17461 # Flag that allows shared libraries with undefined symbols to be built.
17462 allow_undefined_flag=$lt_allow_undefined_flag
17464 # Flag that enforces no undefined symbols.
17465 no_undefined_flag=$lt_no_undefined_flag
17467 # Flag to hardcode \$libdir into a binary during linking.
17468 # This must work even if \$libdir does not exist
17469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17471 # If ld is used when linking, flag to hardcode \$libdir into a binary
17472 # during linking. This must work even if \$libdir does not exist.
17473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17475 # Whether we need a single "-rpath" flag with a separated argument.
17476 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17479 # DIR into the resulting binary.
17480 hardcode_direct=$hardcode_direct
17482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17483 # DIR into the resulting binary and the resulting library dependency is
17484 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17485 # library is relocated.
17486 hardcode_direct_absolute=$hardcode_direct_absolute
17488 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17489 # into the resulting binary.
17490 hardcode_minus_L=$hardcode_minus_L
17492 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17493 # into the resulting binary.
17494 hardcode_shlibpath_var=$hardcode_shlibpath_var
17496 # Set to "yes" if building a shared library automatically hardcodes DIR
17497 # into the library and all subsequent libraries and executables linked
17498 # against it.
17499 hardcode_automatic=$hardcode_automatic
17501 # Set to yes if linker adds runtime paths of dependent libraries
17502 # to runtime path list.
17503 inherit_rpath=$inherit_rpath
17505 # Whether libtool must link a program against all its dependency libraries.
17506 link_all_deplibs=$link_all_deplibs
17508 # Fix the shell variable \$srcfile for the compiler.
17509 fix_srcfile_path=$lt_fix_srcfile_path
17511 # Set to "yes" if exported symbols are required.
17512 always_export_symbols=$always_export_symbols
17514 # The commands to list exported symbols.
17515 export_symbols_cmds=$lt_export_symbols_cmds
17517 # Symbols that should not be listed in the preloaded symbols.
17518 exclude_expsyms=$lt_exclude_expsyms
17520 # Symbols that must always be exported.
17521 include_expsyms=$lt_include_expsyms
17523 # Commands necessary for linking programs (against libraries) with templates.
17524 prelink_cmds=$lt_prelink_cmds
17526 # Specify filename containing input files.
17527 file_list_spec=$lt_file_list_spec
17529 # How to hardcode a shared library path into an executable.
17530 hardcode_action=$hardcode_action
17532 # ### END LIBTOOL CONFIG
17534 _LT_EOF
17536 case $host_os in
17537 aix3*)
17538 cat <<\_LT_EOF >> "$cfgfile"
17539 # AIX sometimes has problems with the GCC collect2 program. For some
17540 # reason, if we set the COLLECT_NAMES environment variable, the problems
17541 # vanish in a puff of smoke.
17542 if test "X${COLLECT_NAMES+set}" != Xset; then
17543 COLLECT_NAMES=
17544 export COLLECT_NAMES
17546 _LT_EOF
17548 esac
17551 ltmain="$ac_aux_dir/ltmain.sh"
17554 # We use sed instead of cat because bash on DJGPP gets confused if
17555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17556 # text mode, it properly converts lines to CR/LF. This bash problem
17557 # is reportedly fixed, but why not run on old versions too?
17558 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17559 || (rm -f "$cfgfile"; exit 1)
17561 case $xsi_shell in
17562 yes)
17563 cat << \_LT_EOF >> "$cfgfile"
17565 # func_dirname file append nondir_replacement
17566 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17567 # otherwise set result to NONDIR_REPLACEMENT.
17568 func_dirname ()
17570 case ${1} in
17571 */*) func_dirname_result="${1%/*}${2}" ;;
17572 * ) func_dirname_result="${3}" ;;
17573 esac
17576 # func_basename file
17577 func_basename ()
17579 func_basename_result="${1##*/}"
17582 # func_dirname_and_basename file append nondir_replacement
17583 # perform func_basename and func_dirname in a single function
17584 # call:
17585 # dirname: Compute the dirname of FILE. If nonempty,
17586 # add APPEND to the result, otherwise set result
17587 # to NONDIR_REPLACEMENT.
17588 # value returned in "$func_dirname_result"
17589 # basename: Compute filename of FILE.
17590 # value retuned in "$func_basename_result"
17591 # Implementation must be kept synchronized with func_dirname
17592 # and func_basename. For efficiency, we do not delegate to
17593 # those functions but instead duplicate the functionality here.
17594 func_dirname_and_basename ()
17596 case ${1} in
17597 */*) func_dirname_result="${1%/*}${2}" ;;
17598 * ) func_dirname_result="${3}" ;;
17599 esac
17600 func_basename_result="${1##*/}"
17603 # func_stripname prefix suffix name
17604 # strip PREFIX and SUFFIX off of NAME.
17605 # PREFIX and SUFFIX must not contain globbing or regex special
17606 # characters, hashes, percent signs, but SUFFIX may contain a leading
17607 # dot (in which case that matches only a dot).
17608 func_stripname ()
17610 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17611 # positional parameters, so assign one to ordinary parameter first.
17612 func_stripname_result=${3}
17613 func_stripname_result=${func_stripname_result#"${1}"}
17614 func_stripname_result=${func_stripname_result%"${2}"}
17617 # func_opt_split
17618 func_opt_split ()
17620 func_opt_split_opt=${1%%=*}
17621 func_opt_split_arg=${1#*=}
17624 # func_lo2o object
17625 func_lo2o ()
17627 case ${1} in
17628 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17629 *) func_lo2o_result=${1} ;;
17630 esac
17633 # func_xform libobj-or-source
17634 func_xform ()
17636 func_xform_result=${1%.*}.lo
17639 # func_arith arithmetic-term...
17640 func_arith ()
17642 func_arith_result=$(( $* ))
17645 # func_len string
17646 # STRING may not start with a hyphen.
17647 func_len ()
17649 func_len_result=${#1}
17652 _LT_EOF
17654 *) # Bourne compatible functions.
17655 cat << \_LT_EOF >> "$cfgfile"
17657 # func_dirname file append nondir_replacement
17658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17659 # otherwise set result to NONDIR_REPLACEMENT.
17660 func_dirname ()
17662 # Extract subdirectory from the argument.
17663 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17664 if test "X$func_dirname_result" = "X${1}"; then
17665 func_dirname_result="${3}"
17666 else
17667 func_dirname_result="$func_dirname_result${2}"
17671 # func_basename file
17672 func_basename ()
17674 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17678 # func_stripname prefix suffix name
17679 # strip PREFIX and SUFFIX off of NAME.
17680 # PREFIX and SUFFIX must not contain globbing or regex special
17681 # characters, hashes, percent signs, but SUFFIX may contain a leading
17682 # dot (in which case that matches only a dot).
17683 # func_strip_suffix prefix name
17684 func_stripname ()
17686 case ${2} in
17687 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17688 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17689 esac
17692 # sed scripts:
17693 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17694 my_sed_long_arg='1s/^-[^=]*=//'
17696 # func_opt_split
17697 func_opt_split ()
17699 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17700 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17703 # func_lo2o object
17704 func_lo2o ()
17706 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17709 # func_xform libobj-or-source
17710 func_xform ()
17712 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17715 # func_arith arithmetic-term...
17716 func_arith ()
17718 func_arith_result=`expr "$@"`
17721 # func_len string
17722 # STRING may not start with a hyphen.
17723 func_len ()
17725 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17728 _LT_EOF
17729 esac
17731 case $lt_shell_append in
17732 yes)
17733 cat << \_LT_EOF >> "$cfgfile"
17735 # func_append var value
17736 # Append VALUE to the end of shell variable VAR.
17737 func_append ()
17739 eval "$1+=\$2"
17741 _LT_EOF
17744 cat << \_LT_EOF >> "$cfgfile"
17746 # func_append var value
17747 # Append VALUE to the end of shell variable VAR.
17748 func_append ()
17750 eval "$1=\$$1\$2"
17753 _LT_EOF
17755 esac
17758 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17759 || (rm -f "$cfgfile"; exit 1)
17761 mv -f "$cfgfile" "$ofile" ||
17762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17763 chmod +x "$ofile"
17766 cat <<_LT_EOF >> "$ofile"
17768 # ### BEGIN LIBTOOL TAG CONFIG: GO
17770 # The linker used to build libraries.
17771 LD=$lt_LD_GO
17773 # How to create reloadable object files.
17774 reload_flag=$lt_reload_flag_GO
17775 reload_cmds=$lt_reload_cmds_GO
17777 # Commands used to build an old-style archive.
17778 old_archive_cmds=$lt_old_archive_cmds_GO
17780 # A language specific compiler.
17781 CC=$lt_compiler_GO
17783 # Is the compiler the GNU compiler?
17784 with_gcc=$GCC_GO
17786 # Compiler flag to turn off builtin functions.
17787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17789 # How to pass a linker flag through the compiler.
17790 wl=$lt_lt_prog_compiler_wl_GO
17792 # Additional compiler flags for building library objects.
17793 pic_flag=$lt_lt_prog_compiler_pic_GO
17795 # Compiler flag to prevent dynamic linking.
17796 link_static_flag=$lt_lt_prog_compiler_static_GO
17798 # Does compiler simultaneously support -c and -o options?
17799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17801 # Whether or not to add -lc for building shared libraries.
17802 build_libtool_need_lc=$archive_cmds_need_lc_GO
17804 # Whether or not to disallow shared libs when runtime libs are static.
17805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17807 # Compiler flag to allow reflexive dlopens.
17808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17810 # Compiler flag to generate shared objects directly from archives.
17811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17813 # Whether the compiler copes with passing no objects directly.
17814 compiler_needs_object=$lt_compiler_needs_object_GO
17816 # Create an old-style archive from a shared archive.
17817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17819 # Create a temporary old-style archive to link instead of a shared archive.
17820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17822 # Commands used to build a shared archive.
17823 archive_cmds=$lt_archive_cmds_GO
17824 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17826 # Commands used to build a loadable module if different from building
17827 # a shared archive.
17828 module_cmds=$lt_module_cmds_GO
17829 module_expsym_cmds=$lt_module_expsym_cmds_GO
17831 # Whether we are building with GNU ld or not.
17832 with_gnu_ld=$lt_with_gnu_ld_GO
17834 # Flag that allows shared libraries with undefined symbols to be built.
17835 allow_undefined_flag=$lt_allow_undefined_flag_GO
17837 # Flag that enforces no undefined symbols.
17838 no_undefined_flag=$lt_no_undefined_flag_GO
17840 # Flag to hardcode \$libdir into a binary during linking.
17841 # This must work even if \$libdir does not exist
17842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17844 # If ld is used when linking, flag to hardcode \$libdir into a binary
17845 # during linking. This must work even if \$libdir does not exist.
17846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17848 # Whether we need a single "-rpath" flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17852 # DIR into the resulting binary.
17853 hardcode_direct=$hardcode_direct_GO
17855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856 # DIR into the resulting binary and the resulting library dependency is
17857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17858 # library is relocated.
17859 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17862 # into the resulting binary.
17863 hardcode_minus_L=$hardcode_minus_L_GO
17865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17866 # into the resulting binary.
17867 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17869 # Set to "yes" if building a shared library automatically hardcodes DIR
17870 # into the library and all subsequent libraries and executables linked
17871 # against it.
17872 hardcode_automatic=$hardcode_automatic_GO
17874 # Set to yes if linker adds runtime paths of dependent libraries
17875 # to runtime path list.
17876 inherit_rpath=$inherit_rpath_GO
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_GO
17881 # Fix the shell variable \$srcfile for the compiler.
17882 fix_srcfile_path=$lt_fix_srcfile_path_GO
17884 # Set to "yes" if exported symbols are required.
17885 always_export_symbols=$always_export_symbols_GO
17887 # The commands to list exported symbols.
17888 export_symbols_cmds=$lt_export_symbols_cmds_GO
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_GO
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_GO
17896 # Commands necessary for linking programs (against libraries) with templates.
17897 prelink_cmds=$lt_prelink_cmds_GO
17899 # Specify filename containing input files.
17900 file_list_spec=$lt_file_list_spec_GO
17902 # How to hardcode a shared library path into an executable.
17903 hardcode_action=$hardcode_action_GO
17905 # ### END LIBTOOL TAG CONFIG: GO
17906 _LT_EOF
17909 "default":C) if test -n "$CONFIG_FILES"; then
17910 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17911 # that multilib installs will end up installed in the correct place.
17912 # The testsuite needs it for multilib-aware ABI baseline files.
17913 # To work around this not being passed down from config-ml.in ->
17914 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17915 # append it here. Only modify Makefiles that have just been created.
17917 # Also, get rid of this simulated-VPATH thing that automake does.
17918 cat > vpsed << \_EOF
17919 s!`test -f '$<' || echo '$(srcdir)/'`!!
17920 _EOF
17921 for i in $SUBDIRS; do
17922 case $CONFIG_FILES in
17923 *${i}/Makefile*)
17924 #echo "Adding MULTISUBDIR to $i/Makefile"
17925 sed -f vpsed $i/Makefile > tmp
17926 grep '^MULTISUBDIR =' Makefile >> tmp
17927 mv tmp $i/Makefile
17929 esac
17930 done
17931 rm vpsed
17935 esac
17936 done # for ac_tag
17939 as_fn_exit 0
17940 _ACEOF
17941 ac_clean_files=$ac_clean_files_save
17943 test $ac_write_fail = 0 ||
17944 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17947 # configure is writing to config.log, and then calls config.status.
17948 # config.status does its own redirection, appending to config.log.
17949 # Unfortunately, on DOS this fails, as config.log is still kept open
17950 # by configure, so config.status won't be able to write to it; its
17951 # output is simply discarded. So we exec the FD to /dev/null,
17952 # effectively closing config.log, so it can be properly (re)opened and
17953 # appended to by config.status. When coming back to configure, we
17954 # need to make the FD available again.
17955 if test "$no_create" != yes; then
17956 ac_cs_success=:
17957 ac_config_status_args=
17958 test "$silent" = yes &&
17959 ac_config_status_args="$ac_config_status_args --quiet"
17960 exec 5>/dev/null
17961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17962 exec 5>>config.log
17963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17964 # would make configure fail if this is the last instruction.
17965 $ac_cs_success || as_fn_exit $?
17967 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17969 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}