Compile IAMCU tests with -fno-pie -no-pie
[official-gcc.git] / libgo / configure
blob03d4e15035874c5fa445316d9e5d103c2c25eca1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 GOC_IS_LLGO_FALSE
620 GOC_IS_LLGO_TRUE
621 USING_SPLIT_STACK_FALSE
622 USING_SPLIT_STACK_TRUE
623 SPLIT_STACK
624 OSCFLAGS
625 GO_SYSCALL_OS_ARCH_FILE
626 GO_SYSCALL_OS_FILE
627 GO_LIBCALL_OS_ARCH_FILE
628 GO_LIBCALL_OS_FILE
629 GOARCH
630 LIBGO_IS_X86_64_FALSE
631 LIBGO_IS_X86_64_TRUE
632 LIBGO_IS_SPARC64_FALSE
633 LIBGO_IS_SPARC64_TRUE
634 LIBGO_IS_SPARC_FALSE
635 LIBGO_IS_SPARC_TRUE
636 LIBGO_IS_S390X_FALSE
637 LIBGO_IS_S390X_TRUE
638 LIBGO_IS_S390_FALSE
639 LIBGO_IS_S390_TRUE
640 LIBGO_IS_PPC64LE_FALSE
641 LIBGO_IS_PPC64LE_TRUE
642 LIBGO_IS_PPC64_FALSE
643 LIBGO_IS_PPC64_TRUE
644 LIBGO_IS_PPC_FALSE
645 LIBGO_IS_PPC_TRUE
646 LIBGO_IS_MIPSO64_FALSE
647 LIBGO_IS_MIPSO64_TRUE
648 LIBGO_IS_MIPSN64_FALSE
649 LIBGO_IS_MIPSN64_TRUE
650 LIBGO_IS_MIPSN32_FALSE
651 LIBGO_IS_MIPSN32_TRUE
652 LIBGO_IS_MIPSO32_FALSE
653 LIBGO_IS_MIPSO32_TRUE
654 LIBGO_IS_MIPS_FALSE
655 LIBGO_IS_MIPS_TRUE
656 LIBGO_IS_M68K_FALSE
657 LIBGO_IS_M68K_TRUE
658 LIBGO_IS_ARM64_FALSE
659 LIBGO_IS_ARM64_TRUE
660 LIBGO_IS_ARM_FALSE
661 LIBGO_IS_ARM_TRUE
662 LIBGO_IS_ALPHA_FALSE
663 LIBGO_IS_ALPHA_TRUE
664 LIBGO_IS_386_FALSE
665 LIBGO_IS_386_TRUE
666 USE_DEJAGNU
667 GOOS
668 LIBGO_IS_SOLARIS_FALSE
669 LIBGO_IS_SOLARIS_TRUE
670 LIBGO_IS_RTEMS_FALSE
671 LIBGO_IS_RTEMS_TRUE
672 LIBGO_IS_DRAGONFLY_FALSE
673 LIBGO_IS_DRAGONFLY_TRUE
674 LIBGO_IS_OPENBSD_FALSE
675 LIBGO_IS_OPENBSD_TRUE
676 LIBGO_IS_NETBSD_FALSE
677 LIBGO_IS_NETBSD_TRUE
678 LIBGO_IS_LINUX_FALSE
679 LIBGO_IS_LINUX_TRUE
680 LIBGO_IS_IRIX_FALSE
681 LIBGO_IS_IRIX_TRUE
682 LIBGO_IS_FREEBSD_FALSE
683 LIBGO_IS_FREEBSD_TRUE
684 LIBGO_IS_DARWIN_FALSE
685 LIBGO_IS_DARWIN_TRUE
686 go_include
687 LIBATOMIC
688 LIBFFIINCS
689 LIBFFI
690 nover_glibgo_toolexeclibdir
691 glibgo_toolexeclibdir
692 glibgo_toolexecdir
693 WERROR
694 WARN_FLAGS
695 CC_FOR_BUILD
696 enable_static
697 enable_shared
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
705 OBJDUMP
706 LN_S
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LIBTOOL
711 OBJCOPY
712 RANLIB
714 FGREP
715 EGREP
716 GREP
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 GOCFLAGS
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 target_os
763 target_vendor
764 target_cpu
765 target
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 multi_basedir
775 libtool_VERSION
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_multilib
818 enable_dependency_tracking
819 enable_maintainer_mode
820 with_gnu_ld
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 enable_libtool_lock
826 enable_werror
827 enable_version_specific_runtime_libs
828 with_libffi
829 with_libatomic
830 with_system_libunwind
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CPPFLAGS'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 esac
1244 done
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1330 /^X\(\/\/\)$/{
1331 s//\1/
1334 /^X\(\/\).*/{
1335 s//\1/
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1343 else
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1433 cat <<\_ACEOF
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444 _ACEOF
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of package-unused version-unused:";;
1450 esac
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-multilib build many library versions (default)
1458 --disable-dependency-tracking speeds up one-time build
1459 --enable-dependency-tracking do not reject slow dependency extractors
1460 --enable-maintainer-mode enable make rules and dependencies not useful
1461 (and sometimes confusing) to the casual installer
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-werror turns on -Werror [default=yes]
1468 --enable-version-specific-runtime-libs
1469 Specify that runtime libraries should be installed
1470 in a compiler-specific directory
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --without-libffi don't use libffi
1479 --without-libatomic don't use libatomic
1480 --with-system-libunwind use installed libunwind
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 GOC Go compiler command
1491 GOCFLAGS Go compiler flags
1492 CPP C preprocessor
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to the package provider.
1498 _ACEOF
1499 ac_status=$?
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 package-unused configure version-unused
1561 generated by GNU Autoconf 2.64
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev/null && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 return $ac_retval
1724 } # ac_fn_c_try_cpp
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1796 #undef $2
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1813 main ()
1815 return $2 ();
1817 return 0;
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_func
1835 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1836 # -------------------------------------------------------
1837 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1838 # the include files in INCLUDES and setting the cache variable VAR
1839 # accordingly.
1840 ac_fn_c_check_header_mongrel ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 else
1853 # Is the header compilable?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1855 $as_echo_n "checking $2 usability... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_header_compiler=yes
1863 else
1864 ac_header_compiler=no
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1868 $as_echo "$ac_header_compiler" >&6; }
1870 # Is the header present?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1872 $as_echo_n "checking $2 presence... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1878 ac_header_preproc=yes
1879 else
1880 ac_header_preproc=no
1882 rm -f conftest.err conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1884 $as_echo "$ac_header_preproc" >&6; }
1886 # So? What about this header?
1887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1888 yes:no: )
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1890 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* )
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1896 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1898 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1900 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1902 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 esac
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 eval "$3=\$ac_header_compiler"
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_mongrel
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 eval "$3=no"
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1939 main ()
1941 if (sizeof ($2))
1942 return 0;
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 main ()
1954 if (sizeof (($2)))
1955 return 0;
1957 return 0;
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1962 else
1963 eval "$3=yes"
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_c_check_type
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_lo=0 ac_mid=0
2001 while :; do
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 main ()
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 test_array [0] = 0
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=$ac_mid; break
2017 else
2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019 if test $ac_lo -le $ac_mid; then
2020 ac_lo= ac_hi=
2021 break
2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 done
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static int test_array [1 - 2 * !(($2) < 0)];
2035 test_array [0] = 0
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=-1 ac_mid=-1
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 test_array [0] = 0
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_lo=$ac_mid; break
2059 else
2060 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061 if test $ac_mid -le $ac_hi; then
2062 ac_lo= ac_hi=
2063 break
2065 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 done
2069 else
2070 ac_lo= ac_hi=
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid
2093 else
2094 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 case $ac_lo in #((
2099 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2100 '') ac_retval=1 ;;
2101 esac
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2106 static long int longval () { return $2; }
2107 static unsigned long int ulongval () { return $2; }
2108 #include <stdio.h>
2109 #include <stdlib.h>
2111 main ()
2114 FILE *f = fopen ("conftest.val", "w");
2115 if (! f)
2116 return 1;
2117 if (($2) < 0)
2119 long int i = longval ();
2120 if (i != ($2))
2121 return 1;
2122 fprintf (f, "%ld", i);
2124 else
2126 unsigned long int i = ulongval ();
2127 if (i != ($2))
2128 return 1;
2129 fprintf (f, "%lu", i);
2131 /* Do not output a trailing newline, as this causes \r\n confusion
2132 on some platforms. */
2133 return ferror (f) || fclose (f) != 0;
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_run "$LINENO"; then :
2140 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2141 else
2142 ac_retval=1
2144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145 conftest.$ac_objext conftest.beam conftest.$ac_ext
2146 rm -f conftest.val
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 return $ac_retval
2152 } # ac_fn_c_compute_int
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by package-unused $as_me version-unused, which was
2158 generated by GNU Autoconf 2.64. Invocation command line was
2160 $ $0 $@
2162 _ACEOF
2163 exec 5>>config.log
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2187 _ASUNAME
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2195 done
2196 IFS=$as_save_IFS
2198 } >&5
2200 cat >&5 <<_ACEOF
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2207 _ACEOF
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2221 for ac_arg
2223 case $ac_arg in
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2227 continue ;;
2228 *\'*)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 case $ac_pass in
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2237 else
2238 case $ac_arg in
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245 esac
2247 -* ) ac_must_keep_next=true ;;
2248 esac
2250 as_fn_append ac_configure_args " '$ac_arg'"
2252 esac
2253 done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2266 echo
2268 cat <<\_ASBOX
2269 ## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##
2272 _ASBOX
2273 echo
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in #(
2279 *${as_nl}*)
2280 case $ac_var in #(
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 esac
2284 case $ac_var in #(
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2288 esac ;;
2289 esac
2290 done
2291 (set) 2>&1 |
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2294 sed -n \
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 ;; #(
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 esac |
2302 sort
2304 echo
2306 cat <<\_ASBOX
2307 ## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##
2310 _ASBOX
2311 echo
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2322 if test -n "$ac_subst_files"; then
2323 cat <<\_ASBOX
2324 ## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##
2327 _ASBOX
2328 echo
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2340 if test -s confdefs.h; then
2341 cat <<\_ASBOX
2342 ## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##
2345 _ASBOX
2346 echo
2347 cat confdefs.h
2348 echo
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2353 } >&5
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356 exit $exit_status
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 done
2361 ac_signal=0
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2392 _ACEOF
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2397 ac_site_file1=NONE
2398 ac_site_file2=NONE
2399 if test -n "$CONFIG_SITE"; then
2400 ac_site_file1=$CONFIG_SITE
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE && continue
2411 if test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file"
2417 done
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special
2421 # files actually), so we avoid doing that.
2422 if test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2445 set,)
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,set)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,);;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 fi;;
2473 esac
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2476 case $ac_new_val in
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2479 esac
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483 esac
2485 done
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 ac_config_headers="$ac_config_headers config.h"
2511 libtool_VERSION=7:0:0
2514 # Default to --enable-multilib
2515 # Check whether --enable-multilib was given.
2516 if test "${enable_multilib+set}" = set; then :
2517 enableval=$enable_multilib; case "$enableval" in
2518 yes) multilib=yes ;;
2519 no) multilib=no ;;
2520 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2521 esac
2522 else
2523 multilib=yes
2527 # We may get other options which we leave undocumented:
2528 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2529 # See config-ml.in if you want the gory details.
2531 if test "$srcdir" = "."; then
2532 if test "$with_target_subdir" != "."; then
2533 multi_basedir="$srcdir/$with_multisrctop../.."
2534 else
2535 multi_basedir="$srcdir/$with_multisrctop.."
2537 else
2538 multi_basedir="$srcdir/.."
2542 # Even if the default multilib is not a cross compilation,
2543 # it may be that some of the other multilibs are.
2544 if test $cross_compiling = no && test $multilib = yes \
2545 && test "x${with_multisubdir}" != x ; then
2546 cross_compiling=maybe
2549 ac_config_commands="$ac_config_commands default-1"
2552 ac_aux_dir=
2553 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2554 for ac_t in install-sh install.sh shtool; do
2555 if test -f "$ac_dir/$ac_t"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/$ac_t -c"
2558 break 2
2560 done
2561 done
2562 if test -z "$ac_aux_dir"; then
2563 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2566 # These three variables are undocumented and unsupported,
2567 # and are intended to be withdrawn in a future Autoconf release.
2568 # They can cause serious problems if a builder's source tree is in a directory
2569 # whose full name contains unusual characters.
2570 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2571 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2572 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2575 # Make sure we can run config.sub.
2576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2577 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2580 $as_echo_n "checking build system type... " >&6; }
2581 if test "${ac_cv_build+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 ac_build_alias=$build_alias
2585 test "x$ac_build_alias" = x &&
2586 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2587 test "x$ac_build_alias" = x &&
2588 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2590 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2594 $as_echo "$ac_cv_build" >&6; }
2595 case $ac_cv_build in
2596 *-*-*) ;;
2597 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2598 esac
2599 build=$ac_cv_build
2600 ac_save_IFS=$IFS; IFS='-'
2601 set x $ac_cv_build
2602 shift
2603 build_cpu=$1
2604 build_vendor=$2
2605 shift; shift
2606 # Remember, the first character of IFS is used to create $*,
2607 # except with old shells:
2608 build_os=$*
2609 IFS=$ac_save_IFS
2610 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2614 $as_echo_n "checking host system type... " >&6; }
2615 if test "${ac_cv_host+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test "x$host_alias" = x; then
2619 ac_cv_host=$ac_cv_build
2620 else
2621 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2622 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2627 $as_echo "$ac_cv_host" >&6; }
2628 case $ac_cv_host in
2629 *-*-*) ;;
2630 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2631 esac
2632 host=$ac_cv_host
2633 ac_save_IFS=$IFS; IFS='-'
2634 set x $ac_cv_host
2635 shift
2636 host_cpu=$1
2637 host_vendor=$2
2638 shift; shift
2639 # Remember, the first character of IFS is used to create $*,
2640 # except with old shells:
2641 host_os=$*
2642 IFS=$ac_save_IFS
2643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2647 $as_echo_n "checking target system type... " >&6; }
2648 if test "${ac_cv_target+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test "x$target_alias" = x; then
2652 ac_cv_target=$ac_cv_host
2653 else
2654 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2655 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2660 $as_echo "$ac_cv_target" >&6; }
2661 case $ac_cv_target in
2662 *-*-*) ;;
2663 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2664 esac
2665 target=$ac_cv_target
2666 ac_save_IFS=$IFS; IFS='-'
2667 set x $ac_cv_target
2668 shift
2669 target_cpu=$1
2670 target_vendor=$2
2671 shift; shift
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2674 target_os=$*
2675 IFS=$ac_save_IFS
2676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2679 # The aliases save the names the user supplied, while $host etc.
2680 # will get canonicalized.
2681 test -n "$target_alias" &&
2682 test "$program_prefix$program_suffix$program_transform_name" = \
2683 NONENONEs,x,x, &&
2684 program_prefix=${target_alias}-
2686 target_alias=${target_alias-$host_alias}
2688 am__api_version='1.11'
2690 # Find a good install program. We prefer a C program (faster),
2691 # so one script is as good as another. But avoid the broken or
2692 # incompatible versions:
2693 # SysV /etc/install, /usr/sbin/install
2694 # SunOS /usr/etc/install
2695 # IRIX /sbin/install
2696 # AIX /bin/install
2697 # AmigaOS /C/install, which installs bootblocks on floppy discs
2698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701 # OS/2's system install, which has a completely different semantic
2702 # ./install, which can be erroneously created by make from ./install.sh.
2703 # Reject install programs that cannot install multiple files.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2706 if test -z "$INSTALL"; then
2707 if test "${ac_cv_path_install+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 # Account for people who put trailing slashes in PATH elements.
2716 case $as_dir/ in #((
2717 ./ | .// | /[cC]/* | \
2718 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2719 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2720 /usr/ucb/* ) ;;
2722 # OSF1 and SCO ODT 3.0 have their own names for install.
2723 # Don't use installbsd from OSF since it installs stuff as root
2724 # by default.
2725 for ac_prog in ginstall scoinst install; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2728 if test $ac_prog = install &&
2729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # AIX install. It has an incompatible calling convention.
2732 elif test $ac_prog = install &&
2733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # program-specific install script used by HP pwplus--don't use.
2736 else
2737 rm -rf conftest.one conftest.two conftest.dir
2738 echo one > conftest.one
2739 echo two > conftest.two
2740 mkdir conftest.dir
2741 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2742 test -s conftest.one && test -s conftest.two &&
2743 test -s conftest.dir/conftest.one &&
2744 test -s conftest.dir/conftest.two
2745 then
2746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2747 break 3
2751 done
2752 done
2754 esac
2756 done
2757 IFS=$as_save_IFS
2759 rm -rf conftest.one conftest.two conftest.dir
2762 if test "${ac_cv_path_install+set}" = set; then
2763 INSTALL=$ac_cv_path_install
2764 else
2765 # As a last resort, use the slow shell script. Don't cache a
2766 # value for INSTALL within a source directory, because that will
2767 # break other packages using the cache if that directory is
2768 # removed, or if the value is a relative name.
2769 INSTALL=$ac_install_sh
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2773 $as_echo "$INSTALL" >&6; }
2775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2776 # It thinks the first close brace ends the variable substitution.
2777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2781 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2784 $as_echo_n "checking whether build environment is sane... " >&6; }
2785 # Just in case
2786 sleep 1
2787 echo timestamp > conftest.file
2788 # Reject unsafe characters in $srcdir or the absolute working directory
2789 # name. Accept space and tab only in the latter.
2790 am_lf='
2792 case `pwd` in
2793 *[\\\"\#\$\&\'\`$am_lf]*)
2794 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2795 esac
2796 case $srcdir in
2797 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2798 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2799 esac
2801 # Do `set' in a subshell so we don't clobber the current shell's
2802 # arguments. Must try -L first in case configure is actually a
2803 # symlink; some systems play weird games with the mod time of symlinks
2804 # (eg FreeBSD returns the mod time of the symlink's containing
2805 # directory).
2806 if (
2807 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2808 if test "$*" = "X"; then
2809 # -L didn't work.
2810 set X `ls -t "$srcdir/configure" conftest.file`
2812 rm -f conftest.file
2813 if test "$*" != "X $srcdir/configure conftest.file" \
2814 && test "$*" != "X conftest.file $srcdir/configure"; then
2816 # If neither matched, then we have a broken ls. This can happen
2817 # if, for instance, CONFIG_SHELL is bash and it inherits a
2818 # broken ls alias from the environment. This has actually
2819 # happened. Such a system could not be considered "sane".
2820 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2821 alias in your environment" "$LINENO" 5
2824 test "$2" = conftest.file
2826 then
2827 # Ok.
2829 else
2830 as_fn_error "newly created file is older than distributed files!
2831 Check your system clock" "$LINENO" 5
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2845 # expand $ac_aux_dir to an absolute path
2846 am_aux_dir=`cd $ac_aux_dir && pwd`
2848 if test x"${MISSING+set}" != xset; then
2849 case $am_aux_dir in
2850 *\ * | *\ *)
2851 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2853 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2854 esac
2856 # Use eval to expand $SHELL
2857 if eval "$MISSING --run true"; then
2858 am_missing_run="$MISSING --run "
2859 else
2860 am_missing_run=
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2862 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2865 if test x"${install_sh}" != xset; then
2866 case $am_aux_dir in
2867 *\ * | *\ *)
2868 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2870 install_sh="\${SHELL} $am_aux_dir/install-sh"
2871 esac
2874 # Installed binaries are usually stripped using `strip' when the user
2875 # run `make install-strip'. However `strip' might not be the right
2876 # tool to use in cross-compilation environments, therefore Automake
2877 # will honor the `STRIP' environment variable to overrule this program.
2878 if test "$cross_compiling" != no; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}strip; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_STRIP+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$STRIP"; then
2888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 STRIP=$ac_cv_prog_STRIP
2908 if test -n "$STRIP"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2910 $as_echo "$STRIP" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2918 if test -z "$ac_cv_prog_STRIP"; then
2919 ac_ct_STRIP=$STRIP
2920 # Extract the first word of "strip", so it can be a program name with args.
2921 set dummy strip; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$ac_ct_STRIP"; then
2928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_STRIP="strip"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948 if test -n "$ac_ct_STRIP"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950 $as_echo "$ac_ct_STRIP" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2956 if test "x$ac_ct_STRIP" = x; then
2957 STRIP=":"
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 STRIP=$ac_ct_STRIP
2967 else
2968 STRIP="$ac_cv_prog_STRIP"
2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2975 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2976 if test -z "$MKDIR_P"; then
2977 if test "${ac_cv_path_mkdir+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_prog in mkdir gmkdir; do
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2988 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989 'mkdir (GNU coreutils) '* | \
2990 'mkdir (coreutils) '* | \
2991 'mkdir (fileutils) '4.1*)
2992 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2993 break 3;;
2994 esac
2995 done
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 if test "${ac_cv_path_mkdir+set}" = set; then
3003 MKDIR_P="$ac_cv_path_mkdir -p"
3004 else
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for MKDIR_P within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 test -d ./--version && rmdir ./--version
3010 MKDIR_P="$ac_install_sh -d"
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014 $as_echo "$MKDIR_P" >&6; }
3016 mkdir_p="$MKDIR_P"
3017 case $mkdir_p in
3018 [\\/$]* | ?:[\\/]*) ;;
3019 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3020 esac
3022 for ac_prog in gawk mawk nawk awk
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_AWK+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$AWK"; then
3032 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_AWK="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 AWK=$ac_cv_prog_AWK
3052 if test -n "$AWK"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3054 $as_echo "$AWK" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$AWK" && break
3062 done
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3065 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3066 set x ${MAKE-make}
3067 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3068 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 cat >conftest.make <<\_ACEOF
3072 SHELL = /bin/sh
3073 all:
3074 @echo '@@@%%%=$(MAKE)=@@@%%%'
3075 _ACEOF
3076 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3078 *@@@%%%=?*=@@@%%%*)
3079 eval ac_cv_prog_make_${ac_make}_set=yes;;
3081 eval ac_cv_prog_make_${ac_make}_set=no;;
3082 esac
3083 rm -f conftest.make
3085 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087 $as_echo "yes" >&6; }
3088 SET_MAKE=
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 SET_MAKE="MAKE=${MAKE-make}"
3095 rm -rf .tst 2>/dev/null
3096 mkdir .tst 2>/dev/null
3097 if test -d .tst; then
3098 am__leading_dot=.
3099 else
3100 am__leading_dot=_
3102 rmdir .tst 2>/dev/null
3104 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3106 # is not polluted with repeated "-I."
3107 am__isrc=' -I$(srcdir)'
3108 # test to see if srcdir already configured
3109 if test -f $srcdir/config.status; then
3110 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3114 # test whether we have cygpath
3115 if test -z "$CYGPATH_W"; then
3116 if (cygpath --version) >/dev/null 2>/dev/null; then
3117 CYGPATH_W='cygpath -w'
3118 else
3119 CYGPATH_W=echo
3124 # Define the identity of the package.
3125 PACKAGE='libgo'
3126 VERSION='version-unused'
3129 # Some tools Automake needs.
3131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3145 # We need awk for the "check" target. The system "awk" is bad on
3146 # some platforms.
3147 # Always define AMTAR for backward compatibility.
3149 AMTAR=${AMTAR-"${am_missing_run}tar"}
3151 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3189 done
3190 done
3191 IFS=$as_save_IFS
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3206 if test -z "$ac_cv_prog_CC"; then
3207 ac_ct_CC=$CC
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209 set dummy gcc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_ac_ct_CC="gcc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3229 done
3230 done
3231 IFS=$as_save_IFS
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253 CC=$ac_ct_CC
3255 else
3256 CC="$ac_cv_prog_CC"
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}cc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="${ac_tool_prefix}cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3300 if test -z "$CC"; then
3301 # Extract the first word of "cc", so it can be a program name with args.
3302 set dummy cc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 ac_prog_rejected=no
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3320 ac_prog_rejected=yes
3321 continue
3323 ac_cv_prog_CC="cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3327 done
3328 done
3329 IFS=$as_save_IFS
3331 if test $ac_prog_rejected = yes; then
3332 # We found a bogon in the path, so make sure we never use it.
3333 set dummy $ac_cv_prog_CC
3334 shift
3335 if test $# != 0; then
3336 # We chose a different compiler from the bogus one.
3337 # However, it has the same basename, so the bogon will be chosen
3338 # first if we set CC to just the basename; use the full file name.
3339 shift
3340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3356 if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 for ac_prog in cl.exe
3360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$CC" && break
3398 done
3400 if test -z "$CC"; then
3401 ac_ct_CC=$CC
3402 for ac_prog in cl.exe
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434 $as_echo "$ac_ct_CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3441 test -n "$ac_ct_CC" && break
3442 done
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3460 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "no acceptable C compiler found in \$PATH
3463 See \`config.log' for more details." "$LINENO" 5; }
3465 # Provide some information about the compiler.
3466 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 set X $ac_compile
3468 ac_compiler=$2
3469 for ac_option in --version -v -V -qversion; do
3470 { { ac_try="$ac_compiler $ac_option >&5"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3478 ac_status=$?
3479 if test -s conftest.err; then
3480 sed '10a\
3481 ... rest of stderr output deleted ...
3482 10q' conftest.err >conftest.er1
3483 cat conftest.er1 >&5
3484 rm -f conftest.er1 conftest.err
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 done
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3494 main ()
3498 return 0;
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520 done
3521 rm -f $ac_rmfiles
3523 if { { ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3561 break;;
3562 esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3566 else
3567 ac_file=''
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 if test -z "$ac_file"; then :
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { as_fn_set_status 77
3578 as_fn_error "C compiler cannot create executables
3579 See \`config.log' for more details." "$LINENO" 5; }; }
3581 ac_exeext=$ac_cv_exeext
3583 # Check that the compiler produces executables we can run. If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3586 $as_echo_n "checking whether the C compiler works... " >&6; }
3587 # If not cross compiling, check that we can run a simple program.
3588 if test "$cross_compiling" != yes; then
3589 if { ac_try='./$ac_file'
3590 { { case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_try") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; }; then
3600 cross_compiling=no
3601 else
3602 if test "$cross_compiling" = maybe; then
3603 cross_compiling=yes
3604 else
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error "cannot run C compiled programs.
3608 If you meant to cross compile, use \`--host'.
3609 See \`config.log' for more details." "$LINENO" 5; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3616 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3617 ac_clean_files=$ac_clean_files_save
3618 # Check that the compiler produces executables we can run. If not, either
3619 # the compiler is broken, or we cross compile.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3621 $as_echo_n "checking whether we are cross compiling... " >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3623 $as_echo "$cross_compiling" >&6; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3626 $as_echo_n "checking for suffix of executables... " >&6; }
3627 if { { ac_try="$ac_link"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link") 2>&5
3635 ac_status=$?
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }; then :
3638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3640 # work properly (i.e., refer to `conftest.exe'), while it won't with
3641 # `rm'.
3642 for ac_file in conftest.exe conftest conftest.*; do
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647 break;;
3648 * ) break;;
3649 esac
3650 done
3651 else
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error "cannot compute suffix of executables: cannot compile and link
3655 See \`config.log' for more details." "$LINENO" 5; }
3657 rm -f conftest$ac_cv_exeext
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3659 $as_echo "$ac_cv_exeext" >&6; }
3661 rm -f conftest.$ac_ext
3662 EXEEXT=$ac_cv_exeext
3663 ac_exeext=$EXEEXT
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3665 $as_echo_n "checking for suffix of object files... " >&6; }
3666 if test "${ac_cv_objext+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3673 main ()
3677 return 0;
3679 _ACEOF
3680 rm -f conftest.o conftest.obj
3681 if { { ac_try="$ac_compile"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_compile") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 for ac_file in conftest.o conftest.obj conftest.*; do
3693 test -f "$ac_file" || continue;
3694 case $ac_file in
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3696 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3697 break;;
3698 esac
3699 done
3700 else
3701 $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error "cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details." "$LINENO" 5; }
3709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3712 $as_echo "$ac_cv_objext" >&6; }
3713 OBJEXT=$ac_cv_objext
3714 ac_objext=$OBJEXT
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3717 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3724 main ()
3726 #ifndef __GNUC__
3727 choke me
3728 #endif
3731 return 0;
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_compiler_gnu=yes
3736 else
3737 ac_compiler_gnu=no
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3745 if test $ac_compiler_gnu = yes; then
3746 GCC=yes
3747 else
3748 GCC=
3750 ac_test_CFLAGS=${CFLAGS+set}
3751 ac_save_CFLAGS=$CFLAGS
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3754 if test "${ac_cv_prog_cc_g+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_save_c_werror_flag=$ac_c_werror_flag
3758 ac_c_werror_flag=yes
3759 ac_cv_prog_cc_g=no
3760 CFLAGS="-g"
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3765 main ()
3769 return 0;
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_cv_prog_cc_g=yes
3774 else
3775 CFLAGS=""
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 main ()
3784 return 0;
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3789 else
3790 ac_c_werror_flag=$ac_save_c_werror_flag
3791 CFLAGS="-g"
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3796 main ()
3800 return 0;
3802 _ACEOF
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_prog_cc_g=yes
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3814 $as_echo "$ac_cv_prog_cc_g" >&6; }
3815 if test "$ac_test_CFLAGS" = set; then
3816 CFLAGS=$ac_save_CFLAGS
3817 elif test $ac_cv_prog_cc_g = yes; then
3818 if test "$GCC" = yes; then
3819 CFLAGS="-g -O2"
3820 else
3821 CFLAGS="-g"
3823 else
3824 if test "$GCC" = yes; then
3825 CFLAGS="-O2"
3826 else
3827 CFLAGS=
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3832 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 ac_cv_prog_cc_c89=no
3836 ac_save_CC=$CC
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <stdarg.h>
3840 #include <stdio.h>
3841 #include <sys/types.h>
3842 #include <sys/stat.h>
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3847 char **p;
3848 int i;
3850 return p[i];
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3854 char *s;
3855 va_list v;
3856 va_start (v,p);
3857 s = g (p, va_arg (v,int));
3858 va_end (v);
3859 return s;
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3873 #define FOO(x) 'x'
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 int argc;
3881 char **argv;
3883 main ()
3885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3887 return 0;
3889 _ACEOF
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3893 CC="$ac_save_CC $ac_arg"
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_c89=$ac_arg
3897 rm -f core conftest.err conftest.$ac_objext
3898 test "x$ac_cv_prog_cc_c89" != "xno" && break
3899 done
3900 rm -f conftest.$ac_ext
3901 CC=$ac_save_CC
3904 # AC_CACHE_VAL
3905 case "x$ac_cv_prog_cc_c89" in
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3908 $as_echo "none needed" >&6; } ;;
3909 xno)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3911 $as_echo "unsupported" >&6; } ;;
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3916 esac
3917 if test "x$ac_cv_prog_cc_c89" != xno; then :
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 DEPDIR="${am__leading_dot}deps"
3928 ac_config_commands="$ac_config_commands depfiles"
3931 am_make=${MAKE-make}
3932 cat > confinc << 'END'
3933 am__doit:
3934 @echo this is the am__doit target
3935 .PHONY: am__doit
3937 # If we don't find an include directive, just comment out the code.
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3939 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3940 am__include="#"
3941 am__quote=
3942 _am_result=none
3943 # First try GNU make style include.
3944 echo "include confinc" > confmf
3945 # Ignore all kinds of additional output from `make'.
3946 case `$am_make -s -f confmf 2> /dev/null` in #(
3947 *the\ am__doit\ target*)
3948 am__include=include
3949 am__quote=
3950 _am_result=GNU
3952 esac
3953 # Now try BSD make style include.
3954 if test "$am__include" = "#"; then
3955 echo '.include "confinc"' > confmf
3956 case `$am_make -s -f confmf 2> /dev/null` in #(
3957 *the\ am__doit\ target*)
3958 am__include=.include
3959 am__quote="\""
3960 _am_result=BSD
3962 esac
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3967 $as_echo "$_am_result" >&6; }
3968 rm -f confinc confmf
3970 # Check whether --enable-dependency-tracking was given.
3971 if test "${enable_dependency_tracking+set}" = set; then :
3972 enableval=$enable_dependency_tracking;
3975 if test "x$enable_dependency_tracking" != xno; then
3976 am_depcomp="$ac_aux_dir/depcomp"
3977 AMDEPBACKSLASH='\'
3979 if test "x$enable_dependency_tracking" != xno; then
3980 AMDEP_TRUE=
3981 AMDEP_FALSE='#'
3982 else
3983 AMDEP_TRUE='#'
3984 AMDEP_FALSE=
3989 depcc="$CC" am_compiler_list=
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3992 $as_echo_n "checking dependency style of $depcc... " >&6; }
3993 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997 # We make a subdir and do the tests there. Otherwise we can end up
3998 # making bogus files that we don't know about and never remove. For
3999 # instance it was reported that on HP-UX the gcc test will end up
4000 # making a dummy file named `D' -- because `-MD' means `put the output
4001 # in D'.
4002 mkdir conftest.dir
4003 # Copy depcomp to subdir because otherwise we won't find it if we're
4004 # using a relative directory.
4005 cp "$am_depcomp" conftest.dir
4006 cd conftest.dir
4007 # We will build objects and dependencies in a subdirectory because
4008 # it helps to detect inapplicable dependency modes. For instance
4009 # both Tru64's cc and ICC support -MD to output dependencies as a
4010 # side effect of compilation, but ICC will put the dependencies in
4011 # the current directory while Tru64 will put them in the object
4012 # directory.
4013 mkdir sub
4015 am_cv_CC_dependencies_compiler_type=none
4016 if test "$am_compiler_list" = ""; then
4017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019 am__universal=false
4020 case " $depcc " in #(
4021 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4022 esac
4024 for depmode in $am_compiler_list; do
4025 # Setup a source with many dependencies, because some compilers
4026 # like to wrap large dependency lists on column 80 (with \), and
4027 # we should not choose a depcomp mode which is confused by this.
4029 # We need to recreate these files for each test, as the compiler may
4030 # overwrite some of them when testing with obscure command lines.
4031 # This happens at least with the AIX C compiler.
4032 : > sub/conftest.c
4033 for i in 1 2 3 4 5 6; do
4034 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4035 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4036 # Solaris 8's {/usr,}/bin/sh.
4037 touch sub/conftst$i.h
4038 done
4039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4042 # mode. It turns out that the SunPro C++ compiler does not properly
4043 # handle `-M -o', and we need to detect this. Also, some Intel
4044 # versions had trouble with output in subdirs
4045 am__obj=sub/conftest.${OBJEXT-o}
4046 am__minus_obj="-o $am__obj"
4047 case $depmode in
4048 gcc)
4049 # This depmode causes a compiler race in universal mode.
4050 test "$am__universal" = false || continue
4052 nosideeffect)
4053 # after this tag, mechanisms are not by side-effect, so they'll
4054 # only be used when explicitly requested
4055 if test "x$enable_dependency_tracking" = xyes; then
4056 continue
4057 else
4058 break
4061 msvisualcpp | msvcmsys)
4062 # This compiler won't grok `-c -o', but also, the minuso test has
4063 # not run yet. These depmodes are late enough in the game, and
4064 # so weak that their functioning should not be impacted.
4065 am__obj=conftest.${OBJEXT-o}
4066 am__minus_obj=
4068 none) break ;;
4069 esac
4070 if depmode=$depmode \
4071 source=sub/conftest.c object=$am__obj \
4072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4074 >/dev/null 2>conftest.err &&
4075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079 # icc doesn't choke on unknown options, it will just issue warnings
4080 # or remarks (even with -Werror). So we grep stderr for any message
4081 # that says an option was ignored or not supported.
4082 # When given -MP, icc 7.0 and 7.1 complain thusly:
4083 # icc: Command line warning: ignoring option '-M'; no argument required
4084 # The diagnosis changed in icc 8.0:
4085 # icc: Command line remark: option '-MP' not supported
4086 if (grep 'ignoring option' conftest.err ||
4087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088 am_cv_CC_dependencies_compiler_type=$depmode
4089 break
4092 done
4094 cd ..
4095 rm -rf conftest.dir
4096 else
4097 am_cv_CC_dependencies_compiler_type=none
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4102 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4106 test "x$enable_dependency_tracking" != xno \
4107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108 am__fastdepCC_TRUE=
4109 am__fastdepCC_FALSE='#'
4110 else
4111 am__fastdepCC_TRUE='#'
4112 am__fastdepCC_FALSE=
4116 ac_ext=go
4117 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4118 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compile_gnu=yes
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_GOC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$GOC"; then
4129 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4142 done
4143 done
4144 IFS=$as_save_IFS
4148 GOC=$ac_cv_prog_GOC
4149 if test -n "$GOC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4151 $as_echo "$GOC" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4159 if test -z "$ac_cv_prog_GOC"; then
4160 ac_ct_GOC=$GOC
4161 # Extract the first word of "gccgo", so it can be a program name with args.
4162 set dummy gccgo; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$ac_ct_GOC"; then
4169 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_ac_ct_GOC="gccgo"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4182 done
4183 done
4184 IFS=$as_save_IFS
4188 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4189 if test -n "$ac_ct_GOC"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4191 $as_echo "$ac_ct_GOC" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4197 if test "x$ac_ct_GOC" = x; then
4198 GOC=""
4199 else
4200 case $cross_compiling:$ac_tool_warned in
4201 yes:)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4205 esac
4206 GOC=$ac_ct_GOC
4208 else
4209 GOC="$ac_cv_prog_GOC"
4212 if test -z "$GOC"; then
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_GOC+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -n "$GOC"; then
4222 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4237 IFS=$as_save_IFS
4241 GOC=$ac_cv_prog_GOC
4242 if test -n "$GOC"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4244 $as_echo "$GOC" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4253 if test -z "$GOC"; then
4254 # Extract the first word of "gccgo", so it can be a program name with args.
4255 set dummy gccgo; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if test "${ac_cv_prog_GOC+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$GOC"; then
4262 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4263 else
4264 ac_prog_rejected=no
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4273 ac_prog_rejected=yes
4274 continue
4276 ac_cv_prog_GOC="gccgo"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4284 if test $ac_prog_rejected = yes; then
4285 # We found a bogon in the path, so make sure we never use it.
4286 set dummy $ac_cv_prog_GOC
4287 shift
4288 if test $# != 0; then
4289 # We chose a different compiler from the bogus one.
4290 # However, it has the same basename, so the bogon will be chosen
4291 # first if we set GOC to just the basename; use the full file name.
4292 shift
4293 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4298 GOC=$ac_cv_prog_GOC
4299 if test -n "$GOC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4301 $as_echo "$GOC" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4311 # Provide some information about the compiler.
4312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4313 set X $ac_compile
4314 ac_compiler=$2
4315 { { ac_try="$ac_compiler --version >&5"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_compiler --version >&5") 2>conftest.err
4323 ac_status=$?
4324 if test -s conftest.err; then
4325 sed '10a\
4326 ... rest of stderr output deleted ...
4327 10q' conftest.err >conftest.er1
4328 cat conftest.er1 >&5
4329 rm -f conftest.er1 conftest.err
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }
4333 GOCFLAGS="-g -O2"
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4346 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4347 # Check whether --enable-maintainer-mode was given.
4348 if test "${enable_maintainer_mode+set}" = set; then :
4349 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4350 else
4351 USE_MAINTAINER_MODE=no
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4355 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4356 if test $USE_MAINTAINER_MODE = yes; then
4357 MAINTAINER_MODE_TRUE=
4358 MAINTAINER_MODE_FALSE='#'
4359 else
4360 MAINTAINER_MODE_TRUE='#'
4361 MAINTAINER_MODE_FALSE=
4364 MAINT=$MAINTAINER_MODE_TRUE
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4369 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4370 if test "${ac_cv_path_SED+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4374 for ac_i in 1 2 3 4 5 6 7; do
4375 ac_script="$ac_script$as_nl$ac_script"
4376 done
4377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4378 { ac_script=; unset ac_script;}
4379 if test -z "$SED"; then
4380 ac_path_SED_found=false
4381 # Loop through the user's path and test for each of PROGNAME-LIST
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_prog in sed gsed; do
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4390 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4391 # Check for GNU ac_path_SED and select it if it is found.
4392 # Check for GNU $ac_path_SED
4393 case `"$ac_path_SED" --version 2>&1` in
4394 *GNU*)
4395 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4397 ac_count=0
4398 $as_echo_n 0123456789 >"conftest.in"
4399 while :
4401 cat "conftest.in" "conftest.in" >"conftest.tmp"
4402 mv "conftest.tmp" "conftest.in"
4403 cp "conftest.in" "conftest.nl"
4404 $as_echo '' >> "conftest.nl"
4405 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407 as_fn_arith $ac_count + 1 && ac_count=$as_val
4408 if test $ac_count -gt ${ac_path_SED_max-0}; then
4409 # Best one so far, save it but keep looking for a better one
4410 ac_cv_path_SED="$ac_path_SED"
4411 ac_path_SED_max=$ac_count
4413 # 10*(2^10) chars as input seems more than enough
4414 test $ac_count -gt 10 && break
4415 done
4416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417 esac
4419 $ac_path_SED_found && break 3
4420 done
4421 done
4422 done
4423 IFS=$as_save_IFS
4424 if test -z "$ac_cv_path_SED"; then
4425 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4427 else
4428 ac_cv_path_SED=$SED
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4433 $as_echo "$ac_cv_path_SED" >&6; }
4434 SED="$ac_cv_path_SED"
4435 rm -f conftest.sed
4437 test -z "$SED" && SED=sed
4438 Xsed="$SED -e 1s/^X//"
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452 if test "${ac_cv_path_GREP+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -z "$GREP"; then
4456 ac_path_GREP_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in grep ggrep; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4467 # Check for GNU ac_path_GREP and select it if it is found.
4468 # Check for GNU $ac_path_GREP
4469 case `"$ac_path_GREP" --version 2>&1` in
4470 *GNU*)
4471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473 ac_count=0
4474 $as_echo_n 0123456789 >"conftest.in"
4475 while :
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo 'GREP' >> "conftest.nl"
4481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_GREP="$ac_path_GREP"
4487 ac_path_GREP_max=$ac_count
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4491 done
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4495 $ac_path_GREP_found && break 3
4496 done
4497 done
4498 done
4499 IFS=$as_save_IFS
4500 if test -z "$ac_cv_path_GREP"; then
4501 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 else
4504 ac_cv_path_GREP=$GREP
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509 $as_echo "$ac_cv_path_GREP" >&6; }
4510 GREP="$ac_cv_path_GREP"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4514 $as_echo_n "checking for egrep... " >&6; }
4515 if test "${ac_cv_path_EGREP+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519 then ac_cv_path_EGREP="$GREP -E"
4520 else
4521 if test -z "$EGREP"; then
4522 ac_path_EGREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in egrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4532 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4533 # Check for GNU ac_path_EGREP and select it if it is found.
4534 # Check for GNU $ac_path_EGREP
4535 case `"$ac_path_EGREP" --version 2>&1` in
4536 *GNU*)
4537 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'EGREP' >> "conftest.nl"
4547 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_EGREP="$ac_path_EGREP"
4553 ac_path_EGREP_max=$ac_count
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4561 $ac_path_EGREP_found && break 3
4562 done
4563 done
4564 done
4565 IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_EGREP"; then
4567 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 else
4570 ac_cv_path_EGREP=$EGREP
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4576 $as_echo "$ac_cv_path_EGREP" >&6; }
4577 EGREP="$ac_cv_path_EGREP"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4581 $as_echo_n "checking for fgrep... " >&6; }
4582 if test "${ac_cv_path_FGREP+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4586 then ac_cv_path_FGREP="$GREP -F"
4587 else
4588 if test -z "$FGREP"; then
4589 ac_path_FGREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in fgrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4600 # Check for GNU ac_path_FGREP and select it if it is found.
4601 # Check for GNU $ac_path_FGREP
4602 case `"$ac_path_FGREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4606 ac_count=0
4607 $as_echo_n 0123456789 >"conftest.in"
4608 while :
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'FGREP' >> "conftest.nl"
4614 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_FGREP="$ac_path_FGREP"
4620 ac_path_FGREP_max=$ac_count
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4628 $ac_path_FGREP_found && break 3
4629 done
4630 done
4631 done
4632 IFS=$as_save_IFS
4633 if test -z "$ac_cv_path_FGREP"; then
4634 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 else
4637 ac_cv_path_FGREP=$FGREP
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4643 $as_echo "$ac_cv_path_FGREP" >&6; }
4644 FGREP="$ac_cv_path_FGREP"
4647 test -z "$GREP" && GREP=grep
4665 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4667 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4670 $as_echo_n "checking how to print strings... " >&6; }
4671 # Test print first, because it will be a builtin if present.
4672 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4673 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4674 ECHO='print -r --'
4675 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='printf %s\n'
4677 else
4678 # Use this function as a fallback that always works.
4679 func_fallback_echo ()
4681 eval 'cat <<_LTECHO_EOF
4683 _LTECHO_EOF'
4685 ECHO='func_fallback_echo'
4688 # func_echo_all arg...
4689 # Invoke $ECHO with all args, space-separated.
4690 func_echo_all ()
4692 $ECHO ""
4695 case "$ECHO" in
4696 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4697 $as_echo "printf" >&6; } ;;
4698 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4699 $as_echo "print -r" >&6; } ;;
4700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4701 $as_echo "cat" >&6; } ;;
4702 esac
4719 # Check whether --with-gnu-ld was given.
4720 if test "${with_gnu_ld+set}" = set; then :
4721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4722 else
4723 with_gnu_ld=no
4726 ac_prog=ld
4727 if test "$GCC" = yes; then
4728 # Check if gcc -print-prog-name=ld gives a path.
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4730 $as_echo_n "checking for ld used by $CC... " >&6; }
4731 case $host in
4732 *-*-mingw*)
4733 # gcc leaves a trailing carriage return which upsets mingw
4734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4737 esac
4738 case $ac_prog in
4739 # Accept absolute paths.
4740 [\\/]* | ?:[\\/]*)
4741 re_direlt='/[^/][^/]*/\.\./'
4742 # Canonicalize the pathname of ld
4743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4746 done
4747 test -z "$LD" && LD="$ac_prog"
4750 # If it fails, then pretend we aren't using GCC.
4751 ac_prog=ld
4754 # If it is relative, then search for the first ld in PATH.
4755 with_gnu_ld=unknown
4757 esac
4758 elif test "$with_gnu_ld" = yes; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4760 $as_echo_n "checking for GNU ld... " >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4763 $as_echo_n "checking for non-GNU ld... " >&6; }
4765 if test "${lt_cv_path_LD+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -z "$LD"; then
4769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4770 for ac_dir in $PATH; do
4771 IFS="$lt_save_ifs"
4772 test -z "$ac_dir" && ac_dir=.
4773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4774 lt_cv_path_LD="$ac_dir/$ac_prog"
4775 # Check to see if the program is GNU ld. I'd rather use --version,
4776 # but apparently some variants of GNU ld only accept -v.
4777 # Break only if it was the GNU/non-GNU ld that we prefer.
4778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4779 *GNU* | *'with BFD'*)
4780 test "$with_gnu_ld" != no && break
4783 test "$with_gnu_ld" != yes && break
4785 esac
4787 done
4788 IFS="$lt_save_ifs"
4789 else
4790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4794 LD="$lt_cv_path_LD"
4795 if test -n "$LD"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4797 $as_echo "$LD" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4802 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4809 case `$LD -v 2>&1 </dev/null` in
4810 *GNU* | *'with BFD'*)
4811 lt_cv_prog_gnu_ld=yes
4814 lt_cv_prog_gnu_ld=no
4816 esac
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4820 with_gnu_ld=$lt_cv_prog_gnu_ld
4830 if test -n "$ac_tool_prefix"; then
4831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if test -n "$RANLIB"; then
4839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 RANLIB=$ac_cv_prog_RANLIB
4859 if test -n "$RANLIB"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4861 $as_echo "$RANLIB" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4869 if test -z "$ac_cv_prog_RANLIB"; then
4870 ac_ct_RANLIB=$RANLIB
4871 # Extract the first word of "ranlib", so it can be a program name with args.
4872 set dummy ranlib; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$ac_ct_RANLIB"; then
4879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_ac_ct_RANLIB="ranlib"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4899 if test -n "$ac_ct_RANLIB"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4901 $as_echo "$ac_ct_RANLIB" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4907 if test "x$ac_ct_RANLIB" = x; then
4908 RANLIB=":"
4909 else
4910 case $cross_compiling:$ac_tool_warned in
4911 yes:)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914 ac_tool_warned=yes ;;
4915 esac
4916 RANLIB=$ac_ct_RANLIB
4918 else
4919 RANLIB="$ac_cv_prog_RANLIB"
4922 if test -n "$ac_tool_prefix"; then
4923 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4924 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$OBJCOPY"; then
4931 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 OBJCOPY=$ac_cv_prog_OBJCOPY
4951 if test -n "$OBJCOPY"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4953 $as_echo "$OBJCOPY" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4961 if test -z "$ac_cv_prog_OBJCOPY"; then
4962 ac_ct_OBJCOPY=$OBJCOPY
4963 # Extract the first word of "objcopy", so it can be a program name with args.
4964 set dummy objcopy; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$ac_ct_OBJCOPY"; then
4971 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4984 done
4985 done
4986 IFS=$as_save_IFS
4990 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4991 if test -n "$ac_ct_OBJCOPY"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4993 $as_echo "$ac_ct_OBJCOPY" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4999 if test "x$ac_ct_OBJCOPY" = x; then
5000 OBJCOPY="missing-objcopy"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008 OBJCOPY=$ac_ct_OBJCOPY
5010 else
5011 OBJCOPY="$ac_cv_prog_OBJCOPY"
5015 enable_dlopen=yes
5019 case `pwd` in
5020 *\ * | *\ *)
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5022 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5023 esac
5027 macro_version='2.2.7a'
5028 macro_revision='1.3134'
5042 ltmain="$ac_aux_dir/ltmain.sh"
5044 # Backslashify metacharacters that are still active within
5045 # double-quoted strings.
5046 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5048 # Same as above, but do not quote variable references.
5049 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5051 # Sed substitution to delay expansion of an escaped shell variable in a
5052 # double_quote_subst'ed string.
5053 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5055 # Sed substitution to delay expansion of an escaped single quote.
5056 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5058 # Sed substitution to avoid accidental globbing in evaled expressions
5059 no_glob_subst='s/\*/\\\*/g'
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5062 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5063 if test "${lt_cv_path_NM+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -n "$NM"; then
5067 # Let the user override the test.
5068 lt_cv_path_NM="$NM"
5069 else
5070 lt_nm_to_check="${ac_tool_prefix}nm"
5071 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5072 lt_nm_to_check="$lt_nm_to_check nm"
5074 for lt_tmp_nm in $lt_nm_to_check; do
5075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5076 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5077 IFS="$lt_save_ifs"
5078 test -z "$ac_dir" && ac_dir=.
5079 tmp_nm="$ac_dir/$lt_tmp_nm"
5080 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5081 # Check to see if the nm accepts a BSD-compat flag.
5082 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5083 # nm: unknown option "B" ignored
5084 # Tru64's nm complains that /dev/null is an invalid object file
5085 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5086 */dev/null* | *'Invalid file or object type'*)
5087 lt_cv_path_NM="$tmp_nm -B"
5088 break
5091 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5092 */dev/null*)
5093 lt_cv_path_NM="$tmp_nm -p"
5094 break
5097 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5098 continue # so that we can try to find one that supports BSD flags
5100 esac
5102 esac
5104 done
5105 IFS="$lt_save_ifs"
5106 done
5107 : ${lt_cv_path_NM=no}
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5111 $as_echo "$lt_cv_path_NM" >&6; }
5112 if test "$lt_cv_path_NM" != "no"; then
5113 NM="$lt_cv_path_NM"
5114 else
5115 # Didn't find any BSD compatible name lister, look for dumpbin.
5116 if test -n "$DUMPBIN"; then :
5117 # Let the user override the test.
5118 else
5119 if test -n "$ac_tool_prefix"; then
5120 for ac_prog in dumpbin "link -dump"
5122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$DUMPBIN"; then
5130 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 DUMPBIN=$ac_cv_prog_DUMPBIN
5150 if test -n "$DUMPBIN"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5152 $as_echo "$DUMPBIN" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 test -n "$DUMPBIN" && break
5160 done
5162 if test -z "$DUMPBIN"; then
5163 ac_ct_DUMPBIN=$DUMPBIN
5164 for ac_prog in dumpbin "link -dump"
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$ac_ct_DUMPBIN"; then
5174 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5194 if test -n "$ac_ct_DUMPBIN"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5196 $as_echo "$ac_ct_DUMPBIN" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$ac_ct_DUMPBIN" && break
5204 done
5206 if test "x$ac_ct_DUMPBIN" = x; then
5207 DUMPBIN=":"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210 yes:)
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned=yes ;;
5214 esac
5215 DUMPBIN=$ac_ct_DUMPBIN
5219 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5220 *COFF*)
5221 DUMPBIN="$DUMPBIN -symbols"
5224 DUMPBIN=:
5226 esac
5229 if test "$DUMPBIN" != ":"; then
5230 NM="$DUMPBIN"
5233 test -z "$NM" && NM=nm
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5241 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5242 if test "${lt_cv_nm_interface+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 lt_cv_nm_interface="BSD nm"
5246 echo "int some_variable = 0;" > conftest.$ac_ext
5247 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5248 (eval "$ac_compile" 2>conftest.err)
5249 cat conftest.err >&5
5250 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5251 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5252 cat conftest.err >&5
5253 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5254 cat conftest.out >&5
5255 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5256 lt_cv_nm_interface="MS dumpbin"
5258 rm -f conftest*
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5261 $as_echo "$lt_cv_nm_interface" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5264 $as_echo_n "checking whether ln -s works... " >&6; }
5265 LN_S=$as_ln_s
5266 if test "$LN_S" = "ln -s"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5268 $as_echo "yes" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5271 $as_echo "no, using $LN_S" >&6; }
5274 # find the maximum length of command line arguments
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5276 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5277 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5281 teststring="ABCD"
5283 case $build_os in
5284 msdosdjgpp*)
5285 # On DJGPP, this test can blow up pretty badly due to problems in libc
5286 # (any single argument exceeding 2000 bytes causes a buffer overrun
5287 # during glob expansion). Even if it were fixed, the result of this
5288 # check would be larger than it should be.
5289 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5292 gnu*)
5293 # Under GNU Hurd, this test is not required because there is
5294 # no limit to the length of command line arguments.
5295 # Libtool will interpret -1 as no limit whatsoever
5296 lt_cv_sys_max_cmd_len=-1;
5299 cygwin* | mingw* | cegcc*)
5300 # On Win9x/ME, this test blows up -- it succeeds, but takes
5301 # about 5 minutes as the teststring grows exponentially.
5302 # Worse, since 9x/ME are not pre-emptively multitasking,
5303 # you end up with a "frozen" computer, even though with patience
5304 # the test eventually succeeds (with a max line length of 256k).
5305 # Instead, let's just punt: use the minimum linelength reported by
5306 # all of the supported platforms: 8192 (on NT/2K/XP).
5307 lt_cv_sys_max_cmd_len=8192;
5310 mint*)
5311 # On MiNT this can take a long time and run out of memory.
5312 lt_cv_sys_max_cmd_len=8192;
5315 amigaos*)
5316 # On AmigaOS with pdksh, this test takes hours, literally.
5317 # So we just punt and use a minimum line length of 8192.
5318 lt_cv_sys_max_cmd_len=8192;
5321 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5322 # This has been around since 386BSD, at least. Likely further.
5323 if test -x /sbin/sysctl; then
5324 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5325 elif test -x /usr/sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5327 else
5328 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5330 # And add a safety zone
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335 interix*)
5336 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5337 lt_cv_sys_max_cmd_len=196608
5340 osf*)
5341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5343 # nice to cause kernel panics so lets avoid the loop below.
5344 # First set a reasonable default.
5345 lt_cv_sys_max_cmd_len=16384
5347 if test -x /sbin/sysconfig; then
5348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5349 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5350 esac
5353 sco3.2v5*)
5354 lt_cv_sys_max_cmd_len=102400
5356 sysv5* | sco5v6* | sysv4.2uw2*)
5357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5358 if test -n "$kargmax"; then
5359 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5360 else
5361 lt_cv_sys_max_cmd_len=32768
5365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366 if test -n "$lt_cv_sys_max_cmd_len"; then
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369 else
5370 # Make teststring a little bigger before we do anything with it.
5371 # a 1K string should be a reasonable start.
5372 for i in 1 2 3 4 5 6 7 8 ; do
5373 teststring=$teststring$teststring
5374 done
5375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5376 # If test is not a shell built-in, we'll probably end up computing a
5377 # maximum length that is only half of the actual maximum length, but
5378 # we can't tell.
5379 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5380 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5381 test $i != 17 # 1/2 MB should be enough
5383 i=`expr $i + 1`
5384 teststring=$teststring$teststring
5385 done
5386 # Only check the string length outside the loop.
5387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5388 teststring=
5389 # Add a significant safety factor because C++ compilers can tack on
5390 # massive amounts of additional arguments before passing them to the
5391 # linker. It appears as though 1/2 is a usable value.
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5395 esac
5399 if test -n $lt_cv_sys_max_cmd_len ; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5401 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5404 $as_echo "none" >&6; }
5406 max_cmd_len=$lt_cv_sys_max_cmd_len
5413 : ${CP="cp -f"}
5414 : ${MV="mv -f"}
5415 : ${RM="rm -f"}
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5418 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5419 # Try some XSI features
5420 xsi_shell=no
5421 ( _lt_dummy="a/b/c"
5422 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5423 = c,a/b,, \
5424 && eval 'test $(( 1 + 1 )) -eq 2 \
5425 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5426 && xsi_shell=yes
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5428 $as_echo "$xsi_shell" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5432 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5433 lt_shell_append=no
5434 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5435 >/dev/null 2>&1 \
5436 && lt_shell_append=yes
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5438 $as_echo "$lt_shell_append" >&6; }
5441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5442 lt_unset=unset
5443 else
5444 lt_unset=false
5451 # test EBCDIC or ASCII
5452 case `echo X|tr X '\101'` in
5453 A) # ASCII based system
5454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5455 lt_SP2NL='tr \040 \012'
5456 lt_NL2SP='tr \015\012 \040\040'
5458 *) # EBCDIC based system
5459 lt_SP2NL='tr \100 \n'
5460 lt_NL2SP='tr \r\n \100\100'
5462 esac
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5473 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5474 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 lt_cv_ld_reload_flag='-r'
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5480 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5481 reload_flag=$lt_cv_ld_reload_flag
5482 case $reload_flag in
5483 "" | " "*) ;;
5484 *) reload_flag=" $reload_flag" ;;
5485 esac
5486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487 case $host_os in
5488 darwin*)
5489 if test "$GCC" = yes; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5491 else
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5495 esac
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$OBJDUMP"; then
5514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5529 IFS=$as_save_IFS
5533 OBJDUMP=$ac_cv_prog_OBJDUMP
5534 if test -n "$OBJDUMP"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5536 $as_echo "$OBJDUMP" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5544 if test -z "$ac_cv_prog_OBJDUMP"; then
5545 ac_ct_OBJDUMP=$OBJDUMP
5546 # Extract the first word of "objdump", so it can be a program name with args.
5547 set dummy objdump; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$ac_ct_OBJDUMP"; then
5554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5576 $as_echo "$ac_ct_OBJDUMP" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5582 if test "x$ac_ct_OBJDUMP" = x; then
5583 OBJDUMP="false"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591 OBJDUMP=$ac_ct_OBJDUMP
5593 else
5594 OBJDUMP="$ac_cv_prog_OBJDUMP"
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5608 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5609 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 lt_cv_file_magic_cmd='$MAGIC_CMD'
5613 lt_cv_file_magic_test_file=
5614 lt_cv_deplibs_check_method='unknown'
5615 # Need to set the preceding variable on all platforms that support
5616 # interlibrary dependencies.
5617 # 'none' -- dependencies not supported.
5618 # `unknown' -- same as none, but documents that we really don't know.
5619 # 'pass_all' -- all dependencies passed with no checks.
5620 # 'test_compile' -- check by making test program.
5621 # 'file_magic [[regex]]' -- check by looking for files in library path
5622 # which responds to the $file_magic_cmd with a given extended regex.
5623 # If you have `file' or equivalent on your system and you're not sure
5624 # whether `pass_all' will *always* work, you probably want this one.
5626 case $host_os in
5627 aix[4-9]*)
5628 lt_cv_deplibs_check_method=pass_all
5631 beos*)
5632 lt_cv_deplibs_check_method=pass_all
5635 bsdi[45]*)
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5637 lt_cv_file_magic_cmd='/usr/bin/file -L'
5638 lt_cv_file_magic_test_file=/shlib/libc.so
5641 cygwin*)
5642 # func_win32_libid is a shell function defined in ltmain.sh
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5647 mingw* | pw32*)
5648 # Base MSYS/MinGW do not provide the 'file' command needed by
5649 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5650 # unless we find 'file', for example because we are cross-compiling.
5651 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5652 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654 lt_cv_file_magic_cmd='func_win32_libid'
5655 else
5656 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5657 lt_cv_file_magic_cmd='$OBJDUMP -f'
5661 cegcc*)
5662 # use the weaker test based on 'objdump'. See mingw*.
5663 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5664 lt_cv_file_magic_cmd='$OBJDUMP -f'
5667 darwin* | rhapsody*)
5668 lt_cv_deplibs_check_method=pass_all
5671 freebsd* | dragonfly*)
5672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5673 case $host_cpu in
5674 i*86 )
5675 # Not sure whether the presence of OpenBSD here was a mistake.
5676 # Let's accept both of them until this is cleared up.
5677 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5678 lt_cv_file_magic_cmd=/usr/bin/file
5679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5681 esac
5682 else
5683 lt_cv_deplibs_check_method=pass_all
5687 gnu*)
5688 lt_cv_deplibs_check_method=pass_all
5691 haiku*)
5692 lt_cv_deplibs_check_method=pass_all
5695 hpux10.20* | hpux11*)
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 case $host_cpu in
5698 ia64*)
5699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5700 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5702 hppa*64*)
5703 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]'
5704 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5708 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5710 esac
5713 interix[3-9]*)
5714 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5718 irix5* | irix6* | nonstopux*)
5719 case $LD in
5720 *-32|*"-32 ") libmagic=32-bit;;
5721 *-n32|*"-n32 ") libmagic=N32;;
5722 *-64|*"-64 ") libmagic=64-bit;;
5723 *) libmagic=never-match;;
5724 esac
5725 lt_cv_deplibs_check_method=pass_all
5728 # This must be Linux ELF.
5729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5730 lt_cv_deplibs_check_method=pass_all
5733 netbsd*)
5734 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5736 else
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5741 newos6*)
5742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5743 lt_cv_file_magic_cmd=/usr/bin/file
5744 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5747 *nto* | *qnx*)
5748 lt_cv_deplibs_check_method=pass_all
5751 openbsd*)
5752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5759 osf3* | osf4* | osf5*)
5760 lt_cv_deplibs_check_method=pass_all
5763 rdos*)
5764 lt_cv_deplibs_check_method=pass_all
5767 solaris*)
5768 lt_cv_deplibs_check_method=pass_all
5771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5772 lt_cv_deplibs_check_method=pass_all
5775 sysv4 | sysv4.3*)
5776 case $host_vendor in
5777 motorola)
5778 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]'
5779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5781 ncr)
5782 lt_cv_deplibs_check_method=pass_all
5784 sequent)
5785 lt_cv_file_magic_cmd='/bin/file'
5786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5788 sni)
5789 lt_cv_file_magic_cmd='/bin/file'
5790 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5791 lt_cv_file_magic_test_file=/lib/libc.so
5793 siemens)
5794 lt_cv_deplibs_check_method=pass_all
5797 lt_cv_deplibs_check_method=pass_all
5799 esac
5802 tpf*)
5803 lt_cv_deplibs_check_method=pass_all
5805 esac
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5809 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5810 file_magic_cmd=$lt_cv_file_magic_cmd
5811 deplibs_check_method=$lt_cv_deplibs_check_method
5812 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ar; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_AR+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$AR"; then
5834 ac_cv_prog_AR="$AR" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_AR="${ac_tool_prefix}ar"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5853 AR=$ac_cv_prog_AR
5854 if test -n "$AR"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5856 $as_echo "$AR" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5864 if test -z "$ac_cv_prog_AR"; then
5865 ac_ct_AR=$AR
5866 # Extract the first word of "ar", so it can be a program name with args.
5867 set dummy ar; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -n "$ac_ct_AR"; then
5874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_ac_ct_AR="ar"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5887 done
5888 done
5889 IFS=$as_save_IFS
5893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5894 if test -n "$ac_ct_AR"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5896 $as_echo "$ac_ct_AR" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5902 if test "x$ac_ct_AR" = x; then
5903 AR="false"
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 AR=$ac_ct_AR
5913 else
5914 AR="$ac_cv_prog_AR"
5917 test -z "$AR" && AR=ar
5918 test -z "$AR_FLAGS" && AR_FLAGS=cru
5930 if test -n "$ac_tool_prefix"; then
5931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}strip; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_prog_STRIP+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -n "$STRIP"; then
5939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5952 done
5953 done
5954 IFS=$as_save_IFS
5958 STRIP=$ac_cv_prog_STRIP
5959 if test -n "$STRIP"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5961 $as_echo "$STRIP" >&6; }
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5969 if test -z "$ac_cv_prog_STRIP"; then
5970 ac_ct_STRIP=$STRIP
5971 # Extract the first word of "strip", so it can be a program name with args.
5972 set dummy strip; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$ac_ct_STRIP"; then
5979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_prog_ac_ct_STRIP="strip"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5999 if test -n "$ac_ct_STRIP"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6001 $as_echo "$ac_ct_STRIP" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6007 if test "x$ac_ct_STRIP" = x; then
6008 STRIP=":"
6009 else
6010 case $cross_compiling:$ac_tool_warned in
6011 yes:)
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014 ac_tool_warned=yes ;;
6015 esac
6016 STRIP=$ac_ct_STRIP
6018 else
6019 STRIP="$ac_cv_prog_STRIP"
6022 test -z "$STRIP" && STRIP=:
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test -n "$RANLIB"; then
6038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6051 done
6052 done
6053 IFS=$as_save_IFS
6057 RANLIB=$ac_cv_prog_RANLIB
6058 if test -n "$RANLIB"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6060 $as_echo "$RANLIB" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test -z "$ac_cv_prog_RANLIB"; then
6069 ac_ct_RANLIB=$RANLIB
6070 # Extract the first word of "ranlib", so it can be a program name with args.
6071 set dummy ranlib; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if test -n "$ac_ct_RANLIB"; then
6078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_RANLIB="ranlib"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6091 done
6092 done
6093 IFS=$as_save_IFS
6097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6098 if test -n "$ac_ct_RANLIB"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6100 $as_echo "$ac_ct_RANLIB" >&6; }
6101 else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6106 if test "x$ac_ct_RANLIB" = x; then
6107 RANLIB=":"
6108 else
6109 case $cross_compiling:$ac_tool_warned in
6110 yes:)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6114 esac
6115 RANLIB=$ac_ct_RANLIB
6117 else
6118 RANLIB="$ac_cv_prog_RANLIB"
6121 test -z "$RANLIB" && RANLIB=:
6128 # Determine commands to create old-style static archives.
6129 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6130 old_postinstall_cmds='chmod 644 $oldlib'
6131 old_postuninstall_cmds=
6133 if test -n "$RANLIB"; then
6134 case $host_os in
6135 openbsd*)
6136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6141 esac
6142 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6145 case $host_os in
6146 darwin*)
6147 lock_old_archive_extraction=yes ;;
6149 lock_old_archive_extraction=no ;;
6150 esac
6190 # If no C compiler was specified, use CC.
6191 LTCC=${LTCC-"$CC"}
6193 # If no C compiler flags were specified, use CFLAGS.
6194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6196 # Allow CC to be a program name with arguments.
6197 compiler=$CC
6200 # Check for command to grab the raw symbol name followed by C symbol from nm.
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6202 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6203 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6207 # These are sane defaults that work on at least a few old systems.
6208 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6210 # Character class describing NM global symbol codes.
6211 symcode='[BCDEGRST]'
6213 # Regexp to match symbols that can be accessed directly from C.
6214 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6216 # Define system-specific variables.
6217 case $host_os in
6218 aix*)
6219 symcode='[BCDT]'
6221 cygwin* | mingw* | pw32* | cegcc*)
6222 symcode='[ABCDGISTW]'
6224 hpux*)
6225 if test "$host_cpu" = ia64; then
6226 symcode='[ABCDEGRST]'
6229 irix* | nonstopux*)
6230 symcode='[BCDEGRST]'
6232 osf*)
6233 symcode='[BCDEGQRST]'
6235 solaris*)
6236 symcode='[BDRT]'
6238 sco3.2v5*)
6239 symcode='[DT]'
6241 sysv4.2uw2*)
6242 symcode='[DT]'
6244 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6245 symcode='[ABDT]'
6247 sysv4)
6248 symcode='[DFNSTU]'
6250 esac
6252 # If we're using GNU nm, then use its standard symbol codes.
6253 case `$NM -V 2>&1` in
6254 *GNU* | *'with BFD'*)
6255 symcode='[ABCDGIRSTW]' ;;
6256 esac
6258 # Transform an extracted symbol line into a proper C declaration.
6259 # Some systems (esp. on ia64) link data and code symbols differently,
6260 # so use this general approach.
6261 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6263 # Transform an extracted symbol line into symbol name and symbol address
6264 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6265 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'"
6267 # Handle CRLF in mingw tool chain
6268 opt_cr=
6269 case $build_os in
6270 mingw*)
6271 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6273 esac
6275 # Try without a prefix underscore, then with it.
6276 for ac_symprfx in "" "_"; do
6278 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6279 symxfrm="\\1 $ac_symprfx\\2 \\2"
6281 # Write the raw and C identifiers.
6282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6283 # Fake it for dumpbin and say T for any non-static function
6284 # and D for any global variable.
6285 # Also find C++ and __fastcall symbols from MSVC++,
6286 # which start with @ or ?.
6287 lt_cv_sys_global_symbol_pipe="$AWK '"\
6288 " {last_section=section; section=\$ 3};"\
6289 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6290 " \$ 0!~/External *\|/{next};"\
6291 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6292 " {if(hide[section]) next};"\
6293 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6294 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6295 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6296 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6297 " ' prfx=^$ac_symprfx"
6298 else
6299 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6302 # Check to see that the pipe works correctly.
6303 pipe_works=no
6305 rm -f conftest*
6306 cat > conftest.$ac_ext <<_LT_EOF
6307 #ifdef __cplusplus
6308 extern "C" {
6309 #endif
6310 char nm_test_var;
6311 void nm_test_func(void);
6312 void nm_test_func(void){}
6313 #ifdef __cplusplus
6315 #endif
6316 int main(){nm_test_var='a';nm_test_func();return(0);}
6317 _LT_EOF
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320 (eval $ac_compile) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
6324 # Now try to grab the symbols.
6325 nlist=conftest.nm
6326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6327 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6328 ac_status=$?
6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330 test $ac_status = 0; } && test -s "$nlist"; then
6331 # Try sorting and uniquifying the output.
6332 if sort "$nlist" | uniq > "$nlist"T; then
6333 mv -f "$nlist"T "$nlist"
6334 else
6335 rm -f "$nlist"T
6338 # Make sure that we snagged all the symbols we need.
6339 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6340 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6341 cat <<_LT_EOF > conftest.$ac_ext
6342 #ifdef __cplusplus
6343 extern "C" {
6344 #endif
6346 _LT_EOF
6347 # Now generate the symbol file.
6348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6350 cat <<_LT_EOF >> conftest.$ac_ext
6352 /* The mapping between symbol names and symbols. */
6353 const struct {
6354 const char *name;
6355 void *address;
6357 lt__PROGRAM__LTX_preloaded_symbols[] =
6359 { "@PROGRAM@", (void *) 0 },
6360 _LT_EOF
6361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6362 cat <<\_LT_EOF >> conftest.$ac_ext
6363 {0, (void *) 0}
6366 /* This works around a problem in FreeBSD linker */
6367 #ifdef FREEBSD_WORKAROUND
6368 static const void *lt_preloaded_setup() {
6369 return lt__PROGRAM__LTX_preloaded_symbols;
6371 #endif
6373 #ifdef __cplusplus
6375 #endif
6376 _LT_EOF
6377 # Now try linking the two files.
6378 mv conftest.$ac_objext conftstm.$ac_objext
6379 lt_save_LIBS="$LIBS"
6380 lt_save_CFLAGS="$CFLAGS"
6381 LIBS="conftstm.$ac_objext"
6382 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6384 (eval $ac_link) 2>&5
6385 ac_status=$?
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6388 pipe_works=yes
6390 LIBS="$lt_save_LIBS"
6391 CFLAGS="$lt_save_CFLAGS"
6392 else
6393 echo "cannot find nm_test_func in $nlist" >&5
6395 else
6396 echo "cannot find nm_test_var in $nlist" >&5
6398 else
6399 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6401 else
6402 echo "$progname: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6405 rm -rf conftest* conftst*
6407 # Do not use the global_symbol_pipe unless it works.
6408 if test "$pipe_works" = yes; then
6409 break
6410 else
6411 lt_cv_sys_global_symbol_pipe=
6413 done
6417 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6418 lt_cv_sys_global_symbol_to_cdecl=
6420 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6422 $as_echo "failed" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6425 $as_echo "ok" >&6; }
6450 # Check whether --enable-libtool-lock was given.
6451 if test "${enable_libtool_lock+set}" = set; then :
6452 enableval=$enable_libtool_lock;
6455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6457 # Some flags need to be propagated to the compiler or linker for good
6458 # libtool support.
6459 case $host in
6460 ia64-*-hpux*)
6461 # Find out which ABI we are using.
6462 echo 'int i;' > conftest.$ac_ext
6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464 (eval $ac_compile) 2>&5
6465 ac_status=$?
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *ELF-32*)
6470 HPUX_IA64_MODE="32"
6472 *ELF-64*)
6473 HPUX_IA64_MODE="64"
6475 esac
6477 rm -rf conftest*
6479 *-*-irix6*)
6480 # Find out which ABI we are using.
6481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483 (eval $ac_compile) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; then
6487 if test "$lt_cv_prog_gnu_ld" = yes; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -melf32bsmip"
6492 *N32*)
6493 LD="${LD-ld} -melf32bmipn32"
6495 *64-bit*)
6496 LD="${LD-ld} -melf64bmip"
6498 esac
6499 else
6500 case `/usr/bin/file conftest.$ac_objext` in
6501 *32-bit*)
6502 LD="${LD-ld} -32"
6504 *N32*)
6505 LD="${LD-ld} -n32"
6507 *64-bit*)
6508 LD="${LD-ld} -64"
6510 esac
6513 rm -rf conftest*
6516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6517 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6518 # Find out which ABI we are using.
6519 echo 'int i;' > conftest.$ac_ext
6520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521 (eval $ac_compile) 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524 test $ac_status = 0; }; then
6525 case `/usr/bin/file conftest.o` in
6526 *32-bit*)
6527 case $host in
6528 x86_64-*kfreebsd*-gnu)
6529 LD="${LD-ld} -m elf_i386_fbsd"
6531 x86_64-*linux*)
6532 case `/usr/bin/file conftest.o` in
6533 *x86-64*)
6534 LD="${LD-ld} -m elf32_x86_64"
6537 LD="${LD-ld} -m elf_i386"
6539 esac
6541 powerpc64le-*linux*)
6542 LD="${LD-ld} -m elf32lppclinux"
6544 powerpc64-*linux*)
6545 LD="${LD-ld} -m elf32ppclinux"
6547 s390x-*linux*)
6548 LD="${LD-ld} -m elf_s390"
6550 sparc64-*linux*)
6551 LD="${LD-ld} -m elf32_sparc"
6553 esac
6555 *64-bit*)
6556 case $host in
6557 x86_64-*kfreebsd*-gnu)
6558 LD="${LD-ld} -m elf_x86_64_fbsd"
6560 x86_64-*linux*)
6561 LD="${LD-ld} -m elf_x86_64"
6563 powerpcle-*linux*)
6564 LD="${LD-ld} -m elf64lppc"
6566 powerpc-*linux*)
6567 LD="${LD-ld} -m elf64ppc"
6569 s390*-*linux*|s390*-*tpf*)
6570 LD="${LD-ld} -m elf64_s390"
6572 sparc*-*linux*)
6573 LD="${LD-ld} -m elf64_sparc"
6575 esac
6577 esac
6579 rm -rf conftest*
6582 *-*-sco3.2v5*)
6583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6584 SAVE_CFLAGS="$CFLAGS"
6585 CFLAGS="$CFLAGS -belf"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6587 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6588 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 main ()
6605 return 0;
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"; then :
6609 lt_cv_cc_needs_belf=yes
6610 else
6611 lt_cv_cc_needs_belf=no
6613 rm -f core conftest.err conftest.$ac_objext \
6614 conftest$ac_exeext conftest.$ac_ext
6615 ac_ext=c
6616 ac_cpp='$CPP $CPPFLAGS'
6617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6623 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6624 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6625 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6626 CFLAGS="$SAVE_CFLAGS"
6629 sparc*-*solaris*)
6630 # Find out which ABI we are using.
6631 echo 'int i;' > conftest.$ac_ext
6632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
6637 case `/usr/bin/file conftest.o` in
6638 *64-bit*)
6639 case $lt_cv_prog_gnu_ld in
6640 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6642 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6643 LD="${LD-ld} -64"
6646 esac
6648 esac
6650 rm -rf conftest*
6652 esac
6654 need_locks="$enable_libtool_lock"
6657 case $host_os in
6658 rhapsody* | darwin*)
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$DSYMUTIL"; then
6668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6681 done
6682 done
6683 IFS=$as_save_IFS
6687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6688 if test -n "$DSYMUTIL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6690 $as_echo "$DSYMUTIL" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6698 if test -z "$ac_cv_prog_DSYMUTIL"; then
6699 ac_ct_DSYMUTIL=$DSYMUTIL
6700 # Extract the first word of "dsymutil", so it can be a program name with args.
6701 set dummy dsymutil; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6728 if test -n "$ac_ct_DSYMUTIL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6736 if test "x$ac_ct_DSYMUTIL" = x; then
6737 DSYMUTIL=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 DSYMUTIL=$ac_ct_DSYMUTIL
6747 else
6748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$NMEDIT"; then
6760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6773 done
6774 done
6775 IFS=$as_save_IFS
6779 NMEDIT=$ac_cv_prog_NMEDIT
6780 if test -n "$NMEDIT"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6782 $as_echo "$NMEDIT" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6790 if test -z "$ac_cv_prog_NMEDIT"; then
6791 ac_ct_NMEDIT=$NMEDIT
6792 # Extract the first word of "nmedit", so it can be a program name with args.
6793 set dummy nmedit; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_NMEDIT"; then
6800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6820 if test -n "$ac_ct_NMEDIT"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6822 $as_echo "$ac_ct_NMEDIT" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6828 if test "x$ac_ct_NMEDIT" = x; then
6829 NMEDIT=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 NMEDIT=$ac_ct_NMEDIT
6839 else
6840 NMEDIT="$ac_cv_prog_NMEDIT"
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_LIPO+set}" = set; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$LIPO"; then
6852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6865 done
6866 done
6867 IFS=$as_save_IFS
6871 LIPO=$ac_cv_prog_LIPO
6872 if test -n "$LIPO"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6874 $as_echo "$LIPO" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6882 if test -z "$ac_cv_prog_LIPO"; then
6883 ac_ct_LIPO=$LIPO
6884 # Extract the first word of "lipo", so it can be a program name with args.
6885 set dummy lipo; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$ac_ct_LIPO"; then
6892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_ac_ct_LIPO="lipo"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6912 if test -n "$ac_ct_LIPO"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6914 $as_echo "$ac_ct_LIPO" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6920 if test "x$ac_ct_LIPO" = x; then
6921 LIPO=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 LIPO=$ac_ct_LIPO
6931 else
6932 LIPO="$ac_cv_prog_LIPO"
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}otool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$OTOOL"; then
6944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 OTOOL=$ac_cv_prog_OTOOL
6964 if test -n "$OTOOL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6966 $as_echo "$OTOOL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6974 if test -z "$ac_cv_prog_OTOOL"; then
6975 ac_ct_OTOOL=$OTOOL
6976 # Extract the first word of "otool", so it can be a program name with args.
6977 set dummy otool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_OTOOL"; then
6984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_ac_ct_OTOOL="otool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7004 if test -n "$ac_ct_OTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7006 $as_echo "$ac_ct_OTOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7012 if test "x$ac_ct_OTOOL" = x; then
7013 OTOOL=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 OTOOL=$ac_ct_OTOOL
7023 else
7024 OTOOL="$ac_cv_prog_OTOOL"
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$OTOOL64"; then
7036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 OTOOL64=$ac_cv_prog_OTOOL64
7056 if test -n "$OTOOL64"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7058 $as_echo "$OTOOL64" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_OTOOL64"; then
7067 ac_ct_OTOOL64=$OTOOL64
7068 # Extract the first word of "otool64", so it can be a program name with args.
7069 set dummy otool64; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_OTOOL64"; then
7076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_OTOOL64="otool64"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7096 if test -n "$ac_ct_OTOOL64"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7098 $as_echo "$ac_ct_OTOOL64" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_OTOOL64" = x; then
7105 OTOOL64=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 OTOOL64=$ac_ct_OTOOL64
7115 else
7116 OTOOL64="$ac_cv_prog_OTOOL64"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7146 $as_echo_n "checking for -single_module linker flag... " >&6; }
7147 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 lt_cv_apple_cc_single_mod=no
7151 if test -z "${LT_MULTI_MODULE}"; then
7152 # By default we will add the -single_module flag. You can override
7153 # by either setting the environment variable LT_MULTI_MODULE
7154 # non-empty at configure time, or by adding -multi_module to the
7155 # link flags.
7156 rm -rf libconftest.dylib*
7157 echo "int foo(void){return 1;}" > conftest.c
7158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7159 -dynamiclib -Wl,-single_module conftest.c" >&5
7160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7162 _lt_result=$?
7163 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7164 lt_cv_apple_cc_single_mod=yes
7165 else
7166 cat conftest.err >&5
7168 rm -rf libconftest.dylib*
7169 rm -f conftest.*
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7173 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7175 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7176 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 lt_cv_ld_exported_symbols_list=no
7180 save_LDFLAGS=$LDFLAGS
7181 echo "_main" > conftest.sym
7182 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 main ()
7191 return 0;
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"; then :
7195 lt_cv_ld_exported_symbols_list=yes
7196 else
7197 lt_cv_ld_exported_symbols_list=no
7199 rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201 LDFLAGS="$save_LDFLAGS"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7205 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7207 $as_echo_n "checking for -force_load linker flag... " >&6; }
7208 if test "${lt_cv_ld_force_load+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 lt_cv_ld_force_load=no
7212 cat > conftest.c << _LT_EOF
7213 int forced_loaded() { return 2;}
7214 _LT_EOF
7215 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7216 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7217 echo "$AR cru libconftest.a conftest.o" >&5
7218 $AR cru libconftest.a conftest.o 2>&5
7219 cat > conftest.c << _LT_EOF
7220 int main() { return 0;}
7221 _LT_EOF
7222 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7223 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7224 _lt_result=$?
7225 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7226 lt_cv_ld_force_load=yes
7227 else
7228 cat conftest.err >&5
7230 rm -f conftest.err libconftest.a conftest conftest.c
7231 rm -rf conftest.dSYM
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7235 $as_echo "$lt_cv_ld_force_load" >&6; }
7236 case $host_os in
7237 rhapsody* | darwin1.[012])
7238 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7239 darwin1.*)
7240 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7241 darwin*) # darwin 5.x on
7242 # if running on 10.5 or later, the deployment target defaults
7243 # to the OS version, if on x86, and 10.4, the deployment
7244 # target defaults to 10.4. Don't you love it?
7245 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7246 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7248 10.[012][,.]*)
7249 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7250 10.*)
7251 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7252 esac
7254 esac
7255 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7256 _lt_dar_single_mod='$single_module'
7258 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7259 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7260 else
7261 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7263 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7264 _lt_dsymutil='~$DSYMUTIL $lib || :'
7265 else
7266 _lt_dsymutil=
7269 esac
7271 ac_ext=c
7272 ac_cpp='$CPP $CPPFLAGS'
7273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7277 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7278 # On Suns, sometimes $CPP names a directory.
7279 if test -n "$CPP" && test -d "$CPP"; then
7280 CPP=
7282 if test -z "$CPP"; then
7283 if test "${ac_cv_prog_CPP+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 # Double quotes because CPP needs to be expanded
7287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7289 ac_preproc_ok=false
7290 for ac_c_preproc_warn_flag in '' yes
7292 # Use a header file that comes with gcc, so configuring glibc
7293 # with a fresh cross-compiler works.
7294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 # <limits.h> exists even on freestanding compilers.
7296 # On the NeXT, cc -E runs the code through the compiler's parser,
7297 # not just through cpp. "Syntax error" is here to catch this case.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #ifdef __STDC__
7301 # include <limits.h>
7302 #else
7303 # include <assert.h>
7304 #endif
7305 Syntax error
7306 _ACEOF
7307 if ac_fn_c_try_cpp "$LINENO"; then :
7309 else
7310 # Broken: fails on valid input.
7311 continue
7313 rm -f conftest.err conftest.$ac_ext
7315 # OK, works on sane cases. Now check whether nonexistent headers
7316 # can be detected and how.
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 #include <ac_nonexistent.h>
7320 _ACEOF
7321 if ac_fn_c_try_cpp "$LINENO"; then :
7322 # Broken: success on invalid input.
7323 continue
7324 else
7325 # Passes both tests.
7326 ac_preproc_ok=:
7327 break
7329 rm -f conftest.err conftest.$ac_ext
7331 done
7332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7333 rm -f conftest.err conftest.$ac_ext
7334 if $ac_preproc_ok; then :
7335 break
7338 done
7339 ac_cv_prog_CPP=$CPP
7342 CPP=$ac_cv_prog_CPP
7343 else
7344 ac_cv_prog_CPP=$CPP
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7347 $as_echo "$CPP" >&6; }
7348 ac_preproc_ok=false
7349 for ac_c_preproc_warn_flag in '' yes
7351 # Use a header file that comes with gcc, so configuring glibc
7352 # with a fresh cross-compiler works.
7353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7354 # <limits.h> exists even on freestanding compilers.
7355 # On the NeXT, cc -E runs the code through the compiler's parser,
7356 # not just through cpp. "Syntax error" is here to catch this case.
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 #ifdef __STDC__
7360 # include <limits.h>
7361 #else
7362 # include <assert.h>
7363 #endif
7364 Syntax error
7365 _ACEOF
7366 if ac_fn_c_try_cpp "$LINENO"; then :
7368 else
7369 # Broken: fails on valid input.
7370 continue
7372 rm -f conftest.err conftest.$ac_ext
7374 # OK, works on sane cases. Now check whether nonexistent headers
7375 # can be detected and how.
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 #include <ac_nonexistent.h>
7379 _ACEOF
7380 if ac_fn_c_try_cpp "$LINENO"; then :
7381 # Broken: success on invalid input.
7382 continue
7383 else
7384 # Passes both tests.
7385 ac_preproc_ok=:
7386 break
7388 rm -f conftest.err conftest.$ac_ext
7390 done
7391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7392 rm -f conftest.err conftest.$ac_ext
7393 if $ac_preproc_ok; then :
7395 else
7396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7398 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7399 See \`config.log' for more details." "$LINENO" 5; }
7402 ac_ext=c
7403 ac_cpp='$CPP $CPPFLAGS'
7404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7410 $as_echo_n "checking for ANSI C header files... " >&6; }
7411 if test "${ac_cv_header_stdc+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #include <stdlib.h>
7417 #include <stdarg.h>
7418 #include <string.h>
7419 #include <float.h>
7422 main ()
7426 return 0;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 ac_cv_header_stdc=yes
7431 else
7432 ac_cv_header_stdc=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 if test $ac_cv_header_stdc = yes; then
7437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <string.h>
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "memchr" >/dev/null 2>&1; then :
7446 else
7447 ac_cv_header_stdc=no
7449 rm -f conftest*
7453 if test $ac_cv_header_stdc = yes; then
7454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <stdlib.h>
7459 _ACEOF
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 $EGREP "free" >/dev/null 2>&1; then :
7463 else
7464 ac_cv_header_stdc=no
7466 rm -f conftest*
7470 if test $ac_cv_header_stdc = yes; then
7471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7472 if test "$cross_compiling" = yes; then :
7474 else
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #include <ctype.h>
7478 #include <stdlib.h>
7479 #if ((' ' & 0x0FF) == 0x020)
7480 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7481 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7482 #else
7483 # define ISLOWER(c) \
7484 (('a' <= (c) && (c) <= 'i') \
7485 || ('j' <= (c) && (c) <= 'r') \
7486 || ('s' <= (c) && (c) <= 'z'))
7487 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7488 #endif
7490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7492 main ()
7494 int i;
7495 for (i = 0; i < 256; i++)
7496 if (XOR (islower (i), ISLOWER (i))
7497 || toupper (i) != TOUPPER (i))
7498 return 2;
7499 return 0;
7501 _ACEOF
7502 if ac_fn_c_try_run "$LINENO"; then :
7504 else
7505 ac_cv_header_stdc=no
7507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7508 conftest.$ac_objext conftest.beam conftest.$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7514 $as_echo "$ac_cv_header_stdc" >&6; }
7515 if test $ac_cv_header_stdc = yes; then
7517 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7523 inttypes.h stdint.h unistd.h
7524 do :
7525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7526 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7528 eval as_val=\$$as_ac_Header
7529 if test "x$as_val" = x""yes; then :
7530 cat >>confdefs.h <<_ACEOF
7531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 _ACEOF
7536 done
7539 for ac_header in dlfcn.h
7540 do :
7541 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7543 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7544 cat >>confdefs.h <<_ACEOF
7545 #define HAVE_DLFCN_H 1
7546 _ACEOF
7550 done
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_GOC+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$GOC"; then
7561 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7574 done
7575 done
7576 IFS=$as_save_IFS
7580 GOC=$ac_cv_prog_GOC
7581 if test -n "$GOC"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7583 $as_echo "$GOC" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_GOC"; then
7592 ac_ct_GOC=$GOC
7593 # Extract the first word of "gccgo", so it can be a program name with args.
7594 set dummy gccgo; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_GOC"; then
7601 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_GOC="gccgo"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7621 if test -n "$ac_ct_GOC"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7623 $as_echo "$ac_ct_GOC" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_GOC" = x; then
7630 GOC=""
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638 GOC=$ac_ct_GOC
7640 else
7641 GOC="$ac_cv_prog_GOC"
7649 # Set options
7654 enable_win32_dll=no
7657 # Check whether --enable-shared was given.
7658 if test "${enable_shared+set}" = set; then :
7659 enableval=$enable_shared; p=${PACKAGE-default}
7660 case $enableval in
7661 yes) enable_shared=yes ;;
7662 no) enable_shared=no ;;
7664 enable_shared=no
7665 # Look at the argument we got. We use all the common list separators.
7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7667 for pkg in $enableval; do
7668 IFS="$lt_save_ifs"
7669 if test "X$pkg" = "X$p"; then
7670 enable_shared=yes
7672 done
7673 IFS="$lt_save_ifs"
7675 esac
7676 else
7677 enable_shared=yes
7688 # Check whether --enable-static was given.
7689 if test "${enable_static+set}" = set; then :
7690 enableval=$enable_static; p=${PACKAGE-default}
7691 case $enableval in
7692 yes) enable_static=yes ;;
7693 no) enable_static=no ;;
7695 enable_static=no
7696 # Look at the argument we got. We use all the common list separators.
7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698 for pkg in $enableval; do
7699 IFS="$lt_save_ifs"
7700 if test "X$pkg" = "X$p"; then
7701 enable_static=yes
7703 done
7704 IFS="$lt_save_ifs"
7706 esac
7707 else
7708 enable_static=yes
7720 # Check whether --with-pic was given.
7721 if test "${with_pic+set}" = set; then :
7722 withval=$with_pic; pic_mode="$withval"
7723 else
7724 pic_mode=default
7728 test -z "$pic_mode" && pic_mode=default
7736 # Check whether --enable-fast-install was given.
7737 if test "${enable_fast_install+set}" = set; then :
7738 enableval=$enable_fast_install; p=${PACKAGE-default}
7739 case $enableval in
7740 yes) enable_fast_install=yes ;;
7741 no) enable_fast_install=no ;;
7743 enable_fast_install=no
7744 # Look at the argument we got. We use all the common list separators.
7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7746 for pkg in $enableval; do
7747 IFS="$lt_save_ifs"
7748 if test "X$pkg" = "X$p"; then
7749 enable_fast_install=yes
7751 done
7752 IFS="$lt_save_ifs"
7754 esac
7755 else
7756 enable_fast_install=yes
7769 # This can be used to rebuild libtool when needed
7770 LIBTOOL_DEPS="$ltmain"
7772 # Always use our own libtool.
7773 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7800 test -z "$LN_S" && LN_S="ln -s"
7815 if test -n "${ZSH_VERSION+set}" ; then
7816 setopt NO_GLOB_SUBST
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7820 $as_echo_n "checking for objdir... " >&6; }
7821 if test "${lt_cv_objdir+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 rm -f .libs 2>/dev/null
7825 mkdir .libs 2>/dev/null
7826 if test -d .libs; then
7827 lt_cv_objdir=.libs
7828 else
7829 # MS-DOS does not allow filenames that begin with a dot.
7830 lt_cv_objdir=_libs
7832 rmdir .libs 2>/dev/null
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7835 $as_echo "$lt_cv_objdir" >&6; }
7836 objdir=$lt_cv_objdir
7842 cat >>confdefs.h <<_ACEOF
7843 #define LT_OBJDIR "$lt_cv_objdir/"
7844 _ACEOF
7849 case $host_os in
7850 aix3*)
7851 # AIX sometimes has problems with the GCC collect2 program. For some
7852 # reason, if we set the COLLECT_NAMES environment variable, the problems
7853 # vanish in a puff of smoke.
7854 if test "X${COLLECT_NAMES+set}" != Xset; then
7855 COLLECT_NAMES=
7856 export COLLECT_NAMES
7859 esac
7861 # Global variables:
7862 ofile=libtool
7863 can_build_shared=yes
7865 # All known linkers require a `.a' archive for static linking (except MSVC,
7866 # which needs '.lib').
7867 libext=a
7869 with_gnu_ld="$lt_cv_prog_gnu_ld"
7871 old_CC="$CC"
7872 old_CFLAGS="$CFLAGS"
7874 # Set sane defaults for various variables
7875 test -z "$CC" && CC=cc
7876 test -z "$LTCC" && LTCC=$CC
7877 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7878 test -z "$LD" && LD=ld
7879 test -z "$ac_objext" && ac_objext=o
7881 for cc_temp in $compiler""; do
7882 case $cc_temp in
7883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7885 \-*) ;;
7886 *) break;;
7887 esac
7888 done
7889 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7892 # Only perform the check for file, if the check method requires it
7893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7894 case $deplibs_check_method in
7895 file_magic*)
7896 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7898 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7899 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 case $MAGIC_CMD in
7903 [\\/*] | ?:[\\/]*)
7904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7907 lt_save_MAGIC_CMD="$MAGIC_CMD"
7908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7910 for ac_dir in $ac_dummy; do
7911 IFS="$lt_save_ifs"
7912 test -z "$ac_dir" && ac_dir=.
7913 if test -f $ac_dir/${ac_tool_prefix}file; then
7914 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7915 if test -n "$file_magic_test_file"; then
7916 case $deplibs_check_method in
7917 "file_magic "*)
7918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7921 $EGREP "$file_magic_regex" > /dev/null; then
7923 else
7924 cat <<_LT_EOF 1>&2
7926 *** Warning: the command libtool uses to detect shared libraries,
7927 *** $file_magic_cmd, produces output that libtool cannot recognize.
7928 *** The result is that libtool may fail to recognize shared libraries
7929 *** as such. This will affect the creation of libtool libraries that
7930 *** depend on shared libraries, but programs linked with such libtool
7931 *** libraries will work regardless of this problem. Nevertheless, you
7932 *** may want to report the problem to your system manager and/or to
7933 *** bug-libtool@gnu.org
7935 _LT_EOF
7936 fi ;;
7937 esac
7939 break
7941 done
7942 IFS="$lt_save_ifs"
7943 MAGIC_CMD="$lt_save_MAGIC_CMD"
7945 esac
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if test -n "$MAGIC_CMD"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7951 $as_echo "$MAGIC_CMD" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7961 if test -z "$lt_cv_path_MAGIC_CMD"; then
7962 if test -n "$ac_tool_prefix"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7964 $as_echo_n "checking for file... " >&6; }
7965 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 case $MAGIC_CMD in
7969 [\\/*] | ?:[\\/]*)
7970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7973 lt_save_MAGIC_CMD="$MAGIC_CMD"
7974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976 for ac_dir in $ac_dummy; do
7977 IFS="$lt_save_ifs"
7978 test -z "$ac_dir" && ac_dir=.
7979 if test -f $ac_dir/file; then
7980 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7981 if test -n "$file_magic_test_file"; then
7982 case $deplibs_check_method in
7983 "file_magic "*)
7984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987 $EGREP "$file_magic_regex" > /dev/null; then
7989 else
7990 cat <<_LT_EOF 1>&2
7992 *** Warning: the command libtool uses to detect shared libraries,
7993 *** $file_magic_cmd, produces output that libtool cannot recognize.
7994 *** The result is that libtool may fail to recognize shared libraries
7995 *** as such. This will affect the creation of libtool libraries that
7996 *** depend on shared libraries, but programs linked with such libtool
7997 *** libraries will work regardless of this problem. Nevertheless, you
7998 *** may want to report the problem to your system manager and/or to
7999 *** bug-libtool@gnu.org
8001 _LT_EOF
8002 fi ;;
8003 esac
8005 break
8007 done
8008 IFS="$lt_save_ifs"
8009 MAGIC_CMD="$lt_save_MAGIC_CMD"
8011 esac
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if test -n "$MAGIC_CMD"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8017 $as_echo "$MAGIC_CMD" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8024 else
8025 MAGIC_CMD=:
8031 esac
8033 # Use C for the default configuration in the libtool script
8035 lt_save_CC="$CC"
8036 ac_ext=c
8037 ac_cpp='$CPP $CPPFLAGS'
8038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043 # Source file extension for C test sources.
8044 ac_ext=c
8046 # Object file extension for compiled C test sources.
8047 objext=o
8048 objext=$objext
8050 # Code to be used in simple compile tests
8051 lt_simple_compile_test_code="int some_variable = 0;"
8053 # Code to be used in simple link tests
8054 lt_simple_link_test_code='int main(){return(0);}'
8062 # If no C compiler was specified, use CC.
8063 LTCC=${LTCC-"$CC"}
8065 # If no C compiler flags were specified, use CFLAGS.
8066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8068 # Allow CC to be a program name with arguments.
8069 compiler=$CC
8071 # Save the default compiler, since it gets overwritten when the other
8072 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8073 compiler_DEFAULT=$CC
8075 # save warnings/boilerplate of simple test code
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8079 _lt_compiler_boilerplate=`cat conftest.err`
8080 $RM conftest*
8082 ac_outfile=conftest.$ac_objext
8083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085 _lt_linker_boilerplate=`cat conftest.err`
8086 $RM -r conftest*
8089 ## CAVEAT EMPTOR:
8090 ## There is no encapsulation within the following macros, do not change
8091 ## the running order or otherwise move them around unless you know exactly
8092 ## what you are doing...
8093 if test -n "$compiler"; then
8095 lt_prog_compiler_no_builtin_flag=
8097 if test "$GCC" = yes; then
8098 case $cc_basename in
8099 nvcc*)
8100 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8102 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8103 esac
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8106 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8107 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_prog_compiler_rtti_exceptions=no
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113 lt_compiler_flag="-fno-rtti -fno-exceptions"
8114 # Insert the option either (1) after the last *FLAGS variable, or
8115 # (2) before a word containing "conftest.", or (3) at the end.
8116 # Note that $ac_compile itself does not contain backslashes and begins
8117 # with a dollar sign (not a hyphen), so the echo should work correctly.
8118 # The option is referenced via a variable to avoid confusing sed.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>conftest.err)
8125 ac_status=$?
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s "$ac_outfile"; then
8129 # The compiler can only warn and ignore the option if not recognized
8130 # So say no if there are warnings other than the usual output.
8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_cv_prog_compiler_rtti_exceptions=yes
8137 $RM conftest*
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8141 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8145 else
8156 lt_prog_compiler_wl=
8157 lt_prog_compiler_pic=
8158 lt_prog_compiler_static=
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8161 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8163 if test "$GCC" = yes; then
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_static='-static'
8167 case $host_os in
8168 aix*)
8169 # All AIX code is PIC.
8170 if test "$host_cpu" = ia64; then
8171 # AIX 5 now supports IA64 processor
8172 lt_prog_compiler_static='-Bstatic'
8174 lt_prog_compiler_pic='-fPIC'
8177 amigaos*)
8178 case $host_cpu in
8179 powerpc)
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic='-fPIC'
8183 m68k)
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8186 # like `-m68040'.
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8189 esac
8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8193 # PIC is the default for these OSes.
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic='-DDLL_EXPORT'
8204 darwin* | rhapsody*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic='-fno-common'
8210 haiku*)
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static=
8216 hpux*)
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8220 case $host_cpu in
8221 hppa*64*)
8222 # +Z the default
8225 lt_prog_compiler_pic='-fPIC'
8227 esac
8230 interix[3-9]*)
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8235 msdosdjgpp*)
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared=no
8239 enable_shared=no
8242 *nto* | *qnx*)
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8244 # it will coredump.
8245 lt_prog_compiler_pic='-fPIC -shared'
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 lt_prog_compiler_pic=-Kconform_pic
8255 lt_prog_compiler_pic='-fPIC'
8257 esac
8259 case $cc_basename in
8260 nvcc*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl='-Xlinker '
8262 lt_prog_compiler_pic='-Xcompiler -fPIC'
8264 esac
8265 else
8266 # PORTME Check for flag to pass linker flags through the system compiler.
8267 case $host_os in
8268 aix*)
8269 lt_prog_compiler_wl='-Wl,'
8270 if test "$host_cpu" = ia64; then
8271 # AIX 5 now supports IA64 processor
8272 lt_prog_compiler_static='-Bstatic'
8273 else
8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8278 mingw* | cygwin* | pw32* | os2* | cegcc*)
8279 # This hack is so that the source file can tell whether it is being
8280 # built for inclusion in a dll (and should export symbols for example).
8281 lt_prog_compiler_pic='-DDLL_EXPORT'
8284 hpux9* | hpux10* | hpux11*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8287 # not for PA HP-UX.
8288 case $host_cpu in
8289 hppa*64*|ia64*)
8290 # +Z the default
8293 lt_prog_compiler_pic='+Z'
8295 esac
8296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8297 lt_prog_compiler_static='${wl}-a ${wl}archive'
8300 irix5* | irix6* | nonstopux*)
8301 lt_prog_compiler_wl='-Wl,'
8302 # PIC (with -KPIC) is the default.
8303 lt_prog_compiler_static='-non_shared'
8306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8307 case $cc_basename in
8308 # old Intel for x86_64 which still supported -KPIC.
8309 ecc*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-static'
8314 # icc used to be incompatible with GCC.
8315 # ICC 10 doesn't accept -KPIC any more.
8316 icc* | ifort*)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fPIC'
8319 lt_prog_compiler_static='-static'
8321 # Lahey Fortran 8.1.
8322 lf95*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='--shared'
8325 lt_prog_compiler_static='--static'
8327 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8328 # Portland Group compilers (*not* the Pentium gcc compiler,
8329 # which looks to be a dead project)
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-fpic'
8332 lt_prog_compiler_static='-Bstatic'
8334 ccc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 # All Alpha code is PIC.
8337 lt_prog_compiler_static='-non_shared'
8339 xl* | bgxl* | bgf* | mpixl*)
8340 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-qpic'
8343 lt_prog_compiler_static='-qstaticlink'
8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ F* | *Sun*Fortran*)
8348 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl=''
8353 *Sun\ C*)
8354 # Sun C 5.9
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl='-Wl,'
8359 esac
8361 esac
8364 newsos6)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8369 *nto* | *qnx*)
8370 # QNX uses GNU C++, but need to define -shared option too, otherwise
8371 # it will coredump.
8372 lt_prog_compiler_pic='-fPIC -shared'
8375 osf3* | osf4* | osf5*)
8376 lt_prog_compiler_wl='-Wl,'
8377 # All OSF/1 code is PIC.
8378 lt_prog_compiler_static='-non_shared'
8381 rdos*)
8382 lt_prog_compiler_static='-non_shared'
8385 solaris*)
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 case $cc_basename in
8389 f77* | f90* | f95*)
8390 lt_prog_compiler_wl='-Qoption ld ';;
8392 lt_prog_compiler_wl='-Wl,';;
8393 esac
8396 sunos4*)
8397 lt_prog_compiler_wl='-Qoption ld '
8398 lt_prog_compiler_pic='-PIC'
8399 lt_prog_compiler_static='-Bstatic'
8402 sysv4 | sysv4.2uw2* | sysv4.3*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8408 sysv4*MP*)
8409 if test -d /usr/nec ;then
8410 lt_prog_compiler_pic='-Kconform_pic'
8411 lt_prog_compiler_static='-Bstatic'
8415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-KPIC'
8418 lt_prog_compiler_static='-Bstatic'
8421 unicos*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_can_build_shared=no
8426 uts4*)
8427 lt_prog_compiler_pic='-pic'
8428 lt_prog_compiler_static='-Bstatic'
8432 lt_prog_compiler_can_build_shared=no
8434 esac
8437 case $host_os in
8438 # For platforms which do not support PIC, -DPIC is meaningless:
8439 *djgpp*)
8440 lt_prog_compiler_pic=
8443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8445 esac
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8447 $as_echo "$lt_prog_compiler_pic" >&6; }
8455 # Check to make sure the PIC flag actually works.
8457 if test -n "$lt_prog_compiler_pic"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8460 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 lt_cv_prog_compiler_pic_works=no
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 # The option is referenced via a variable to avoid confusing sed.
8472 lt_compile=`echo "$ac_compile" | $SED \
8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475 -e 's:$: $lt_compiler_flag:'`
8476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8477 (eval "$lt_compile" 2>conftest.err)
8478 ac_status=$?
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 if (exit $ac_status) && test -s "$ac_outfile"; then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings other than the usual output.
8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_pic_works=yes
8490 $RM conftest*
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8497 case $lt_prog_compiler_pic in
8498 "" | " "*) ;;
8499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500 esac
8501 else
8502 lt_prog_compiler_pic=
8503 lt_prog_compiler_can_build_shared=no
8514 # Check to make sure the static flag actually works.
8516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8519 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_static_works=no
8523 save_LDFLAGS="$LDFLAGS"
8524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8527 # The linker can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 if test -s conftest.err; then
8530 # Append any errors to the config.log.
8531 cat conftest.err 1>&5
8532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_static_works=yes
8537 else
8538 lt_cv_prog_compiler_static_works=yes
8541 $RM -r conftest*
8542 LDFLAGS="$save_LDFLAGS"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8546 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8548 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8550 else
8551 lt_prog_compiler_static=
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_c_o=no
8566 $RM -r conftest 2>/dev/null
8567 mkdir conftest
8568 cd conftest
8569 mkdir out
8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572 lt_compiler_flag="-o out/conftest2.$ac_objext"
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 lt_compile=`echo "$ac_compile" | $SED \
8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8580 -e 's:$: $lt_compiler_flag:'`
8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8582 (eval "$lt_compile" 2>out/conftest.err)
8583 ac_status=$?
8584 cat out/conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8587 then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_c_o=yes
8596 chmod u+w . 2>&5
8597 $RM conftest*
8598 # SGI C++ compiler will create directory out/ii_files/ for
8599 # template instantiation
8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8601 $RM out/* && rmdir out
8602 cd ..
8603 $RM -r conftest
8604 $RM conftest*
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8617 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 lt_cv_prog_compiler_c_o=no
8621 $RM -r conftest 2>/dev/null
8622 mkdir conftest
8623 cd conftest
8624 mkdir out
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8627 lt_compiler_flag="-o out/conftest2.$ac_objext"
8628 # Insert the option either (1) after the last *FLAGS variable, or
8629 # (2) before a word containing "conftest.", or (3) at the end.
8630 # Note that $ac_compile itself does not contain backslashes and begins
8631 # with a dollar sign (not a hyphen), so the echo should work correctly.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>out/conftest.err)
8638 ac_status=$?
8639 cat out/conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8642 then
8643 # The compiler can only warn and ignore the option if not recognized
8644 # So say no if there are warnings
8645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8648 lt_cv_prog_compiler_c_o=yes
8651 chmod u+w . 2>&5
8652 $RM conftest*
8653 # SGI C++ compiler will create directory out/ii_files/ for
8654 # template instantiation
8655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8656 $RM out/* && rmdir out
8657 cd ..
8658 $RM -r conftest
8659 $RM conftest*
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8668 hard_links="nottested"
8669 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8670 # do not overwrite the value of need_locks provided by the user
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8672 $as_echo_n "checking if we can lock with hard links... " >&6; }
8673 hard_links=yes
8674 $RM conftest*
8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8676 touch conftest.a
8677 ln conftest.a conftest.b 2>&5 || hard_links=no
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8680 $as_echo "$hard_links" >&6; }
8681 if test "$hard_links" = no; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8683 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8684 need_locks=warn
8686 else
8687 need_locks=no
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8696 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8698 runpath_var=
8699 allow_undefined_flag=
8700 always_export_symbols=no
8701 archive_cmds=
8702 archive_expsym_cmds=
8703 compiler_needs_object=no
8704 enable_shared_with_static_runtimes=no
8705 export_dynamic_flag_spec=
8706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8707 hardcode_automatic=no
8708 hardcode_direct=no
8709 hardcode_direct_absolute=no
8710 hardcode_libdir_flag_spec=
8711 hardcode_libdir_flag_spec_ld=
8712 hardcode_libdir_separator=
8713 hardcode_minus_L=no
8714 hardcode_shlibpath_var=unsupported
8715 inherit_rpath=no
8716 link_all_deplibs=unknown
8717 module_cmds=
8718 module_expsym_cmds=
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8725 include_expsyms=
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8739 case $host_os in
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8745 with_gnu_ld=no
8748 interix*)
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8750 with_gnu_ld=yes
8752 openbsd*)
8753 with_gnu_ld=no
8755 esac
8757 ld_shlibs=yes
8759 # On some targets, GNU ld is compatible enough with the native linker
8760 # that we're better off using the native interface for both.
8761 lt_use_gnu_ld_interface=no
8762 if test "$with_gnu_ld" = yes; then
8763 case $host_os in
8764 aix*)
8765 # The AIX port of GNU ld has always aspired to compatibility
8766 # with the native linker. However, as the warning in the GNU ld
8767 # block says, versions before 2.19.5* couldn't really create working
8768 # shared libraries, regardless of the interface used.
8769 case `$LD -v 2>&1` in
8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8774 lt_use_gnu_ld_interface=yes
8776 esac
8779 lt_use_gnu_ld_interface=yes
8781 esac
8784 if test "$lt_use_gnu_ld_interface" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8786 wlarc='${wl}'
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797 else
8798 whole_archive_flag_spec=
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *GNU\ gold*) supports_anon_versioning=yes ;;
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8808 esac
8810 # See if GNU ld supports shared libraries.
8811 case $host_os in
8812 aix[3-9]*)
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8815 ld_shlibs=no
8816 cat <<_LT_EOF 1>&2
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8825 _LT_EOF
8829 amigaos*)
8830 case $host_cpu in
8831 powerpc)
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8836 m68k)
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8841 esac
8844 beos*)
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 allow_undefined_flag=unsupported
8847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848 # support --undefined. This deserves some investigation. FIXME
8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 else
8851 ld_shlibs=no
8855 cygwin* | mingw* | pw32* | cegcc*)
8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857 # as there is no search path for DLLs.
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 export_dynamic_flag_spec='${wl}--export-all-symbols'
8860 allow_undefined_flag=unsupported
8861 always_export_symbols=no
8862 enable_shared_with_static_runtimes=yes
8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8867 # If the export-symbols file already is a .def file (1st line
8868 # is EXPORTS), use it as is; otherwise, prepend...
8869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8870 cp $export_symbols $output_objdir/$soname.def;
8871 else
8872 echo EXPORTS > $output_objdir/$soname.def;
8873 cat $export_symbols >> $output_objdir/$soname.def;
8875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 else
8877 ld_shlibs=no
8881 haiku*)
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 link_all_deplibs=yes
8886 interix[3-9]*)
8887 hardcode_direct=no
8888 hardcode_shlibpath_var=no
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8892 # Instead, shared libraries are loaded at an image base (0x10000000 by
8893 # default) and relocated if they conflict, which is a slow very memory
8894 # consuming and fragmenting process. To avoid this, we pick a random,
8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8898 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'
8901 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8902 tmp_diet=no
8903 if test "$host_os" = linux-dietlibc; then
8904 case $cc_basename in
8905 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8906 esac
8908 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8909 && test "$tmp_diet" = no
8910 then
8911 tmp_addflag=
8912 tmp_sharedflag='-shared'
8913 case $cc_basename,$host_cpu in
8914 pgcc*) # Portland Group C compiler
8915 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'
8916 tmp_addflag=' $pic_flag'
8918 pgf77* | pgf90* | pgf95* | pgfortran*)
8919 # Portland Group f77 and f90 compilers
8920 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'
8921 tmp_addflag=' $pic_flag -Mnomain' ;;
8922 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8923 tmp_addflag=' -i_dynamic' ;;
8924 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8925 tmp_addflag=' -i_dynamic -nofor_main' ;;
8926 ifc* | ifort*) # Intel Fortran compiler
8927 tmp_addflag=' -nofor_main' ;;
8928 lf95*) # Lahey Fortran 8.1
8929 whole_archive_flag_spec=
8930 tmp_sharedflag='--shared' ;;
8931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8932 tmp_sharedflag='-qmkshrobj'
8933 tmp_addflag= ;;
8934 nvcc*) # Cuda Compiler Driver 2.2
8935 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'
8936 compiler_needs_object=yes
8938 esac
8939 case `$CC -V 2>&1 | sed 5q` in
8940 *Sun\ C*) # Sun C 5.9
8941 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'
8942 compiler_needs_object=yes
8943 tmp_sharedflag='-G' ;;
8944 *Sun\ F*) # Sun Fortran 8.3
8945 tmp_sharedflag='-G' ;;
8946 esac
8947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8956 case $cc_basename in
8957 xlf* | bgf* | bgxlf* | mpixlf*)
8958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8960 hardcode_libdir_flag_spec=
8961 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8962 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8970 esac
8971 else
8972 ld_shlibs=no
8976 netbsd*)
8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979 wlarc=
8980 else
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 solaris*)
8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8998 _LT_EOF
8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008 case `$LD -v 2>&1` in
9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems. Therefore, libtool
9015 *** is disabling shared libraries support. We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9020 _LT_EOF
9023 # For security reasons, it is highly recommended that you always
9024 # use absolute paths for naming shared libraries, and exclude the
9025 # DT_RUNPATH tag from executables and libraries. But doing so
9026 # requires that you compile everything twice, which is a pain.
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9035 esac
9038 sunos4*)
9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040 wlarc=
9041 hardcode_direct=yes
9042 hardcode_shlibpath_var=no
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9053 esac
9055 if test "$ld_shlibs" = no; then
9056 runpath_var=
9057 hardcode_libdir_flag_spec=
9058 export_dynamic_flag_spec=
9059 whole_archive_flag_spec=
9061 else
9062 # PORTME fill in a description of your system's linker (not GNU ld)
9063 case $host_os in
9064 aix3*)
9065 allow_undefined_flag=unsupported
9066 always_export_symbols=yes
9067 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'
9068 # Note: this linker hardcodes the directories in LIBPATH if there
9069 # are no directories specified by -L.
9070 hardcode_minus_L=yes
9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072 # Neither direct hardcoding nor static linking is supported with a
9073 # broken collect2.
9074 hardcode_direct=unsupported
9078 aix[4-9]*)
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9084 no_entry_flag=""
9085 else
9086 # If we're using GNU nm, then we don't want the "-C" option.
9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088 # Also, AIX nm treats weak defined symbols like other global
9089 # defined symbols, whereas GNU nm marks them as "W".
9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091 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'
9092 else
9093 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'
9095 aix_use_runtimelinking=no
9097 # Test if we are trying to use run time linking or normal
9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099 # need to do runtime linking.
9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101 for ld_flag in $LDFLAGS; do
9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103 aix_use_runtimelinking=yes
9104 break
9106 done
9108 esac
9110 exp_sym_flag='-bexport'
9111 no_entry_flag='-bnoentry'
9114 # When large executables or shared objects are built, AIX ld can
9115 # have problems creating the table of contents. If linking a library
9116 # or program results in "error TOC overflow" add -mminimal-toc to
9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9120 archive_cmds=''
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 file_list_spec='${wl}-f,'
9127 if test "$GCC" = yes; then
9128 case $host_os in aix4.[012]|aix4.[012].*)
9129 # We only want to do this on AIX 4.2 and lower, the check
9130 # below for broken collect2 doesn't work under 4.3+
9131 collect2name=`${CC} -print-prog-name=collect2`
9132 if test -f "$collect2name" &&
9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134 then
9135 # We have reworked collect2
9137 else
9138 # We have old collect2
9139 hardcode_direct=unsupported
9140 # It fails to find uninstalled libraries when the uninstalled
9141 # path is not listed in the libpath. Setting hardcode_minus_L
9142 # to unsupported forces relinking
9143 hardcode_minus_L=yes
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_libdir_separator=
9148 esac
9149 shared_flag='-shared'
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag="$shared_flag "'${wl}-G'
9153 else
9154 # not using gcc
9155 if test "$host_cpu" = ia64; then
9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157 # chokes on -Wl,-G. The following line is correct:
9158 shared_flag='-G'
9159 else
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag='${wl}-G'
9162 else
9163 shared_flag='${wl}-bM:SRE'
9168 export_dynamic_flag_spec='${wl}-bexpall'
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag='-berok'
9176 # Determine the default libpath from the value encoded in an
9177 # empty executable.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9182 main ()
9186 return 0;
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9191 lt_aix_libpath_sed='
9192 /Import File Strings/,/^$/ {
9193 /^0/ {
9194 s/^0 *\(.*\)$/\1/
9198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 # Check for a 64-bit object if we didn't find anything.
9200 if test -z "$aix_libpath"; then
9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9209 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"
9210 else
9211 if test "$host_cpu" = ia64; then
9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9213 allow_undefined_flag="-z nodefs"
9214 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"
9215 else
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9222 main ()
9226 return 0;
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9231 lt_aix_libpath_sed='
9232 /Import File Strings/,/^$/ {
9233 /^0/ {
9234 s/^0 *\(.*\)$/\1/
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 # Check for a 64-bit object if we didn't find anything.
9240 if test -z "$aix_libpath"; then
9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9249 # Warning - without using the other run time loading flags,
9250 # -berok will link without error, but may produce a broken library.
9251 no_undefined_flag=' ${wl}-bernotok'
9252 allow_undefined_flag=' ${wl}-berok'
9253 if test "$with_gnu_ld" = yes; then
9254 # We only use this code for GNU lds that support --whole-archive.
9255 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9256 else
9257 # Exported symbols can be pulled into shared objects from archives
9258 whole_archive_flag_spec='$convenience'
9260 archive_cmds_need_lc=yes
9261 # This is similar to how AIX traditionally builds its shared libraries.
9262 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'
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9279 esac
9282 bsdi[45]*)
9283 export_dynamic_flag_spec=-rdynamic
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # When not using gcc, we currently assume that we are using
9288 # Microsoft Visual C++.
9289 # hardcode_libdir_flag_spec is actually meaningless, as there is
9290 # no search path for DLLs.
9291 hardcode_libdir_flag_spec=' '
9292 allow_undefined_flag=unsupported
9293 # Tell ltmain to make .lib files, not .a files.
9294 libext=lib
9295 # Tell ltmain to make .dll files, not .so files.
9296 shrext_cmds=".dll"
9297 # FIXME: Setting linknames here is a bad hack.
9298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9299 # The linker will automatically build a .lib file if we build a DLL.
9300 old_archive_from_new_cmds='true'
9301 # FIXME: Should let the user specify the lib program.
9302 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9303 fix_srcfile_path='`cygpath -w "$srcfile"`'
9304 enable_shared_with_static_runtimes=yes
9307 darwin* | rhapsody*)
9310 archive_cmds_need_lc=no
9311 hardcode_direct=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 if test "$lt_cv_ld_force_load" = "yes"; then
9315 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\"`'
9316 else
9317 whole_archive_flag_spec=''
9319 link_all_deplibs=yes
9320 allow_undefined_flag="$_lt_dar_allow_undefined"
9321 case $cc_basename in
9322 ifort*) _lt_dar_can_shared=yes ;;
9323 *) _lt_dar_can_shared=$GCC ;;
9324 esac
9325 if test "$_lt_dar_can_shared" = "yes"; then
9326 output_verbose_link_cmd=func_echo_all
9327 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9328 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9329 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}"
9330 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}"
9332 else
9333 ld_shlibs=no
9338 dgux*)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_shlibpath_var=no
9344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9345 # support. Future versions do this automatically, but an explicit c++rt0.o
9346 # does not break anything, and helps significantly (at the cost of a little
9347 # extra space).
9348 freebsd2.2*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9355 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9356 freebsd2.*)
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes
9359 hardcode_minus_L=yes
9360 hardcode_shlibpath_var=no
9363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9364 freebsd* | dragonfly*)
9365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9371 hpux9*)
9372 if test "$GCC" = yes; then
9373 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'
9374 else
9375 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'
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 hardcode_direct=yes
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9384 export_dynamic_flag_spec='${wl}-E'
9387 hpux10*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9393 if test "$with_gnu_ld" = no; then
9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 export_dynamic_flag_spec='${wl}-E'
9400 # hardcode_minus_L: Not really in the search PATH,
9401 # but as the default location of the library.
9402 hardcode_minus_L=yes
9406 hpux11*)
9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 ia64*)
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 esac
9419 else
9420 case $host_cpu in
9421 hppa*64*)
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 ia64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9429 # Older versions of the 11.00 compiler do not understand -b yet
9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9432 $as_echo_n "checking if $CC understands -b... " >&6; }
9433 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler__b=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS -b"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler__b=yes
9451 else
9452 lt_cv_prog_compiler__b=yes
9455 $RM -r conftest*
9456 LDFLAGS="$save_LDFLAGS"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9462 if test x"$lt_cv_prog_compiler__b" = xyes; then
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9469 esac
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9475 case $host_cpu in
9476 hppa*64*|ia64*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9489 esac
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 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'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 save_LDFLAGS="$LDFLAGS"
9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int foo(void) {}
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 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'
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LDFLAGS="$save_LDFLAGS"
9512 else
9513 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'
9514 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'
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 inherit_rpath=yes
9520 link_all_deplibs=yes
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9526 else
9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9534 newsos6)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9542 *nto* | *qnx*)
9545 openbsd*)
9546 if test -f /usr/libexec/ld.so; then
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 hardcode_direct_absolute=yes
9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 export_dynamic_flag_spec='${wl}-E'
9555 else
9556 case $host_os in
9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 esac
9567 else
9568 ld_shlibs=no
9572 os2*)
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9580 osf3*)
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}-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 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 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~
9602 $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'
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9607 archive_cmds_need_lc='no'
9608 hardcode_libdir_separator=:
9611 solaris*)
9612 no_undefined_flag=' -z defs'
9613 if test "$GCC" = yes; then
9614 wlarc='${wl}'
9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 else
9619 case `$CC -V 2>&1` in
9620 *"Compilers 5.0"*)
9621 wlarc=''
9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9627 wlarc='${wl}'
9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 esac
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9636 case $host_os in
9637 solaris2.[0-5] | solaris2.[0-5].*) ;;
9639 # The compiler driver will combine and reorder linker options,
9640 # but understands `-z linker_flag'. GCC discards it without `$wl',
9641 # but is careful enough not to reorder.
9642 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 if test "$GCC" = yes; then
9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9645 else
9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9649 esac
9650 link_all_deplibs=yes
9653 sunos4*)
9654 if test "x$host_vendor" = xsequent; then
9655 # Use $CC to link under sequent, because it throws in some extra .o
9656 # files that make .init and .fini sections work.
9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_direct=yes
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9667 sysv4)
9668 case $host_vendor in
9669 sni)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=yes # is this really true???
9673 siemens)
9674 ## LD is ld it makes a PLAMLIB
9675 ## CC just makes a GrossModule.
9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9677 reload_cmds='$CC -r -o $output$reload_objs'
9678 hardcode_direct=no
9680 motorola)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9684 esac
9685 runpath_var='LD_RUN_PATH'
9686 hardcode_shlibpath_var=no
9689 sysv4.3*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='-Bexport'
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 runpath_var=LD_RUN_PATH
9700 hardcode_runpath_var=yes
9701 ld_shlibs=yes
9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9706 no_undefined_flag='${wl}-z,text'
9707 archive_cmds_need_lc=no
9708 hardcode_shlibpath_var=no
9709 runpath_var='LD_RUN_PATH'
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 sysv5* | sco3.2v5* | sco5v6*)
9721 # Note: We can NOT use -z defs as we might desire, because we do not
9722 # link with -lc, and that would cause any symbols used from libc to
9723 # always be unresolved, which means just about no library would
9724 # ever link correctly. If we're not using GNU ld we use -z text
9725 # though, which does catch some bad symbols but isn't as heavy-handed
9726 # as -z defs.
9727 no_undefined_flag='${wl}-z,text'
9728 allow_undefined_flag='${wl}-z,nodefs'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 export_dynamic_flag_spec='${wl}-Bexport'
9735 runpath_var='LD_RUN_PATH'
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 uts4*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9753 ld_shlibs=no
9755 esac
9757 if test x$host_vendor = xsni; then
9758 case $host in
9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9760 export_dynamic_flag_spec='${wl}-Blargedynsym'
9762 esac
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9767 $as_echo "$ld_shlibs" >&6; }
9768 test "$ld_shlibs" = no && can_build_shared=no
9770 with_gnu_ld=$with_gnu_ld
9787 # Do we need to explicitly link libc?
9789 case "x$archive_cmds_need_lc" in
9790 x|xyes)
9791 # Assume -lc should be added
9792 archive_cmds_need_lc=yes
9794 if test "$enable_shared" = yes && test "$GCC" = yes; then
9795 case $archive_cmds in
9796 *'~'*)
9797 # FIXME: we may have to deal with multi-command sequences.
9799 '$CC '*)
9800 # Test whether the compiler implicitly links with -lc since on some
9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9802 # to ld, don't add -lc before -lgcc.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 $RM conftest*
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
9816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
9821 pic_flag=$lt_prog_compiler_pic
9822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9834 then
9835 lt_cv_archive_cmds_need_lc=no
9836 else
9837 lt_cv_archive_cmds_need_lc=yes
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9843 $RM conftest*
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9847 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9850 esac
9853 esac
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 case $host_os in
10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10021 *) lt_sed_strip_eq="s,=/,/,g" ;;
10022 esac
10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10024 case $lt_search_path_spec in
10025 *\;*)
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10035 esac
10036 # Ok, now we have the path, separated by spaces, we can step through it
10037 # and add multilib dir if necessary.
10038 lt_tmp_lt_search_path_spec=
10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10040 for lt_sys_path in $lt_search_path_spec; do
10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10043 else
10044 test -d "$lt_sys_path" && \
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10047 done
10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10049 BEGIN {RS=" "; FS="/|\n";} {
10050 lt_foo="";
10051 lt_count=0;
10052 for (lt_i = NF; lt_i > 0; lt_i--) {
10053 if ($lt_i != "" && $lt_i != ".") {
10054 if ($lt_i == "..") {
10055 lt_count++;
10056 } else {
10057 if (lt_count == 0) {
10058 lt_foo="/" $lt_i lt_foo;
10059 } else {
10060 lt_count--;
10065 if (lt_foo != "") { lt_freq[lt_foo]++; }
10066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10068 # AWK program above erroneously prepends '/' to C:/dos/paths
10069 # for these hosts.
10070 case $host_os in
10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10073 esac
10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10075 else
10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10078 library_names_spec=
10079 libname_spec='lib$name'
10080 soname_spec=
10081 shrext_cmds=".so"
10082 postinstall_cmds=
10083 postuninstall_cmds=
10084 finish_cmds=
10085 finish_eval=
10086 shlibpath_var=
10087 shlibpath_overrides_runpath=unknown
10088 version_type=none
10089 dynamic_linker="$host_os ld.so"
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10098 case $host_os in
10099 aix3*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10108 aix[4-9]*)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10129 else
10130 can_build_shared=no
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LIBPATH
10152 amigaos*)
10153 case $host_cpu in
10154 powerpc)
10155 # Since July 2007 AmigaOS4 officially supports .so libraries.
10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 m68k)
10160 library_names_spec='$libname.ixlibrary $libname.a'
10161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10162 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'
10164 esac
10167 beos*)
10168 library_names_spec='${libname}${shared_ext}'
10169 dynamic_linker="$host_os ld.so"
10170 shlibpath_var=LIBRARY_PATH
10173 bsdi[45]*)
10174 version_type=linux
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10182 # the default ld.so.conf also contains /usr/contrib/lib and
10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10184 # libtool to hard-code these into programs
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 version_type=windows
10189 shrext_cmds=".dll"
10190 need_version=no
10191 need_lib_prefix=no
10193 case $GCC,$host_os in
10194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10195 library_names_spec='$libname.dll.a'
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname~
10202 chmod a+x \$dldir/$dlname~
10203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207 dlpath=$dir/\$dldll~
10208 $RM \$dlpath'
10209 shlibpath_overrides_runpath=yes
10211 case $host_os in
10212 cygwin*)
10213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10218 mingw* | cegcc*)
10219 # MinGW DLLs use traditional 'lib' prefix
10220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 pw32*)
10223 # pw32 DLLs use 'pw' prefix rather than 'lib'
10224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 esac
10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10232 esac
10233 dynamic_linker='Win32 ld.exe'
10234 # FIXME: first we should search . and the directory the executable is in
10235 shlibpath_var=PATH
10238 darwin* | rhapsody*)
10239 dynamic_linker="$host_os dyld"
10240 version_type=darwin
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244 soname_spec='${libname}${release}${major}$shared_ext'
10245 shlibpath_overrides_runpath=yes
10246 shlibpath_var=DYLD_LIBRARY_PATH
10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10253 dgux*)
10254 version_type=linux
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10262 freebsd* | dragonfly*)
10263 # DragonFly does not have aout. When/if they implement a new
10264 # versioning mechanism, adjust this.
10265 if test -x /usr/bin/objformat; then
10266 objformat=`/usr/bin/objformat`
10267 else
10268 case $host_os in
10269 freebsd[23].*) objformat=aout ;;
10270 *) objformat=elf ;;
10271 esac
10273 version_type=freebsd-$objformat
10274 case $version_type in
10275 freebsd-elf*)
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 need_version=no
10278 need_lib_prefix=no
10280 freebsd-*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10282 need_version=yes
10284 esac
10285 shlibpath_var=LD_LIBRARY_PATH
10286 case $host_os in
10287 freebsd2.*)
10288 shlibpath_overrides_runpath=yes
10290 freebsd3.[01]* | freebsdelf3.[01]*)
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10299 *) # from 4.6 on, and DragonFly
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10303 esac
10306 gnu*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 hardcode_into_libs=yes
10316 haiku*)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 dynamic_linker="$host_os runtime_loader"
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10326 hardcode_into_libs=yes
10329 hpux9* | hpux10* | hpux11*)
10330 # Give a soname corresponding to the major version so that dld.sl refuses to
10331 # link against other versions.
10332 version_type=sunos
10333 need_lib_prefix=no
10334 need_version=no
10335 case $host_cpu in
10336 ia64*)
10337 shrext_cmds='.so'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.so"
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 if test "X$HPUX_IA64_MODE" = X32; then
10345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10346 else
10347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 hppa*64*)
10352 shrext_cmds='.sl'
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10363 shrext_cmds='.sl'
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=SHLIB_PATH
10366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10370 esac
10371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10372 postinstall_cmds='chmod 555 $lib'
10373 # or fails outright, so override atomically:
10374 install_override_mode=555
10377 interix[3-9]*)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10389 irix5* | irix6* | nonstopux*)
10390 case $host_os in
10391 nonstopux*) version_type=nonstopux ;;
10393 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 version_type=linux
10395 else
10396 version_type=irix
10397 fi ;;
10398 esac
10399 need_lib_prefix=no
10400 need_version=no
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10403 case $host_os in
10404 irix5* | nonstopux*)
10405 libsuff= shlibsuff=
10408 case $LD in # libtool.m4 will add one of these switches to LD
10409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10410 libsuff= shlibsuff= libmagic=32-bit;;
10411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10412 libsuff=32 shlibsuff=N32 libmagic=N32;;
10413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10415 *) libsuff= shlibsuff= libmagic=never-match;;
10416 esac
10418 esac
10419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10420 shlibpath_overrides_runpath=no
10421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10423 hardcode_into_libs=yes
10426 # No shared lib support for Linux oldld, aout, or coff.
10427 linux*oldld* | linux*aout* | linux*coff*)
10428 dynamic_linker=no
10431 # This must be Linux ELF.
10432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10442 # Some binutils ld are patched to set DT_RUNPATH
10443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_shlibpath_overrides_runpath=no
10447 save_LDFLAGS=$LDFLAGS
10448 save_libdir=$libdir
10449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10455 main ()
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10464 lt_cv_shlibpath_overrides_runpath=yes
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LDFLAGS=$save_LDFLAGS
10470 libdir=$save_libdir
10474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10476 # This implies no fast_install, which is unacceptable.
10477 # Some rework will be needed to allow for fast_install
10478 # before this can be enabled.
10479 hardcode_into_libs=yes
10481 # Append ld.so.conf contents to the search path
10482 if test -f /etc/ld.so.conf; then
10483 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' ' '`
10484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10487 # We used to test for /lib/ld.so.1 and disable shared libraries on
10488 # powerpc, because MkLinux only supported shared libraries with the
10489 # GNU dynamic linker. Since this was broken with cross compilers,
10490 # most powerpc-linux boxes support dynamic linking these days and
10491 # people can always --disable-shared, the test was removed, and we
10492 # assume the GNU/Linux dynamic linker is in use.
10493 dynamic_linker='GNU/Linux ld.so'
10496 netbsd*)
10497 version_type=sunos
10498 need_lib_prefix=no
10499 need_version=no
10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10503 dynamic_linker='NetBSD (a.out) ld.so'
10504 else
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 dynamic_linker='NetBSD ld.elf_so'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10514 newsos6)
10515 version_type=linux
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10521 *nto* | *qnx*)
10522 version_type=qnx
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529 hardcode_into_libs=yes
10530 dynamic_linker='ldqnx.so'
10533 openbsd*)
10534 version_type=sunos
10535 sys_lib_dlsearch_path_spec="/usr/lib"
10536 need_lib_prefix=no
10537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538 case $host_os in
10539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540 *) need_version=no ;;
10541 esac
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546 case $host_os in
10547 openbsd2.[89] | openbsd2.[89].*)
10548 shlibpath_overrides_runpath=no
10551 shlibpath_overrides_runpath=yes
10553 esac
10554 else
10555 shlibpath_overrides_runpath=yes
10559 os2*)
10560 libname_spec='$name'
10561 shrext_cmds=".dll"
10562 need_lib_prefix=no
10563 library_names_spec='$libname${shared_ext} $libname.a'
10564 dynamic_linker='OS/2 ld.exe'
10565 shlibpath_var=LIBPATH
10568 osf3* | osf4* | osf5*)
10569 version_type=osf
10570 need_lib_prefix=no
10571 need_version=no
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10579 rdos*)
10580 dynamic_linker=no
10583 solaris*)
10584 version_type=linux
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 hardcode_into_libs=yes
10592 # ldd complains unless libraries are executable
10593 postinstall_cmds='chmod +x $lib'
10596 sunos4*)
10597 version_type=sunos
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 if test "$with_gnu_ld" = yes; then
10603 need_lib_prefix=no
10605 need_version=yes
10608 sysv4 | sysv4.3*)
10609 version_type=linux
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 case $host_vendor in
10614 sni)
10615 shlibpath_overrides_runpath=no
10616 need_lib_prefix=no
10617 runpath_var=LD_RUN_PATH
10619 siemens)
10620 need_lib_prefix=no
10622 motorola)
10623 need_lib_prefix=no
10624 need_version=no
10625 shlibpath_overrides_runpath=no
10626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10628 esac
10631 sysv4*MP*)
10632 if test -d /usr/nec ;then
10633 version_type=linux
10634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10635 soname_spec='$libname${shared_ext}.$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 version_type=freebsd-elf
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 if test "$with_gnu_ld" = yes; then
10650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10651 else
10652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10653 case $host_os in
10654 sco3.2v5*)
10655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10657 esac
10659 sys_lib_dlsearch_path_spec='/usr/lib'
10662 tpf*)
10663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10664 version_type=linux
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10673 uts4*)
10674 version_type=linux
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10681 dynamic_linker=no
10683 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10685 $as_echo "$dynamic_linker" >&6; }
10686 test "$dynamic_linker" = no && can_build_shared=no
10688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10689 if test "$GCC" = yes; then
10690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10693 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10696 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10793 hardcode_action=
10794 if test -n "$hardcode_libdir_flag_spec" ||
10795 test -n "$runpath_var" ||
10796 test "X$hardcode_automatic" = "Xyes" ; then
10798 # We can hardcode non-existent directories.
10799 if test "$hardcode_direct" != no &&
10800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10801 # have to relink, otherwise we might link with an installed library
10802 # when we should be linking with a yet-to-be-installed one
10803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10804 test "$hardcode_minus_L" != no; then
10805 # Linking always hardcodes the temporary library directory.
10806 hardcode_action=relink
10807 else
10808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10809 hardcode_action=immediate
10811 else
10812 # We cannot hardcode anything, or else we can only hardcode existing
10813 # directories.
10814 hardcode_action=unsupported
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10817 $as_echo "$hardcode_action" >&6; }
10819 if test "$hardcode_action" = relink ||
10820 test "$inherit_rpath" = yes; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823 elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10834 if test "x$enable_dlopen" != xyes; then
10835 enable_dlopen=unknown
10836 enable_dlopen_self=unknown
10837 enable_dlopen_self_static=unknown
10838 else
10839 lt_cv_dlopen=no
10840 lt_cv_dlopen_libs=
10842 case $host_os in
10843 beos*)
10844 lt_cv_dlopen="load_add_on"
10845 lt_cv_dlopen_libs=
10846 lt_cv_dlopen_self=yes
10849 mingw* | pw32* | cegcc*)
10850 lt_cv_dlopen="LoadLibrary"
10851 lt_cv_dlopen_libs=
10854 cygwin*)
10855 lt_cv_dlopen="dlopen"
10856 lt_cv_dlopen_libs=
10859 darwin*)
10860 # if libdl is installed we need to link against it
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_check_lib_save_LIBS=$LIBS
10867 LIBS="-ldl $LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char dlopen ();
10879 main ()
10881 return dlopen ();
10883 return 0;
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 ac_cv_lib_dl_dlopen=yes
10888 else
10889 ac_cv_lib_dl_dlopen=no
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10897 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10899 else
10901 lt_cv_dlopen="dyld"
10902 lt_cv_dlopen_libs=
10903 lt_cv_dlopen_self=yes
10910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10911 if test "x$ac_cv_func_shl_load" = x""yes; then :
10912 lt_cv_dlopen="shl_load"
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10915 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char shl_load ();
10932 main ()
10934 return shl_load ();
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_dld_shl_load=yes
10941 else
10942 ac_cv_lib_dld_shl_load=no
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10949 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10950 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10952 else
10953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10954 if test "x$ac_cv_func_dlopen" = x""yes; then :
10955 lt_cv_dlopen="dlopen"
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-ldl $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char dlopen ();
10975 main ()
10977 return dlopen ();
10979 return 0;
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 ac_cv_lib_dl_dlopen=yes
10984 else
10985 ac_cv_lib_dl_dlopen=no
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lsvld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11014 main ()
11016 return dlopen ();
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_svld_dlopen=yes
11023 else
11024 ac_cv_lib_svld_dlopen=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11031 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11032 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11036 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dld_link ();
11053 main ()
11055 return dld_link ();
11057 return 0;
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_dld_link=yes
11062 else
11063 ac_cv_lib_dld_dld_link=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11070 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11071 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11091 esac
11093 if test "x$lt_cv_dlopen" != xno; then
11094 enable_dlopen=yes
11095 else
11096 enable_dlopen=no
11099 case $lt_cv_dlopen in
11100 dlopen)
11101 save_CPPFLAGS="$CPPFLAGS"
11102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11104 save_LDFLAGS="$LDFLAGS"
11105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11107 save_LIBS="$LIBS"
11108 LIBS="$lt_cv_dlopen_libs $LIBS"
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11111 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11112 if test "${lt_cv_dlopen_self+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test "$cross_compiling" = yes; then :
11116 lt_cv_dlopen_self=cross
11117 else
11118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11119 lt_status=$lt_dlunknown
11120 cat > conftest.$ac_ext <<_LT_EOF
11121 #line 11121 "configure"
11122 #include "confdefs.h"
11124 #if HAVE_DLFCN_H
11125 #include <dlfcn.h>
11126 #endif
11128 #include <stdio.h>
11130 #ifdef RTLD_GLOBAL
11131 # define LT_DLGLOBAL RTLD_GLOBAL
11132 #else
11133 # ifdef DL_GLOBAL
11134 # define LT_DLGLOBAL DL_GLOBAL
11135 # else
11136 # define LT_DLGLOBAL 0
11137 # endif
11138 #endif
11140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11141 find out it does not work in some platform. */
11142 #ifndef LT_DLLAZY_OR_NOW
11143 # ifdef RTLD_LAZY
11144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11145 # else
11146 # ifdef DL_LAZY
11147 # define LT_DLLAZY_OR_NOW DL_LAZY
11148 # else
11149 # ifdef RTLD_NOW
11150 # define LT_DLLAZY_OR_NOW RTLD_NOW
11151 # else
11152 # ifdef DL_NOW
11153 # define LT_DLLAZY_OR_NOW DL_NOW
11154 # else
11155 # define LT_DLLAZY_OR_NOW 0
11156 # endif
11157 # endif
11158 # endif
11159 # endif
11160 #endif
11162 /* When -fvisbility=hidden is used, assume the code has been annotated
11163 correspondingly for the symbols needed. */
11164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11165 void fnord () __attribute__((visibility("default")));
11166 #endif
11168 void fnord () { int i=42; }
11169 int main ()
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11174 if (self)
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else
11179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 else puts (dlerror ());
11182 /* dlclose (self); */
11184 else
11185 puts (dlerror ());
11187 return status;
11189 _LT_EOF
11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11207 rm -fr conftest*
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11214 if test "x$lt_cv_dlopen_self" = xyes; then
11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11234 #include <stdio.h>
11236 #ifdef RTLD_GLOBAL
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11238 #else
11239 # ifdef DL_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11241 # else
11242 # define LT_DLGLOBAL 0
11243 # endif
11244 #endif
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 # ifdef RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # else
11252 # ifdef DL_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # else
11255 # ifdef RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # else
11258 # ifdef DL_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11260 # else
11261 # define LT_DLLAZY_OR_NOW 0
11262 # endif
11263 # endif
11264 # endif
11265 # endif
11266 #endif
11268 /* When -fvisbility=hidden is used, assume the code has been annotated
11269 correspondingly for the symbols needed. */
11270 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11271 void fnord () __attribute__((visibility("default")));
11272 #endif
11274 void fnord () { int i=42; }
11275 int main ()
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11280 if (self)
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else
11285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286 else puts (dlerror ());
11288 /* dlclose (self); */
11290 else
11291 puts (dlerror ());
11293 return status;
11295 _LT_EOF
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297 (eval $ac_link) 2>&5
11298 ac_status=$?
11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301 (./conftest; exit; ) >&5 2>/dev/null
11302 lt_status=$?
11303 case x$lt_status in
11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11307 esac
11308 else :
11309 # compilation failed
11310 lt_cv_dlopen_self_static=no
11313 rm -fr conftest*
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11321 CPPFLAGS="$save_CPPFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11323 LIBS="$save_LIBS"
11325 esac
11327 case $lt_cv_dlopen_self in
11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329 *) enable_dlopen_self=unknown ;;
11330 esac
11332 case $lt_cv_dlopen_self_static in
11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334 *) enable_dlopen_self_static=unknown ;;
11335 esac
11354 striplib=
11355 old_striplib=
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 else
11364 # FIXME - insert some real tests, host_os isn't really good enough
11365 case $host_os in
11366 darwin*)
11367 if test -n "$STRIP" ; then
11368 striplib="$STRIP -x"
11369 old_striplib="$STRIP -S"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11381 esac
11395 # Report which library types will actually be built
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403 test "$can_build_shared" = "no" && enable_shared=no
11405 # On AIX, shared libraries and static libraries use the same namespace, and
11406 # are all built from PIC.
11407 case $host_os in
11408 aix3*)
11409 test "$enable_shared" = yes && enable_static=no
11410 if test -n "$RANLIB"; then
11411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412 postinstall_cmds='$RANLIB $lib'
11416 aix[4-9]*)
11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418 test "$enable_shared" = yes && enable_static=no
11421 esac
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427 # Make sure either enable_shared or enable_static is yes.
11428 test "$enable_shared" = yes || enable_static=yes
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11436 ac_ext=c
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11442 CC="$lt_save_CC"
11456 # Source file extension for Go test sources.
11457 ac_ext=go
11459 # Object file extension for compiled Go test sources.
11460 objext=o
11461 objext_GO=$objext
11463 # Code to be used in simple compile tests
11464 lt_simple_compile_test_code="package main; func main() { }"
11466 # Code to be used in simple link tests
11467 lt_simple_link_test_code='package main; func main() { }'
11469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11476 # If no C compiler was specified, use CC.
11477 LTCC=${LTCC-"$CC"}
11479 # If no C compiler flags were specified, use CFLAGS.
11480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11482 # Allow CC to be a program name with arguments.
11483 compiler=$CC
11486 # save warnings/boilerplate of simple test code
11487 ac_outfile=conftest.$ac_objext
11488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11490 _lt_compiler_boilerplate=`cat conftest.err`
11491 $RM conftest*
11493 ac_outfile=conftest.$ac_objext
11494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11496 _lt_linker_boilerplate=`cat conftest.err`
11497 $RM -r conftest*
11500 # Allow CC to be a program name with arguments.
11501 lt_save_CC="$CC"
11502 lt_save_GCC="$GCC"
11503 GCC=yes
11504 CC=${GOC-"gccgo"}
11505 compiler=$CC
11506 compiler_GO=$CC
11507 LD_GO="$LD"
11508 for cc_temp in $compiler""; do
11509 case $cc_temp in
11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 \-*) ;;
11513 *) break;;
11514 esac
11515 done
11516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11519 # Go did not exist at the time GCC didn't implicitly link libc in.
11520 archive_cmds_need_lc_GO=no
11522 old_archive_cmds_GO=$old_archive_cmds
11524 ## CAVEAT EMPTOR:
11525 ## There is no encapsulation within the following macros, do not change
11526 ## the running order or otherwise move them around unless you know exactly
11527 ## what you are doing...
11528 if test -n "$compiler"; then
11530 lt_prog_compiler_no_builtin_flag_GO=
11532 if test "$GCC" = yes; then
11533 case $cc_basename in
11534 nvcc*)
11535 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11537 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11538 esac
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 lt_cv_prog_compiler_rtti_exceptions=no
11546 ac_outfile=conftest.$ac_objext
11547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548 lt_compiler_flag="-fno-rtti -fno-exceptions"
11549 # Insert the option either (1) after the last *FLAGS variable, or
11550 # (2) before a word containing "conftest.", or (3) at the end.
11551 # Note that $ac_compile itself does not contain backslashes and begins
11552 # with a dollar sign (not a hyphen), so the echo should work correctly.
11553 # The option is referenced via a variable to avoid confusing sed.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
11558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11559 (eval "$lt_compile" 2>conftest.err)
11560 ac_status=$?
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 if (exit $ac_status) && test -s "$ac_outfile"; then
11564 # The compiler can only warn and ignore the option if not recognized
11565 # So say no if there are warnings other than the usual output.
11566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569 lt_cv_prog_compiler_rtti_exceptions=yes
11572 $RM conftest*
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11580 else
11588 lt_prog_compiler_wl_GO=
11589 lt_prog_compiler_pic_GO=
11590 lt_prog_compiler_static_GO=
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11593 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11595 if test "$GCC" = yes; then
11596 lt_prog_compiler_wl_GO='-Wl,'
11597 lt_prog_compiler_static_GO='-static'
11599 case $host_os in
11600 aix*)
11601 # All AIX code is PIC.
11602 if test "$host_cpu" = ia64; then
11603 # AIX 5 now supports IA64 processor
11604 lt_prog_compiler_static_GO='-Bstatic'
11606 lt_prog_compiler_pic_GO='-fPIC'
11609 amigaos*)
11610 case $host_cpu in
11611 powerpc)
11612 # see comment about AmigaOS4 .so support
11613 lt_prog_compiler_pic_GO='-fPIC'
11615 m68k)
11616 # FIXME: we need at least 68020 code to build shared libraries, but
11617 # adding the `-m68020' flag to GCC prevents building anything better,
11618 # like `-m68040'.
11619 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11621 esac
11624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11625 # PIC is the default for these OSes.
11628 mingw* | cygwin* | pw32* | os2* | cegcc*)
11629 # This hack is so that the source file can tell whether it is being
11630 # built for inclusion in a dll (and should export symbols for example).
11631 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11632 # (--disable-auto-import) libraries
11633 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11636 darwin* | rhapsody*)
11637 # PIC is the default on this platform
11638 # Common symbols not allowed in MH_DYLIB files
11639 lt_prog_compiler_pic_GO='-fno-common'
11642 haiku*)
11643 # PIC is the default for Haiku.
11644 # The "-static" flag exists, but is broken.
11645 lt_prog_compiler_static_GO=
11648 hpux*)
11649 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11650 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11651 # sets the default TLS model and affects inlining.
11652 case $host_cpu in
11653 hppa*64*)
11654 # +Z the default
11657 lt_prog_compiler_pic_GO='-fPIC'
11659 esac
11662 interix[3-9]*)
11663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11664 # Instead, we relocate shared libraries at runtime.
11667 msdosdjgpp*)
11668 # Just because we use GCC doesn't mean we suddenly get shared libraries
11669 # on systems that don't support them.
11670 lt_prog_compiler_can_build_shared_GO=no
11671 enable_shared=no
11674 *nto* | *qnx*)
11675 # QNX uses GNU C++, but need to define -shared option too, otherwise
11676 # it will coredump.
11677 lt_prog_compiler_pic_GO='-fPIC -shared'
11680 sysv4*MP*)
11681 if test -d /usr/nec; then
11682 lt_prog_compiler_pic_GO=-Kconform_pic
11687 lt_prog_compiler_pic_GO='-fPIC'
11689 esac
11691 case $cc_basename in
11692 nvcc*) # Cuda Compiler Driver 2.2
11693 lt_prog_compiler_wl_GO='-Xlinker '
11694 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11696 esac
11697 else
11698 # PORTME Check for flag to pass linker flags through the system compiler.
11699 case $host_os in
11700 aix*)
11701 lt_prog_compiler_wl_GO='-Wl,'
11702 if test "$host_cpu" = ia64; then
11703 # AIX 5 now supports IA64 processor
11704 lt_prog_compiler_static_GO='-Bstatic'
11705 else
11706 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11710 mingw* | cygwin* | pw32* | os2* | cegcc*)
11711 # This hack is so that the source file can tell whether it is being
11712 # built for inclusion in a dll (and should export symbols for example).
11713 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11716 hpux9* | hpux10* | hpux11*)
11717 lt_prog_compiler_wl_GO='-Wl,'
11718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11719 # not for PA HP-UX.
11720 case $host_cpu in
11721 hppa*64*|ia64*)
11722 # +Z the default
11725 lt_prog_compiler_pic_GO='+Z'
11727 esac
11728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11729 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11732 irix5* | irix6* | nonstopux*)
11733 lt_prog_compiler_wl_GO='-Wl,'
11734 # PIC (with -KPIC) is the default.
11735 lt_prog_compiler_static_GO='-non_shared'
11738 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11739 case $cc_basename in
11740 # old Intel for x86_64 which still supported -KPIC.
11741 ecc*)
11742 lt_prog_compiler_wl_GO='-Wl,'
11743 lt_prog_compiler_pic_GO='-KPIC'
11744 lt_prog_compiler_static_GO='-static'
11746 # icc used to be incompatible with GCC.
11747 # ICC 10 doesn't accept -KPIC any more.
11748 icc* | ifort*)
11749 lt_prog_compiler_wl_GO='-Wl,'
11750 lt_prog_compiler_pic_GO='-fPIC'
11751 lt_prog_compiler_static_GO='-static'
11753 # Lahey Fortran 8.1.
11754 lf95*)
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 lt_prog_compiler_pic_GO='--shared'
11757 lt_prog_compiler_static_GO='--static'
11759 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11760 # Portland Group compilers (*not* the Pentium gcc compiler,
11761 # which looks to be a dead project)
11762 lt_prog_compiler_wl_GO='-Wl,'
11763 lt_prog_compiler_pic_GO='-fpic'
11764 lt_prog_compiler_static_GO='-Bstatic'
11766 ccc*)
11767 lt_prog_compiler_wl_GO='-Wl,'
11768 # All Alpha code is PIC.
11769 lt_prog_compiler_static_GO='-non_shared'
11771 xl* | bgxl* | bgf* | mpixl*)
11772 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11773 lt_prog_compiler_wl_GO='-Wl,'
11774 lt_prog_compiler_pic_GO='-qpic'
11775 lt_prog_compiler_static_GO='-qstaticlink'
11778 case `$CC -V 2>&1 | sed 5q` in
11779 *Sun\ F* | *Sun*Fortran*)
11780 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11781 lt_prog_compiler_pic_GO='-KPIC'
11782 lt_prog_compiler_static_GO='-Bstatic'
11783 lt_prog_compiler_wl_GO=''
11785 *Sun\ C*)
11786 # Sun C 5.9
11787 lt_prog_compiler_pic_GO='-KPIC'
11788 lt_prog_compiler_static_GO='-Bstatic'
11789 lt_prog_compiler_wl_GO='-Wl,'
11791 esac
11793 esac
11796 newsos6)
11797 lt_prog_compiler_pic_GO='-KPIC'
11798 lt_prog_compiler_static_GO='-Bstatic'
11801 *nto* | *qnx*)
11802 # QNX uses GNU C++, but need to define -shared option too, otherwise
11803 # it will coredump.
11804 lt_prog_compiler_pic_GO='-fPIC -shared'
11807 osf3* | osf4* | osf5*)
11808 lt_prog_compiler_wl_GO='-Wl,'
11809 # All OSF/1 code is PIC.
11810 lt_prog_compiler_static_GO='-non_shared'
11813 rdos*)
11814 lt_prog_compiler_static_GO='-non_shared'
11817 solaris*)
11818 lt_prog_compiler_pic_GO='-KPIC'
11819 lt_prog_compiler_static_GO='-Bstatic'
11820 case $cc_basename in
11821 f77* | f90* | f95*)
11822 lt_prog_compiler_wl_GO='-Qoption ld ';;
11824 lt_prog_compiler_wl_GO='-Wl,';;
11825 esac
11828 sunos4*)
11829 lt_prog_compiler_wl_GO='-Qoption ld '
11830 lt_prog_compiler_pic_GO='-PIC'
11831 lt_prog_compiler_static_GO='-Bstatic'
11834 sysv4 | sysv4.2uw2* | sysv4.3*)
11835 lt_prog_compiler_wl_GO='-Wl,'
11836 lt_prog_compiler_pic_GO='-KPIC'
11837 lt_prog_compiler_static_GO='-Bstatic'
11840 sysv4*MP*)
11841 if test -d /usr/nec ;then
11842 lt_prog_compiler_pic_GO='-Kconform_pic'
11843 lt_prog_compiler_static_GO='-Bstatic'
11847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11848 lt_prog_compiler_wl_GO='-Wl,'
11849 lt_prog_compiler_pic_GO='-KPIC'
11850 lt_prog_compiler_static_GO='-Bstatic'
11853 unicos*)
11854 lt_prog_compiler_wl_GO='-Wl,'
11855 lt_prog_compiler_can_build_shared_GO=no
11858 uts4*)
11859 lt_prog_compiler_pic_GO='-pic'
11860 lt_prog_compiler_static_GO='-Bstatic'
11864 lt_prog_compiler_can_build_shared_GO=no
11866 esac
11869 case $host_os in
11870 # For platforms which do not support PIC, -DPIC is meaningless:
11871 *djgpp*)
11872 lt_prog_compiler_pic_GO=
11875 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11877 esac
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11879 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11884 # Check to make sure the PIC flag actually works.
11886 if test -n "$lt_prog_compiler_pic_GO"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11888 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11889 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 lt_cv_prog_compiler_pic_works_GO=no
11893 ac_outfile=conftest.$ac_objext
11894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11895 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11896 # Insert the option either (1) after the last *FLAGS variable, or
11897 # (2) before a word containing "conftest.", or (3) at the end.
11898 # Note that $ac_compile itself does not contain backslashes and begins
11899 # with a dollar sign (not a hyphen), so the echo should work correctly.
11900 # The option is referenced via a variable to avoid confusing sed.
11901 lt_compile=`echo "$ac_compile" | $SED \
11902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11904 -e 's:$: $lt_compiler_flag:'`
11905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11906 (eval "$lt_compile" 2>conftest.err)
11907 ac_status=$?
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 if (exit $ac_status) && test -s "$ac_outfile"; then
11911 # The compiler can only warn and ignore the option if not recognized
11912 # So say no if there are warnings other than the usual output.
11913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11916 lt_cv_prog_compiler_pic_works_GO=yes
11919 $RM conftest*
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11923 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11925 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11926 case $lt_prog_compiler_pic_GO in
11927 "" | " "*) ;;
11928 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11929 esac
11930 else
11931 lt_prog_compiler_pic_GO=
11932 lt_prog_compiler_can_build_shared_GO=no
11940 # Check to make sure the static flag actually works.
11942 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11945 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 lt_cv_prog_compiler_static_works_GO=no
11949 save_LDFLAGS="$LDFLAGS"
11950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11953 # The linker can only warn and ignore the option if not recognized
11954 # So say no if there are warnings
11955 if test -s conftest.err; then
11956 # Append any errors to the config.log.
11957 cat conftest.err 1>&5
11958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11960 if diff conftest.exp conftest.er2 >/dev/null; then
11961 lt_cv_prog_compiler_static_works_GO=yes
11963 else
11964 lt_cv_prog_compiler_static_works_GO=yes
11967 $RM -r conftest*
11968 LDFLAGS="$save_LDFLAGS"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11972 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11974 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11976 else
11977 lt_prog_compiler_static_GO=
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11985 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 lt_cv_prog_compiler_c_o_GO=no
11989 $RM -r conftest 2>/dev/null
11990 mkdir conftest
11991 cd conftest
11992 mkdir out
11993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11995 lt_compiler_flag="-o out/conftest2.$ac_objext"
11996 # Insert the option either (1) after the last *FLAGS variable, or
11997 # (2) before a word containing "conftest.", or (3) at the end.
11998 # Note that $ac_compile itself does not contain backslashes and begins
11999 # with a dollar sign (not a hyphen), so the echo should work correctly.
12000 lt_compile=`echo "$ac_compile" | $SED \
12001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003 -e 's:$: $lt_compiler_flag:'`
12004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12005 (eval "$lt_compile" 2>out/conftest.err)
12006 ac_status=$?
12007 cat out/conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12010 then
12011 # The compiler can only warn and ignore the option if not recognized
12012 # So say no if there are warnings
12013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12016 lt_cv_prog_compiler_c_o_GO=yes
12019 chmod u+w . 2>&5
12020 $RM conftest*
12021 # SGI C++ compiler will create directory out/ii_files/ for
12022 # template instantiation
12023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12024 $RM out/* && rmdir out
12025 cd ..
12026 $RM -r conftest
12027 $RM conftest*
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12031 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12036 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12037 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 lt_cv_prog_compiler_c_o_GO=no
12041 $RM -r conftest 2>/dev/null
12042 mkdir conftest
12043 cd conftest
12044 mkdir out
12045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12047 lt_compiler_flag="-o out/conftest2.$ac_objext"
12048 # Insert the option either (1) after the last *FLAGS variable, or
12049 # (2) before a word containing "conftest.", or (3) at the end.
12050 # Note that $ac_compile itself does not contain backslashes and begins
12051 # with a dollar sign (not a hyphen), so the echo should work correctly.
12052 lt_compile=`echo "$ac_compile" | $SED \
12053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055 -e 's:$: $lt_compiler_flag:'`
12056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12057 (eval "$lt_compile" 2>out/conftest.err)
12058 ac_status=$?
12059 cat out/conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12062 then
12063 # The compiler can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12068 lt_cv_prog_compiler_c_o_GO=yes
12071 chmod u+w . 2>&5
12072 $RM conftest*
12073 # SGI C++ compiler will create directory out/ii_files/ for
12074 # template instantiation
12075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12076 $RM out/* && rmdir out
12077 cd ..
12078 $RM -r conftest
12079 $RM conftest*
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12083 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12088 hard_links="nottested"
12089 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12090 # do not overwrite the value of need_locks provided by the user
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12092 $as_echo_n "checking if we can lock with hard links... " >&6; }
12093 hard_links=yes
12094 $RM conftest*
12095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12096 touch conftest.a
12097 ln conftest.a conftest.b 2>&5 || hard_links=no
12098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12100 $as_echo "$hard_links" >&6; }
12101 if test "$hard_links" = no; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12103 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12104 need_locks=warn
12106 else
12107 need_locks=no
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12115 runpath_var=
12116 allow_undefined_flag_GO=
12117 always_export_symbols_GO=no
12118 archive_cmds_GO=
12119 archive_expsym_cmds_GO=
12120 compiler_needs_object_GO=no
12121 enable_shared_with_static_runtimes_GO=no
12122 export_dynamic_flag_spec_GO=
12123 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12124 hardcode_automatic_GO=no
12125 hardcode_direct_GO=no
12126 hardcode_direct_absolute_GO=no
12127 hardcode_libdir_flag_spec_GO=
12128 hardcode_libdir_flag_spec_ld_GO=
12129 hardcode_libdir_separator_GO=
12130 hardcode_minus_L_GO=no
12131 hardcode_shlibpath_var_GO=unsupported
12132 inherit_rpath_GO=no
12133 link_all_deplibs_GO=unknown
12134 module_cmds_GO=
12135 module_expsym_cmds_GO=
12136 old_archive_from_new_cmds_GO=
12137 old_archive_from_expsyms_cmds_GO=
12138 thread_safe_flag_spec_GO=
12139 whole_archive_flag_spec_GO=
12140 # include_expsyms should be a list of space-separated symbols to be *always*
12141 # included in the symbol list
12142 include_expsyms_GO=
12143 # exclude_expsyms can be an extended regexp of symbols to exclude
12144 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12145 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12146 # as well as any symbol that contains `d'.
12147 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12148 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12149 # platforms (ab)use it in PIC code, but their linkers get confused if
12150 # the symbol is explicitly referenced. Since portable code cannot
12151 # rely on this symbol name, it's probably fine to never include it in
12152 # preloaded symbol tables.
12153 # Exclude shared library initialization/finalization symbols.
12154 extract_expsyms_cmds=
12156 case $host_os in
12157 cygwin* | mingw* | pw32* | cegcc*)
12158 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12159 # When not using gcc, we currently assume that we are using
12160 # Microsoft Visual C++.
12161 if test "$GCC" != yes; then
12162 with_gnu_ld=no
12165 interix*)
12166 # we just hope/assume this is gcc and not c89 (= MSVC++)
12167 with_gnu_ld=yes
12169 openbsd*)
12170 with_gnu_ld=no
12172 esac
12174 ld_shlibs_GO=yes
12176 # On some targets, GNU ld is compatible enough with the native linker
12177 # that we're better off using the native interface for both.
12178 lt_use_gnu_ld_interface=no
12179 if test "$with_gnu_ld" = yes; then
12180 case $host_os in
12181 aix*)
12182 # The AIX port of GNU ld has always aspired to compatibility
12183 # with the native linker. However, as the warning in the GNU ld
12184 # block says, versions before 2.19.5* couldn't really create working
12185 # shared libraries, regardless of the interface used.
12186 case `$LD -v 2>&1` in
12187 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12188 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12189 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12191 lt_use_gnu_ld_interface=yes
12193 esac
12196 lt_use_gnu_ld_interface=yes
12198 esac
12201 if test "$lt_use_gnu_ld_interface" = yes; then
12202 # If archive_cmds runs LD, not CC, wlarc should be empty
12203 wlarc='${wl}'
12205 # Set some defaults for GNU ld with shared library support. These
12206 # are reset later if shared libraries are not supported. Putting them
12207 # here allows them to be overridden if necessary.
12208 runpath_var=LD_RUN_PATH
12209 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12210 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12211 # ancient GNU ld didn't support --whole-archive et. al.
12212 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12213 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12214 else
12215 whole_archive_flag_spec_GO=
12217 supports_anon_versioning=no
12218 case `$LD -v 2>&1` in
12219 *GNU\ gold*) supports_anon_versioning=yes ;;
12220 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12223 *\ 2.11.*) ;; # other 2.11 versions
12224 *) supports_anon_versioning=yes ;;
12225 esac
12227 # See if GNU ld supports shared libraries.
12228 case $host_os in
12229 aix[3-9]*)
12230 # On AIX/PPC, the GNU linker is very broken
12231 if test "$host_cpu" != ia64; then
12232 ld_shlibs_GO=no
12233 cat <<_LT_EOF 1>&2
12235 *** Warning: the GNU linker, at least up to release 2.19, is reported
12236 *** to be unable to reliably create shared libraries on AIX.
12237 *** Therefore, libtool is disabling shared libraries support. If you
12238 *** really care for shared libraries, you may want to install binutils
12239 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12240 *** You will then need to restart the configuration process.
12242 _LT_EOF
12246 amigaos*)
12247 case $host_cpu in
12248 powerpc)
12249 # see comment about AmigaOS4 .so support
12250 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 archive_expsym_cmds_GO=''
12253 m68k)
12254 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)'
12255 hardcode_libdir_flag_spec_GO='-L$libdir'
12256 hardcode_minus_L_GO=yes
12258 esac
12261 beos*)
12262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12263 allow_undefined_flag_GO=unsupported
12264 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12265 # support --undefined. This deserves some investigation. FIXME
12266 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 else
12268 ld_shlibs_GO=no
12272 cygwin* | mingw* | pw32* | cegcc*)
12273 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12274 # as there is no search path for DLLs.
12275 hardcode_libdir_flag_spec_GO='-L$libdir'
12276 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12277 allow_undefined_flag_GO=unsupported
12278 always_export_symbols_GO=no
12279 enable_shared_with_static_runtimes_GO=yes
12280 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12283 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12284 # If the export-symbols file already is a .def file (1st line
12285 # is EXPORTS), use it as is; otherwise, prepend...
12286 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12287 cp $export_symbols $output_objdir/$soname.def;
12288 else
12289 echo EXPORTS > $output_objdir/$soname.def;
12290 cat $export_symbols >> $output_objdir/$soname.def;
12292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12293 else
12294 ld_shlibs_GO=no
12298 haiku*)
12299 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12300 link_all_deplibs_GO=yes
12303 interix[3-9]*)
12304 hardcode_direct_GO=no
12305 hardcode_shlibpath_var_GO=no
12306 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12307 export_dynamic_flag_spec_GO='${wl}-E'
12308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12309 # Instead, shared libraries are loaded at an image base (0x10000000 by
12310 # default) and relocated if they conflict, which is a slow very memory
12311 # consuming and fragmenting process. To avoid this, we pick a random,
12312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12314 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'
12315 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'
12318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12319 tmp_diet=no
12320 if test "$host_os" = linux-dietlibc; then
12321 case $cc_basename in
12322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12323 esac
12325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12326 && test "$tmp_diet" = no
12327 then
12328 tmp_addflag=
12329 tmp_sharedflag='-shared'
12330 case $cc_basename,$host_cpu in
12331 pgcc*) # Portland Group C compiler
12332 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'
12333 tmp_addflag=' $pic_flag'
12335 pgf77* | pgf90* | pgf95* | pgfortran*)
12336 # Portland Group f77 and f90 compilers
12337 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'
12338 tmp_addflag=' $pic_flag -Mnomain' ;;
12339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12340 tmp_addflag=' -i_dynamic' ;;
12341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12342 tmp_addflag=' -i_dynamic -nofor_main' ;;
12343 ifc* | ifort*) # Intel Fortran compiler
12344 tmp_addflag=' -nofor_main' ;;
12345 lf95*) # Lahey Fortran 8.1
12346 whole_archive_flag_spec_GO=
12347 tmp_sharedflag='--shared' ;;
12348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12349 tmp_sharedflag='-qmkshrobj'
12350 tmp_addflag= ;;
12351 nvcc*) # Cuda Compiler Driver 2.2
12352 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'
12353 compiler_needs_object_GO=yes
12355 esac
12356 case `$CC -V 2>&1 | sed 5q` in
12357 *Sun\ C*) # Sun C 5.9
12358 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'
12359 compiler_needs_object_GO=yes
12360 tmp_sharedflag='-G' ;;
12361 *Sun\ F*) # Sun Fortran 8.3
12362 tmp_sharedflag='-G' ;;
12363 esac
12364 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12373 case $cc_basename in
12374 xlf* | bgf* | bgxlf* | mpixlf*)
12375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12376 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12377 hardcode_libdir_flag_spec_GO=
12378 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12379 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12380 if test "x$supports_anon_versioning" = xyes; then
12381 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12383 echo "local: *; };" >> $output_objdir/$libname.ver~
12384 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12387 esac
12388 else
12389 ld_shlibs_GO=no
12393 netbsd*)
12394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12395 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12396 wlarc=
12397 else
12398 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403 solaris*)
12404 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12405 ld_shlibs_GO=no
12406 cat <<_LT_EOF 1>&2
12408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409 *** create shared libraries on Solaris systems. Therefore, libtool
12410 *** is disabling shared libraries support. We urge you to upgrade GNU
12411 *** binutils to release 2.9.1 or newer. Another option is to modify
12412 *** your PATH or compiler configuration so that the native linker is
12413 *** used, and then restart.
12415 _LT_EOF
12416 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12417 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419 else
12420 ld_shlibs_GO=no
12424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12425 case `$LD -v 2>&1` in
12426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12427 ld_shlibs_GO=no
12428 cat <<_LT_EOF 1>&2
12430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12431 *** reliably create shared libraries on SCO systems. Therefore, libtool
12432 *** is disabling shared libraries support. We urge you to upgrade GNU
12433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12434 *** your PATH or compiler configuration so that the native linker is
12435 *** used, and then restart.
12437 _LT_EOF
12440 # For security reasons, it is highly recommended that you always
12441 # use absolute paths for naming shared libraries, and exclude the
12442 # DT_RUNPATH tag from executables and libraries. But doing so
12443 # requires that you compile everything twice, which is a pain.
12444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12445 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12446 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12448 else
12449 ld_shlibs_GO=no
12452 esac
12455 sunos4*)
12456 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12457 wlarc=
12458 hardcode_direct_GO=yes
12459 hardcode_shlibpath_var_GO=no
12463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12464 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12465 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12466 else
12467 ld_shlibs_GO=no
12470 esac
12472 if test "$ld_shlibs_GO" = no; then
12473 runpath_var=
12474 hardcode_libdir_flag_spec_GO=
12475 export_dynamic_flag_spec_GO=
12476 whole_archive_flag_spec_GO=
12478 else
12479 # PORTME fill in a description of your system's linker (not GNU ld)
12480 case $host_os in
12481 aix3*)
12482 allow_undefined_flag_GO=unsupported
12483 always_export_symbols_GO=yes
12484 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'
12485 # Note: this linker hardcodes the directories in LIBPATH if there
12486 # are no directories specified by -L.
12487 hardcode_minus_L_GO=yes
12488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12489 # Neither direct hardcoding nor static linking is supported with a
12490 # broken collect2.
12491 hardcode_direct_GO=unsupported
12495 aix[4-9]*)
12496 if test "$host_cpu" = ia64; then
12497 # On IA64, the linker does run time linking by default, so we don't
12498 # have to do anything special.
12499 aix_use_runtimelinking=no
12500 exp_sym_flag='-Bexport'
12501 no_entry_flag=""
12502 else
12503 # If we're using GNU nm, then we don't want the "-C" option.
12504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12505 # Also, AIX nm treats weak defined symbols like other global
12506 # defined symbols, whereas GNU nm marks them as "W".
12507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12508 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'
12509 else
12510 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'
12512 aix_use_runtimelinking=no
12514 # Test if we are trying to use run time linking or normal
12515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12516 # need to do runtime linking.
12517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12518 for ld_flag in $LDFLAGS; do
12519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12520 aix_use_runtimelinking=yes
12521 break
12523 done
12525 esac
12527 exp_sym_flag='-bexport'
12528 no_entry_flag='-bnoentry'
12531 # When large executables or shared objects are built, AIX ld can
12532 # have problems creating the table of contents. If linking a library
12533 # or program results in "error TOC overflow" add -mminimal-toc to
12534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12537 archive_cmds_GO=''
12538 hardcode_direct_GO=yes
12539 hardcode_direct_absolute_GO=yes
12540 hardcode_libdir_separator_GO=':'
12541 link_all_deplibs_GO=yes
12542 file_list_spec_GO='${wl}-f,'
12544 if test "$GCC" = yes; then
12545 case $host_os in aix4.[012]|aix4.[012].*)
12546 # We only want to do this on AIX 4.2 and lower, the check
12547 # below for broken collect2 doesn't work under 4.3+
12548 collect2name=`${CC} -print-prog-name=collect2`
12549 if test -f "$collect2name" &&
12550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12551 then
12552 # We have reworked collect2
12554 else
12555 # We have old collect2
12556 hardcode_direct_GO=unsupported
12557 # It fails to find uninstalled libraries when the uninstalled
12558 # path is not listed in the libpath. Setting hardcode_minus_L
12559 # to unsupported forces relinking
12560 hardcode_minus_L_GO=yes
12561 hardcode_libdir_flag_spec_GO='-L$libdir'
12562 hardcode_libdir_separator_GO=
12565 esac
12566 shared_flag='-shared'
12567 if test "$aix_use_runtimelinking" = yes; then
12568 shared_flag="$shared_flag "'${wl}-G'
12570 else
12571 # not using gcc
12572 if test "$host_cpu" = ia64; then
12573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12574 # chokes on -Wl,-G. The following line is correct:
12575 shared_flag='-G'
12576 else
12577 if test "$aix_use_runtimelinking" = yes; then
12578 shared_flag='${wl}-G'
12579 else
12580 shared_flag='${wl}-bM:SRE'
12585 export_dynamic_flag_spec_GO='${wl}-bexpall'
12586 # It seems that -bexpall does not export symbols beginning with
12587 # underscore (_), so it is better to generate a list of symbols to export.
12588 always_export_symbols_GO=yes
12589 if test "$aix_use_runtimelinking" = yes; then
12590 # Warning - without using the other runtime loading flags (-brtl),
12591 # -berok will link without error, but may produce a broken library.
12592 allow_undefined_flag_GO='-berok'
12593 # Determine the default libpath from the value encoded in an
12594 # empty executable.
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12599 main ()
12603 return 0;
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12608 lt_aix_libpath_sed='
12609 /Import File Strings/,/^$/ {
12610 /^0/ {
12611 s/^0 *\(.*\)$/\1/
12615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12616 # Check for a 64-bit object if we didn't find anything.
12617 if test -z "$aix_libpath"; then
12618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12621 rm -f core conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12625 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12626 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"
12627 else
12628 if test "$host_cpu" = ia64; then
12629 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12630 allow_undefined_flag_GO="-z nodefs"
12631 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"
12632 else
12633 # Determine the default libpath from the value encoded in an
12634 # empty executable.
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12639 main ()
12643 return 0;
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12648 lt_aix_libpath_sed='
12649 /Import File Strings/,/^$/ {
12650 /^0/ {
12651 s/^0 *\(.*\)$/\1/
12655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12656 # Check for a 64-bit object if we didn't find anything.
12657 if test -z "$aix_libpath"; then
12658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12665 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12666 # Warning - without using the other run time loading flags,
12667 # -berok will link without error, but may produce a broken library.
12668 no_undefined_flag_GO=' ${wl}-bernotok'
12669 allow_undefined_flag_GO=' ${wl}-berok'
12670 if test "$with_gnu_ld" = yes; then
12671 # We only use this code for GNU lds that support --whole-archive.
12672 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12673 else
12674 # Exported symbols can be pulled into shared objects from archives
12675 whole_archive_flag_spec_GO='$convenience'
12677 archive_cmds_need_lc_GO=yes
12678 # This is similar to how AIX traditionally builds its shared libraries.
12679 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'
12684 amigaos*)
12685 case $host_cpu in
12686 powerpc)
12687 # see comment about AmigaOS4 .so support
12688 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12689 archive_expsym_cmds_GO=''
12691 m68k)
12692 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)'
12693 hardcode_libdir_flag_spec_GO='-L$libdir'
12694 hardcode_minus_L_GO=yes
12696 esac
12699 bsdi[45]*)
12700 export_dynamic_flag_spec_GO=-rdynamic
12703 cygwin* | mingw* | pw32* | cegcc*)
12704 # When not using gcc, we currently assume that we are using
12705 # Microsoft Visual C++.
12706 # hardcode_libdir_flag_spec is actually meaningless, as there is
12707 # no search path for DLLs.
12708 hardcode_libdir_flag_spec_GO=' '
12709 allow_undefined_flag_GO=unsupported
12710 # Tell ltmain to make .lib files, not .a files.
12711 libext=lib
12712 # Tell ltmain to make .dll files, not .so files.
12713 shrext_cmds=".dll"
12714 # FIXME: Setting linknames here is a bad hack.
12715 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12716 # The linker will automatically build a .lib file if we build a DLL.
12717 old_archive_from_new_cmds_GO='true'
12718 # FIXME: Should let the user specify the lib program.
12719 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12720 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12721 enable_shared_with_static_runtimes_GO=yes
12724 darwin* | rhapsody*)
12727 archive_cmds_need_lc_GO=no
12728 hardcode_direct_GO=no
12729 hardcode_automatic_GO=yes
12730 hardcode_shlibpath_var_GO=unsupported
12731 if test "$lt_cv_ld_force_load" = "yes"; then
12732 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\"`'
12733 else
12734 whole_archive_flag_spec_GO=''
12736 link_all_deplibs_GO=yes
12737 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12738 case $cc_basename in
12739 ifort*) _lt_dar_can_shared=yes ;;
12740 *) _lt_dar_can_shared=$GCC ;;
12741 esac
12742 if test "$_lt_dar_can_shared" = "yes"; then
12743 output_verbose_link_cmd=func_echo_all
12744 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}"
12745 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12746 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}"
12747 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}"
12749 else
12750 ld_shlibs_GO=no
12755 dgux*)
12756 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12757 hardcode_libdir_flag_spec_GO='-L$libdir'
12758 hardcode_shlibpath_var_GO=no
12761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12762 # support. Future versions do this automatically, but an explicit c++rt0.o
12763 # does not break anything, and helps significantly (at the cost of a little
12764 # extra space).
12765 freebsd2.2*)
12766 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12767 hardcode_libdir_flag_spec_GO='-R$libdir'
12768 hardcode_direct_GO=yes
12769 hardcode_shlibpath_var_GO=no
12772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12773 freebsd2.*)
12774 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12775 hardcode_direct_GO=yes
12776 hardcode_minus_L_GO=yes
12777 hardcode_shlibpath_var_GO=no
12780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12781 freebsd* | dragonfly*)
12782 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12783 hardcode_libdir_flag_spec_GO='-R$libdir'
12784 hardcode_direct_GO=yes
12785 hardcode_shlibpath_var_GO=no
12788 hpux9*)
12789 if test "$GCC" = yes; then
12790 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'
12791 else
12792 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'
12794 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12795 hardcode_libdir_separator_GO=:
12796 hardcode_direct_GO=yes
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L_GO=yes
12801 export_dynamic_flag_spec_GO='${wl}-E'
12804 hpux10*)
12805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12806 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12807 else
12808 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12810 if test "$with_gnu_ld" = no; then
12811 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12812 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12813 hardcode_libdir_separator_GO=:
12814 hardcode_direct_GO=yes
12815 hardcode_direct_absolute_GO=yes
12816 export_dynamic_flag_spec_GO='${wl}-E'
12817 # hardcode_minus_L: Not really in the search PATH,
12818 # but as the default location of the library.
12819 hardcode_minus_L_GO=yes
12823 hpux11*)
12824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12825 case $host_cpu in
12826 hppa*64*)
12827 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 ia64*)
12830 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12833 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12835 esac
12836 else
12837 case $host_cpu in
12838 hppa*64*)
12839 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12841 ia64*)
12842 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12847 esac
12849 if test "$with_gnu_ld" = no; then
12850 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12851 hardcode_libdir_separator_GO=:
12853 case $host_cpu in
12854 hppa*64*|ia64*)
12855 hardcode_direct_GO=no
12856 hardcode_shlibpath_var_GO=no
12859 hardcode_direct_GO=yes
12860 hardcode_direct_absolute_GO=yes
12861 export_dynamic_flag_spec_GO='${wl}-E'
12863 # hardcode_minus_L: Not really in the search PATH,
12864 # but as the default location of the library.
12865 hardcode_minus_L_GO=yes
12867 esac
12871 irix5* | irix6* | nonstopux*)
12872 if test "$GCC" = yes; then
12873 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'
12874 # Try to use the -exported_symbol ld option, if it does not
12875 # work, assume that -exports_file does not work either and
12876 # implicitly export all symbols.
12877 save_LDFLAGS="$LDFLAGS"
12878 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 int foo(void) {}
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 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'
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LDFLAGS="$save_LDFLAGS"
12890 else
12891 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'
12892 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'
12894 archive_cmds_need_lc_GO='no'
12895 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_GO=:
12897 inherit_rpath_GO=yes
12898 link_all_deplibs_GO=yes
12901 netbsd*)
12902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12903 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12904 else
12905 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12907 hardcode_libdir_flag_spec_GO='-R$libdir'
12908 hardcode_direct_GO=yes
12909 hardcode_shlibpath_var_GO=no
12912 newsos6)
12913 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914 hardcode_direct_GO=yes
12915 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12916 hardcode_libdir_separator_GO=:
12917 hardcode_shlibpath_var_GO=no
12920 *nto* | *qnx*)
12923 openbsd*)
12924 if test -f /usr/libexec/ld.so; then
12925 hardcode_direct_GO=yes
12926 hardcode_shlibpath_var_GO=no
12927 hardcode_direct_absolute_GO=yes
12928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12929 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12930 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12931 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12932 export_dynamic_flag_spec_GO='${wl}-E'
12933 else
12934 case $host_os in
12935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12936 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12937 hardcode_libdir_flag_spec_GO='-R$libdir'
12940 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12941 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12943 esac
12945 else
12946 ld_shlibs_GO=no
12950 os2*)
12951 hardcode_libdir_flag_spec_GO='-L$libdir'
12952 hardcode_minus_L_GO=yes
12953 allow_undefined_flag_GO=unsupported
12954 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'
12955 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12958 osf3*)
12959 if test "$GCC" = yes; then
12960 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12961 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'
12962 else
12963 allow_undefined_flag_GO=' -expect_unresolved \*'
12964 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'
12966 archive_cmds_need_lc_GO='no'
12967 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12968 hardcode_libdir_separator_GO=:
12971 osf4* | osf5*) # as osf3* with the addition of -msym flag
12972 if test "$GCC" = yes; then
12973 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12974 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'
12975 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12976 else
12977 allow_undefined_flag_GO=' -expect_unresolved \*'
12978 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'
12979 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~
12980 $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'
12982 # Both c and cxx compiler support -rpath directly
12983 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12985 archive_cmds_need_lc_GO='no'
12986 hardcode_libdir_separator_GO=:
12989 solaris*)
12990 no_undefined_flag_GO=' -z defs'
12991 if test "$GCC" = yes; then
12992 wlarc='${wl}'
12993 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12994 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12995 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12996 else
12997 case `$CC -V 2>&1` in
12998 *"Compilers 5.0"*)
12999 wlarc=''
13000 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13001 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13005 wlarc='${wl}'
13006 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13007 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13010 esac
13012 hardcode_libdir_flag_spec_GO='-R$libdir'
13013 hardcode_shlibpath_var_GO=no
13014 case $host_os in
13015 solaris2.[0-5] | solaris2.[0-5].*) ;;
13017 # The compiler driver will combine and reorder linker options,
13018 # but understands `-z linker_flag'. GCC discards it without `$wl',
13019 # but is careful enough not to reorder.
13020 # Supported since Solaris 2.6 (maybe 2.5.1?)
13021 if test "$GCC" = yes; then
13022 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13023 else
13024 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13027 esac
13028 link_all_deplibs_GO=yes
13031 sunos4*)
13032 if test "x$host_vendor" = xsequent; then
13033 # Use $CC to link under sequent, because it throws in some extra .o
13034 # files that make .init and .fini sections work.
13035 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13036 else
13037 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13039 hardcode_libdir_flag_spec_GO='-L$libdir'
13040 hardcode_direct_GO=yes
13041 hardcode_minus_L_GO=yes
13042 hardcode_shlibpath_var_GO=no
13045 sysv4)
13046 case $host_vendor in
13047 sni)
13048 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_direct_GO=yes # is this really true???
13051 siemens)
13052 ## LD is ld it makes a PLAMLIB
13053 ## CC just makes a GrossModule.
13054 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13055 reload_cmds_GO='$CC -r -o $output$reload_objs'
13056 hardcode_direct_GO=no
13058 motorola)
13059 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13060 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13062 esac
13063 runpath_var='LD_RUN_PATH'
13064 hardcode_shlibpath_var_GO=no
13067 sysv4.3*)
13068 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13069 hardcode_shlibpath_var_GO=no
13070 export_dynamic_flag_spec_GO='-Bexport'
13073 sysv4*MP*)
13074 if test -d /usr/nec; then
13075 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13076 hardcode_shlibpath_var_GO=no
13077 runpath_var=LD_RUN_PATH
13078 hardcode_runpath_var=yes
13079 ld_shlibs_GO=yes
13083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13084 no_undefined_flag_GO='${wl}-z,text'
13085 archive_cmds_need_lc_GO=no
13086 hardcode_shlibpath_var_GO=no
13087 runpath_var='LD_RUN_PATH'
13089 if test "$GCC" = yes; then
13090 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 else
13093 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 sysv5* | sco3.2v5* | sco5v6*)
13099 # Note: We can NOT use -z defs as we might desire, because we do not
13100 # link with -lc, and that would cause any symbols used from libc to
13101 # always be unresolved, which means just about no library would
13102 # ever link correctly. If we're not using GNU ld we use -z text
13103 # though, which does catch some bad symbols but isn't as heavy-handed
13104 # as -z defs.
13105 no_undefined_flag_GO='${wl}-z,text'
13106 allow_undefined_flag_GO='${wl}-z,nodefs'
13107 archive_cmds_need_lc_GO=no
13108 hardcode_shlibpath_var_GO=no
13109 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13110 hardcode_libdir_separator_GO=':'
13111 link_all_deplibs_GO=yes
13112 export_dynamic_flag_spec_GO='${wl}-Bexport'
13113 runpath_var='LD_RUN_PATH'
13115 if test "$GCC" = yes; then
13116 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 else
13119 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 uts4*)
13125 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126 hardcode_libdir_flag_spec_GO='-L$libdir'
13127 hardcode_shlibpath_var_GO=no
13131 ld_shlibs_GO=no
13133 esac
13135 if test x$host_vendor = xsni; then
13136 case $host in
13137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13138 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13140 esac
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13145 $as_echo "$ld_shlibs_GO" >&6; }
13146 test "$ld_shlibs_GO" = no && can_build_shared=no
13148 with_gnu_ld_GO=$with_gnu_ld
13156 # Do we need to explicitly link libc?
13158 case "x$archive_cmds_need_lc_GO" in
13159 x|xyes)
13160 # Assume -lc should be added
13161 archive_cmds_need_lc_GO=yes
13163 if test "$enable_shared" = yes && test "$GCC" = yes; then
13164 case $archive_cmds_GO in
13165 *'~'*)
13166 # FIXME: we may have to deal with multi-command sequences.
13168 '$CC '*)
13169 # Test whether the compiler implicitly links with -lc since on some
13170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13171 # to ld, don't add -lc before -lgcc.
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13174 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 $RM conftest*
13178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13181 (eval $ac_compile) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; } 2>conftest.err; then
13185 soname=conftest
13186 lib=conftest
13187 libobjs=conftest.$ac_objext
13188 deplibs=
13189 wl=$lt_prog_compiler_wl_GO
13190 pic_flag=$lt_prog_compiler_pic_GO
13191 compiler_flags=-v
13192 linker_flags=-v
13193 verstring=
13194 output_objdir=.
13195 libname=conftest
13196 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13197 allow_undefined_flag_GO=
13198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13199 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13200 ac_status=$?
13201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13202 test $ac_status = 0; }
13203 then
13204 lt_cv_archive_cmds_need_lc_GO=no
13205 else
13206 lt_cv_archive_cmds_need_lc_GO=yes
13208 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13209 else
13210 cat conftest.err 1>&5
13212 $RM conftest*
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13216 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13217 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13219 esac
13222 esac
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13289 hardcode_action_GO=
13290 if test -n "$hardcode_libdir_flag_spec_GO" ||
13291 test -n "$runpath_var_GO" ||
13292 test "X$hardcode_automatic_GO" = "Xyes" ; then
13294 # We can hardcode non-existent directories.
13295 if test "$hardcode_direct_GO" != no &&
13296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13297 # have to relink, otherwise we might link with an installed library
13298 # when we should be linking with a yet-to-be-installed one
13299 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13300 test "$hardcode_minus_L_GO" != no; then
13301 # Linking always hardcodes the temporary library directory.
13302 hardcode_action_GO=relink
13303 else
13304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13305 hardcode_action_GO=immediate
13307 else
13308 # We cannot hardcode anything, or else we can only hardcode existing
13309 # directories.
13310 hardcode_action_GO=unsupported
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13313 $as_echo "$hardcode_action_GO" >&6; }
13315 if test "$hardcode_action_GO" = relink ||
13316 test "$inherit_rpath_GO" = yes; then
13317 # Fast installation is not supported
13318 enable_fast_install=no
13319 elif test "$shlibpath_overrides_runpath" = yes ||
13320 test "$enable_shared" = no; then
13321 # Fast installation is not necessary
13322 enable_fast_install=needless
13333 ac_ext=c
13334 ac_cpp='$CPP $CPPFLAGS'
13335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340 GCC=$lt_save_GCC
13341 CC="$lt_save_CC"
13346 ac_config_commands="$ac_config_commands libtool"
13351 # Only expand once:
13357 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13360 for ac_prog in gawk mawk nawk awk
13362 # Extract the first word of "$ac_prog", so it can be a program name with args.
13363 set dummy $ac_prog; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if test "${ac_cv_prog_AWK+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 if test -n "$AWK"; then
13370 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13375 IFS=$as_save_IFS
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_AWK="$ac_prog"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 break 2
13383 done
13384 done
13385 IFS=$as_save_IFS
13389 AWK=$ac_cv_prog_AWK
13390 if test -n "$AWK"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13392 $as_echo "$AWK" >&6; }
13393 else
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13399 test -n "$AWK" && break
13400 done
13403 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13406 # Check whether --enable-werror was given.
13407 if test "${enable_werror+set}" = set; then :
13408 enableval=$enable_werror;
13411 if test "x$enable_werror" != "xno"; then
13412 WERROR="-Werror"
13416 glibgo_toolexecdir=no
13417 glibgo_toolexeclibdir=no
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13420 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13421 # Check whether --enable-version-specific-runtime-libs was given.
13422 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13423 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13424 yes) version_specific_libs=yes ;;
13425 no) version_specific_libs=no ;;
13426 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13427 esac
13428 else
13429 version_specific_libs=no
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13433 $as_echo "$version_specific_libs" >&6; }
13435 # Version-specific runtime libs processing.
13436 if test $version_specific_libs = yes; then
13437 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13438 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13441 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13442 # Install a library built with a cross compiler in tooldir, not libdir.
13443 if test -n "$with_cross_host" &&
13444 test x"$with_cross_host" != x"no"; then
13445 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13446 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13447 else
13448 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13449 nover_glibgo_toolexeclibdir='${libdir}'
13451 multi_os_directory=`$GOC -print-multi-os-directory`
13452 case $multi_os_directory in
13453 .) ;; # Avoid trailing /.
13454 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13455 esac
13457 if test x"$glibgo_toolexecdir" = x"no"; then
13458 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13459 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13466 # See if the user wants to configure without libffi. Some
13467 # architectures don't support it. FIXME: We should set a default
13468 # based on the host.
13470 # Check whether --with-libffi was given.
13471 if test "${with_libffi+set}" = set; then :
13472 withval=$with_libffi; :
13473 else
13474 with_libffi=${with_libffi_default-yes}
13478 LIBFFI=
13479 LIBFFIINCS=
13480 if test "$with_libffi" != no; then
13482 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13484 LIBFFI=../libffi/libffi_convenience.la
13485 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13490 # See if the user wants to configure without libatomic. This is useful if we are
13491 # on an architecture for which libgo does not need an atomic support library and
13492 # libatomic does not support our C compiler.
13494 # Check whether --with-libatomic was given.
13495 if test "${with_libatomic+set}" = set; then :
13496 withval=$with_libatomic; :
13497 else
13498 with_libatomic=${with_libatomic_default-yes}
13502 LIBATOMIC=
13503 if test "$with_libatomic" != no; then
13504 LIBATOMIC=../libatomic/libatomic_convenience.la
13508 # Used to tell GNU make to include a file without telling automake to
13509 # include it.
13510 go_include="-include"
13513 is_darwin=no
13514 is_freebsd=no
13515 is_irix=no
13516 is_linux=no
13517 is_netbsd=no
13518 is_openbsd=no
13519 is_dragonfly=no
13520 is_rtems=no
13521 is_solaris=no
13522 GOOS=unknown
13523 case ${host} in
13524 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13525 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13526 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13527 *-*-linux*) is_linux=yes; GOOS=linux ;;
13528 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13529 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13530 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13531 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13532 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13533 esac
13534 if test $is_darwin = yes; then
13535 LIBGO_IS_DARWIN_TRUE=
13536 LIBGO_IS_DARWIN_FALSE='#'
13537 else
13538 LIBGO_IS_DARWIN_TRUE='#'
13539 LIBGO_IS_DARWIN_FALSE=
13542 if test $is_freebsd = yes; then
13543 LIBGO_IS_FREEBSD_TRUE=
13544 LIBGO_IS_FREEBSD_FALSE='#'
13545 else
13546 LIBGO_IS_FREEBSD_TRUE='#'
13547 LIBGO_IS_FREEBSD_FALSE=
13550 if test $is_irix = yes; then
13551 LIBGO_IS_IRIX_TRUE=
13552 LIBGO_IS_IRIX_FALSE='#'
13553 else
13554 LIBGO_IS_IRIX_TRUE='#'
13555 LIBGO_IS_IRIX_FALSE=
13558 if test $is_linux = yes; then
13559 LIBGO_IS_LINUX_TRUE=
13560 LIBGO_IS_LINUX_FALSE='#'
13561 else
13562 LIBGO_IS_LINUX_TRUE='#'
13563 LIBGO_IS_LINUX_FALSE=
13566 if test $is_netbsd = yes; then
13567 LIBGO_IS_NETBSD_TRUE=
13568 LIBGO_IS_NETBSD_FALSE='#'
13569 else
13570 LIBGO_IS_NETBSD_TRUE='#'
13571 LIBGO_IS_NETBSD_FALSE=
13574 if test $is_openbsd = yes; then
13575 LIBGO_IS_OPENBSD_TRUE=
13576 LIBGO_IS_OPENBSD_FALSE='#'
13577 else
13578 LIBGO_IS_OPENBSD_TRUE='#'
13579 LIBGO_IS_OPENBSD_FALSE=
13582 if test $is_dragonfly = yes; then
13583 LIBGO_IS_DRAGONFLY_TRUE=
13584 LIBGO_IS_DRAGONFLY_FALSE='#'
13585 else
13586 LIBGO_IS_DRAGONFLY_TRUE='#'
13587 LIBGO_IS_DRAGONFLY_FALSE=
13590 if test $is_rtems = yes; then
13591 LIBGO_IS_RTEMS_TRUE=
13592 LIBGO_IS_RTEMS_FALSE='#'
13593 else
13594 LIBGO_IS_RTEMS_TRUE='#'
13595 LIBGO_IS_RTEMS_FALSE=
13598 if test $is_solaris = yes; then
13599 LIBGO_IS_SOLARIS_TRUE=
13600 LIBGO_IS_SOLARIS_FALSE='#'
13601 else
13602 LIBGO_IS_SOLARIS_TRUE='#'
13603 LIBGO_IS_SOLARIS_FALSE=
13608 USE_DEJAGNU=no
13609 case ${host} in
13610 *-*-rtems*) USE_DEJAGNU=yes ;;
13611 ${build}) ;;
13612 *) USE_DEJAGNU=yes ;;
13613 esac
13616 is_386=no
13617 is_alpha=no
13618 is_arm=no
13619 is_arm64=no
13620 is_m68k=no
13621 mips_abi=unknown
13622 is_ppc=no
13623 is_ppc64=no
13624 is_ppc64le=no
13625 is_s390=no
13626 is_s390x=no
13627 is_sparc=no
13628 is_sparc64=no
13629 is_x86_64=no
13630 GOARCH=unknown
13631 case ${host} in
13632 alpha*-*-*)
13633 is_alpha=yes
13634 GOARCH=alpha
13636 aarch64-*-*)
13637 is_arm64=yes
13638 GOARCH=arm64
13640 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13641 is_arm=yes
13642 GOARCH=arm
13644 i[34567]86-*-* | x86_64-*-*)
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13648 #ifdef __x86_64__
13649 #error 64-bit
13650 #endif
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 is_386=yes
13654 else
13655 is_x86_64=yes
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 if test "$is_386" = "yes"; then
13659 GOARCH=386
13660 else
13661 GOARCH=amd64
13664 m68k*-*-*)
13665 is_m68k=yes
13666 GOARCH=m68k
13668 mips*-*-*)
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13672 #if _MIPS_SIM != _ABIO32
13673 #error not o32
13674 #endif
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"; then :
13677 mips_abi="o32"
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 #if _MIPS_SIM != _ABIN32
13683 #error not n32
13684 #endif
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 mips_abi="n32"
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13692 #if _MIPS_SIM != _ABI64
13693 #error not n64
13694 #endif
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697 mips_abi="n64"
13698 else
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13702 #if _MIPS_SIM != _ABIO64
13703 #error not o64
13704 #endif
13705 _ACEOF
13706 if ac_fn_c_try_compile "$LINENO"; then :
13707 mips_abi="o64"
13708 else
13709 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13710 mips_abi="n32"
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 case "$mips_abi" in
13720 "o32") GOARCH=mipso32 ;;
13721 "n32") GOARCH=mipsn32 ;;
13722 "n64") GOARCH=mipsn64 ;;
13723 "o64") GOARCH=mipso64 ;;
13724 esac
13726 rs6000*-*-* | powerpc*-*-*)
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13730 #ifdef _ARCH_PPC64
13731 #error 64-bit
13732 #endif
13733 _ACEOF
13734 if ac_fn_c_try_compile "$LINENO"; then :
13735 is_ppc=yes
13736 else
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13740 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13741 #error 64be
13742 #endif
13743 _ACEOF
13744 if ac_fn_c_try_compile "$LINENO"; then :
13745 is_ppc64le=yes
13746 else
13747 is_ppc64=yes
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 if test "$is_ppc" = "yes"; then
13753 GOARCH=ppc
13754 elif test "$is_ppc64" = "yes"; then
13755 GOARCH=ppc64
13756 else
13757 GOARCH=ppc64le
13760 s390*-*-*)
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 #if defined(__s390x__)
13765 #error 64-bit
13766 #endif
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769 is_s390=yes
13770 else
13771 is_s390x=yes
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 if test "$is_s390" = "yes"; then
13775 GOARCH=s390
13776 else
13777 GOARCH=s390x
13780 sparc*-*-*)
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13784 #if defined(__sparcv9) || defined(__arch64__)
13785 #error 64-bit
13786 #endif
13787 _ACEOF
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 is_sparc=yes
13790 else
13791 is_sparc64=yes
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 if test "$is_sparc" = "yes"; then
13795 GOARCH=sparc
13796 else
13797 GOARCH=sparc64
13800 esac
13801 if test $is_386 = yes; then
13802 LIBGO_IS_386_TRUE=
13803 LIBGO_IS_386_FALSE='#'
13804 else
13805 LIBGO_IS_386_TRUE='#'
13806 LIBGO_IS_386_FALSE=
13809 if test $is_alpha = yes; then
13810 LIBGO_IS_ALPHA_TRUE=
13811 LIBGO_IS_ALPHA_FALSE='#'
13812 else
13813 LIBGO_IS_ALPHA_TRUE='#'
13814 LIBGO_IS_ALPHA_FALSE=
13817 if test $is_arm = yes; then
13818 LIBGO_IS_ARM_TRUE=
13819 LIBGO_IS_ARM_FALSE='#'
13820 else
13821 LIBGO_IS_ARM_TRUE='#'
13822 LIBGO_IS_ARM_FALSE=
13825 if test $is_arm64 = yes; then
13826 LIBGO_IS_ARM64_TRUE=
13827 LIBGO_IS_ARM64_FALSE='#'
13828 else
13829 LIBGO_IS_ARM64_TRUE='#'
13830 LIBGO_IS_ARM64_FALSE=
13833 if test $is_m68k = yes; then
13834 LIBGO_IS_M68K_TRUE=
13835 LIBGO_IS_M68K_FALSE='#'
13836 else
13837 LIBGO_IS_M68K_TRUE='#'
13838 LIBGO_IS_M68K_FALSE=
13841 if test $mips_abi != unknown; then
13842 LIBGO_IS_MIPS_TRUE=
13843 LIBGO_IS_MIPS_FALSE='#'
13844 else
13845 LIBGO_IS_MIPS_TRUE='#'
13846 LIBGO_IS_MIPS_FALSE=
13849 if test $mips_abi = o32; then
13850 LIBGO_IS_MIPSO32_TRUE=
13851 LIBGO_IS_MIPSO32_FALSE='#'
13852 else
13853 LIBGO_IS_MIPSO32_TRUE='#'
13854 LIBGO_IS_MIPSO32_FALSE=
13857 if test $mips_abi = n32; then
13858 LIBGO_IS_MIPSN32_TRUE=
13859 LIBGO_IS_MIPSN32_FALSE='#'
13860 else
13861 LIBGO_IS_MIPSN32_TRUE='#'
13862 LIBGO_IS_MIPSN32_FALSE=
13865 if test $mips_abi = n64; then
13866 LIBGO_IS_MIPSN64_TRUE=
13867 LIBGO_IS_MIPSN64_FALSE='#'
13868 else
13869 LIBGO_IS_MIPSN64_TRUE='#'
13870 LIBGO_IS_MIPSN64_FALSE=
13873 if test $mips_abi = o64; then
13874 LIBGO_IS_MIPSO64_TRUE=
13875 LIBGO_IS_MIPSO64_FALSE='#'
13876 else
13877 LIBGO_IS_MIPSO64_TRUE='#'
13878 LIBGO_IS_MIPSO64_FALSE=
13881 if test $is_ppc = yes; then
13882 LIBGO_IS_PPC_TRUE=
13883 LIBGO_IS_PPC_FALSE='#'
13884 else
13885 LIBGO_IS_PPC_TRUE='#'
13886 LIBGO_IS_PPC_FALSE=
13889 if test $is_ppc64 = yes; then
13890 LIBGO_IS_PPC64_TRUE=
13891 LIBGO_IS_PPC64_FALSE='#'
13892 else
13893 LIBGO_IS_PPC64_TRUE='#'
13894 LIBGO_IS_PPC64_FALSE=
13897 if test $is_ppc64le = yes; then
13898 LIBGO_IS_PPC64LE_TRUE=
13899 LIBGO_IS_PPC64LE_FALSE='#'
13900 else
13901 LIBGO_IS_PPC64LE_TRUE='#'
13902 LIBGO_IS_PPC64LE_FALSE=
13905 if test $is_s390 = yes; then
13906 LIBGO_IS_S390_TRUE=
13907 LIBGO_IS_S390_FALSE='#'
13908 else
13909 LIBGO_IS_S390_TRUE='#'
13910 LIBGO_IS_S390_FALSE=
13913 if test $is_s390x = yes; then
13914 LIBGO_IS_S390X_TRUE=
13915 LIBGO_IS_S390X_FALSE='#'
13916 else
13917 LIBGO_IS_S390X_TRUE='#'
13918 LIBGO_IS_S390X_FALSE=
13921 if test $is_sparc = yes; then
13922 LIBGO_IS_SPARC_TRUE=
13923 LIBGO_IS_SPARC_FALSE='#'
13924 else
13925 LIBGO_IS_SPARC_TRUE='#'
13926 LIBGO_IS_SPARC_FALSE=
13929 if test $is_sparc64 = yes; then
13930 LIBGO_IS_SPARC64_TRUE=
13931 LIBGO_IS_SPARC64_FALSE='#'
13932 else
13933 LIBGO_IS_SPARC64_TRUE='#'
13934 LIBGO_IS_SPARC64_FALSE=
13937 if test $is_x86_64 = yes; then
13938 LIBGO_IS_X86_64_TRUE=
13939 LIBGO_IS_X86_64_FALSE='#'
13940 else
13941 LIBGO_IS_X86_64_TRUE='#'
13942 LIBGO_IS_X86_64_FALSE=
13947 GO_LIBCALL_OS_FILE=
13948 GO_LIBCALL_OS_ARCH_FILE=
13949 GO_SYSCALL_OS_FILE=
13950 GO_SYSCALL_OS_ARCH_FILE=
13951 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13952 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13954 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13955 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13957 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13958 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13960 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13961 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13968 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13969 case "$target" in
13970 mips-sgi-irix6.5*)
13971 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13972 # msghdr in <sys/socket.h>.
13973 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13975 *-*-solaris2.1[01])
13976 # Solaris 10+ needs this so struct msghdr gets the msg_control
13977 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13978 # above doesn't work with C99.
13979 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13981 esac
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13985 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13986 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 CFLAGS_hold=$CFLAGS
13990 CFLAGS="$CFLAGS -fsplit-stack"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 int i;
13994 _ACEOF
13995 if ac_fn_c_try_compile "$LINENO"; then :
13996 libgo_cv_c_split_stack_supported=yes
13997 else
13998 libgo_cv_c_split_stack_supported=no
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 CFLAGS=$CFLAGS_hold
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14004 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14005 if test "$libgo_cv_c_split_stack_supported" = yes; then
14006 SPLIT_STACK=-fsplit-stack
14008 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14010 else
14011 SPLIT_STACK=
14014 if test "$libgo_cv_c_split_stack_supported" = yes; then
14015 USING_SPLIT_STACK_TRUE=
14016 USING_SPLIT_STACK_FALSE='#'
14017 else
14018 USING_SPLIT_STACK_TRUE='#'
14019 USING_SPLIT_STACK_FALSE=
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14024 $as_echo_n "checking whether linker supports split stack... " >&6; }
14025 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 libgo_cv_c_linker_supports_split_stack=no
14029 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14030 libgo_cv_c_linker_supports_split_stack=yes
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14034 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14035 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14037 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14042 $as_echo_n "checking whether compiler is llgo... " >&6; }
14043 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 libgo_cv_c_goc_is_llgo=no
14047 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14048 libgo_cv_c_goc_is_llgo=yes
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14052 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14053 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14054 GOC_IS_LLGO_TRUE=
14055 GOC_IS_LLGO_FALSE='#'
14056 else
14057 GOC_IS_LLGO_TRUE='#'
14058 GOC_IS_LLGO_FALSE=
14062 MATH_LIBS=
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14064 $as_echo_n "checking for sqrt in -lm... " >&6; }
14065 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lm $LIBS"
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14073 /* Override any GCC internal prototype to avoid an error.
14074 Use char because int might match the return type of a GCC
14075 builtin and then its argument prototype would still apply. */
14076 #ifdef __cplusplus
14077 extern "C"
14078 #endif
14079 char sqrt ();
14081 main ()
14083 return sqrt ();
14085 return 0;
14087 _ACEOF
14088 if ac_fn_c_try_link "$LINENO"; then :
14089 ac_cv_lib_m_sqrt=yes
14090 else
14091 ac_cv_lib_m_sqrt=no
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14098 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14099 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14100 MATH_LIBS=-lm
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14106 $as_echo_n "checking for socket libraries... " >&6; }
14107 if test "${libgo_cv_lib_sockets+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 libgo_cv_lib_sockets=
14111 libgo_check_both=no
14112 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14113 if test "x$ac_cv_func_connect" = x""yes; then :
14114 libgo_check_socket=no
14115 else
14116 libgo_check_socket=yes
14119 if test "$libgo_check_socket" = "yes"; then
14120 unset ac_cv_func_connect
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14122 $as_echo_n "checking for main in -lsocket... " >&6; }
14123 if test "${ac_cv_lib_socket_main+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 ac_check_lib_save_LIBS=$LIBS
14127 LIBS="-lsocket $LIBS"
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14133 main ()
14135 return main ();
14137 return 0;
14139 _ACEOF
14140 if ac_fn_c_try_link "$LINENO"; then :
14141 ac_cv_lib_socket_main=yes
14142 else
14143 ac_cv_lib_socket_main=no
14145 rm -f core conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14147 LIBS=$ac_check_lib_save_LIBS
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14150 $as_echo "$ac_cv_lib_socket_main" >&6; }
14151 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14152 libgo_cv_lib_sockets="-lsocket"
14153 else
14154 libgo_check_both=yes
14158 if test "$libgo_check_both" = "yes"; then
14159 libgo_old_libs=$LIBS
14160 LIBS="$LIBS -lsocket -lnsl"
14161 unset ac_cv_func_accept
14162 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14163 if test "x$ac_cv_func_accept" = x""yes; then :
14164 libgo_check_nsl=no
14165 libgo_cv_lib_sockets="-lsocket -lnsl"
14168 unset ac_cv_func_accept
14169 LIBS=$libgo_old_libs
14171 unset ac_cv_func_gethostbyname
14172 libgo_old_libs="$LIBS"
14173 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14174 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14178 $as_echo_n "checking for main in -lnsl... " >&6; }
14179 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 ac_check_lib_save_LIBS=$LIBS
14183 LIBS="-lnsl $LIBS"
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14189 main ()
14191 return main ();
14193 return 0;
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"; then :
14197 ac_cv_lib_nsl_main=yes
14198 else
14199 ac_cv_lib_nsl_main=no
14201 rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 LIBS=$ac_check_lib_save_LIBS
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14206 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14207 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14208 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14213 unset ac_cv_func_gethostbyname
14214 LIBS=$libgo_old_libs
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14218 $as_echo "$libgo_cv_lib_sockets" >&6; }
14219 NET_LIBS="$libgo_cv_lib_sockets"
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14223 $as_echo_n "checking whether -pthread is supported... " >&6; }
14224 if test "${libgo_cv_lib_pthread+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 CFLAGS_hold=$CFLAGS
14228 CFLAGS="$CFLAGS -pthread"
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231 int i;
14232 _ACEOF
14233 if ac_fn_c_try_compile "$LINENO"; then :
14234 libgo_cv_lib_pthread=yes
14235 else
14236 libgo_cv_lib_pthread=no
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 CFLAGS=$CFLAGS_hold
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14242 $as_echo "$libgo_cv_lib_pthread" >&6; }
14243 PTHREAD_CFLAGS=
14244 if test "$libgo_cv_lib_pthread" = yes; then
14245 PTHREAD_CFLAGS=-pthread
14249 PTHREAD_LIBS=
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14251 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14252 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lpthread $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char pthread_create ();
14268 main ()
14270 return pthread_create ();
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_pthread_pthread_create=yes
14277 else
14278 ac_cv_lib_pthread_pthread_create=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14285 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14286 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14287 PTHREAD_LIBS=-lpthread
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14293 $as_echo_n "checking for library containing sched_yield... " >&6; }
14294 if test "${ac_cv_search_sched_yield+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 ac_func_search_save_LIBS=$LIBS
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char sched_yield ();
14309 main ()
14311 return sched_yield ();
14313 return 0;
14315 _ACEOF
14316 for ac_lib in '' rt; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14319 else
14320 ac_res=-l$ac_lib
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 ac_cv_search_sched_yield=$ac_res
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext
14328 if test "${ac_cv_search_sched_yield+set}" = set; then :
14329 break
14331 done
14332 if test "${ac_cv_search_sched_yield+set}" = set; then :
14334 else
14335 ac_cv_search_sched_yield=no
14337 rm conftest.$ac_ext
14338 LIBS=$ac_func_search_save_LIBS
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14341 $as_echo "$ac_cv_search_sched_yield" >&6; }
14342 ac_res=$ac_cv_search_sched_yield
14343 if test "$ac_res" != no; then :
14344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14349 $as_echo_n "checking for library containing nanosleep... " >&6; }
14350 if test "${ac_cv_search_nanosleep+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 ac_func_search_save_LIBS=$LIBS
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char nanosleep ();
14365 main ()
14367 return nanosleep ();
14369 return 0;
14371 _ACEOF
14372 for ac_lib in '' rt; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 ac_cv_search_nanosleep=$ac_res
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext
14384 if test "${ac_cv_search_nanosleep+set}" = set; then :
14385 break
14387 done
14388 if test "${ac_cv_search_nanosleep+set}" = set; then :
14390 else
14391 ac_cv_search_nanosleep=no
14393 rm conftest.$ac_ext
14394 LIBS=$ac_func_search_save_LIBS
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14397 $as_echo "$ac_cv_search_nanosleep" >&6; }
14398 ac_res=$ac_cv_search_nanosleep
14399 if test "$ac_res" != no; then :
14400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14406 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14407 if test "${ac_cv_c_bigendian+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 ac_cv_c_bigendian=unknown
14411 # See if we're dealing with a universal compiler.
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 #ifndef __APPLE_CC__
14415 not a universal capable compiler
14416 #endif
14417 typedef int dummy;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14422 # Check for potential -arch flags. It is not universal unless
14423 # there are at least two -arch flags with different values.
14424 ac_arch=
14425 ac_prev=
14426 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14427 if test -n "$ac_prev"; then
14428 case $ac_word in
14429 i?86 | x86_64 | ppc | ppc64)
14430 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14431 ac_arch=$ac_word
14432 else
14433 ac_cv_c_bigendian=universal
14434 break
14437 esac
14438 ac_prev=
14439 elif test "x$ac_word" = "x-arch"; then
14440 ac_prev=arch
14442 done
14444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14445 if test $ac_cv_c_bigendian = unknown; then
14446 # See if sys/param.h defines the BYTE_ORDER macro.
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 #include <sys/types.h>
14450 #include <sys/param.h>
14453 main ()
14455 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14456 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14457 && LITTLE_ENDIAN)
14458 bogus endian macros
14459 #endif
14462 return 0;
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466 # It does; now see whether it defined to BIG_ENDIAN or not.
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 #include <sys/types.h>
14470 #include <sys/param.h>
14473 main ()
14475 #if BYTE_ORDER != BIG_ENDIAN
14476 not big endian
14477 #endif
14480 return 0;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 ac_cv_c_bigendian=yes
14485 else
14486 ac_cv_c_bigendian=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 if test $ac_cv_c_bigendian = unknown; then
14493 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <limits.h>
14499 main ()
14501 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14502 bogus endian macros
14503 #endif
14506 return 0;
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 # It does; now see whether it defined to _BIG_ENDIAN or not.
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <limits.h>
14516 main ()
14518 #ifndef _BIG_ENDIAN
14519 not big endian
14520 #endif
14523 return 0;
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 ac_cv_c_bigendian=yes
14528 else
14529 ac_cv_c_bigendian=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 if test $ac_cv_c_bigendian = unknown; then
14536 # Compile a test program.
14537 if test "$cross_compiling" = yes; then :
14538 # Try to guess by grepping values from an object file.
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 short int ascii_mm[] =
14542 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14543 short int ascii_ii[] =
14544 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14545 int use_ascii (int i) {
14546 return ascii_mm[i] + ascii_ii[i];
14548 short int ebcdic_ii[] =
14549 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14550 short int ebcdic_mm[] =
14551 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14552 int use_ebcdic (int i) {
14553 return ebcdic_mm[i] + ebcdic_ii[i];
14555 extern int foo;
14558 main ()
14560 return use_ascii (foo) == use_ebcdic (foo);
14562 return 0;
14564 _ACEOF
14565 if ac_fn_c_try_compile "$LINENO"; then :
14566 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14567 ac_cv_c_bigendian=yes
14569 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14570 if test "$ac_cv_c_bigendian" = unknown; then
14571 ac_cv_c_bigendian=no
14572 else
14573 # finding both strings is unlikely to happen, but who knows?
14574 ac_cv_c_bigendian=unknown
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 else
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 $ac_includes_default
14584 main ()
14587 /* Are we little or big endian? From Harbison&Steele. */
14588 union
14590 long int l;
14591 char c[sizeof (long int)];
14592 } u;
14593 u.l = 1;
14594 return u.c[sizeof (long int) - 1] == 1;
14597 return 0;
14599 _ACEOF
14600 if ac_fn_c_try_run "$LINENO"; then :
14601 ac_cv_c_bigendian=no
14602 else
14603 ac_cv_c_bigendian=yes
14605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14606 conftest.$ac_objext conftest.beam conftest.$ac_ext
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14612 $as_echo "$ac_cv_c_bigendian" >&6; }
14613 case $ac_cv_c_bigendian in #(
14614 yes)
14615 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14616 ;; #(
14618 ;; #(
14619 universal)
14621 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14623 ;; #(
14625 as_fn_error "unknown endianness
14626 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14627 esac
14632 # Check whether --with-system-libunwind was given.
14633 if test "${with_system_libunwind+set}" = set; then :
14634 withval=$with_system_libunwind;
14637 # If system-libunwind was not specifically set, pick a default setting.
14638 if test x$with_system_libunwind = x; then
14639 case ${target} in
14640 ia64-*-hpux*) with_system_libunwind=yes ;;
14641 *) with_system_libunwind=no ;;
14642 esac
14644 # Based on system-libunwind and target, do we have ipinfo?
14645 if test x$with_system_libunwind = xyes; then
14646 case ${target} in
14647 ia64-*-*) have_unwind_getipinfo=no ;;
14648 *) have_unwind_getipinfo=yes ;;
14649 esac
14650 else
14651 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14653 case ${target} in
14654 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14655 *) have_unwind_getipinfo=yes ;;
14656 esac
14660 if test x$have_unwind_getipinfo = xyes; then
14662 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14667 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14668 do :
14669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14671 eval as_val=\$$as_ac_Header
14672 if test "x$as_val" = x""yes; then :
14673 cat >>confdefs.h <<_ACEOF
14674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675 _ACEOF
14679 done
14682 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
14683 do :
14684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14686 #include <sys/socket.h>
14687 #endif
14690 eval as_val=\$$as_ac_Header
14691 if test "x$as_val" = x""yes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14694 _ACEOF
14698 done
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14702 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14703 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 CFLAGS_hold=$CFLAGS
14707 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14711 #include <sys/types.h>
14712 #ifdef HAVE_LINUX_FILTER_H
14713 #include <linux/filter.h>
14714 #endif
14715 #include <ustat.h>
14717 _ACEOF
14718 if ac_fn_c_try_compile "$LINENO"; then :
14719 libgo_cv_c_ustat_h=yes
14720 else
14721 libgo_cv_c_ustat_h=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 CFLAGS=$CFLAGS_hold
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14727 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14728 if test $libgo_cv_c_ustat_h = yes; then
14730 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14734 if test "$ac_cv_header_sys_mman_h" = yes; then
14735 HAVE_SYS_MMAN_H_TRUE=
14736 HAVE_SYS_MMAN_H_FALSE='#'
14737 else
14738 HAVE_SYS_MMAN_H_TRUE='#'
14739 HAVE_SYS_MMAN_H_FALSE=
14743 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14744 do :
14745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14747 eval as_val=\$$as_ac_var
14748 if test "x$as_val" = x""yes; then :
14749 cat >>confdefs.h <<_ACEOF
14750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14751 _ACEOF
14754 done
14756 if test "$ac_cv_func_strerror_r" = yes; then
14757 HAVE_STRERROR_R_TRUE=
14758 HAVE_STRERROR_R_FALSE='#'
14759 else
14760 HAVE_STRERROR_R_TRUE='#'
14761 HAVE_STRERROR_R_FALSE=
14764 if test "$ac_cv_func_wait4" = yes; then
14765 HAVE_WAIT4_TRUE=
14766 HAVE_WAIT4_FALSE='#'
14767 else
14768 HAVE_WAIT4_TRUE='#'
14769 HAVE_WAIT4_FALSE=
14773 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14774 do :
14775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14777 eval as_val=\$$as_ac_var
14778 if test "x$as_val" = x""yes; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 _ACEOF
14784 done
14786 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14787 if test "x$ac_cv_type_off_t" = x""yes; then :
14789 else
14791 cat >>confdefs.h <<_ACEOF
14792 #define off_t long int
14793 _ACEOF
14797 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14798 if test "x$ac_cv_type_loff_t" = x""yes; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define HAVE_LOFF_T 1
14802 _ACEOF
14808 LIBS_hold="$LIBS"
14809 LIBS="$LIBS -lm"
14810 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14811 do :
14812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14814 eval as_val=\$$as_ac_var
14815 if test "x$as_val" = x""yes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 _ACEOF
14821 done
14823 LIBS="$LIBS_hold"
14825 CFLAGS_hold="$CFLAGS"
14826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14827 LIBS_hold="$LIBS"
14828 LIBS="$LIBS $PTHREAD_LIBS"
14829 for ac_func in sem_timedwait
14830 do :
14831 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14832 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_SEM_TIMEDWAIT 1
14835 _ACEOF
14838 done
14840 CFLAGS="$CFLAGS_hold"
14841 LIBS="$LIBS_hold"
14843 LIBS_hold="$LIBS"
14844 LIBS="$LIBS $MATH_LIBS"
14845 for ac_func in matherr
14846 do :
14847 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14848 if test "x$ac_cv_func_matherr" = x""yes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_MATHERR 1
14851 _ACEOF
14854 done
14856 LIBS="$LIBS_hold"
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14859 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14860 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14866 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14867 uint32 i;
14868 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14870 _ACEOF
14871 if ac_fn_c_try_link "$LINENO"; then :
14872 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14873 else
14874 libgo_cv_func___sync_bool_compare_and_swap_4=no
14876 rm -f core conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14880 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14881 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14883 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14888 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14889 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14895 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14896 uint64 i;
14897 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14899 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14902 else
14903 libgo_cv_func___sync_bool_compare_and_swap_8=no
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14909 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14910 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14912 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14917 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14918 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14924 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14925 uint32 i;
14926 int main() { return __sync_fetch_and_add (&i, 1); }
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"; then :
14930 libgo_cv_func___sync_fetch_and_add_4=yes
14931 else
14932 libgo_cv_func___sync_fetch_and_add_4=no
14934 rm -f core conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14938 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14939 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14941 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14946 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14947 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14953 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14954 uint64 i;
14955 int main() { return __sync_add_and_fetch (&i, 1); }
14957 _ACEOF
14958 if ac_fn_c_try_link "$LINENO"; then :
14959 libgo_cv_func___sync_add_and_fetch_8=yes
14960 else
14961 libgo_cv_func___sync_add_and_fetch_8=no
14963 rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14967 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14968 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14970 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14975 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14976 if test "${libgo_cv_c_stringops+set}" = set; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 CFLAGS_hold=$CFLAGS
14980 CFLAGS="$CFLAGS -minline-all-stringops"
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 int i;
14984 _ACEOF
14985 if ac_fn_c_try_compile "$LINENO"; then :
14986 libgo_cv_c_stringops=yes
14987 else
14988 libgo_cv_c_stringops=no
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991 CFLAGS=$CFLAGS_hold
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14994 $as_echo "$libgo_cv_c_stringops" >&6; }
14995 STRINGOPS_FLAG=
14996 if test "$libgo_cv_c_stringops" = yes; then
14997 STRINGOPS_FLAG=-minline-all-stringops
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15002 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15003 if test "${libgo_cv_c_fancymath+set}" = set; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 CFLAGS_hold=$CFLAGS
15007 CFLAGS="$CFLAGS -mfancy-math-387"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 int i;
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 libgo_cv_c_fancymath=yes
15014 else
15015 libgo_cv_c_fancymath=no
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 CFLAGS=$CFLAGS_hold
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15021 $as_echo "$libgo_cv_c_fancymath" >&6; }
15022 MATH_FLAG=
15023 if test "$libgo_cv_c_fancymath" = yes; then
15024 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15025 else
15026 MATH_FLAG="-ffp-contract=off"
15030 CFLAGS_hold=$CFLAGS
15031 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15032 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15033 if test "x$ac_cv_type_off64_t" = x""yes; then :
15035 cat >>confdefs.h <<_ACEOF
15036 #define HAVE_OFF64_T 1
15037 _ACEOF
15042 CFLAGS=$CFLAGS_hold
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15045 $as_echo_n "checking epoll_event size... " >&6; }
15046 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15051 else
15052 libgo_cv_c_epoll_event_size=0
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15057 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15058 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15062 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15063 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15067 #include <sys/epoll.h>"; then :
15069 else
15070 libgo_cv_c_epoll_event_fd_offset=0
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15075 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15076 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15079 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15081 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15082 libgo_has_struct_exception=yes
15083 else
15084 libgo_has_struct_exception=no
15087 if test "$libgo_has_struct_exception" = "yes"; then
15089 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15094 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15095 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 CFLAGS_hold="$CFLAGS"
15099 CFLAGS="$PTHREAD_CFLAGS"
15100 LIBS_hold="$LIBS"
15101 LIBS="$LIBS $PTHREAD_LIBS"
15102 # The cast to long int works around a bug in the HP C Compiler
15103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15105 # This bug is HP SR number 8606223364.
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15107 $as_echo_n "checking size of void *... " >&6; }
15108 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15113 else
15114 if test "$ac_cv_type_void_p" = yes; then
15115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117 { as_fn_set_status 77
15118 as_fn_error "cannot compute sizeof (void *)
15119 See \`config.log' for more details." "$LINENO" 5; }; }
15120 else
15121 ac_cv_sizeof_void_p=0
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15127 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15131 cat >>confdefs.h <<_ACEOF
15132 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15133 _ACEOF
15136 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15137 if test "$cross_compiling" = yes; then :
15138 case "$target:$ptr_type_size" in
15139 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15140 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15142 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15143 esac
15145 else
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15149 #include <pthread.h>
15150 #include <stdlib.h>
15151 #include <ucontext.h>
15152 #include <unistd.h>
15154 __thread int tls;
15156 static char stack[10 * 1024 * 1024];
15157 static ucontext_t c;
15159 /* Called via makecontext/setcontext. */
15161 static void
15162 cfn (void)
15164 exit (tls);
15167 /* Called via pthread_create. */
15169 static void *
15170 tfn (void *dummy)
15172 /* The thread should still see this value after calling
15173 setcontext. */
15174 tls = 0;
15176 setcontext (&c);
15178 /* The call to setcontext should not return. */
15179 abort ();
15183 main ()
15185 pthread_t tid;
15187 /* The thread should not see this value. */
15188 tls = 1;
15190 if (getcontext (&c) < 0)
15191 abort ();
15193 c.uc_stack.ss_sp = stack;
15194 #ifdef MAKECONTEXT_STACK_TOP
15195 c.uc_stack.ss_sp += sizeof stack;
15196 #endif
15197 c.uc_stack.ss_flags = 0;
15198 c.uc_stack.ss_size = sizeof stack;
15199 c.uc_link = NULL;
15200 makecontext (&c, cfn, 0);
15202 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15203 abort ();
15205 if (pthread_join (tid, NULL) != 0)
15206 abort ();
15208 /* The thread should have called exit. */
15209 abort ();
15212 _ACEOF
15213 if ac_fn_c_try_run "$LINENO"; then :
15214 libgo_cv_lib_setcontext_clobbers_tls=no
15215 else
15216 libgo_cv_lib_setcontext_clobbers_tls=yes
15218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15219 conftest.$ac_objext conftest.beam conftest.$ac_ext
15222 CFLAGS="$CFLAGS_hold"
15223 LIBS="$LIBS_hold"
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15227 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15228 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15230 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15235 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15236 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15237 $as_echo_n "(cached) " >&6
15238 else
15240 libgo_cv_ro_eh_frame=no
15241 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15242 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15243 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15244 libgo_cv_ro_eh_frame=yes
15245 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15246 | grep -v '#write' > /dev/null; then
15247 libgo_cv_ro_eh_frame=yes
15250 rm -f conftest.*
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15254 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15255 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15257 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15259 else
15261 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15266 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15267 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15270 CFLAGS_hold=$CFLAGS
15271 CFLAGS="$CFLAGS -Qunused-arguments"
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 int i;
15275 _ACEOF
15276 if ac_fn_c_try_compile "$LINENO"; then :
15277 libgo_cv_c_unused_arguments=yes
15278 else
15279 libgo_cv_c_unused_arguments=no
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282 CFLAGS=$CFLAGS_hold
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15285 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15288 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15289 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15293 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15294 CFLAGS_hold=$CFLAGS
15295 if test "$libgo_cv_c_unused_arguments" = yes; then
15296 CFLAGS="$CFLAGS -Qunused-arguments"
15298 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15299 libgo_cv_as_comdat_gnu=yes
15300 else
15301 libgo_cv_as_comdat_gnu=no
15303 CFLAGS=$CFLAGS_hold
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15307 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15308 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15310 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15315 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15316 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15320 libgo_cv_as_x86_pcrel=yes
15321 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15322 CFLAGS_hold=$CFLAGS
15323 if test "$libgo_cv_c_unused_arguments" = yes; then
15324 CFLAGS="$CFLAGS -Qunused-arguments"
15326 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15327 libgo_cv_as_x86_pcrel=no
15329 CFLAGS=$CFLAGS_hold
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15333 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15334 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15336 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15341 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15342 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15346 libgo_cv_as_x86_64_unwind_section_type=yes
15347 echo '.section .eh_frame,"a",@unwind' > conftest.s
15348 CFLAGS_hold=$CFLAGS
15349 if test "$libgo_cv_c_unused_arguments" = yes; then
15350 CFLAGS="$CFLAGS -Qunused-arguments"
15352 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15353 libgo_cv_as_x86_64_unwind_section_type=no
15355 CFLAGS=$CFLAGS_hold
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15359 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15360 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15362 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15366 cat >confcache <<\_ACEOF
15367 # This file is a shell script that caches the results of configure
15368 # tests run on this system so they can be shared between configure
15369 # scripts and configure runs, see configure's option --config-cache.
15370 # It is not useful on other systems. If it contains results you don't
15371 # want to keep, you may remove or edit it.
15373 # config.status only pays attention to the cache file if you give it
15374 # the --recheck option to rerun configure.
15376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15378 # following values.
15380 _ACEOF
15382 # The following way of writing the cache mishandles newlines in values,
15383 # but we know of no workaround that is simple, portable, and efficient.
15384 # So, we kill variables containing newlines.
15385 # Ultrix sh set writes to stderr and can't be redirected directly,
15386 # and sets the high bit in the cache file unless we assign to the vars.
15388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15389 eval ac_val=\$$ac_var
15390 case $ac_val in #(
15391 *${as_nl}*)
15392 case $ac_var in #(
15393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15395 esac
15396 case $ac_var in #(
15397 _ | IFS | as_nl) ;; #(
15398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15399 *) { eval $ac_var=; unset $ac_var;} ;;
15400 esac ;;
15401 esac
15402 done
15404 (set) 2>&1 |
15405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15406 *${as_nl}ac_space=\ *)
15407 # `set' does not quote correctly, so add quotes: double-quote
15408 # substitution turns \\\\ into \\, and sed turns \\ into \.
15409 sed -n \
15410 "s/'/'\\\\''/g;
15411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15412 ;; #(
15414 # `set' quotes correctly as required by POSIX, so do not add quotes.
15415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15417 esac |
15418 sort
15420 sed '
15421 /^ac_cv_env_/b end
15422 t clear
15423 :clear
15424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15425 t end
15426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15427 :end' >>confcache
15428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15429 if test -w "$cache_file"; then
15430 test "x$cache_file" != "x/dev/null" &&
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15432 $as_echo "$as_me: updating cache $cache_file" >&6;}
15433 cat confcache >$cache_file
15434 else
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15439 rm -f confcache
15441 if test ${multilib} = yes; then
15442 multilib_arg="--enable-multilib"
15443 else
15444 multilib_arg=
15447 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15450 ac_config_commands="$ac_config_commands default"
15453 cat >confcache <<\_ACEOF
15454 # This file is a shell script that caches the results of configure
15455 # tests run on this system so they can be shared between configure
15456 # scripts and configure runs, see configure's option --config-cache.
15457 # It is not useful on other systems. If it contains results you don't
15458 # want to keep, you may remove or edit it.
15460 # config.status only pays attention to the cache file if you give it
15461 # the --recheck option to rerun configure.
15463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15465 # following values.
15467 _ACEOF
15469 # The following way of writing the cache mishandles newlines in values,
15470 # but we know of no workaround that is simple, portable, and efficient.
15471 # So, we kill variables containing newlines.
15472 # Ultrix sh set writes to stderr and can't be redirected directly,
15473 # and sets the high bit in the cache file unless we assign to the vars.
15475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15476 eval ac_val=\$$ac_var
15477 case $ac_val in #(
15478 *${as_nl}*)
15479 case $ac_var in #(
15480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15482 esac
15483 case $ac_var in #(
15484 _ | IFS | as_nl) ;; #(
15485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15486 *) { eval $ac_var=; unset $ac_var;} ;;
15487 esac ;;
15488 esac
15489 done
15491 (set) 2>&1 |
15492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15493 *${as_nl}ac_space=\ *)
15494 # `set' does not quote correctly, so add quotes: double-quote
15495 # substitution turns \\\\ into \\, and sed turns \\ into \.
15496 sed -n \
15497 "s/'/'\\\\''/g;
15498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15499 ;; #(
15501 # `set' quotes correctly as required by POSIX, so do not add quotes.
15502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15504 esac |
15505 sort
15507 sed '
15508 /^ac_cv_env_/b end
15509 t clear
15510 :clear
15511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15512 t end
15513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15514 :end' >>confcache
15515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15516 if test -w "$cache_file"; then
15517 test "x$cache_file" != "x/dev/null" &&
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15519 $as_echo "$as_me: updating cache $cache_file" >&6;}
15520 cat confcache >$cache_file
15521 else
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15526 rm -f confcache
15528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15529 # Let make expand exec_prefix.
15530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15532 DEFS=-DHAVE_CONFIG_H
15534 ac_libobjs=
15535 ac_ltlibobjs=
15536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15537 # 1. Remove the extension, and $U if already installed.
15538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15541 # will be set to the directory where LIBOBJS objects are built.
15542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15544 done
15545 LIBOBJS=$ac_libobjs
15547 LTLIBOBJS=$ac_ltlibobjs
15550 if test -n "$EXEEXT"; then
15551 am__EXEEXT_TRUE=
15552 am__EXEEXT_FALSE='#'
15553 else
15554 am__EXEEXT_TRUE='#'
15555 am__EXEEXT_FALSE=
15558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15559 as_fn_error "conditional \"AMDEP\" was never defined.
15560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15563 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15567 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15571 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15575 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15579 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15583 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15587 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15591 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15595 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15599 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15603 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15607 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15611 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15615 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15619 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15623 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15627 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15631 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15635 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15639 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15643 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15647 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15651 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15655 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15659 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15663 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15667 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15671 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15675 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15679 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15683 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15688 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15692 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15696 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 : ${CONFIG_STATUS=./config.status}
15701 ac_write_fail=0
15702 ac_clean_files_save=$ac_clean_files
15703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15706 as_write_fail=0
15707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15708 #! $SHELL
15709 # Generated by $as_me.
15710 # Run this file to recreate the current configuration.
15711 # Compiler output produced by configure, useful for debugging
15712 # configure, is in config.log if it exists.
15714 debug=false
15715 ac_cs_recheck=false
15716 ac_cs_silent=false
15718 SHELL=\${CONFIG_SHELL-$SHELL}
15719 export SHELL
15720 _ASEOF
15721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15722 ## -------------------- ##
15723 ## M4sh Initialization. ##
15724 ## -------------------- ##
15726 # Be more Bourne compatible
15727 DUALCASE=1; export DUALCASE # for MKS sh
15728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15729 emulate sh
15730 NULLCMD=:
15731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15732 # is contrary to our usage. Disable this feature.
15733 alias -g '${1+"$@"}'='"$@"'
15734 setopt NO_GLOB_SUBST
15735 else
15736 case `(set -o) 2>/dev/null` in #(
15737 *posix*) :
15738 set -o posix ;; #(
15739 *) :
15741 esac
15745 as_nl='
15747 export as_nl
15748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15752 # Prefer a ksh shell builtin over an external printf program on Solaris,
15753 # but without wasting forks for bash or zsh.
15754 if test -z "$BASH_VERSION$ZSH_VERSION" \
15755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15756 as_echo='print -r --'
15757 as_echo_n='print -rn --'
15758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15759 as_echo='printf %s\n'
15760 as_echo_n='printf %s'
15761 else
15762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15764 as_echo_n='/usr/ucb/echo -n'
15765 else
15766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15767 as_echo_n_body='eval
15768 arg=$1;
15769 case $arg in #(
15770 *"$as_nl"*)
15771 expr "X$arg" : "X\\(.*\\)$as_nl";
15772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15773 esac;
15774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15776 export as_echo_n_body
15777 as_echo_n='sh -c $as_echo_n_body as_echo'
15779 export as_echo_body
15780 as_echo='sh -c $as_echo_body as_echo'
15783 # The user is always right.
15784 if test "${PATH_SEPARATOR+set}" != set; then
15785 PATH_SEPARATOR=:
15786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15788 PATH_SEPARATOR=';'
15793 # IFS
15794 # We need space, tab and new line, in precisely that order. Quoting is
15795 # there to prevent editors from complaining about space-tab.
15796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15797 # splitting by setting IFS to empty value.)
15798 IFS=" "" $as_nl"
15800 # Find who we are. Look in the path if we contain no directory separator.
15801 case $0 in #((
15802 *[\\/]* ) as_myself=$0 ;;
15803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15806 IFS=$as_save_IFS
15807 test -z "$as_dir" && as_dir=.
15808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15809 done
15810 IFS=$as_save_IFS
15813 esac
15814 # We did not find ourselves, most probably we were run as `sh COMMAND'
15815 # in which case we are not to be found in the path.
15816 if test "x$as_myself" = x; then
15817 as_myself=$0
15819 if test ! -f "$as_myself"; then
15820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15821 exit 1
15824 # Unset variables that we do not need and which cause bugs (e.g. in
15825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15826 # suppresses any "Segmentation fault" message there. '((' could
15827 # trigger a bug in pdksh 5.2.14.
15828 for as_var in BASH_ENV ENV MAIL MAILPATH
15829 do eval test x\${$as_var+set} = xset \
15830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15831 done
15832 PS1='$ '
15833 PS2='> '
15834 PS4='+ '
15836 # NLS nuisances.
15837 LC_ALL=C
15838 export LC_ALL
15839 LANGUAGE=C
15840 export LANGUAGE
15842 # CDPATH.
15843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15846 # as_fn_error ERROR [LINENO LOG_FD]
15847 # ---------------------------------
15848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15850 # script with status $?, using 1 if that was 0.
15851 as_fn_error ()
15853 as_status=$?; test $as_status -eq 0 && as_status=1
15854 if test "$3"; then
15855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15858 $as_echo "$as_me: error: $1" >&2
15859 as_fn_exit $as_status
15860 } # as_fn_error
15863 # as_fn_set_status STATUS
15864 # -----------------------
15865 # Set $? to STATUS, without forking.
15866 as_fn_set_status ()
15868 return $1
15869 } # as_fn_set_status
15871 # as_fn_exit STATUS
15872 # -----------------
15873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15874 as_fn_exit ()
15876 set +e
15877 as_fn_set_status $1
15878 exit $1
15879 } # as_fn_exit
15881 # as_fn_unset VAR
15882 # ---------------
15883 # Portably unset VAR.
15884 as_fn_unset ()
15886 { eval $1=; unset $1;}
15888 as_unset=as_fn_unset
15889 # as_fn_append VAR VALUE
15890 # ----------------------
15891 # Append the text in VALUE to the end of the definition contained in VAR. Take
15892 # advantage of any shell optimizations that allow amortized linear growth over
15893 # repeated appends, instead of the typical quadratic growth present in naive
15894 # implementations.
15895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15896 eval 'as_fn_append ()
15898 eval $1+=\$2
15900 else
15901 as_fn_append ()
15903 eval $1=\$$1\$2
15905 fi # as_fn_append
15907 # as_fn_arith ARG...
15908 # ------------------
15909 # Perform arithmetic evaluation on the ARGs, and store the result in the
15910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15911 # must be portable across $(()) and expr.
15912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15913 eval 'as_fn_arith ()
15915 as_val=$(( $* ))
15917 else
15918 as_fn_arith ()
15920 as_val=`expr "$@" || test $? -eq 1`
15922 fi # as_fn_arith
15925 if expr a : '\(a\)' >/dev/null 2>&1 &&
15926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15927 as_expr=expr
15928 else
15929 as_expr=false
15932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15933 as_basename=basename
15934 else
15935 as_basename=false
15938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15939 as_dirname=dirname
15940 else
15941 as_dirname=false
15944 as_me=`$as_basename -- "$0" ||
15945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15946 X"$0" : 'X\(//\)$' \| \
15947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15948 $as_echo X/"$0" |
15949 sed '/^.*\/\([^/][^/]*\)\/*$/{
15950 s//\1/
15953 /^X\/\(\/\/\)$/{
15954 s//\1/
15957 /^X\/\(\/\).*/{
15958 s//\1/
15961 s/.*/./; q'`
15963 # Avoid depending upon Character Ranges.
15964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15967 as_cr_digits='0123456789'
15968 as_cr_alnum=$as_cr_Letters$as_cr_digits
15970 ECHO_C= ECHO_N= ECHO_T=
15971 case `echo -n x` in #(((((
15972 -n*)
15973 case `echo 'xy\c'` in
15974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15975 xy) ECHO_C='\c';;
15976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15977 ECHO_T=' ';;
15978 esac;;
15980 ECHO_N='-n';;
15981 esac
15983 rm -f conf$$ conf$$.exe conf$$.file
15984 if test -d conf$$.dir; then
15985 rm -f conf$$.dir/conf$$.file
15986 else
15987 rm -f conf$$.dir
15988 mkdir conf$$.dir 2>/dev/null
15990 if (echo >conf$$.file) 2>/dev/null; then
15991 if ln -s conf$$.file conf$$ 2>/dev/null; then
15992 as_ln_s='ln -s'
15993 # ... but there are two gotchas:
15994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15996 # In both cases, we have to default to `cp -p'.
15997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15998 as_ln_s='cp -p'
15999 elif ln conf$$.file conf$$ 2>/dev/null; then
16000 as_ln_s=ln
16001 else
16002 as_ln_s='cp -p'
16004 else
16005 as_ln_s='cp -p'
16007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16008 rmdir conf$$.dir 2>/dev/null
16011 # as_fn_mkdir_p
16012 # -------------
16013 # Create "$as_dir" as a directory, including parents if necessary.
16014 as_fn_mkdir_p ()
16017 case $as_dir in #(
16018 -*) as_dir=./$as_dir;;
16019 esac
16020 test -d "$as_dir" || eval $as_mkdir_p || {
16021 as_dirs=
16022 while :; do
16023 case $as_dir in #(
16024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16025 *) as_qdir=$as_dir;;
16026 esac
16027 as_dirs="'$as_qdir' $as_dirs"
16028 as_dir=`$as_dirname -- "$as_dir" ||
16029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16030 X"$as_dir" : 'X\(//\)[^/]' \| \
16031 X"$as_dir" : 'X\(//\)$' \| \
16032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16033 $as_echo X"$as_dir" |
16034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16035 s//\1/
16038 /^X\(\/\/\)[^/].*/{
16039 s//\1/
16042 /^X\(\/\/\)$/{
16043 s//\1/
16046 /^X\(\/\).*/{
16047 s//\1/
16050 s/.*/./; q'`
16051 test -d "$as_dir" && break
16052 done
16053 test -z "$as_dirs" || eval "mkdir $as_dirs"
16054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16057 } # as_fn_mkdir_p
16058 if mkdir -p . 2>/dev/null; then
16059 as_mkdir_p='mkdir -p "$as_dir"'
16060 else
16061 test -d ./-p && rmdir ./-p
16062 as_mkdir_p=false
16065 if test -x / >/dev/null 2>&1; then
16066 as_test_x='test -x'
16067 else
16068 if ls -dL / >/dev/null 2>&1; then
16069 as_ls_L_option=L
16070 else
16071 as_ls_L_option=
16073 as_test_x='
16074 eval sh -c '\''
16075 if test -d "$1"; then
16076 test -d "$1/.";
16077 else
16078 case $1 in #(
16079 -*)set "./$1";;
16080 esac;
16081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16082 ???[sx]*):;;*)false;;esac;fi
16083 '\'' sh
16086 as_executable_p=$as_test_x
16088 # Sed expression to map a string onto a valid CPP name.
16089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16091 # Sed expression to map a string onto a valid variable name.
16092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16095 exec 6>&1
16096 ## ----------------------------------- ##
16097 ## Main body of $CONFIG_STATUS script. ##
16098 ## ----------------------------------- ##
16099 _ASEOF
16100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 # Save the log message, to keep $0 and so on meaningful, and to
16104 # report actual input values of CONFIG_FILES etc. instead of their
16105 # values after options handling.
16106 ac_log="
16107 This file was extended by package-unused $as_me version-unused, which was
16108 generated by GNU Autoconf 2.64. Invocation command line was
16110 CONFIG_FILES = $CONFIG_FILES
16111 CONFIG_HEADERS = $CONFIG_HEADERS
16112 CONFIG_LINKS = $CONFIG_LINKS
16113 CONFIG_COMMANDS = $CONFIG_COMMANDS
16114 $ $0 $@
16116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16119 _ACEOF
16121 case $ac_config_files in *"
16122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16123 esac
16125 case $ac_config_headers in *"
16126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16127 esac
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 # Files that config.status was made for.
16132 config_files="$ac_config_files"
16133 config_headers="$ac_config_headers"
16134 config_commands="$ac_config_commands"
16136 _ACEOF
16138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16139 ac_cs_usage="\
16140 \`$as_me' instantiates files and other configuration actions
16141 from templates according to the current configuration. Unless the files
16142 and actions are specified as TAGs, all are instantiated by default.
16144 Usage: $0 [OPTION]... [TAG]...
16146 -h, --help print this help, then exit
16147 -V, --version print version number and configuration settings, then exit
16148 -q, --quiet, --silent
16149 do not print progress messages
16150 -d, --debug don't remove temporary files
16151 --recheck update $as_me by reconfiguring in the same conditions
16152 --file=FILE[:TEMPLATE]
16153 instantiate the configuration file FILE
16154 --header=FILE[:TEMPLATE]
16155 instantiate the configuration header FILE
16157 Configuration files:
16158 $config_files
16160 Configuration headers:
16161 $config_headers
16163 Configuration commands:
16164 $config_commands
16166 Report bugs to the package provider."
16168 _ACEOF
16169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170 ac_cs_version="\\
16171 package-unused config.status version-unused
16172 configured by $0, generated by GNU Autoconf 2.64,
16173 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16175 Copyright (C) 2009 Free Software Foundation, Inc.
16176 This config.status script is free software; the Free Software Foundation
16177 gives unlimited permission to copy, distribute and modify it."
16179 ac_pwd='$ac_pwd'
16180 srcdir='$srcdir'
16181 INSTALL='$INSTALL'
16182 MKDIR_P='$MKDIR_P'
16183 AWK='$AWK'
16184 test -n "\$AWK" || AWK=awk
16185 _ACEOF
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 # The default lists apply if the user does not specify any file.
16189 ac_need_defaults=:
16190 while test $# != 0
16192 case $1 in
16193 --*=*)
16194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16196 ac_shift=:
16199 ac_option=$1
16200 ac_optarg=$2
16201 ac_shift=shift
16203 esac
16205 case $ac_option in
16206 # Handling of the options.
16207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16208 ac_cs_recheck=: ;;
16209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16210 $as_echo "$ac_cs_version"; exit ;;
16211 --debug | --debu | --deb | --de | --d | -d )
16212 debug=: ;;
16213 --file | --fil | --fi | --f )
16214 $ac_shift
16215 case $ac_optarg in
16216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16217 esac
16218 as_fn_append CONFIG_FILES " '$ac_optarg'"
16219 ac_need_defaults=false;;
16220 --header | --heade | --head | --hea )
16221 $ac_shift
16222 case $ac_optarg in
16223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16224 esac
16225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16226 ac_need_defaults=false;;
16227 --he | --h)
16228 # Conflict between --help and --header
16229 as_fn_error "ambiguous option: \`$1'
16230 Try \`$0 --help' for more information.";;
16231 --help | --hel | -h )
16232 $as_echo "$ac_cs_usage"; exit ;;
16233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16235 ac_cs_silent=: ;;
16237 # This is an error.
16238 -*) as_fn_error "unrecognized option: \`$1'
16239 Try \`$0 --help' for more information." ;;
16241 *) as_fn_append ac_config_targets " $1"
16242 ac_need_defaults=false ;;
16244 esac
16245 shift
16246 done
16248 ac_configure_extra_args=
16250 if $ac_cs_silent; then
16251 exec 6>/dev/null
16252 ac_configure_extra_args="$ac_configure_extra_args --silent"
16255 _ACEOF
16256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16257 if \$ac_cs_recheck; then
16258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16259 shift
16260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16261 CONFIG_SHELL='$SHELL'
16262 export CONFIG_SHELL
16263 exec "\$@"
16266 _ACEOF
16267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 exec 5>>config.log
16270 echo
16271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16272 ## Running $as_me. ##
16273 _ASBOX
16274 $as_echo "$ac_log"
16275 } >&5
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280 # INIT-COMMANDS
16283 srcdir="$srcdir"
16284 host="$host"
16285 target="$target"
16286 with_multisubdir="$with_multisubdir"
16287 with_multisrctop="$with_multisrctop"
16288 with_target_subdir="$with_target_subdir"
16289 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16290 multi_basedir="$multi_basedir"
16291 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16292 CC="$CC"
16293 CXX="$CXX"
16294 GFORTRAN="$GFORTRAN"
16295 GCJ="$GCJ"
16296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16299 # The HP-UX ksh and POSIX shell print the target directory to stdout
16300 # if CDPATH is set.
16301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16303 sed_quote_subst='$sed_quote_subst'
16304 double_quote_subst='$double_quote_subst'
16305 delay_variable_subst='$delay_variable_subst'
16306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16311 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16312 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16313 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16314 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16315 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16316 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16318 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16319 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16320 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16321 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16322 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16323 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16324 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16325 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16334 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16335 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16341 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16342 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16343 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16344 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16345 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16346 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16347 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16348 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16349 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16350 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16351 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16353 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16354 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"`'
16355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16358 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16363 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16364 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16365 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16366 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16367 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16368 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16369 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16370 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16371 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16372 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16373 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16374 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16375 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16376 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16377 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16378 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16379 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16380 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16381 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16382 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16383 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16384 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16385 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16386 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16395 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16419 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16420 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16421 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16422 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16423 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16424 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16425 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16426 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16427 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16428 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16429 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16430 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16431 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16432 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16433 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16434 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16435 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16436 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16437 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16438 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16439 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16440 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16441 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16443 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16444 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16445 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16446 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16447 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16448 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16449 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16450 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16453 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16455 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16456 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16457 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16458 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16459 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16460 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16461 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16462 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16463 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16464 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16465 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16466 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16467 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16468 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16470 LTCC='$LTCC'
16471 LTCFLAGS='$LTCFLAGS'
16472 compiler='$compiler_DEFAULT'
16474 # A function that is used when there is no print builtin or printf.
16475 func_fallback_echo ()
16477 eval 'cat <<_LTECHO_EOF
16479 _LTECHO_EOF'
16482 # Quote evaled strings.
16483 for var in SED \
16484 GREP \
16485 EGREP \
16486 FGREP \
16487 SHELL \
16488 ECHO \
16489 LD \
16490 NM \
16491 LN_S \
16492 lt_SP2NL \
16493 lt_NL2SP \
16494 reload_flag \
16495 OBJDUMP \
16496 deplibs_check_method \
16497 file_magic_cmd \
16498 AR \
16499 AR_FLAGS \
16500 STRIP \
16501 RANLIB \
16502 CC \
16503 CFLAGS \
16504 compiler \
16505 lt_cv_sys_global_symbol_pipe \
16506 lt_cv_sys_global_symbol_to_cdecl \
16507 lt_cv_sys_global_symbol_to_c_name_address \
16508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16509 lt_prog_compiler_no_builtin_flag \
16510 lt_prog_compiler_wl \
16511 lt_prog_compiler_pic \
16512 lt_prog_compiler_static \
16513 lt_cv_prog_compiler_c_o \
16514 need_locks \
16515 DSYMUTIL \
16516 NMEDIT \
16517 LIPO \
16518 OTOOL \
16519 OTOOL64 \
16520 shrext_cmds \
16521 export_dynamic_flag_spec \
16522 whole_archive_flag_spec \
16523 compiler_needs_object \
16524 with_gnu_ld \
16525 allow_undefined_flag \
16526 no_undefined_flag \
16527 hardcode_libdir_flag_spec \
16528 hardcode_libdir_flag_spec_ld \
16529 hardcode_libdir_separator \
16530 fix_srcfile_path \
16531 exclude_expsyms \
16532 include_expsyms \
16533 file_list_spec \
16534 variables_saved_for_relink \
16535 libname_spec \
16536 library_names_spec \
16537 soname_spec \
16538 install_override_mode \
16539 finish_eval \
16540 old_striplib \
16541 striplib \
16542 LD_GO \
16543 reload_flag_GO \
16544 compiler_GO \
16545 lt_prog_compiler_no_builtin_flag_GO \
16546 lt_prog_compiler_wl_GO \
16547 lt_prog_compiler_pic_GO \
16548 lt_prog_compiler_static_GO \
16549 lt_cv_prog_compiler_c_o_GO \
16550 export_dynamic_flag_spec_GO \
16551 whole_archive_flag_spec_GO \
16552 compiler_needs_object_GO \
16553 with_gnu_ld_GO \
16554 allow_undefined_flag_GO \
16555 no_undefined_flag_GO \
16556 hardcode_libdir_flag_spec_GO \
16557 hardcode_libdir_flag_spec_ld_GO \
16558 hardcode_libdir_separator_GO \
16559 fix_srcfile_path_GO \
16560 exclude_expsyms_GO \
16561 include_expsyms_GO \
16562 file_list_spec_GO; do
16563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16564 *[\\\\\\\`\\"\\\$]*)
16565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16570 esac
16571 done
16573 # Double-quote double-evaled strings.
16574 for var in reload_cmds \
16575 old_postinstall_cmds \
16576 old_postuninstall_cmds \
16577 old_archive_cmds \
16578 extract_expsyms_cmds \
16579 old_archive_from_new_cmds \
16580 old_archive_from_expsyms_cmds \
16581 archive_cmds \
16582 archive_expsym_cmds \
16583 module_cmds \
16584 module_expsym_cmds \
16585 export_symbols_cmds \
16586 prelink_cmds \
16587 postinstall_cmds \
16588 postuninstall_cmds \
16589 finish_cmds \
16590 sys_lib_search_path_spec \
16591 sys_lib_dlsearch_path_spec \
16592 reload_cmds_GO \
16593 old_archive_cmds_GO \
16594 old_archive_from_new_cmds_GO \
16595 old_archive_from_expsyms_cmds_GO \
16596 archive_cmds_GO \
16597 archive_expsym_cmds_GO \
16598 module_cmds_GO \
16599 module_expsym_cmds_GO \
16600 export_symbols_cmds_GO \
16601 prelink_cmds_GO; do
16602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16603 *[\\\\\\\`\\"\\\$]*)
16604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16609 esac
16610 done
16612 ac_aux_dir='$ac_aux_dir'
16613 xsi_shell='$xsi_shell'
16614 lt_shell_append='$lt_shell_append'
16616 # See if we are running on zsh, and set the options which allow our
16617 # commands through without removal of \ escapes INIT.
16618 if test -n "\${ZSH_VERSION+set}" ; then
16619 setopt NO_GLOB_SUBST
16623 PACKAGE='$PACKAGE'
16624 VERSION='$VERSION'
16625 TIMESTAMP='$TIMESTAMP'
16626 RM='$RM'
16627 ofile='$ofile'
16634 # Variables needed in config.status (file generation) which aren't already
16635 # passed by autoconf.
16636 SUBDIRS="$SUBDIRS"
16639 _ACEOF
16641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16643 # Handling of arguments.
16644 for ac_config_target in $ac_config_targets
16646 case $ac_config_target in
16647 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16648 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16649 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16650 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16651 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16652 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16653 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16655 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16656 esac
16657 done
16660 # If the user did not use the arguments to specify the items to instantiate,
16661 # then the envvar interface is used. Set only those that are not.
16662 # We use the long form for the default assignment because of an extremely
16663 # bizarre bug on SunOS 4.1.3.
16664 if $ac_need_defaults; then
16665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16670 # Have a temporary directory for convenience. Make it in the build tree
16671 # simply because there is no reason against having it here, and in addition,
16672 # creating and moving files from /tmp can sometimes cause problems.
16673 # Hook for its removal unless debugging.
16674 # Note that there is a small window in which the directory will not be cleaned:
16675 # after its creation but before its name has been assigned to `$tmp'.
16676 $debug ||
16678 tmp=
16679 trap 'exit_status=$?
16680 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16682 trap 'as_fn_exit 1' 1 2 13 15
16684 # Create a (secure) tmp directory for tmp files.
16687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16688 test -n "$tmp" && test -d "$tmp"
16689 } ||
16691 tmp=./conf$$-$RANDOM
16692 (umask 077 && mkdir "$tmp")
16693 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16695 # Set up the scripts for CONFIG_FILES section.
16696 # No need to generate them if there are no CONFIG_FILES.
16697 # This happens for instance with `./config.status config.h'.
16698 if test -n "$CONFIG_FILES"; then
16701 ac_cr=`echo X | tr X '\015'`
16702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16703 # But we know of no other shell where ac_cr would be empty at this
16704 # point, so we can use a bashism as a fallback.
16705 if test "x$ac_cr" = x; then
16706 eval ac_cr=\$\'\\r\'
16708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16710 ac_cs_awk_cr='\r'
16711 else
16712 ac_cs_awk_cr=$ac_cr
16715 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16716 _ACEOF
16720 echo "cat >conf$$subs.awk <<_ACEOF" &&
16721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16722 echo "_ACEOF"
16723 } >conf$$subs.sh ||
16724 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16726 ac_delim='%!_!# '
16727 for ac_last_try in false false false false false :; do
16728 . ./conf$$subs.sh ||
16729 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16732 if test $ac_delim_n = $ac_delim_num; then
16733 break
16734 elif $ac_last_try; then
16735 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16736 else
16737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16739 done
16740 rm -f conf$$subs.sh
16742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16744 _ACEOF
16745 sed -n '
16747 s/^/S["/; s/!.*/"]=/
16750 s/^[^!]*!//
16751 :repl
16752 t repl
16753 s/'"$ac_delim"'$//
16754 t delim
16757 s/\(.\{148\}\).*/\1/
16758 t more1
16759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16762 b repl
16763 :more1
16764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16767 s/.\{148\}//
16768 t nl
16769 :delim
16771 s/\(.\{148\}\).*/\1/
16772 t more2
16773 s/["\\]/\\&/g; s/^/"/; s/$/"/
16776 :more2
16777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16780 s/.\{148\}//
16781 t delim
16782 ' <conf$$subs.awk | sed '
16783 /^[^""]/{
16785 s/\n//
16787 ' >>$CONFIG_STATUS || ac_write_fail=1
16788 rm -f conf$$subs.awk
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 _ACAWK
16791 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16792 for (key in S) S_is_set[key] = 1
16793 FS = "\a"
16797 line = $ 0
16798 nfields = split(line, field, "@")
16799 substed = 0
16800 len = length(field[1])
16801 for (i = 2; i < nfields; i++) {
16802 key = field[i]
16803 keylen = length(key)
16804 if (S_is_set[key]) {
16805 value = S[key]
16806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16807 len += length(value) + length(field[++i])
16808 substed = 1
16809 } else
16810 len += 1 + keylen
16813 print line
16816 _ACAWK
16817 _ACEOF
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16821 else
16823 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16824 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16825 _ACEOF
16827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16829 # trailing colons and then remove the whole line if VPATH becomes empty
16830 # (actually we leave an empty line to preserve line numbers).
16831 if test "x$srcdir" = x.; then
16832 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16833 s/:*\$(srcdir):*/:/
16834 s/:*\${srcdir}:*/:/
16835 s/:*@srcdir@:*/:/
16836 s/^\([^=]*=[ ]*\):*/\1/
16837 s/:*$//
16838 s/^[^=]*=[ ]*$//
16842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16843 fi # test -n "$CONFIG_FILES"
16845 # Set up the scripts for CONFIG_HEADERS section.
16846 # No need to generate them if there are no CONFIG_HEADERS.
16847 # This happens for instance with `./config.status Makefile'.
16848 if test -n "$CONFIG_HEADERS"; then
16849 cat >"$tmp/defines.awk" <<\_ACAWK ||
16850 BEGIN {
16851 _ACEOF
16853 # Transform confdefs.h into an awk script `defines.awk', embedded as
16854 # here-document in config.status, that substitutes the proper values into
16855 # config.h.in to produce config.h.
16857 # Create a delimiter string that does not exist in confdefs.h, to ease
16858 # handling of long lines.
16859 ac_delim='%!_!# '
16860 for ac_last_try in false false :; do
16861 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16862 if test -z "$ac_t"; then
16863 break
16864 elif $ac_last_try; then
16865 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16866 else
16867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16869 done
16871 # For the awk script, D is an array of macro values keyed by name,
16872 # likewise P contains macro parameters if any. Preserve backslash
16873 # newline sequences.
16875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16876 sed -n '
16877 s/.\{148\}/&'"$ac_delim"'/g
16878 t rset
16879 :rset
16880 s/^[ ]*#[ ]*define[ ][ ]*/ /
16881 t def
16883 :def
16884 s/\\$//
16885 t bsnl
16886 s/["\\]/\\&/g
16887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16888 D["\1"]=" \3"/p
16889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16891 :bsnl
16892 s/["\\]/\\&/g
16893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16894 D["\1"]=" \3\\\\\\n"\\/p
16895 t cont
16896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16897 t cont
16899 :cont
16901 s/.\{148\}/&'"$ac_delim"'/g
16902 t clear
16903 :clear
16904 s/\\$//
16905 t bsnlc
16906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16908 :bsnlc
16909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16910 b cont
16911 ' <confdefs.h | sed '
16912 s/'"$ac_delim"'/"\\\
16913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16916 for (key in D) D_is_set[key] = 1
16917 FS = "\a"
16919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16920 line = \$ 0
16921 split(line, arg, " ")
16922 if (arg[1] == "#") {
16923 defundef = arg[2]
16924 mac1 = arg[3]
16925 } else {
16926 defundef = substr(arg[1], 2)
16927 mac1 = arg[2]
16929 split(mac1, mac2, "(") #)
16930 macro = mac2[1]
16931 prefix = substr(line, 1, index(line, defundef) - 1)
16932 if (D_is_set[macro]) {
16933 # Preserve the white space surrounding the "#".
16934 print prefix "define", macro P[macro] D[macro]
16935 next
16936 } else {
16937 # Replace #undef with comments. This is necessary, for example,
16938 # in the case of _POSIX_SOURCE, which is predefined and required
16939 # on some systems where configure will not decide to define it.
16940 if (defundef == "undef") {
16941 print "/*", prefix defundef, macro, "*/"
16942 next
16946 { print }
16947 _ACAWK
16948 _ACEOF
16949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16950 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16951 fi # test -n "$CONFIG_HEADERS"
16954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16955 shift
16956 for ac_tag
16958 case $ac_tag in
16959 :[FHLC]) ac_mode=$ac_tag; continue;;
16960 esac
16961 case $ac_mode$ac_tag in
16962 :[FHL]*:*);;
16963 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16964 :[FH]-) ac_tag=-:-;;
16965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16966 esac
16967 ac_save_IFS=$IFS
16968 IFS=:
16969 set x $ac_tag
16970 IFS=$ac_save_IFS
16971 shift
16972 ac_file=$1
16973 shift
16975 case $ac_mode in
16976 :L) ac_source=$1;;
16977 :[FH])
16978 ac_file_inputs=
16979 for ac_f
16981 case $ac_f in
16982 -) ac_f="$tmp/stdin";;
16983 *) # Look for the file first in the build tree, then in the source tree
16984 # (if the path is not absolute). The absolute path cannot be DOS-style,
16985 # because $ac_f cannot contain `:'.
16986 test -f "$ac_f" ||
16987 case $ac_f in
16988 [\\/$]*) false;;
16989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16990 esac ||
16991 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16992 esac
16993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16994 as_fn_append ac_file_inputs " '$ac_f'"
16995 done
16997 # Let's still pretend it is `configure' which instantiates (i.e., don't
16998 # use $as_me), people would be surprised to read:
16999 # /* config.h. Generated by config.status. */
17000 configure_input='Generated from '`
17001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17002 `' by configure.'
17003 if test x"$ac_file" != x-; then
17004 configure_input="$ac_file. $configure_input"
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17006 $as_echo "$as_me: creating $ac_file" >&6;}
17008 # Neutralize special characters interpreted by sed in replacement strings.
17009 case $configure_input in #(
17010 *\&* | *\|* | *\\* )
17011 ac_sed_conf_input=`$as_echo "$configure_input" |
17012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17013 *) ac_sed_conf_input=$configure_input;;
17014 esac
17016 case $ac_tag in
17017 *:-:* | *:-) cat >"$tmp/stdin" \
17018 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17019 esac
17021 esac
17023 ac_dir=`$as_dirname -- "$ac_file" ||
17024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17025 X"$ac_file" : 'X\(//\)[^/]' \| \
17026 X"$ac_file" : 'X\(//\)$' \| \
17027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17028 $as_echo X"$ac_file" |
17029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17030 s//\1/
17033 /^X\(\/\/\)[^/].*/{
17034 s//\1/
17037 /^X\(\/\/\)$/{
17038 s//\1/
17041 /^X\(\/\).*/{
17042 s//\1/
17045 s/.*/./; q'`
17046 as_dir="$ac_dir"; as_fn_mkdir_p
17047 ac_builddir=.
17049 case "$ac_dir" in
17050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17053 # A ".." for each directory in $ac_dir_suffix.
17054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17055 case $ac_top_builddir_sub in
17056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17058 esac ;;
17059 esac
17060 ac_abs_top_builddir=$ac_pwd
17061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17062 # for backward compatibility:
17063 ac_top_builddir=$ac_top_build_prefix
17065 case $srcdir in
17066 .) # We are building in place.
17067 ac_srcdir=.
17068 ac_top_srcdir=$ac_top_builddir_sub
17069 ac_abs_top_srcdir=$ac_pwd ;;
17070 [\\/]* | ?:[\\/]* ) # Absolute name.
17071 ac_srcdir=$srcdir$ac_dir_suffix;
17072 ac_top_srcdir=$srcdir
17073 ac_abs_top_srcdir=$srcdir ;;
17074 *) # Relative name.
17075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17076 ac_top_srcdir=$ac_top_build_prefix$srcdir
17077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17078 esac
17079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17082 case $ac_mode in
17085 # CONFIG_FILE
17088 case $INSTALL in
17089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17091 esac
17092 ac_MKDIR_P=$MKDIR_P
17093 case $MKDIR_P in
17094 [\\/$]* | ?:[\\/]* ) ;;
17095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17096 esac
17097 _ACEOF
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 # If the template does not know about datarootdir, expand it.
17101 # FIXME: This hack should be removed a few years after 2.60.
17102 ac_datarootdir_hack=; ac_datarootdir_seen=
17103 ac_sed_dataroot='
17104 /datarootdir/ {
17108 /@datadir@/p
17109 /@docdir@/p
17110 /@infodir@/p
17111 /@localedir@/p
17112 /@mandir@/p'
17113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17114 *datarootdir*) ac_datarootdir_seen=yes;;
17115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17118 _ACEOF
17119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120 ac_datarootdir_hack='
17121 s&@datadir@&$datadir&g
17122 s&@docdir@&$docdir&g
17123 s&@infodir@&$infodir&g
17124 s&@localedir@&$localedir&g
17125 s&@mandir@&$mandir&g
17126 s&\\\${datarootdir}&$datarootdir&g' ;;
17127 esac
17128 _ACEOF
17130 # Neutralize VPATH when `$srcdir' = `.'.
17131 # Shell code in configure.ac might set extrasub.
17132 # FIXME: do we really want to maintain this feature?
17133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17134 ac_sed_extra="$ac_vpsub
17135 $extrasub
17136 _ACEOF
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17140 s|@configure_input@|$ac_sed_conf_input|;t t
17141 s&@top_builddir@&$ac_top_builddir_sub&;t t
17142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17143 s&@srcdir@&$ac_srcdir&;t t
17144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17145 s&@top_srcdir@&$ac_top_srcdir&;t t
17146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17147 s&@builddir@&$ac_builddir&;t t
17148 s&@abs_builddir@&$ac_abs_builddir&;t t
17149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17150 s&@INSTALL@&$ac_INSTALL&;t t
17151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17152 $ac_datarootdir_hack
17154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17155 || as_fn_error "could not create $ac_file" "$LINENO" 5
17157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17161 which seems to be undefined. Please make sure it is defined." >&5
17162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17163 which seems to be undefined. Please make sure it is defined." >&2;}
17165 rm -f "$tmp/stdin"
17166 case $ac_file in
17167 -) cat "$tmp/out" && rm -f "$tmp/out";;
17168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17169 esac \
17170 || as_fn_error "could not create $ac_file" "$LINENO" 5
17174 # CONFIG_HEADER
17176 if test x"$ac_file" != x-; then
17178 $as_echo "/* $configure_input */" \
17179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17180 } >"$tmp/config.h" \
17181 || as_fn_error "could not create $ac_file" "$LINENO" 5
17182 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17185 else
17186 rm -f "$ac_file"
17187 mv "$tmp/config.h" "$ac_file" \
17188 || as_fn_error "could not create $ac_file" "$LINENO" 5
17190 else
17191 $as_echo "/* $configure_input */" \
17192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17193 || as_fn_error "could not create -" "$LINENO" 5
17195 # Compute "$ac_file"'s index in $config_headers.
17196 _am_arg="$ac_file"
17197 _am_stamp_count=1
17198 for _am_header in $config_headers :; do
17199 case $_am_header in
17200 $_am_arg | $_am_arg:* )
17201 break ;;
17203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17204 esac
17205 done
17206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208 X"$_am_arg" : 'X\(//\)[^/]' \| \
17209 X"$_am_arg" : 'X\(//\)$' \| \
17210 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17211 $as_echo X"$_am_arg" |
17212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213 s//\1/
17216 /^X\(\/\/\)[^/].*/{
17217 s//\1/
17220 /^X\(\/\/\)$/{
17221 s//\1/
17224 /^X\(\/\).*/{
17225 s//\1/
17228 s/.*/./; q'`/stamp-h$_am_stamp_count
17231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17232 $as_echo "$as_me: executing $ac_file commands" >&6;}
17234 esac
17237 case $ac_file$ac_mode in
17238 "default-1":C)
17239 # Only add multilib support code if we just rebuilt the top-level
17240 # Makefile.
17241 case " $CONFIG_FILES " in
17242 *" Makefile "*)
17243 ac_file=Makefile . ${multi_basedir}/config-ml.in
17245 esac ;;
17246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17247 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17248 # are listed without --file. Let's play safe and only enable the eval
17249 # if we detect the quoting.
17250 case $CONFIG_FILES in
17251 *\'*) eval set x "$CONFIG_FILES" ;;
17252 *) set x $CONFIG_FILES ;;
17253 esac
17254 shift
17255 for mf
17257 # Strip MF so we end up with the name of the file.
17258 mf=`echo "$mf" | sed -e 's/:.*$//'`
17259 # Check whether this is an Automake generated Makefile or not.
17260 # We used to match only the files named `Makefile.in', but
17261 # some people rename them; so instead we look at the file content.
17262 # Grep'ing the first line is not enough: some people post-process
17263 # each Makefile.in and add a new line on top of each file to say so.
17264 # Grep'ing the whole file is not good either: AIX grep has a line
17265 # limit of 2048, but all sed's we know have understand at least 4000.
17266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17267 dirpart=`$as_dirname -- "$mf" ||
17268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269 X"$mf" : 'X\(//\)[^/]' \| \
17270 X"$mf" : 'X\(//\)$' \| \
17271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17272 $as_echo X"$mf" |
17273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17274 s//\1/
17277 /^X\(\/\/\)[^/].*/{
17278 s//\1/
17281 /^X\(\/\/\)$/{
17282 s//\1/
17285 /^X\(\/\).*/{
17286 s//\1/
17289 s/.*/./; q'`
17290 else
17291 continue
17293 # Extract the definition of DEPDIR, am__include, and am__quote
17294 # from the Makefile without running `make'.
17295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17296 test -z "$DEPDIR" && continue
17297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17298 test -z "am__include" && continue
17299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17300 # When using ansi2knr, U may be empty or an underscore; expand it
17301 U=`sed -n 's/^U = //p' < "$mf"`
17302 # Find all dependency output files, they are included files with
17303 # $(DEPDIR) in their names. We invoke sed twice because it is the
17304 # simplest approach to changing $(DEPDIR) to its actual value in the
17305 # expansion.
17306 for file in `sed -n "
17307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17309 # Make sure the directory exists.
17310 test -f "$dirpart/$file" && continue
17311 fdir=`$as_dirname -- "$file" ||
17312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313 X"$file" : 'X\(//\)[^/]' \| \
17314 X"$file" : 'X\(//\)$' \| \
17315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17316 $as_echo X"$file" |
17317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17318 s//\1/
17321 /^X\(\/\/\)[^/].*/{
17322 s//\1/
17325 /^X\(\/\/\)$/{
17326 s//\1/
17329 /^X\(\/\).*/{
17330 s//\1/
17333 s/.*/./; q'`
17334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17335 # echo "creating $dirpart/$file"
17336 echo '# dummy' > "$dirpart/$file"
17337 done
17338 done
17341 "libtool":C)
17343 # See if we are running on zsh, and set the options which allow our
17344 # commands through without removal of \ escapes.
17345 if test -n "${ZSH_VERSION+set}" ; then
17346 setopt NO_GLOB_SUBST
17349 cfgfile="${ofile}T"
17350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17351 $RM "$cfgfile"
17353 cat <<_LT_EOF >> "$cfgfile"
17354 #! $SHELL
17356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17361 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17362 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17363 # Written by Gordon Matzigkeit, 1996
17365 # This file is part of GNU Libtool.
17367 # GNU Libtool is free software; you can redistribute it and/or
17368 # modify it under the terms of the GNU General Public License as
17369 # published by the Free Software Foundation; either version 2 of
17370 # the License, or (at your option) any later version.
17372 # As a special exception to the GNU General Public License,
17373 # if you distribute this file as part of a program or library that
17374 # is built using GNU Libtool, you may include this file under the
17375 # same distribution terms that you use for the rest of that program.
17377 # GNU Libtool is distributed in the hope that it will be useful,
17378 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17380 # GNU General Public License for more details.
17382 # You should have received a copy of the GNU General Public License
17383 # along with GNU Libtool; see the file COPYING. If not, a copy
17384 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17385 # obtained by writing to the Free Software Foundation, Inc.,
17386 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17389 # The names of the tagged configurations supported by this script.
17390 available_tags="GO "
17392 # ### BEGIN LIBTOOL CONFIG
17394 # A sed program that does not truncate output.
17395 SED=$lt_SED
17397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17398 Xsed="\$SED -e 1s/^X//"
17400 # A grep program that handles long lines.
17401 GREP=$lt_GREP
17403 # An ERE matcher.
17404 EGREP=$lt_EGREP
17406 # A literal string matcher.
17407 FGREP=$lt_FGREP
17409 # Shell to use when invoking shell scripts.
17410 SHELL=$lt_SHELL
17412 # An echo program that protects backslashes.
17413 ECHO=$lt_ECHO
17415 # Which release of libtool.m4 was used?
17416 macro_version=$macro_version
17417 macro_revision=$macro_revision
17419 # Whether or not to build shared libraries.
17420 build_libtool_libs=$enable_shared
17422 # Whether or not to build static libraries.
17423 build_old_libs=$enable_static
17425 # What type of objects to build.
17426 pic_mode=$pic_mode
17428 # Whether or not to optimize for fast installation.
17429 fast_install=$enable_fast_install
17431 # The host system.
17432 host_alias=$host_alias
17433 host=$host
17434 host_os=$host_os
17436 # The build system.
17437 build_alias=$build_alias
17438 build=$build
17439 build_os=$build_os
17441 # A BSD- or MS-compatible name lister.
17442 NM=$lt_NM
17444 # Whether we need soft or hard links.
17445 LN_S=$lt_LN_S
17447 # What is the maximum length of a command?
17448 max_cmd_len=$max_cmd_len
17450 # Object file suffix (normally "o").
17451 objext=$ac_objext
17453 # Executable file suffix (normally "").
17454 exeext=$exeext
17456 # whether the shell understands "unset".
17457 lt_unset=$lt_unset
17459 # turn spaces into newlines.
17460 SP2NL=$lt_lt_SP2NL
17462 # turn newlines into spaces.
17463 NL2SP=$lt_lt_NL2SP
17465 # An object symbol dumper.
17466 OBJDUMP=$lt_OBJDUMP
17468 # Method to check whether dependent libraries are shared objects.
17469 deplibs_check_method=$lt_deplibs_check_method
17471 # Command to use when deplibs_check_method == "file_magic".
17472 file_magic_cmd=$lt_file_magic_cmd
17474 # The archiver.
17475 AR=$lt_AR
17476 AR_FLAGS=$lt_AR_FLAGS
17478 # A symbol stripping program.
17479 STRIP=$lt_STRIP
17481 # Commands used to install an old-style archive.
17482 RANLIB=$lt_RANLIB
17483 old_postinstall_cmds=$lt_old_postinstall_cmds
17484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17486 # Whether to use a lock for old archive extraction.
17487 lock_old_archive_extraction=$lock_old_archive_extraction
17489 # A C compiler.
17490 LTCC=$lt_CC
17492 # LTCC compiler flags.
17493 LTCFLAGS=$lt_CFLAGS
17495 # Take the output of nm and produce a listing of raw symbols and C names.
17496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17498 # Transform the output of nm in a proper C declaration.
17499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17501 # Transform the output of nm in a C name address pair.
17502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17504 # Transform the output of nm in a C name address pair when lib prefix is needed.
17505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17507 # The name of the directory that contains temporary libtool files.
17508 objdir=$objdir
17510 # Used to examine libraries when file_magic_cmd begins with "file".
17511 MAGIC_CMD=$MAGIC_CMD
17513 # Must we lock files when doing compilation?
17514 need_locks=$lt_need_locks
17516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17517 DSYMUTIL=$lt_DSYMUTIL
17519 # Tool to change global to local symbols on Mac OS X.
17520 NMEDIT=$lt_NMEDIT
17522 # Tool to manipulate fat objects and archives on Mac OS X.
17523 LIPO=$lt_LIPO
17525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17526 OTOOL=$lt_OTOOL
17528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17529 OTOOL64=$lt_OTOOL64
17531 # Old archive suffix (normally "a").
17532 libext=$libext
17534 # Shared library suffix (normally ".so").
17535 shrext_cmds=$lt_shrext_cmds
17537 # The commands to extract the exported symbol list from a shared archive.
17538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17540 # Variables whose values should be saved in libtool wrapper scripts and
17541 # restored at link time.
17542 variables_saved_for_relink=$lt_variables_saved_for_relink
17544 # Do we need the "lib" prefix for modules?
17545 need_lib_prefix=$need_lib_prefix
17547 # Do we need a version for libraries?
17548 need_version=$need_version
17550 # Library versioning type.
17551 version_type=$version_type
17553 # Shared library runtime path variable.
17554 runpath_var=$runpath_var
17556 # Shared library path variable.
17557 shlibpath_var=$shlibpath_var
17559 # Is shlibpath searched before the hard-coded library search path?
17560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17562 # Format of library name prefix.
17563 libname_spec=$lt_libname_spec
17565 # List of archive names. First name is the real one, the rest are links.
17566 # The last name is the one that the linker finds with -lNAME
17567 library_names_spec=$lt_library_names_spec
17569 # The coded name of the library, if different from the real name.
17570 soname_spec=$lt_soname_spec
17572 # Permission mode override for installation of shared libraries.
17573 install_override_mode=$lt_install_override_mode
17575 # Command to use after installation of a shared archive.
17576 postinstall_cmds=$lt_postinstall_cmds
17578 # Command to use after uninstallation of a shared archive.
17579 postuninstall_cmds=$lt_postuninstall_cmds
17581 # Commands used to finish a libtool library installation in a directory.
17582 finish_cmds=$lt_finish_cmds
17584 # As "finish_cmds", except a single script fragment to be evaled but
17585 # not shown.
17586 finish_eval=$lt_finish_eval
17588 # Whether we should hardcode library paths into libraries.
17589 hardcode_into_libs=$hardcode_into_libs
17591 # Compile-time system search path for libraries.
17592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17594 # Run-time system search path for libraries.
17595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17597 # Whether dlopen is supported.
17598 dlopen_support=$enable_dlopen
17600 # Whether dlopen of programs is supported.
17601 dlopen_self=$enable_dlopen_self
17603 # Whether dlopen of statically linked programs is supported.
17604 dlopen_self_static=$enable_dlopen_self_static
17606 # Commands to strip libraries.
17607 old_striplib=$lt_old_striplib
17608 striplib=$lt_striplib
17611 # The linker used to build libraries.
17612 LD=$lt_LD
17614 # How to create reloadable object files.
17615 reload_flag=$lt_reload_flag
17616 reload_cmds=$lt_reload_cmds
17618 # Commands used to build an old-style archive.
17619 old_archive_cmds=$lt_old_archive_cmds
17621 # A language specific compiler.
17622 CC=$lt_compiler
17624 # Is the compiler the GNU compiler?
17625 with_gcc=$GCC
17627 # Compiler flag to turn off builtin functions.
17628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17630 # How to pass a linker flag through the compiler.
17631 wl=$lt_lt_prog_compiler_wl
17633 # Additional compiler flags for building library objects.
17634 pic_flag=$lt_lt_prog_compiler_pic
17636 # Compiler flag to prevent dynamic linking.
17637 link_static_flag=$lt_lt_prog_compiler_static
17639 # Does compiler simultaneously support -c and -o options?
17640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17642 # Whether or not to add -lc for building shared libraries.
17643 build_libtool_need_lc=$archive_cmds_need_lc
17645 # Whether or not to disallow shared libs when runtime libs are static.
17646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17648 # Compiler flag to allow reflexive dlopens.
17649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17651 # Compiler flag to generate shared objects directly from archives.
17652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17654 # Whether the compiler copes with passing no objects directly.
17655 compiler_needs_object=$lt_compiler_needs_object
17657 # Create an old-style archive from a shared archive.
17658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17660 # Create a temporary old-style archive to link instead of a shared archive.
17661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17663 # Commands used to build a shared archive.
17664 archive_cmds=$lt_archive_cmds
17665 archive_expsym_cmds=$lt_archive_expsym_cmds
17667 # Commands used to build a loadable module if different from building
17668 # a shared archive.
17669 module_cmds=$lt_module_cmds
17670 module_expsym_cmds=$lt_module_expsym_cmds
17672 # Whether we are building with GNU ld or not.
17673 with_gnu_ld=$lt_with_gnu_ld
17675 # Flag that allows shared libraries with undefined symbols to be built.
17676 allow_undefined_flag=$lt_allow_undefined_flag
17678 # Flag that enforces no undefined symbols.
17679 no_undefined_flag=$lt_no_undefined_flag
17681 # Flag to hardcode \$libdir into a binary during linking.
17682 # This must work even if \$libdir does not exist
17683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17685 # If ld is used when linking, flag to hardcode \$libdir into a binary
17686 # during linking. This must work even if \$libdir does not exist.
17687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17689 # Whether we need a single "-rpath" flag with a separated argument.
17690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17693 # DIR into the resulting binary.
17694 hardcode_direct=$hardcode_direct
17696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17697 # DIR into the resulting binary and the resulting library dependency is
17698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17699 # library is relocated.
17700 hardcode_direct_absolute=$hardcode_direct_absolute
17702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17703 # into the resulting binary.
17704 hardcode_minus_L=$hardcode_minus_L
17706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17707 # into the resulting binary.
17708 hardcode_shlibpath_var=$hardcode_shlibpath_var
17710 # Set to "yes" if building a shared library automatically hardcodes DIR
17711 # into the library and all subsequent libraries and executables linked
17712 # against it.
17713 hardcode_automatic=$hardcode_automatic
17715 # Set to yes if linker adds runtime paths of dependent libraries
17716 # to runtime path list.
17717 inherit_rpath=$inherit_rpath
17719 # Whether libtool must link a program against all its dependency libraries.
17720 link_all_deplibs=$link_all_deplibs
17722 # Fix the shell variable \$srcfile for the compiler.
17723 fix_srcfile_path=$lt_fix_srcfile_path
17725 # Set to "yes" if exported symbols are required.
17726 always_export_symbols=$always_export_symbols
17728 # The commands to list exported symbols.
17729 export_symbols_cmds=$lt_export_symbols_cmds
17731 # Symbols that should not be listed in the preloaded symbols.
17732 exclude_expsyms=$lt_exclude_expsyms
17734 # Symbols that must always be exported.
17735 include_expsyms=$lt_include_expsyms
17737 # Commands necessary for linking programs (against libraries) with templates.
17738 prelink_cmds=$lt_prelink_cmds
17740 # Specify filename containing input files.
17741 file_list_spec=$lt_file_list_spec
17743 # How to hardcode a shared library path into an executable.
17744 hardcode_action=$hardcode_action
17746 # ### END LIBTOOL CONFIG
17748 _LT_EOF
17750 case $host_os in
17751 aix3*)
17752 cat <<\_LT_EOF >> "$cfgfile"
17753 # AIX sometimes has problems with the GCC collect2 program. For some
17754 # reason, if we set the COLLECT_NAMES environment variable, the problems
17755 # vanish in a puff of smoke.
17756 if test "X${COLLECT_NAMES+set}" != Xset; then
17757 COLLECT_NAMES=
17758 export COLLECT_NAMES
17760 _LT_EOF
17762 esac
17765 ltmain="$ac_aux_dir/ltmain.sh"
17768 # We use sed instead of cat because bash on DJGPP gets confused if
17769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17770 # text mode, it properly converts lines to CR/LF. This bash problem
17771 # is reportedly fixed, but why not run on old versions too?
17772 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17773 || (rm -f "$cfgfile"; exit 1)
17775 case $xsi_shell in
17776 yes)
17777 cat << \_LT_EOF >> "$cfgfile"
17779 # func_dirname file append nondir_replacement
17780 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17781 # otherwise set result to NONDIR_REPLACEMENT.
17782 func_dirname ()
17784 case ${1} in
17785 */*) func_dirname_result="${1%/*}${2}" ;;
17786 * ) func_dirname_result="${3}" ;;
17787 esac
17790 # func_basename file
17791 func_basename ()
17793 func_basename_result="${1##*/}"
17796 # func_dirname_and_basename file append nondir_replacement
17797 # perform func_basename and func_dirname in a single function
17798 # call:
17799 # dirname: Compute the dirname of FILE. If nonempty,
17800 # add APPEND to the result, otherwise set result
17801 # to NONDIR_REPLACEMENT.
17802 # value returned in "$func_dirname_result"
17803 # basename: Compute filename of FILE.
17804 # value retuned in "$func_basename_result"
17805 # Implementation must be kept synchronized with func_dirname
17806 # and func_basename. For efficiency, we do not delegate to
17807 # those functions but instead duplicate the functionality here.
17808 func_dirname_and_basename ()
17810 case ${1} in
17811 */*) func_dirname_result="${1%/*}${2}" ;;
17812 * ) func_dirname_result="${3}" ;;
17813 esac
17814 func_basename_result="${1##*/}"
17817 # func_stripname prefix suffix name
17818 # strip PREFIX and SUFFIX off of NAME.
17819 # PREFIX and SUFFIX must not contain globbing or regex special
17820 # characters, hashes, percent signs, but SUFFIX may contain a leading
17821 # dot (in which case that matches only a dot).
17822 func_stripname ()
17824 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17825 # positional parameters, so assign one to ordinary parameter first.
17826 func_stripname_result=${3}
17827 func_stripname_result=${func_stripname_result#"${1}"}
17828 func_stripname_result=${func_stripname_result%"${2}"}
17831 # func_opt_split
17832 func_opt_split ()
17834 func_opt_split_opt=${1%%=*}
17835 func_opt_split_arg=${1#*=}
17838 # func_lo2o object
17839 func_lo2o ()
17841 case ${1} in
17842 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17843 *) func_lo2o_result=${1} ;;
17844 esac
17847 # func_xform libobj-or-source
17848 func_xform ()
17850 func_xform_result=${1%.*}.lo
17853 # func_arith arithmetic-term...
17854 func_arith ()
17856 func_arith_result=$(( $* ))
17859 # func_len string
17860 # STRING may not start with a hyphen.
17861 func_len ()
17863 func_len_result=${#1}
17866 _LT_EOF
17868 *) # Bourne compatible functions.
17869 cat << \_LT_EOF >> "$cfgfile"
17871 # func_dirname file append nondir_replacement
17872 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17873 # otherwise set result to NONDIR_REPLACEMENT.
17874 func_dirname ()
17876 # Extract subdirectory from the argument.
17877 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17878 if test "X$func_dirname_result" = "X${1}"; then
17879 func_dirname_result="${3}"
17880 else
17881 func_dirname_result="$func_dirname_result${2}"
17885 # func_basename file
17886 func_basename ()
17888 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17892 # func_stripname prefix suffix name
17893 # strip PREFIX and SUFFIX off of NAME.
17894 # PREFIX and SUFFIX must not contain globbing or regex special
17895 # characters, hashes, percent signs, but SUFFIX may contain a leading
17896 # dot (in which case that matches only a dot).
17897 # func_strip_suffix prefix name
17898 func_stripname ()
17900 case ${2} in
17901 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17902 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17903 esac
17906 # sed scripts:
17907 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17908 my_sed_long_arg='1s/^-[^=]*=//'
17910 # func_opt_split
17911 func_opt_split ()
17913 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17914 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17917 # func_lo2o object
17918 func_lo2o ()
17920 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17923 # func_xform libobj-or-source
17924 func_xform ()
17926 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17929 # func_arith arithmetic-term...
17930 func_arith ()
17932 func_arith_result=`expr "$@"`
17935 # func_len string
17936 # STRING may not start with a hyphen.
17937 func_len ()
17939 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17942 _LT_EOF
17943 esac
17945 case $lt_shell_append in
17946 yes)
17947 cat << \_LT_EOF >> "$cfgfile"
17949 # func_append var value
17950 # Append VALUE to the end of shell variable VAR.
17951 func_append ()
17953 eval "$1+=\$2"
17955 _LT_EOF
17958 cat << \_LT_EOF >> "$cfgfile"
17960 # func_append var value
17961 # Append VALUE to the end of shell variable VAR.
17962 func_append ()
17964 eval "$1=\$$1\$2"
17967 _LT_EOF
17969 esac
17972 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17973 || (rm -f "$cfgfile"; exit 1)
17975 mv -f "$cfgfile" "$ofile" ||
17976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17977 chmod +x "$ofile"
17980 cat <<_LT_EOF >> "$ofile"
17982 # ### BEGIN LIBTOOL TAG CONFIG: GO
17984 # The linker used to build libraries.
17985 LD=$lt_LD_GO
17987 # How to create reloadable object files.
17988 reload_flag=$lt_reload_flag_GO
17989 reload_cmds=$lt_reload_cmds_GO
17991 # Commands used to build an old-style archive.
17992 old_archive_cmds=$lt_old_archive_cmds_GO
17994 # A language specific compiler.
17995 CC=$lt_compiler_GO
17997 # Is the compiler the GNU compiler?
17998 with_gcc=$GCC_GO
18000 # Compiler flag to turn off builtin functions.
18001 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18003 # How to pass a linker flag through the compiler.
18004 wl=$lt_lt_prog_compiler_wl_GO
18006 # Additional compiler flags for building library objects.
18007 pic_flag=$lt_lt_prog_compiler_pic_GO
18009 # Compiler flag to prevent dynamic linking.
18010 link_static_flag=$lt_lt_prog_compiler_static_GO
18012 # Does compiler simultaneously support -c and -o options?
18013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18015 # Whether or not to add -lc for building shared libraries.
18016 build_libtool_need_lc=$archive_cmds_need_lc_GO
18018 # Whether or not to disallow shared libs when runtime libs are static.
18019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18021 # Compiler flag to allow reflexive dlopens.
18022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18024 # Compiler flag to generate shared objects directly from archives.
18025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18027 # Whether the compiler copes with passing no objects directly.
18028 compiler_needs_object=$lt_compiler_needs_object_GO
18030 # Create an old-style archive from a shared archive.
18031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18033 # Create a temporary old-style archive to link instead of a shared archive.
18034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18036 # Commands used to build a shared archive.
18037 archive_cmds=$lt_archive_cmds_GO
18038 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18040 # Commands used to build a loadable module if different from building
18041 # a shared archive.
18042 module_cmds=$lt_module_cmds_GO
18043 module_expsym_cmds=$lt_module_expsym_cmds_GO
18045 # Whether we are building with GNU ld or not.
18046 with_gnu_ld=$lt_with_gnu_ld_GO
18048 # Flag that allows shared libraries with undefined symbols to be built.
18049 allow_undefined_flag=$lt_allow_undefined_flag_GO
18051 # Flag that enforces no undefined symbols.
18052 no_undefined_flag=$lt_no_undefined_flag_GO
18054 # Flag to hardcode \$libdir into a binary during linking.
18055 # This must work even if \$libdir does not exist
18056 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18058 # If ld is used when linking, flag to hardcode \$libdir into a binary
18059 # during linking. This must work even if \$libdir does not exist.
18060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18062 # Whether we need a single "-rpath" flag with a separated argument.
18063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18065 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18066 # DIR into the resulting binary.
18067 hardcode_direct=$hardcode_direct_GO
18069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18070 # DIR into the resulting binary and the resulting library dependency is
18071 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18072 # library is relocated.
18073 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18075 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18076 # into the resulting binary.
18077 hardcode_minus_L=$hardcode_minus_L_GO
18079 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18080 # into the resulting binary.
18081 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18083 # Set to "yes" if building a shared library automatically hardcodes DIR
18084 # into the library and all subsequent libraries and executables linked
18085 # against it.
18086 hardcode_automatic=$hardcode_automatic_GO
18088 # Set to yes if linker adds runtime paths of dependent libraries
18089 # to runtime path list.
18090 inherit_rpath=$inherit_rpath_GO
18092 # Whether libtool must link a program against all its dependency libraries.
18093 link_all_deplibs=$link_all_deplibs_GO
18095 # Fix the shell variable \$srcfile for the compiler.
18096 fix_srcfile_path=$lt_fix_srcfile_path_GO
18098 # Set to "yes" if exported symbols are required.
18099 always_export_symbols=$always_export_symbols_GO
18101 # The commands to list exported symbols.
18102 export_symbols_cmds=$lt_export_symbols_cmds_GO
18104 # Symbols that should not be listed in the preloaded symbols.
18105 exclude_expsyms=$lt_exclude_expsyms_GO
18107 # Symbols that must always be exported.
18108 include_expsyms=$lt_include_expsyms_GO
18110 # Commands necessary for linking programs (against libraries) with templates.
18111 prelink_cmds=$lt_prelink_cmds_GO
18113 # Specify filename containing input files.
18114 file_list_spec=$lt_file_list_spec_GO
18116 # How to hardcode a shared library path into an executable.
18117 hardcode_action=$hardcode_action_GO
18119 # ### END LIBTOOL TAG CONFIG: GO
18120 _LT_EOF
18123 "default":C) if test -n "$CONFIG_FILES"; then
18124 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18125 # that multilib installs will end up installed in the correct place.
18126 # The testsuite needs it for multilib-aware ABI baseline files.
18127 # To work around this not being passed down from config-ml.in ->
18128 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18129 # append it here. Only modify Makefiles that have just been created.
18131 # Also, get rid of this simulated-VPATH thing that automake does.
18132 cat > vpsed << \_EOF
18133 s!`test -f '$<' || echo '$(srcdir)/'`!!
18134 _EOF
18135 for i in $SUBDIRS; do
18136 case $CONFIG_FILES in
18137 *${i}/Makefile*)
18138 #echo "Adding MULTISUBDIR to $i/Makefile"
18139 sed -f vpsed $i/Makefile > tmp
18140 grep '^MULTISUBDIR =' Makefile >> tmp
18141 mv tmp $i/Makefile
18143 esac
18144 done
18145 rm vpsed
18149 esac
18150 done # for ac_tag
18153 as_fn_exit 0
18154 _ACEOF
18155 ac_clean_files=$ac_clean_files_save
18157 test $ac_write_fail = 0 ||
18158 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18161 # configure is writing to config.log, and then calls config.status.
18162 # config.status does its own redirection, appending to config.log.
18163 # Unfortunately, on DOS this fails, as config.log is still kept open
18164 # by configure, so config.status won't be able to write to it; its
18165 # output is simply discarded. So we exec the FD to /dev/null,
18166 # effectively closing config.log, so it can be properly (re)opened and
18167 # appended to by config.status. When coming back to configure, we
18168 # need to make the FD available again.
18169 if test "$no_create" != yes; then
18170 ac_cs_success=:
18171 ac_config_status_args=
18172 test "$silent" = yes &&
18173 ac_config_status_args="$ac_config_status_args --quiet"
18174 exec 5>/dev/null
18175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18176 exec 5>>config.log
18177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18178 # would make configure fail if this is the last instruction.
18179 $ac_cs_success || as_fn_exit $?
18181 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18183 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}