* tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
[official-gcc.git] / libgo / configure
bloba418a885310d337dd68b7570e3b9e81570860a81
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 OSCFLAGS
628 GO_SYSCALL_OS_ARCH_FILE
629 GO_SYSCALL_OS_FILE
630 GO_LIBCALL_OS_ARCH_FILE
631 GO_LIBCALL_OS_FILE
632 GOARCH
633 LIBGO_IS_X86_64_FALSE
634 LIBGO_IS_X86_64_TRUE
635 LIBGO_IS_SPARC64_FALSE
636 LIBGO_IS_SPARC64_TRUE
637 LIBGO_IS_SPARC_FALSE
638 LIBGO_IS_SPARC_TRUE
639 LIBGO_IS_S390X_FALSE
640 LIBGO_IS_S390X_TRUE
641 LIBGO_IS_S390_FALSE
642 LIBGO_IS_S390_TRUE
643 LIBGO_IS_PPC64LE_FALSE
644 LIBGO_IS_PPC64LE_TRUE
645 LIBGO_IS_PPC64_FALSE
646 LIBGO_IS_PPC64_TRUE
647 LIBGO_IS_PPC_FALSE
648 LIBGO_IS_PPC_TRUE
649 LIBGO_IS_MIPS64_FALSE
650 LIBGO_IS_MIPS64_TRUE
651 LIBGO_IS_MIPSO64_FALSE
652 LIBGO_IS_MIPSO64_TRUE
653 LIBGO_IS_MIPSN64_FALSE
654 LIBGO_IS_MIPSN64_TRUE
655 LIBGO_IS_MIPSN32_FALSE
656 LIBGO_IS_MIPSN32_TRUE
657 LIBGO_IS_MIPSO32_FALSE
658 LIBGO_IS_MIPSO32_TRUE
659 LIBGO_IS_MIPS_FALSE
660 LIBGO_IS_MIPS_TRUE
661 LIBGO_IS_M68K_FALSE
662 LIBGO_IS_M68K_TRUE
663 LIBGO_IS_ARM64_FALSE
664 LIBGO_IS_ARM64_TRUE
665 LIBGO_IS_ARM_FALSE
666 LIBGO_IS_ARM_TRUE
667 LIBGO_IS_ALPHA_FALSE
668 LIBGO_IS_ALPHA_TRUE
669 LIBGO_IS_386_FALSE
670 LIBGO_IS_386_TRUE
671 USE_DEJAGNU
672 GOOS
673 LIBGO_IS_SOLARIS_FALSE
674 LIBGO_IS_SOLARIS_TRUE
675 LIBGO_IS_RTEMS_FALSE
676 LIBGO_IS_RTEMS_TRUE
677 LIBGO_IS_DRAGONFLY_FALSE
678 LIBGO_IS_DRAGONFLY_TRUE
679 LIBGO_IS_OPENBSD_FALSE
680 LIBGO_IS_OPENBSD_TRUE
681 LIBGO_IS_NETBSD_FALSE
682 LIBGO_IS_NETBSD_TRUE
683 LIBGO_IS_LINUX_FALSE
684 LIBGO_IS_LINUX_TRUE
685 LIBGO_IS_IRIX_FALSE
686 LIBGO_IS_IRIX_TRUE
687 LIBGO_IS_FREEBSD_FALSE
688 LIBGO_IS_FREEBSD_TRUE
689 LIBGO_IS_DARWIN_FALSE
690 LIBGO_IS_DARWIN_TRUE
691 go_include
692 LIBATOMIC
693 LIBFFIINCS
694 LIBFFI
695 nover_glibgo_toolexeclibdir
696 glibgo_toolexeclibdir
697 glibgo_toolexecdir
698 WERROR
699 WARN_FLAGS
700 CC_FOR_BUILD
701 enable_static
702 enable_shared
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
710 OBJDUMP
711 LN_S
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LIBTOOL
716 OBJCOPY
717 RANLIB
719 FGREP
720 EGREP
721 GREP
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 GOCFLAGS
728 am__fastdepCC_FALSE
729 am__fastdepCC_TRUE
730 CCDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 am__quote
736 am__include
737 DEPDIR
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_os
769 target_vendor
770 target_cpu
771 target
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 multi_basedir
781 libtool_VERSION
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_multilib
824 enable_dependency_tracking
825 enable_maintainer_mode
826 with_gnu_ld
827 enable_shared
828 enable_static
829 with_pic
830 enable_fast_install
831 enable_libtool_lock
832 enable_werror
833 enable_version_specific_runtime_libs
834 with_libffi
835 with_libatomic
836 with_system_libunwind
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
842 CPPFLAGS'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
893 ac_prev=
894 ac_dashdash=
895 for ac_option
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
904 case $ac_option in
905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *) ac_optarg=yes ;;
907 esac
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
913 ac_dashdash=yes ;;
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
932 --config-cache | -C)
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information."
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1439 cat <<\_ACEOF
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450 _ACEOF
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of package-unused version-unused:";;
1456 esac
1457 cat <<\_ACEOF
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-multilib build many library versions (default)
1464 --disable-dependency-tracking speeds up one-time build
1465 --enable-dependency-tracking do not reject slow dependency extractors
1466 --enable-maintainer-mode enable make rules and dependencies not useful
1467 (and sometimes confusing) to the casual installer
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-werror turns on -Werror [default=yes]
1474 --enable-version-specific-runtime-libs
1475 Specify that runtime libraries should be installed
1476 in a compiler-specific directory
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --without-libffi don't use libffi
1485 --without-libatomic don't use libatomic
1486 --with-system-libunwind use installed libunwind
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 GOC Go compiler command
1497 GOCFLAGS Go compiler flags
1498 CPP C preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to the package provider.
1504 _ACEOF
1505 ac_status=$?
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 package-unused configure version-unused
1567 generated by GNU Autoconf 2.64
1569 Copyright (C) 2009 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 $as_test_x conftest$ac_exeext
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 return $ac_retval
1662 } # ac_fn_c_try_link
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683 else
1684 eval "$3=no"
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 } # ac_fn_c_check_header_compile
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } >/dev/null && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=1
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_cpp
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1772 } # ac_fn_c_try_run
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1802 #undef $2
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1819 main ()
1821 return $2 ();
1823 return 0;
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 } # ac_fn_c_check_func
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1845 # accordingly.
1846 ac_fn_c_check_header_mongrel ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 else
1859 # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_header_compiler=yes
1869 else
1870 ac_header_compiler=no
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884 ac_header_preproc=yes
1885 else
1886 ac_header_preproc=no
1888 rm -f conftest.err conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1892 # So? What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 yes:no: )
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 no:yes:* )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 esac
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=\$ac_header_compiler"
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 } # ac_fn_c_check_header_mongrel
1928 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1929 # -------------------------------------------
1930 # Tests whether TYPE exists after having included INCLUDES, setting cache
1931 # variable VAR accordingly.
1932 ac_fn_c_check_type ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=no"
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 main ()
1947 if (sizeof ($2))
1948 return 0;
1950 return 0;
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 main ()
1960 if (sizeof (($2)))
1961 return 0;
1963 return 0;
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1968 else
1969 eval "$3=yes"
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 } # ac_fn_c_check_type
1982 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1983 # --------------------------------------------
1984 # Tries to find the compile-time value of EXPR in a program that includes
1985 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1986 # computed
1987 ac_fn_c_compute_int ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if test "$cross_compiling" = yes; then
1991 # Depending upon the size, compute the lo and hi bounds.
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1996 main ()
1998 static int test_array [1 - 2 * !(($2) >= 0)];
1999 test_array [0] = 0
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_lo=0 ac_mid=0
2007 while :; do
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 test_array [0] = 0
2018 return 0;
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_hi=$ac_mid; break
2023 else
2024 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2025 if test $ac_lo -le $ac_mid; then
2026 ac_lo= ac_hi=
2027 break
2029 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 done
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static int test_array [1 - 2 * !(($2) < 0)];
2041 test_array [0] = 0
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_hi=-1 ac_mid=-1
2049 while :; do
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2057 test_array [0] = 0
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_lo=$ac_mid; break
2065 else
2066 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067 if test $ac_mid -le $ac_hi; then
2068 ac_lo= ac_hi=
2069 break
2071 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075 else
2076 ac_lo= ac_hi=
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 # Binary search between lo and hi bounds.
2082 while test "x$ac_lo" != "x$ac_hi"; do
2083 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 test_array [0] = 0
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=$ac_mid
2099 else
2100 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104 case $ac_lo in #((
2105 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2106 '') ac_retval=1 ;;
2107 esac
2108 else
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2112 static long int longval () { return $2; }
2113 static unsigned long int ulongval () { return $2; }
2114 #include <stdio.h>
2115 #include <stdlib.h>
2117 main ()
2120 FILE *f = fopen ("conftest.val", "w");
2121 if (! f)
2122 return 1;
2123 if (($2) < 0)
2125 long int i = longval ();
2126 if (i != ($2))
2127 return 1;
2128 fprintf (f, "%ld", i);
2130 else
2132 unsigned long int i = ulongval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%lu", i);
2137 /* Do not output a trailing newline, as this causes \r\n confusion
2138 on some platforms. */
2139 return ferror (f) || fclose (f) != 0;
2142 return 0;
2144 _ACEOF
2145 if ac_fn_c_try_run "$LINENO"; then :
2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147 else
2148 ac_retval=1
2150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151 conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 rm -f conftest.val
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 return $ac_retval
2158 } # ac_fn_c_compute_int
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2163 It was created by package-unused $as_me version-unused, which was
2164 generated by GNU Autoconf 2.64. Invocation command line was
2166 $ $0 $@
2168 _ACEOF
2169 exec 5>>config.log
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193 _ASUNAME
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2204 } >&5
2206 cat >&5 <<_ACEOF
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2213 _ACEOF
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2227 for ac_arg
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2256 as_fn_append ac_configure_args " '$ac_arg'"
2258 esac
2259 done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2272 echo
2274 cat <<\_ASBOX
2275 ## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##
2278 _ASBOX
2279 echo
2280 # The following way of writing the cache mishandles newlines in values,
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in #(
2285 *${as_nl}*)
2286 case $ac_var in #(
2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289 esac
2290 case $ac_var in #(
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) { eval $ac_var=; unset $ac_var;} ;;
2294 esac ;;
2295 esac
2296 done
2297 (set) 2>&1 |
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2300 sed -n \
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303 ;; #(
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 esac |
2308 sort
2310 echo
2312 cat <<\_ASBOX
2313 ## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##
2316 _ASBOX
2317 echo
2318 for ac_var in $ac_subst_vars
2320 eval ac_val=\$$ac_var
2321 case $ac_val in
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 esac
2324 $as_echo "$ac_var='\''$ac_val'\''"
2325 done | sort
2326 echo
2328 if test -n "$ac_subst_files"; then
2329 cat <<\_ASBOX
2330 ## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##
2333 _ASBOX
2334 echo
2335 for ac_var in $ac_subst_files
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 $as_echo "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2346 if test -s confdefs.h; then
2347 cat <<\_ASBOX
2348 ## ----------- ##
2349 ## confdefs.h. ##
2350 ## ----------- ##
2351 _ASBOX
2352 echo
2353 cat confdefs.h
2354 echo
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2359 } >&5
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 exit $exit_status
2364 for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 done
2367 ac_signal=0
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2372 $as_echo "/* confdefs.h */" > confdefs.h
2374 # Predefined preprocessor variables.
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2398 _ACEOF
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2403 ac_site_file1=NONE
2404 ac_site_file2=NONE
2405 if test -n "$CONFIG_SITE"; then
2406 ac_site_file1=$CONFIG_SITE
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file"
2423 done
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special
2427 # files actually), so we avoid doing that.
2428 if test -f "$cache_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2442 # Check that the precious variables saved in the cache have kept the same
2443 # value.
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489 esac
2491 done
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 ac_config_headers="$ac_config_headers config.h"
2517 libtool_VERSION=9:0:0
2520 # Default to --enable-multilib
2521 # Check whether --enable-multilib was given.
2522 if test "${enable_multilib+set}" = set; then :
2523 enableval=$enable_multilib; case "$enableval" in
2524 yes) multilib=yes ;;
2525 no) multilib=no ;;
2526 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2527 esac
2528 else
2529 multilib=yes
2533 # We may get other options which we leave undocumented:
2534 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2535 # See config-ml.in if you want the gory details.
2537 if test "$srcdir" = "."; then
2538 if test "$with_target_subdir" != "."; then
2539 multi_basedir="$srcdir/$with_multisrctop../.."
2540 else
2541 multi_basedir="$srcdir/$with_multisrctop.."
2543 else
2544 multi_basedir="$srcdir/.."
2548 # Even if the default multilib is not a cross compilation,
2549 # it may be that some of the other multilibs are.
2550 if test $cross_compiling = no && test $multilib = yes \
2551 && test "x${with_multisubdir}" != x ; then
2552 cross_compiling=maybe
2555 ac_config_commands="$ac_config_commands default-1"
2558 ac_aux_dir=
2559 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2560 for ac_t in install-sh install.sh shtool; do
2561 if test -f "$ac_dir/$ac_t"; then
2562 ac_aux_dir=$ac_dir
2563 ac_install_sh="$ac_aux_dir/$ac_t -c"
2564 break 2
2566 done
2567 done
2568 if test -z "$ac_aux_dir"; then
2569 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2572 # These three variables are undocumented and unsupported,
2573 # and are intended to be withdrawn in a future Autoconf release.
2574 # They can cause serious problems if a builder's source tree is in a directory
2575 # whose full name contains unusual characters.
2576 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2577 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2578 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2581 # Make sure we can run config.sub.
2582 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2583 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2586 $as_echo_n "checking build system type... " >&6; }
2587 if test "${ac_cv_build+set}" = set; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 ac_build_alias=$build_alias
2591 test "x$ac_build_alias" = x &&
2592 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2593 test "x$ac_build_alias" = x &&
2594 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2600 $as_echo "$ac_cv_build" >&6; }
2601 case $ac_cv_build in
2602 *-*-*) ;;
2603 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2604 esac
2605 build=$ac_cv_build
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_build
2608 shift
2609 build_cpu=$1
2610 build_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 build_os=$*
2615 IFS=$ac_save_IFS
2616 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2620 $as_echo_n "checking host system type... " >&6; }
2621 if test "${ac_cv_host+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test "x$host_alias" = x; then
2625 ac_cv_host=$ac_cv_build
2626 else
2627 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2628 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2633 $as_echo "$ac_cv_host" >&6; }
2634 case $ac_cv_host in
2635 *-*-*) ;;
2636 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2637 esac
2638 host=$ac_cv_host
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_host
2641 shift
2642 host_cpu=$1
2643 host_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 host_os=$*
2648 IFS=$ac_save_IFS
2649 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2653 $as_echo_n "checking target system type... " >&6; }
2654 if test "${ac_cv_target+set}" = set; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test "x$target_alias" = x; then
2658 ac_cv_target=$ac_cv_host
2659 else
2660 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2661 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2666 $as_echo "$ac_cv_target" >&6; }
2667 case $ac_cv_target in
2668 *-*-*) ;;
2669 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2670 esac
2671 target=$ac_cv_target
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_target
2674 shift
2675 target_cpu=$1
2676 target_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 target_os=$*
2681 IFS=$ac_save_IFS
2682 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2685 # The aliases save the names the user supplied, while $host etc.
2686 # will get canonicalized.
2687 test -n "$target_alias" &&
2688 test "$program_prefix$program_suffix$program_transform_name" = \
2689 NONENONEs,x,x, &&
2690 program_prefix=${target_alias}-
2692 target_alias=${target_alias-$host_alias}
2694 am__api_version='1.11'
2696 # Find a good install program. We prefer a C program (faster),
2697 # so one script is as good as another. But avoid the broken or
2698 # incompatible versions:
2699 # SysV /etc/install, /usr/sbin/install
2700 # SunOS /usr/etc/install
2701 # IRIX /sbin/install
2702 # AIX /bin/install
2703 # AmigaOS /C/install, which installs bootblocks on floppy discs
2704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2707 # OS/2's system install, which has a completely different semantic
2708 # ./install, which can be erroneously created by make from ./install.sh.
2709 # Reject install programs that cannot install multiple files.
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2711 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2712 if test -z "$INSTALL"; then
2713 if test "${ac_cv_path_install+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 # Account for people who put trailing slashes in PATH elements.
2722 case $as_dir/ in #((
2723 ./ | .// | /[cC]/* | \
2724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2725 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2726 /usr/ucb/* ) ;;
2728 # OSF1 and SCO ODT 3.0 have their own names for install.
2729 # Don't use installbsd from OSF since it installs stuff as root
2730 # by default.
2731 for ac_prog in ginstall scoinst install; do
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2734 if test $ac_prog = install &&
2735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736 # AIX install. It has an incompatible calling convention.
2738 elif test $ac_prog = install &&
2739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2740 # program-specific install script used by HP pwplus--don't use.
2742 else
2743 rm -rf conftest.one conftest.two conftest.dir
2744 echo one > conftest.one
2745 echo two > conftest.two
2746 mkdir conftest.dir
2747 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2748 test -s conftest.one && test -s conftest.two &&
2749 test -s conftest.dir/conftest.one &&
2750 test -s conftest.dir/conftest.two
2751 then
2752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2753 break 3
2757 done
2758 done
2760 esac
2762 done
2763 IFS=$as_save_IFS
2765 rm -rf conftest.one conftest.two conftest.dir
2768 if test "${ac_cv_path_install+set}" = set; then
2769 INSTALL=$ac_cv_path_install
2770 else
2771 # As a last resort, use the slow shell script. Don't cache a
2772 # value for INSTALL within a source directory, because that will
2773 # break other packages using the cache if that directory is
2774 # removed, or if the value is a relative name.
2775 INSTALL=$ac_install_sh
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2779 $as_echo "$INSTALL" >&6; }
2781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2782 # It thinks the first close brace ends the variable substitution.
2783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2790 $as_echo_n "checking whether build environment is sane... " >&6; }
2791 # Just in case
2792 sleep 1
2793 echo timestamp > conftest.file
2794 # Reject unsafe characters in $srcdir or the absolute working directory
2795 # name. Accept space and tab only in the latter.
2796 am_lf='
2798 case `pwd` in
2799 *[\\\"\#\$\&\'\`$am_lf]*)
2800 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2801 esac
2802 case $srcdir in
2803 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2804 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2805 esac
2807 # Do `set' in a subshell so we don't clobber the current shell's
2808 # arguments. Must try -L first in case configure is actually a
2809 # symlink; some systems play weird games with the mod time of symlinks
2810 # (eg FreeBSD returns the mod time of the symlink's containing
2811 # directory).
2812 if (
2813 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2814 if test "$*" = "X"; then
2815 # -L didn't work.
2816 set X `ls -t "$srcdir/configure" conftest.file`
2818 rm -f conftest.file
2819 if test "$*" != "X $srcdir/configure conftest.file" \
2820 && test "$*" != "X conftest.file $srcdir/configure"; then
2822 # If neither matched, then we have a broken ls. This can happen
2823 # if, for instance, CONFIG_SHELL is bash and it inherits a
2824 # broken ls alias from the environment. This has actually
2825 # happened. Such a system could not be considered "sane".
2826 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2827 alias in your environment" "$LINENO" 5
2830 test "$2" = conftest.file
2832 then
2833 # Ok.
2835 else
2836 as_fn_error "newly created file is older than distributed files!
2837 Check your system clock" "$LINENO" 5
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2840 $as_echo "yes" >&6; }
2841 test "$program_prefix" != NONE &&
2842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2843 # Use a double $ so make ignores it.
2844 test "$program_suffix" != NONE &&
2845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2846 # Double any \ or $.
2847 # By default was `s,x,x', remove it if useless.
2848 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2849 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2851 # expand $ac_aux_dir to an absolute path
2852 am_aux_dir=`cd $ac_aux_dir && pwd`
2854 if test x"${MISSING+set}" != xset; then
2855 case $am_aux_dir in
2856 *\ * | *\ *)
2857 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2859 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2860 esac
2862 # Use eval to expand $SHELL
2863 if eval "$MISSING --run true"; then
2864 am_missing_run="$MISSING --run "
2865 else
2866 am_missing_run=
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2868 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2871 if test x"${install_sh}" != xset; then
2872 case $am_aux_dir in
2873 *\ * | *\ *)
2874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2876 install_sh="\${SHELL} $am_aux_dir/install-sh"
2877 esac
2880 # Installed binaries are usually stripped using `strip' when the user
2881 # run `make install-strip'. However `strip' might not be the right
2882 # tool to use in cross-compilation environments, therefore Automake
2883 # will honor the `STRIP' environment variable to overrule this program.
2884 if test "$cross_compiling" != no; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}strip; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_STRIP+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$STRIP"; then
2894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2907 done
2908 done
2909 IFS=$as_save_IFS
2913 STRIP=$ac_cv_prog_STRIP
2914 if test -n "$STRIP"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2916 $as_echo "$STRIP" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2924 if test -z "$ac_cv_prog_STRIP"; then
2925 ac_ct_STRIP=$STRIP
2926 # Extract the first word of "strip", so it can be a program name with args.
2927 set dummy strip; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$ac_ct_STRIP"; then
2934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_STRIP="strip"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2954 if test -n "$ac_ct_STRIP"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2956 $as_echo "$ac_ct_STRIP" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2962 if test "x$ac_ct_STRIP" = x; then
2963 STRIP=":"
2964 else
2965 case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 STRIP=$ac_ct_STRIP
2973 else
2974 STRIP="$ac_cv_prog_STRIP"
2978 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2981 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2982 if test -z "$MKDIR_P"; then
2983 if test "${ac_cv_path_mkdir+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_prog in mkdir gmkdir; do
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2995 'mkdir (GNU coreutils) '* | \
2996 'mkdir (coreutils) '* | \
2997 'mkdir (fileutils) '4.1*)
2998 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2999 break 3;;
3000 esac
3001 done
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 if test "${ac_cv_path_mkdir+set}" = set; then
3009 MKDIR_P="$ac_cv_path_mkdir -p"
3010 else
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for MKDIR_P within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 test -d ./--version && rmdir ./--version
3016 MKDIR_P="$ac_install_sh -d"
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3020 $as_echo "$MKDIR_P" >&6; }
3022 mkdir_p="$MKDIR_P"
3023 case $mkdir_p in
3024 [\\/$]* | ?:[\\/]*) ;;
3025 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3026 esac
3028 for ac_prog in gawk mawk nawk awk
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_AWK+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$AWK"; then
3038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_AWK="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 AWK=$ac_cv_prog_AWK
3058 if test -n "$AWK"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060 $as_echo "$AWK" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$AWK" && break
3068 done
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072 set x ${MAKE-make}
3073 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 cat >conftest.make <<\_ACEOF
3078 SHELL = /bin/sh
3079 all:
3080 @echo '@@@%%%=$(MAKE)=@@@%%%'
3081 _ACEOF
3082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3083 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084 *@@@%%%=?*=@@@%%%*)
3085 eval ac_cv_prog_make_${ac_make}_set=yes;;
3087 eval ac_cv_prog_make_${ac_make}_set=no;;
3088 esac
3089 rm -f conftest.make
3091 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3094 SET_MAKE=
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 SET_MAKE="MAKE=${MAKE-make}"
3101 rm -rf .tst 2>/dev/null
3102 mkdir .tst 2>/dev/null
3103 if test -d .tst; then
3104 am__leading_dot=.
3105 else
3106 am__leading_dot=_
3108 rmdir .tst 2>/dev/null
3110 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3111 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3112 # is not polluted with repeated "-I."
3113 am__isrc=' -I$(srcdir)'
3114 # test to see if srcdir already configured
3115 if test -f $srcdir/config.status; then
3116 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3120 # test whether we have cygpath
3121 if test -z "$CYGPATH_W"; then
3122 if (cygpath --version) >/dev/null 2>/dev/null; then
3123 CYGPATH_W='cygpath -w'
3124 else
3125 CYGPATH_W=echo
3130 # Define the identity of the package.
3131 PACKAGE='libgo'
3132 VERSION='version-unused'
3135 # Some tools Automake needs.
3137 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3140 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3143 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3146 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3149 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3151 # We need awk for the "check" target. The system "awk" is bad on
3152 # some platforms.
3153 # Always define AMTAR for backward compatibility. Yes, it's still used
3154 # in the wild :-( We should find a proper way to deprecate it ...
3155 AMTAR='$${TAR-tar}'
3157 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3197 IFS=$as_save_IFS
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3212 if test -z "$ac_cv_prog_CC"; then
3213 ac_ct_CC=$CC
3214 # Extract the first word of "gcc", so it can be a program name with args.
3215 set dummy gcc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$ac_ct_CC"; then
3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_ac_ct_CC="gcc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 $as_echo "$ac_ct_CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3250 if test "x$ac_ct_CC" = x; then
3251 CC=""
3252 else
3253 case $cross_compiling:$ac_tool_warned in
3254 yes:)
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259 CC=$ac_ct_CC
3261 else
3262 CC="$ac_cv_prog_CC"
3265 if test -z "$CC"; then
3266 if test -n "$ac_tool_prefix"; then
3267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3268 set dummy ${ac_tool_prefix}cc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if test "${ac_cv_prog_CC+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$CC"; then
3275 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_CC="${ac_tool_prefix}cc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3288 done
3289 done
3290 IFS=$as_save_IFS
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3306 if test -z "$CC"; then
3307 # Extract the first word of "cc", so it can be a program name with args.
3308 set dummy cc; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if test "${ac_cv_prog_CC+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 else
3317 ac_prog_rejected=no
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3326 ac_prog_rejected=yes
3327 continue
3329 ac_cv_prog_CC="cc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3335 IFS=$as_save_IFS
3337 if test $ac_prog_rejected = yes; then
3338 # We found a bogon in the path, so make sure we never use it.
3339 set dummy $ac_cv_prog_CC
3340 shift
3341 if test $# != 0; then
3342 # We chose a different compiler from the bogus one.
3343 # However, it has the same basename, so the bogon will be chosen
3344 # first if we set CC to just the basename; use the full file name.
3345 shift
3346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3351 CC=$ac_cv_prog_CC
3352 if test -n "$CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354 $as_echo "$CC" >&6; }
3355 else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3362 if test -z "$CC"; then
3363 if test -n "$ac_tool_prefix"; then
3364 for ac_prog in cl.exe
3366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_CC+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3389 IFS=$as_save_IFS
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3403 test -n "$CC" && break
3404 done
3406 if test -z "$CC"; then
3407 ac_ct_CC=$CC
3408 for ac_prog in cl.exe
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$ac_ct_CC"; then
3418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_prog_ac_ct_CC="$ac_prog"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3431 done
3432 done
3433 IFS=$as_save_IFS
3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438 if test -n "$ac_ct_CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440 $as_echo "$ac_ct_CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3447 test -n "$ac_ct_CC" && break
3448 done
3450 if test "x$ac_ct_CC" = x; then
3451 CC=""
3452 else
3453 case $cross_compiling:$ac_tool_warned in
3454 yes:)
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457 ac_tool_warned=yes ;;
3458 esac
3459 CC=$ac_ct_CC
3466 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error "no acceptable C compiler found in \$PATH
3469 See \`config.log' for more details." "$LINENO" 5; }
3471 # Provide some information about the compiler.
3472 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3473 set X $ac_compile
3474 ac_compiler=$2
3475 for ac_option in --version -v -V -qversion; do
3476 { { ac_try="$ac_compiler $ac_option >&5"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3484 ac_status=$?
3485 if test -s conftest.err; then
3486 sed '10a\
3487 ... rest of stderr output deleted ...
3488 10q' conftest.err >conftest.er1
3489 cat conftest.er1 >&5
3490 rm -f conftest.er1 conftest.err
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }
3494 done
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3500 main ()
3504 return 0;
3506 _ACEOF
3507 ac_clean_files_save=$ac_clean_files
3508 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3509 # Try to create an executable without -o first, disregard a.out.
3510 # It will help us diagnose broken compilers, and finding out an intuition
3511 # of exeext.
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3513 $as_echo_n "checking for C compiler default output file name... " >&6; }
3514 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516 # The possible output files:
3517 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519 ac_rmfiles=
3520 for ac_file in $ac_files
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3525 esac
3526 done
3527 rm -f $ac_rmfiles
3529 if { { ac_try="$ac_link_default"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_link_default") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; then :
3540 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3541 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3542 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3543 # so that the user can short-circuit this test for compilers unknown to
3544 # Autoconf.
3545 for ac_file in $ac_files ''
3547 test -f "$ac_file" || continue
3548 case $ac_file in
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551 [ab].out )
3552 # We found the default executable, but exeext='' is most
3553 # certainly right.
3554 break;;
3555 *.* )
3556 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3557 then :; else
3558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 # We set ac_cv_exeext here because the later test for it is not
3561 # safe: cross compilers may not add the suffix if given an `-o'
3562 # argument, so we may need to know it at that point already.
3563 # Even if this section looks crufty: it has the advantage of
3564 # actually working.
3565 break;;
3567 break;;
3568 esac
3569 done
3570 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572 else
3573 ac_file=''
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3576 $as_echo "$ac_file" >&6; }
3577 if test -z "$ac_file"; then :
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 { as_fn_set_status 77
3584 as_fn_error "C compiler cannot create executables
3585 See \`config.log' for more details." "$LINENO" 5; }; }
3587 ac_exeext=$ac_cv_exeext
3589 # Check that the compiler produces executables we can run. If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # If not cross compiling, check that we can run a simple program.
3594 if test "$cross_compiling" != yes; then
3595 if { ac_try='./$ac_file'
3596 { { case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; }; then
3606 cross_compiling=no
3607 else
3608 if test "$cross_compiling" = maybe; then
3609 cross_compiling=yes
3610 else
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error "cannot run C compiled programs.
3614 If you meant to cross compile, use \`--host'.
3615 See \`config.log' for more details." "$LINENO" 5; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3620 $as_echo "yes" >&6; }
3622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3623 ac_clean_files=$ac_clean_files_save
3624 # Check that the compiler produces executables we can run. If not, either
3625 # the compiler is broken, or we cross compile.
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3627 $as_echo_n "checking whether we are cross compiling... " >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629 $as_echo "$cross_compiling" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3632 $as_echo_n "checking for suffix of executables... " >&6; }
3633 if { { ac_try="$ac_link"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; then :
3644 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3645 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3646 # work properly (i.e., refer to `conftest.exe'), while it won't with
3647 # `rm'.
3648 for ac_file in conftest.exe conftest conftest.*; do
3649 test -f "$ac_file" || continue
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3653 break;;
3654 * ) break;;
3655 esac
3656 done
3657 else
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error "cannot compute suffix of executables: cannot compile and link
3661 See \`config.log' for more details." "$LINENO" 5; }
3663 rm -f conftest$ac_cv_exeext
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3665 $as_echo "$ac_cv_exeext" >&6; }
3667 rm -f conftest.$ac_ext
3668 EXEEXT=$ac_cv_exeext
3669 ac_exeext=$EXEEXT
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if test "${ac_cv_objext+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3679 main ()
3683 return 0;
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3700 case $ac_file in
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 break;;
3704 esac
3705 done
3706 else
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details." "$LINENO" 5; }
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3732 #ifndef __GNUC__
3733 choke me
3734 #endif
3737 return 0;
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_compiler_gnu=yes
3742 else
3743 ac_compiler_gnu=no
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752 GCC=yes
3753 else
3754 GCC=
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if test "${ac_cv_prog_cc_g+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_save_c_werror_flag=$ac_c_werror_flag
3764 ac_c_werror_flag=yes
3765 ac_cv_prog_cc_g=no
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3771 main ()
3775 return 0;
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 else
3781 CFLAGS=""
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 main ()
3790 return 0;
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3795 else
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3797 CFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3802 main ()
3806 return 0;
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_g=yes
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822 CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824 if test "$GCC" = yes; then
3825 CFLAGS="-g -O2"
3826 else
3827 CFLAGS="-g"
3829 else
3830 if test "$GCC" = yes; then
3831 CFLAGS="-O2"
3832 else
3833 CFLAGS=
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_cv_prog_cc_c89=no
3842 ac_save_CC=$CC
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853 char **p;
3854 int i;
3856 return p[i];
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3860 char *s;
3861 va_list v;
3862 va_start (v,p);
3863 s = g (p, va_arg (v,int));
3864 va_end (v);
3865 return s;
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3889 main ()
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 return 0;
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 CC="$ac_save_CC $ac_arg"
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_c89=$ac_arg
3903 rm -f core conftest.err conftest.$ac_objext
3904 test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 done
3906 rm -f conftest.$ac_ext
3907 CC=$ac_save_CC
3910 # AC_CACHE_VAL
3911 case "x$ac_cv_prog_cc_c89" in
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3915 xno)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3919 CC="$CC $ac_cv_prog_cc_c89"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 esac
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 DEPDIR="${am__leading_dot}deps"
3934 ac_config_commands="$ac_config_commands depfiles"
3937 am_make=${MAKE-make}
3938 cat > confinc << 'END'
3939 am__doit:
3940 @echo this is the am__doit target
3941 .PHONY: am__doit
3943 # If we don't find an include directive, just comment out the code.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3946 am__include="#"
3947 am__quote=
3948 _am_result=none
3949 # First try GNU make style include.
3950 echo "include confinc" > confmf
3951 # Ignore all kinds of additional output from `make'.
3952 case `$am_make -s -f confmf 2> /dev/null` in #(
3953 *the\ am__doit\ target*)
3954 am__include=include
3955 am__quote=
3956 _am_result=GNU
3958 esac
3959 # Now try BSD make style include.
3960 if test "$am__include" = "#"; then
3961 echo '.include "confinc"' > confmf
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964 am__include=.include
3965 am__quote="\""
3966 _am_result=BSD
3968 esac
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3973 $as_echo "$_am_result" >&6; }
3974 rm -f confinc confmf
3976 # Check whether --enable-dependency-tracking was given.
3977 if test "${enable_dependency_tracking+set}" = set; then :
3978 enableval=$enable_dependency_tracking;
3981 if test "x$enable_dependency_tracking" != xno; then
3982 am_depcomp="$ac_aux_dir/depcomp"
3983 AMDEPBACKSLASH='\'
3984 am__nodep='_no'
3986 if test "x$enable_dependency_tracking" != xno; then
3987 AMDEP_TRUE=
3988 AMDEP_FALSE='#'
3989 else
3990 AMDEP_TRUE='#'
3991 AMDEP_FALSE=
3996 depcc="$CC" am_compiler_list=
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named `D' -- because `-MD' means `put the output
4008 # in D'.
4009 rm -rf conftest.dir
4010 mkdir conftest.dir
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4014 cd conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4020 # directory.
4021 mkdir sub
4023 am_cv_CC_dependencies_compiler_type=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4027 am__universal=false
4028 case " $depcc " in #(
4029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030 esac
4032 for depmode in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4040 : > sub/conftest.c
4041 for i in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044 # Solaris 8's {/usr,}/bin/sh.
4045 touch sub/conftst$i.h
4046 done
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle `-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs
4053 am__obj=sub/conftest.${OBJEXT-o}
4054 am__minus_obj="-o $am__obj"
4055 case $depmode in
4056 gcc)
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false || continue
4060 nosideeffect)
4061 # after this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested
4063 if test "x$enable_dependency_tracking" = xyes; then
4064 continue
4065 else
4066 break
4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4070 # This compiler won't grok `-c -o', but also, the minuso test has
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj=conftest.${OBJEXT-o}
4074 am__minus_obj=
4076 none) break ;;
4077 esac
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=$am__obj \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type=$depmode
4097 break
4100 done
4102 cd ..
4103 rm -rf conftest.dir
4104 else
4105 am_cv_CC_dependencies_compiler_type=none
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_TRUE=
4117 am__fastdepCC_FALSE='#'
4118 else
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4124 ac_ext=go
4125 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4126 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compile_gnu=yes
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_GOC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$GOC"; then
4137 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4152 IFS=$as_save_IFS
4156 GOC=$ac_cv_prog_GOC
4157 if test -n "$GOC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4159 $as_echo "$GOC" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4167 if test -z "$ac_cv_prog_GOC"; then
4168 ac_ct_GOC=$GOC
4169 # Extract the first word of "gccgo", so it can be a program name with args.
4170 set dummy gccgo; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$ac_ct_GOC"; then
4177 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_ac_ct_GOC="gccgo"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4197 if test -n "$ac_ct_GOC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4199 $as_echo "$ac_ct_GOC" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4205 if test "x$ac_ct_GOC" = x; then
4206 GOC=""
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214 GOC=$ac_ct_GOC
4216 else
4217 GOC="$ac_cv_prog_GOC"
4220 if test -z "$GOC"; then
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if test "${ac_cv_prog_GOC+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$GOC"; then
4230 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4245 IFS=$as_save_IFS
4249 GOC=$ac_cv_prog_GOC
4250 if test -n "$GOC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4252 $as_echo "$GOC" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4261 if test -z "$GOC"; then
4262 # Extract the first word of "gccgo", so it can be a program name with args.
4263 set dummy gccgo; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_GOC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$GOC"; then
4270 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4271 else
4272 ac_prog_rejected=no
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4281 ac_prog_rejected=yes
4282 continue
4284 ac_cv_prog_GOC="gccgo"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4292 if test $ac_prog_rejected = yes; then
4293 # We found a bogon in the path, so make sure we never use it.
4294 set dummy $ac_cv_prog_GOC
4295 shift
4296 if test $# != 0; then
4297 # We chose a different compiler from the bogus one.
4298 # However, it has the same basename, so the bogon will be chosen
4299 # first if we set GOC to just the basename; use the full file name.
4300 shift
4301 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4306 GOC=$ac_cv_prog_GOC
4307 if test -n "$GOC"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4309 $as_echo "$GOC" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4319 # Provide some information about the compiler.
4320 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4321 set X $ac_compile
4322 ac_compiler=$2
4323 { { ac_try="$ac_compiler --version >&5"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_compiler --version >&5") 2>conftest.err
4331 ac_status=$?
4332 if test -s conftest.err; then
4333 sed '10a\
4334 ... rest of stderr output deleted ...
4335 10q' conftest.err >conftest.er1
4336 cat conftest.er1 >&5
4337 rm -f conftest.er1 conftest.err
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }
4341 GOCFLAGS="-g -O2"
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4354 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4355 # Check whether --enable-maintainer-mode was given.
4356 if test "${enable_maintainer_mode+set}" = set; then :
4357 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4358 else
4359 USE_MAINTAINER_MODE=no
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4363 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4364 if test $USE_MAINTAINER_MODE = yes; then
4365 MAINTAINER_MODE_TRUE=
4366 MAINTAINER_MODE_FALSE='#'
4367 else
4368 MAINTAINER_MODE_TRUE='#'
4369 MAINTAINER_MODE_FALSE=
4372 MAINT=$MAINTAINER_MODE_TRUE
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4377 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4378 if test "${ac_cv_path_SED+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4382 for ac_i in 1 2 3 4 5 6 7; do
4383 ac_script="$ac_script$as_nl$ac_script"
4384 done
4385 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4386 { ac_script=; unset ac_script;}
4387 if test -z "$SED"; then
4388 ac_path_SED_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in sed gsed; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4399 # Check for GNU ac_path_SED and select it if it is found.
4400 # Check for GNU $ac_path_SED
4401 case `"$ac_path_SED" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo '' >> "conftest.nl"
4413 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_SED_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_SED="$ac_path_SED"
4419 ac_path_SED_max=$ac_count
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4427 $ac_path_SED_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_SED"; then
4433 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4435 else
4436 ac_cv_path_SED=$SED
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4441 $as_echo "$ac_cv_path_SED" >&6; }
4442 SED="$ac_cv_path_SED"
4443 rm -f conftest.sed
4445 test -z "$SED" && SED=sed
4446 Xsed="$SED -e 1s/^X//"
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4460 if test "${ac_cv_path_GREP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -z "$GREP"; then
4464 ac_path_GREP_found=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_prog in grep ggrep; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4475 # Check for GNU ac_path_GREP and select it if it is found.
4476 # Check for GNU $ac_path_GREP
4477 case `"$ac_path_GREP" --version 2>&1` in
4478 *GNU*)
4479 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4481 ac_count=0
4482 $as_echo_n 0123456789 >"conftest.in"
4483 while :
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 $as_echo 'GREP' >> "conftest.nl"
4489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 as_fn_arith $ac_count + 1 && ac_count=$as_val
4492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_GREP="$ac_path_GREP"
4495 ac_path_GREP_max=$ac_count
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4499 done
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501 esac
4503 $ac_path_GREP_found && break 3
4504 done
4505 done
4506 done
4507 IFS=$as_save_IFS
4508 if test -z "$ac_cv_path_GREP"; then
4509 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511 else
4512 ac_cv_path_GREP=$GREP
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4517 $as_echo "$ac_cv_path_GREP" >&6; }
4518 GREP="$ac_cv_path_GREP"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4522 $as_echo_n "checking for egrep... " >&6; }
4523 if test "${ac_cv_path_EGREP+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4527 then ac_cv_path_EGREP="$GREP -E"
4528 else
4529 if test -z "$EGREP"; then
4530 ac_path_EGREP_found=false
4531 # Loop through the user's path and test for each of PROGNAME-LIST
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_prog in egrep; do
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4541 # Check for GNU ac_path_EGREP and select it if it is found.
4542 # Check for GNU $ac_path_EGREP
4543 case `"$ac_path_EGREP" --version 2>&1` in
4544 *GNU*)
4545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4547 ac_count=0
4548 $as_echo_n 0123456789 >"conftest.in"
4549 while :
4551 cat "conftest.in" "conftest.in" >"conftest.tmp"
4552 mv "conftest.tmp" "conftest.in"
4553 cp "conftest.in" "conftest.nl"
4554 $as_echo 'EGREP' >> "conftest.nl"
4555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557 as_fn_arith $ac_count + 1 && ac_count=$as_val
4558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4559 # Best one so far, save it but keep looking for a better one
4560 ac_cv_path_EGREP="$ac_path_EGREP"
4561 ac_path_EGREP_max=$ac_count
4563 # 10*(2^10) chars as input seems more than enough
4564 test $ac_count -gt 10 && break
4565 done
4566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4567 esac
4569 $ac_path_EGREP_found && break 3
4570 done
4571 done
4572 done
4573 IFS=$as_save_IFS
4574 if test -z "$ac_cv_path_EGREP"; then
4575 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577 else
4578 ac_cv_path_EGREP=$EGREP
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4584 $as_echo "$ac_cv_path_EGREP" >&6; }
4585 EGREP="$ac_cv_path_EGREP"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4589 $as_echo_n "checking for fgrep... " >&6; }
4590 if test "${ac_cv_path_FGREP+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4594 then ac_cv_path_FGREP="$GREP -F"
4595 else
4596 if test -z "$FGREP"; then
4597 ac_path_FGREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in fgrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4608 # Check for GNU ac_path_FGREP and select it if it is found.
4609 # Check for GNU $ac_path_FGREP
4610 case `"$ac_path_FGREP" --version 2>&1` in
4611 *GNU*)
4612 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4614 ac_count=0
4615 $as_echo_n 0123456789 >"conftest.in"
4616 while :
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'FGREP' >> "conftest.nl"
4622 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_FGREP="$ac_path_FGREP"
4628 ac_path_FGREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4632 done
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4636 $ac_path_FGREP_found && break 3
4637 done
4638 done
4639 done
4640 IFS=$as_save_IFS
4641 if test -z "$ac_cv_path_FGREP"; then
4642 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 else
4645 ac_cv_path_FGREP=$FGREP
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4651 $as_echo "$ac_cv_path_FGREP" >&6; }
4652 FGREP="$ac_cv_path_FGREP"
4655 test -z "$GREP" && GREP=grep
4673 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4674 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4675 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4678 $as_echo_n "checking how to print strings... " >&6; }
4679 # Test print first, because it will be a builtin if present.
4680 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4681 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4682 ECHO='print -r --'
4683 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4684 ECHO='printf %s\n'
4685 else
4686 # Use this function as a fallback that always works.
4687 func_fallback_echo ()
4689 eval 'cat <<_LTECHO_EOF
4691 _LTECHO_EOF'
4693 ECHO='func_fallback_echo'
4696 # func_echo_all arg...
4697 # Invoke $ECHO with all args, space-separated.
4698 func_echo_all ()
4700 $ECHO ""
4703 case "$ECHO" in
4704 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4705 $as_echo "printf" >&6; } ;;
4706 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4707 $as_echo "print -r" >&6; } ;;
4708 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4709 $as_echo "cat" >&6; } ;;
4710 esac
4727 # Check whether --with-gnu-ld was given.
4728 if test "${with_gnu_ld+set}" = set; then :
4729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4730 else
4731 with_gnu_ld=no
4734 ac_prog=ld
4735 if test "$GCC" = yes; then
4736 # Check if gcc -print-prog-name=ld gives a path.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4738 $as_echo_n "checking for ld used by $CC... " >&6; }
4739 case $host in
4740 *-*-mingw*)
4741 # gcc leaves a trailing carriage return which upsets mingw
4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4745 esac
4746 case $ac_prog in
4747 # Accept absolute paths.
4748 [\\/]* | ?:[\\/]*)
4749 re_direlt='/[^/][^/]*/\.\./'
4750 # Canonicalize the pathname of ld
4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4754 done
4755 test -z "$LD" && LD="$ac_prog"
4758 # If it fails, then pretend we aren't using GCC.
4759 ac_prog=ld
4762 # If it is relative, then search for the first ld in PATH.
4763 with_gnu_ld=unknown
4765 esac
4766 elif test "$with_gnu_ld" = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4768 $as_echo_n "checking for GNU ld... " >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4771 $as_echo_n "checking for non-GNU ld... " >&6; }
4773 if test "${lt_cv_path_LD+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -z "$LD"; then
4777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4778 for ac_dir in $PATH; do
4779 IFS="$lt_save_ifs"
4780 test -z "$ac_dir" && ac_dir=.
4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4782 lt_cv_path_LD="$ac_dir/$ac_prog"
4783 # Check to see if the program is GNU ld. I'd rather use --version,
4784 # but apparently some variants of GNU ld only accept -v.
4785 # Break only if it was the GNU/non-GNU ld that we prefer.
4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4787 *GNU* | *'with BFD'*)
4788 test "$with_gnu_ld" != no && break
4791 test "$with_gnu_ld" != yes && break
4793 esac
4795 done
4796 IFS="$lt_save_ifs"
4797 else
4798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4802 LD="$lt_cv_path_LD"
4803 if test -n "$LD"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4805 $as_echo "$LD" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4810 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4813 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4817 case `$LD -v 2>&1 </dev/null` in
4818 *GNU* | *'with BFD'*)
4819 lt_cv_prog_gnu_ld=yes
4822 lt_cv_prog_gnu_ld=no
4824 esac
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4828 with_gnu_ld=$lt_cv_prog_gnu_ld
4838 if test -n "$ac_tool_prefix"; then
4839 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -n "$RANLIB"; then
4847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4860 done
4861 done
4862 IFS=$as_save_IFS
4866 RANLIB=$ac_cv_prog_RANLIB
4867 if test -n "$RANLIB"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4869 $as_echo "$RANLIB" >&6; }
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4877 if test -z "$ac_cv_prog_RANLIB"; then
4878 ac_ct_RANLIB=$RANLIB
4879 # Extract the first word of "ranlib", so it can be a program name with args.
4880 set dummy ranlib; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$ac_ct_RANLIB"; then
4887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_ac_ct_RANLIB="ranlib"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4907 if test -n "$ac_ct_RANLIB"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4909 $as_echo "$ac_ct_RANLIB" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4915 if test "x$ac_ct_RANLIB" = x; then
4916 RANLIB=":"
4917 else
4918 case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924 RANLIB=$ac_ct_RANLIB
4926 else
4927 RANLIB="$ac_cv_prog_RANLIB"
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$OBJCOPY"; then
4939 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 OBJCOPY=$ac_cv_prog_OBJCOPY
4959 if test -n "$OBJCOPY"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4961 $as_echo "$OBJCOPY" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4969 if test -z "$ac_cv_prog_OBJCOPY"; then
4970 ac_ct_OBJCOPY=$OBJCOPY
4971 # Extract the first word of "objcopy", so it can be a program name with args.
4972 set dummy objcopy; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$ac_ct_OBJCOPY"; then
4979 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4999 if test -n "$ac_ct_OBJCOPY"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5001 $as_echo "$ac_ct_OBJCOPY" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_ct_OBJCOPY" = x; then
5008 OBJCOPY="missing-objcopy"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 OBJCOPY=$ac_ct_OBJCOPY
5018 else
5019 OBJCOPY="$ac_cv_prog_OBJCOPY"
5023 enable_dlopen=yes
5027 case `pwd` in
5028 *\ * | *\ *)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5030 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5031 esac
5035 macro_version='2.2.7a'
5036 macro_revision='1.3134'
5050 ltmain="$ac_aux_dir/ltmain.sh"
5052 # Backslashify metacharacters that are still active within
5053 # double-quoted strings.
5054 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5056 # Same as above, but do not quote variable references.
5057 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5059 # Sed substitution to delay expansion of an escaped shell variable in a
5060 # double_quote_subst'ed string.
5061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5063 # Sed substitution to delay expansion of an escaped single quote.
5064 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5066 # Sed substitution to avoid accidental globbing in evaled expressions
5067 no_glob_subst='s/\*/\\\*/g'
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5070 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5071 if test "${lt_cv_path_NM+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$NM"; then
5075 # Let the user override the test.
5076 lt_cv_path_NM="$NM"
5077 else
5078 lt_nm_to_check="${ac_tool_prefix}nm"
5079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5080 lt_nm_to_check="$lt_nm_to_check nm"
5082 for lt_tmp_nm in $lt_nm_to_check; do
5083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5085 IFS="$lt_save_ifs"
5086 test -z "$ac_dir" && ac_dir=.
5087 tmp_nm="$ac_dir/$lt_tmp_nm"
5088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5089 # Check to see if the nm accepts a BSD-compat flag.
5090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5091 # nm: unknown option "B" ignored
5092 # Tru64's nm complains that /dev/null is an invalid object file
5093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5094 */dev/null* | *'Invalid file or object type'*)
5095 lt_cv_path_NM="$tmp_nm -B"
5096 break
5099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5100 */dev/null*)
5101 lt_cv_path_NM="$tmp_nm -p"
5102 break
5105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5106 continue # so that we can try to find one that supports BSD flags
5108 esac
5110 esac
5112 done
5113 IFS="$lt_save_ifs"
5114 done
5115 : ${lt_cv_path_NM=no}
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5119 $as_echo "$lt_cv_path_NM" >&6; }
5120 if test "$lt_cv_path_NM" != "no"; then
5121 NM="$lt_cv_path_NM"
5122 else
5123 # Didn't find any BSD compatible name lister, look for dumpbin.
5124 if test -n "$DUMPBIN"; then :
5125 # Let the user override the test.
5126 else
5127 if test -n "$ac_tool_prefix"; then
5128 for ac_prog in dumpbin "link -dump"
5130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$DUMPBIN"; then
5138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5157 DUMPBIN=$ac_cv_prog_DUMPBIN
5158 if test -n "$DUMPBIN"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5160 $as_echo "$DUMPBIN" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5167 test -n "$DUMPBIN" && break
5168 done
5170 if test -z "$DUMPBIN"; then
5171 ac_ct_DUMPBIN=$DUMPBIN
5172 for ac_prog in dumpbin "link -dump"
5174 # Extract the first word of "$ac_prog", so it can be a program name with args.
5175 set dummy $ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ac_ct_DUMPBIN"; then
5182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5202 if test -n "$ac_ct_DUMPBIN"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5204 $as_echo "$ac_ct_DUMPBIN" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 test -n "$ac_ct_DUMPBIN" && break
5212 done
5214 if test "x$ac_ct_DUMPBIN" = x; then
5215 DUMPBIN=":"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 DUMPBIN=$ac_ct_DUMPBIN
5227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5228 *COFF*)
5229 DUMPBIN="$DUMPBIN -symbols"
5232 DUMPBIN=:
5234 esac
5237 if test "$DUMPBIN" != ":"; then
5238 NM="$DUMPBIN"
5241 test -z "$NM" && NM=nm
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5249 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5250 if test "${lt_cv_nm_interface+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 lt_cv_nm_interface="BSD nm"
5254 echo "int some_variable = 0;" > conftest.$ac_ext
5255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5256 (eval "$ac_compile" 2>conftest.err)
5257 cat conftest.err >&5
5258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260 cat conftest.err >&5
5261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5262 cat conftest.out >&5
5263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264 lt_cv_nm_interface="MS dumpbin"
5266 rm -f conftest*
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5269 $as_echo "$lt_cv_nm_interface" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5272 $as_echo_n "checking whether ln -s works... " >&6; }
5273 LN_S=$as_ln_s
5274 if test "$LN_S" = "ln -s"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5276 $as_echo "yes" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5279 $as_echo "no, using $LN_S" >&6; }
5282 # find the maximum length of command line arguments
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5284 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5289 teststring="ABCD"
5291 case $build_os in
5292 msdosdjgpp*)
5293 # On DJGPP, this test can blow up pretty badly due to problems in libc
5294 # (any single argument exceeding 2000 bytes causes a buffer overrun
5295 # during glob expansion). Even if it were fixed, the result of this
5296 # check would be larger than it should be.
5297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5300 gnu*)
5301 # Under GNU Hurd, this test is not required because there is
5302 # no limit to the length of command line arguments.
5303 # Libtool will interpret -1 as no limit whatsoever
5304 lt_cv_sys_max_cmd_len=-1;
5307 cygwin* | mingw* | cegcc*)
5308 # On Win9x/ME, this test blows up -- it succeeds, but takes
5309 # about 5 minutes as the teststring grows exponentially.
5310 # Worse, since 9x/ME are not pre-emptively multitasking,
5311 # you end up with a "frozen" computer, even though with patience
5312 # the test eventually succeeds (with a max line length of 256k).
5313 # Instead, let's just punt: use the minimum linelength reported by
5314 # all of the supported platforms: 8192 (on NT/2K/XP).
5315 lt_cv_sys_max_cmd_len=8192;
5318 mint*)
5319 # On MiNT this can take a long time and run out of memory.
5320 lt_cv_sys_max_cmd_len=8192;
5323 amigaos*)
5324 # On AmigaOS with pdksh, this test takes hours, literally.
5325 # So we just punt and use a minimum line length of 8192.
5326 lt_cv_sys_max_cmd_len=8192;
5329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5330 # This has been around since 386BSD, at least. Likely further.
5331 if test -x /sbin/sysctl; then
5332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5333 elif test -x /usr/sbin/sysctl; then
5334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5335 else
5336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5338 # And add a safety zone
5339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5343 interix*)
5344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5345 lt_cv_sys_max_cmd_len=196608
5348 osf*)
5349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5351 # nice to cause kernel panics so lets avoid the loop below.
5352 # First set a reasonable default.
5353 lt_cv_sys_max_cmd_len=16384
5355 if test -x /sbin/sysconfig; then
5356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5358 esac
5361 sco3.2v5*)
5362 lt_cv_sys_max_cmd_len=102400
5364 sysv5* | sco5v6* | sysv4.2uw2*)
5365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5366 if test -n "$kargmax"; then
5367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5368 else
5369 lt_cv_sys_max_cmd_len=32768
5373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5374 if test -n "$lt_cv_sys_max_cmd_len"; then
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5377 else
5378 # Make teststring a little bigger before we do anything with it.
5379 # a 1K string should be a reasonable start.
5380 for i in 1 2 3 4 5 6 7 8 ; do
5381 teststring=$teststring$teststring
5382 done
5383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5384 # If test is not a shell built-in, we'll probably end up computing a
5385 # maximum length that is only half of the actual maximum length, but
5386 # we can't tell.
5387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5389 test $i != 17 # 1/2 MB should be enough
5391 i=`expr $i + 1`
5392 teststring=$teststring$teststring
5393 done
5394 # Only check the string length outside the loop.
5395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5396 teststring=
5397 # Add a significant safety factor because C++ compilers can tack on
5398 # massive amounts of additional arguments before passing them to the
5399 # linker. It appears as though 1/2 is a usable value.
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5403 esac
5407 if test -n $lt_cv_sys_max_cmd_len ; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5412 $as_echo "none" >&6; }
5414 max_cmd_len=$lt_cv_sys_max_cmd_len
5421 : ${CP="cp -f"}
5422 : ${MV="mv -f"}
5423 : ${RM="rm -f"}
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5426 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5427 # Try some XSI features
5428 xsi_shell=no
5429 ( _lt_dummy="a/b/c"
5430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5431 = c,a/b,, \
5432 && eval 'test $(( 1 + 1 )) -eq 2 \
5433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5434 && xsi_shell=yes
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5436 $as_echo "$xsi_shell" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5441 lt_shell_append=no
5442 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5443 >/dev/null 2>&1 \
5444 && lt_shell_append=yes
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5446 $as_echo "$lt_shell_append" >&6; }
5449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5450 lt_unset=unset
5451 else
5452 lt_unset=false
5459 # test EBCDIC or ASCII
5460 case `echo X|tr X '\101'` in
5461 A) # ASCII based system
5462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5463 lt_SP2NL='tr \040 \012'
5464 lt_NL2SP='tr \015\012 \040\040'
5466 *) # EBCDIC based system
5467 lt_SP2NL='tr \100 \n'
5468 lt_NL2SP='tr \r\n \100\100'
5470 esac
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5482 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 lt_cv_ld_reload_flag='-r'
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5489 reload_flag=$lt_cv_ld_reload_flag
5490 case $reload_flag in
5491 "" | " "*) ;;
5492 *) reload_flag=" $reload_flag" ;;
5493 esac
5494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5495 case $host_os in
5496 darwin*)
5497 if test "$GCC" = yes; then
5498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5499 else
5500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5503 esac
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$OBJDUMP"; then
5522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5535 done
5536 done
5537 IFS=$as_save_IFS
5541 OBJDUMP=$ac_cv_prog_OBJDUMP
5542 if test -n "$OBJDUMP"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5544 $as_echo "$OBJDUMP" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5552 if test -z "$ac_cv_prog_OBJDUMP"; then
5553 ac_ct_OBJDUMP=$OBJDUMP
5554 # Extract the first word of "objdump", so it can be a program name with args.
5555 set dummy objdump; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$ac_ct_OBJDUMP"; then
5562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5582 if test -n "$ac_ct_OBJDUMP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5584 $as_echo "$ac_ct_OBJDUMP" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5590 if test "x$ac_ct_OBJDUMP" = x; then
5591 OBJDUMP="false"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599 OBJDUMP=$ac_ct_OBJDUMP
5601 else
5602 OBJDUMP="$ac_cv_prog_OBJDUMP"
5605 test -z "$OBJDUMP" && OBJDUMP=objdump
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5617 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 lt_cv_file_magic_cmd='$MAGIC_CMD'
5621 lt_cv_file_magic_test_file=
5622 lt_cv_deplibs_check_method='unknown'
5623 # Need to set the preceding variable on all platforms that support
5624 # interlibrary dependencies.
5625 # 'none' -- dependencies not supported.
5626 # `unknown' -- same as none, but documents that we really don't know.
5627 # 'pass_all' -- all dependencies passed with no checks.
5628 # 'test_compile' -- check by making test program.
5629 # 'file_magic [[regex]]' -- check by looking for files in library path
5630 # which responds to the $file_magic_cmd with a given extended regex.
5631 # If you have `file' or equivalent on your system and you're not sure
5632 # whether `pass_all' will *always* work, you probably want this one.
5634 case $host_os in
5635 aix[4-9]*)
5636 lt_cv_deplibs_check_method=pass_all
5639 beos*)
5640 lt_cv_deplibs_check_method=pass_all
5643 bsdi[45]*)
5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5645 lt_cv_file_magic_cmd='/usr/bin/file -L'
5646 lt_cv_file_magic_test_file=/shlib/libc.so
5649 cygwin*)
5650 # func_win32_libid is a shell function defined in ltmain.sh
5651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5652 lt_cv_file_magic_cmd='func_win32_libid'
5655 mingw* | pw32*)
5656 # Base MSYS/MinGW do not provide the 'file' command needed by
5657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5658 # unless we find 'file', for example because we are cross-compiling.
5659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5663 else
5664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5665 lt_cv_file_magic_cmd='$OBJDUMP -f'
5669 cegcc*)
5670 # use the weaker test based on 'objdump'. See mingw*.
5671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5672 lt_cv_file_magic_cmd='$OBJDUMP -f'
5675 darwin* | rhapsody*)
5676 lt_cv_deplibs_check_method=pass_all
5679 freebsd* | dragonfly*)
5680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5681 case $host_cpu in
5682 i*86 )
5683 # Not sure whether the presence of OpenBSD here was a mistake.
5684 # Let's accept both of them until this is cleared up.
5685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5686 lt_cv_file_magic_cmd=/usr/bin/file
5687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5689 esac
5690 else
5691 lt_cv_deplibs_check_method=pass_all
5695 gnu*)
5696 lt_cv_deplibs_check_method=pass_all
5699 haiku*)
5700 lt_cv_deplibs_check_method=pass_all
5703 hpux10.20* | hpux11*)
5704 lt_cv_file_magic_cmd=/usr/bin/file
5705 case $host_cpu in
5706 ia64*)
5707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5710 hppa*64*)
5711 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]'
5712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5718 esac
5721 interix[3-9]*)
5722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5726 irix5* | irix6* | nonstopux*)
5727 case $LD in
5728 *-32|*"-32 ") libmagic=32-bit;;
5729 *-n32|*"-n32 ") libmagic=N32;;
5730 *-64|*"-64 ") libmagic=64-bit;;
5731 *) libmagic=never-match;;
5732 esac
5733 lt_cv_deplibs_check_method=pass_all
5736 # This must be Linux ELF.
5737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5738 lt_cv_deplibs_check_method=pass_all
5741 netbsd*)
5742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744 else
5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5749 newos6*)
5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5751 lt_cv_file_magic_cmd=/usr/bin/file
5752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5755 *nto* | *qnx*)
5756 lt_cv_deplibs_check_method=pass_all
5759 openbsd*)
5760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5762 else
5763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5767 osf3* | osf4* | osf5*)
5768 lt_cv_deplibs_check_method=pass_all
5771 rdos*)
5772 lt_cv_deplibs_check_method=pass_all
5775 solaris*)
5776 lt_cv_deplibs_check_method=pass_all
5779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5780 lt_cv_deplibs_check_method=pass_all
5783 sysv4 | sysv4.3*)
5784 case $host_vendor in
5785 motorola)
5786 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]'
5787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5789 ncr)
5790 lt_cv_deplibs_check_method=pass_all
5792 sequent)
5793 lt_cv_file_magic_cmd='/bin/file'
5794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5796 sni)
5797 lt_cv_file_magic_cmd='/bin/file'
5798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5799 lt_cv_file_magic_test_file=/lib/libc.so
5801 siemens)
5802 lt_cv_deplibs_check_method=pass_all
5805 lt_cv_deplibs_check_method=pass_all
5807 esac
5810 tpf*)
5811 lt_cv_deplibs_check_method=pass_all
5813 esac
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5817 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5818 file_magic_cmd=$lt_cv_file_magic_cmd
5819 deplibs_check_method=$lt_cv_deplibs_check_method
5820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5833 if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}ar; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if test "${ac_cv_prog_AR+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$AR"; then
5842 ac_cv_prog_AR="$AR" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_AR="${ac_tool_prefix}ar"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5855 done
5856 done
5857 IFS=$as_save_IFS
5861 AR=$ac_cv_prog_AR
5862 if test -n "$AR"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5864 $as_echo "$AR" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5872 if test -z "$ac_cv_prog_AR"; then
5873 ac_ct_AR=$AR
5874 # Extract the first word of "ar", so it can be a program name with args.
5875 set dummy ar; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$ac_ct_AR"; then
5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_ac_ct_AR="ar"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5895 done
5896 done
5897 IFS=$as_save_IFS
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904 $as_echo "$ac_ct_AR" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5910 if test "x$ac_ct_AR" = x; then
5911 AR="false"
5912 else
5913 case $cross_compiling:$ac_tool_warned in
5914 yes:)
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917 ac_tool_warned=yes ;;
5918 esac
5919 AR=$ac_ct_AR
5921 else
5922 AR="$ac_cv_prog_AR"
5925 test -z "$AR" && AR=ar
5926 test -z "$AR_FLAGS" && AR_FLAGS=cru
5938 if test -n "$ac_tool_prefix"; then
5939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5940 set dummy ${ac_tool_prefix}strip; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_STRIP+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$STRIP"; then
5947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 STRIP=$ac_cv_prog_STRIP
5967 if test -n "$STRIP"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5969 $as_echo "$STRIP" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5977 if test -z "$ac_cv_prog_STRIP"; then
5978 ac_ct_STRIP=$STRIP
5979 # Extract the first word of "strip", so it can be a program name with args.
5980 set dummy strip; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$ac_ct_STRIP"; then
5987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_ac_ct_STRIP="strip"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6002 IFS=$as_save_IFS
6006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6007 if test -n "$ac_ct_STRIP"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6009 $as_echo "$ac_ct_STRIP" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6015 if test "x$ac_ct_STRIP" = x; then
6016 STRIP=":"
6017 else
6018 case $cross_compiling:$ac_tool_warned in
6019 yes:)
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6022 ac_tool_warned=yes ;;
6023 esac
6024 STRIP=$ac_ct_STRIP
6026 else
6027 STRIP="$ac_cv_prog_STRIP"
6030 test -z "$STRIP" && STRIP=:
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$RANLIB"; then
6046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 RANLIB=$ac_cv_prog_RANLIB
6066 if test -n "$RANLIB"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6068 $as_echo "$RANLIB" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 if test -z "$ac_cv_prog_RANLIB"; then
6077 ac_ct_RANLIB=$RANLIB
6078 # Extract the first word of "ranlib", so it can be a program name with args.
6079 set dummy ranlib; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$ac_ct_RANLIB"; then
6086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_RANLIB="ranlib"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6101 IFS=$as_save_IFS
6105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6106 if test -n "$ac_ct_RANLIB"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6108 $as_echo "$ac_ct_RANLIB" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6114 if test "x$ac_ct_RANLIB" = x; then
6115 RANLIB=":"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123 RANLIB=$ac_ct_RANLIB
6125 else
6126 RANLIB="$ac_cv_prog_RANLIB"
6129 test -z "$RANLIB" && RANLIB=:
6136 # Determine commands to create old-style static archives.
6137 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6138 old_postinstall_cmds='chmod 644 $oldlib'
6139 old_postuninstall_cmds=
6141 if test -n "$RANLIB"; then
6142 case $host_os in
6143 openbsd*)
6144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6149 esac
6150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6153 case $host_os in
6154 darwin*)
6155 lock_old_archive_extraction=yes ;;
6157 lock_old_archive_extraction=no ;;
6158 esac
6198 # If no C compiler was specified, use CC.
6199 LTCC=${LTCC-"$CC"}
6201 # If no C compiler flags were specified, use CFLAGS.
6202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6204 # Allow CC to be a program name with arguments.
6205 compiler=$CC
6208 # Check for command to grab the raw symbol name followed by C symbol from nm.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6210 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6211 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6215 # These are sane defaults that work on at least a few old systems.
6216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6218 # Character class describing NM global symbol codes.
6219 symcode='[BCDEGRST]'
6221 # Regexp to match symbols that can be accessed directly from C.
6222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6224 # Define system-specific variables.
6225 case $host_os in
6226 aix*)
6227 symcode='[BCDT]'
6229 cygwin* | mingw* | pw32* | cegcc*)
6230 symcode='[ABCDGISTW]'
6232 hpux*)
6233 if test "$host_cpu" = ia64; then
6234 symcode='[ABCDEGRST]'
6237 irix* | nonstopux*)
6238 symcode='[BCDEGRST]'
6240 osf*)
6241 symcode='[BCDEGQRST]'
6243 solaris*)
6244 symcode='[BDRT]'
6246 sco3.2v5*)
6247 symcode='[DT]'
6249 sysv4.2uw2*)
6250 symcode='[DT]'
6252 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6253 symcode='[ABDT]'
6255 sysv4)
6256 symcode='[DFNSTU]'
6258 esac
6260 # If we're using GNU nm, then use its standard symbol codes.
6261 case `$NM -V 2>&1` in
6262 *GNU* | *'with BFD'*)
6263 symcode='[ABCDGIRSTW]' ;;
6264 esac
6266 # Transform an extracted symbol line into a proper C declaration.
6267 # Some systems (esp. on ia64) link data and code symbols differently,
6268 # so use this general approach.
6269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6271 # Transform an extracted symbol line into symbol name and symbol address
6272 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6273 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'"
6275 # Handle CRLF in mingw tool chain
6276 opt_cr=
6277 case $build_os in
6278 mingw*)
6279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6281 esac
6283 # Try without a prefix underscore, then with it.
6284 for ac_symprfx in "" "_"; do
6286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6287 symxfrm="\\1 $ac_symprfx\\2 \\2"
6289 # Write the raw and C identifiers.
6290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6291 # Fake it for dumpbin and say T for any non-static function
6292 # and D for any global variable.
6293 # Also find C++ and __fastcall symbols from MSVC++,
6294 # which start with @ or ?.
6295 lt_cv_sys_global_symbol_pipe="$AWK '"\
6296 " {last_section=section; section=\$ 3};"\
6297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6298 " \$ 0!~/External *\|/{next};"\
6299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6300 " {if(hide[section]) next};"\
6301 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6302 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6303 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6304 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6305 " ' prfx=^$ac_symprfx"
6306 else
6307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6310 # Check to see that the pipe works correctly.
6311 pipe_works=no
6313 rm -f conftest*
6314 cat > conftest.$ac_ext <<_LT_EOF
6315 #ifdef __cplusplus
6316 extern "C" {
6317 #endif
6318 char nm_test_var;
6319 void nm_test_func(void);
6320 void nm_test_func(void){}
6321 #ifdef __cplusplus
6323 #endif
6324 int main(){nm_test_var='a';nm_test_func();return(0);}
6325 _LT_EOF
6327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6328 (eval $ac_compile) 2>&5
6329 ac_status=$?
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; }; then
6332 # Now try to grab the symbols.
6333 nlist=conftest.nm
6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6336 ac_status=$?
6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; } && test -s "$nlist"; then
6339 # Try sorting and uniquifying the output.
6340 if sort "$nlist" | uniq > "$nlist"T; then
6341 mv -f "$nlist"T "$nlist"
6342 else
6343 rm -f "$nlist"T
6346 # Make sure that we snagged all the symbols we need.
6347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6349 cat <<_LT_EOF > conftest.$ac_ext
6350 #ifdef __cplusplus
6351 extern "C" {
6352 #endif
6354 _LT_EOF
6355 # Now generate the symbol file.
6356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6358 cat <<_LT_EOF >> conftest.$ac_ext
6360 /* The mapping between symbol names and symbols. */
6361 const struct {
6362 const char *name;
6363 void *address;
6365 lt__PROGRAM__LTX_preloaded_symbols[] =
6367 { "@PROGRAM@", (void *) 0 },
6368 _LT_EOF
6369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6370 cat <<\_LT_EOF >> conftest.$ac_ext
6371 {0, (void *) 0}
6374 /* This works around a problem in FreeBSD linker */
6375 #ifdef FREEBSD_WORKAROUND
6376 static const void *lt_preloaded_setup() {
6377 return lt__PROGRAM__LTX_preloaded_symbols;
6379 #endif
6381 #ifdef __cplusplus
6383 #endif
6384 _LT_EOF
6385 # Now try linking the two files.
6386 mv conftest.$ac_objext conftstm.$ac_objext
6387 lt_save_LIBS="$LIBS"
6388 lt_save_CFLAGS="$CFLAGS"
6389 LIBS="conftstm.$ac_objext"
6390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6392 (eval $ac_link) 2>&5
6393 ac_status=$?
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6396 pipe_works=yes
6398 LIBS="$lt_save_LIBS"
6399 CFLAGS="$lt_save_CFLAGS"
6400 else
6401 echo "cannot find nm_test_func in $nlist" >&5
6403 else
6404 echo "cannot find nm_test_var in $nlist" >&5
6406 else
6407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6409 else
6410 echo "$progname: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6413 rm -rf conftest* conftst*
6415 # Do not use the global_symbol_pipe unless it works.
6416 if test "$pipe_works" = yes; then
6417 break
6418 else
6419 lt_cv_sys_global_symbol_pipe=
6421 done
6425 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6426 lt_cv_sys_global_symbol_to_cdecl=
6428 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6430 $as_echo "failed" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6433 $as_echo "ok" >&6; }
6458 # Check whether --enable-libtool-lock was given.
6459 if test "${enable_libtool_lock+set}" = set; then :
6460 enableval=$enable_libtool_lock;
6463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6465 # Some flags need to be propagated to the compiler or linker for good
6466 # libtool support.
6467 case $host in
6468 ia64-*-hpux*)
6469 # Find out which ABI we are using.
6470 echo 'int i;' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *ELF-32*)
6478 HPUX_IA64_MODE="32"
6480 *ELF-64*)
6481 HPUX_IA64_MODE="64"
6483 esac
6485 rm -rf conftest*
6487 *-*-irix6*)
6488 # Find out which ABI we are using.
6489 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6491 (eval $ac_compile) 2>&5
6492 ac_status=$?
6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6494 test $ac_status = 0; }; then
6495 if test "$lt_cv_prog_gnu_ld" = yes; then
6496 case `/usr/bin/file conftest.$ac_objext` in
6497 *32-bit*)
6498 LD="${LD-ld} -melf32bsmip"
6500 *N32*)
6501 LD="${LD-ld} -melf32bmipn32"
6503 *64-bit*)
6504 LD="${LD-ld} -melf64bmip"
6506 esac
6507 else
6508 case `/usr/bin/file conftest.$ac_objext` in
6509 *32-bit*)
6510 LD="${LD-ld} -32"
6512 *N32*)
6513 LD="${LD-ld} -n32"
6515 *64-bit*)
6516 LD="${LD-ld} -64"
6518 esac
6521 rm -rf conftest*
6524 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6525 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6526 # Find out which ABI we are using.
6527 echo 'int i;' > conftest.$ac_ext
6528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529 (eval $ac_compile) 2>&5
6530 ac_status=$?
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; then
6533 case `/usr/bin/file conftest.o` in
6534 *32-bit*)
6535 case $host in
6536 x86_64-*kfreebsd*-gnu)
6537 LD="${LD-ld} -m elf_i386_fbsd"
6539 x86_64-*linux*)
6540 case `/usr/bin/file conftest.o` in
6541 *x86-64*)
6542 LD="${LD-ld} -m elf32_x86_64"
6545 LD="${LD-ld} -m elf_i386"
6547 esac
6549 powerpc64le-*linux*)
6550 LD="${LD-ld} -m elf32lppclinux"
6552 powerpc64-*linux*)
6553 LD="${LD-ld} -m elf32ppclinux"
6555 s390x-*linux*)
6556 LD="${LD-ld} -m elf_s390"
6558 sparc64-*linux*)
6559 LD="${LD-ld} -m elf32_sparc"
6561 esac
6563 *64-bit*)
6564 case $host in
6565 x86_64-*kfreebsd*-gnu)
6566 LD="${LD-ld} -m elf_x86_64_fbsd"
6568 x86_64-*linux*)
6569 LD="${LD-ld} -m elf_x86_64"
6571 powerpcle-*linux*)
6572 LD="${LD-ld} -m elf64lppc"
6574 powerpc-*linux*)
6575 LD="${LD-ld} -m elf64ppc"
6577 s390*-*linux*|s390*-*tpf*)
6578 LD="${LD-ld} -m elf64_s390"
6580 sparc*-*linux*)
6581 LD="${LD-ld} -m elf64_sparc"
6583 esac
6585 esac
6587 rm -rf conftest*
6590 *-*-sco3.2v5*)
6591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6592 SAVE_CFLAGS="$CFLAGS"
6593 CFLAGS="$CFLAGS -belf"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6595 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6596 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 ac_ext=c
6600 ac_cpp='$CPP $CPPFLAGS'
6601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_link "$LINENO"; then :
6617 lt_cv_cc_needs_belf=yes
6618 else
6619 lt_cv_cc_needs_belf=no
6621 rm -f core conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6623 ac_ext=c
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6631 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6632 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6634 CFLAGS="$SAVE_CFLAGS"
6637 sparc*-*solaris*)
6638 # Find out which ABI we are using.
6639 echo 'int i;' > conftest.$ac_ext
6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6641 (eval $ac_compile) 2>&5
6642 ac_status=$?
6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644 test $ac_status = 0; }; then
6645 case `/usr/bin/file conftest.o` in
6646 *64-bit*)
6647 case $lt_cv_prog_gnu_ld in
6648 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6650 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6651 LD="${LD-ld} -64"
6654 esac
6656 esac
6658 rm -rf conftest*
6660 esac
6662 need_locks="$enable_libtool_lock"
6665 case $host_os in
6666 rhapsody* | darwin*)
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$DSYMUTIL"; then
6676 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6696 if test -n "$DSYMUTIL"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6698 $as_echo "$DSYMUTIL" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6706 if test -z "$ac_cv_prog_DSYMUTIL"; then
6707 ac_ct_DSYMUTIL=$DSYMUTIL
6708 # Extract the first word of "dsymutil", so it can be a program name with args.
6709 set dummy dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_DSYMUTIL"; then
6716 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6736 if test -n "$ac_ct_DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6738 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6744 if test "x$ac_ct_DSYMUTIL" = x; then
6745 DSYMUTIL=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 DSYMUTIL=$ac_ct_DSYMUTIL
6755 else
6756 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$NMEDIT"; then
6768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6781 done
6782 done
6783 IFS=$as_save_IFS
6787 NMEDIT=$ac_cv_prog_NMEDIT
6788 if test -n "$NMEDIT"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6790 $as_echo "$NMEDIT" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6798 if test -z "$ac_cv_prog_NMEDIT"; then
6799 ac_ct_NMEDIT=$NMEDIT
6800 # Extract the first word of "nmedit", so it can be a program name with args.
6801 set dummy nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$ac_ct_NMEDIT"; then
6808 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6828 if test -n "$ac_ct_NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6830 $as_echo "$ac_ct_NMEDIT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6836 if test "x$ac_ct_NMEDIT" = x; then
6837 NMEDIT=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 NMEDIT=$ac_ct_NMEDIT
6847 else
6848 NMEDIT="$ac_cv_prog_NMEDIT"
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if test "${ac_cv_prog_LIPO+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$LIPO"; then
6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6873 done
6874 done
6875 IFS=$as_save_IFS
6879 LIPO=$ac_cv_prog_LIPO
6880 if test -n "$LIPO"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6882 $as_echo "$LIPO" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6890 if test -z "$ac_cv_prog_LIPO"; then
6891 ac_ct_LIPO=$LIPO
6892 # Extract the first word of "lipo", so it can be a program name with args.
6893 set dummy lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$ac_ct_LIPO"; then
6900 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_ac_ct_LIPO="lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6920 if test -n "$ac_ct_LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6922 $as_echo "$ac_ct_LIPO" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6928 if test "x$ac_ct_LIPO" = x; then
6929 LIPO=":"
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937 LIPO=$ac_ct_LIPO
6939 else
6940 LIPO="$ac_cv_prog_LIPO"
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}otool; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$OTOOL"; then
6952 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6965 done
6966 done
6967 IFS=$as_save_IFS
6971 OTOOL=$ac_cv_prog_OTOOL
6972 if test -n "$OTOOL"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6974 $as_echo "$OTOOL" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6982 if test -z "$ac_cv_prog_OTOOL"; then
6983 ac_ct_OTOOL=$OTOOL
6984 # Extract the first word of "otool", so it can be a program name with args.
6985 set dummy otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$ac_ct_OTOOL"; then
6992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_ac_ct_OTOOL="otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7012 if test -n "$ac_ct_OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7014 $as_echo "$ac_ct_OTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7020 if test "x$ac_ct_OTOOL" = x; then
7021 OTOOL=":"
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029 OTOOL=$ac_ct_OTOOL
7031 else
7032 OTOOL="$ac_cv_prog_OTOOL"
7035 if test -n "$ac_tool_prefix"; then
7036 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7037 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$OTOOL64"; then
7044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7063 OTOOL64=$ac_cv_prog_OTOOL64
7064 if test -n "$OTOOL64"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7066 $as_echo "$OTOOL64" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7074 if test -z "$ac_cv_prog_OTOOL64"; then
7075 ac_ct_OTOOL64=$OTOOL64
7076 # Extract the first word of "otool64", so it can be a program name with args.
7077 set dummy otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$ac_ct_OTOOL64"; then
7084 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_prog_ac_ct_OTOOL64="otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7099 IFS=$as_save_IFS
7103 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7104 if test -n "$ac_ct_OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7106 $as_echo "$ac_ct_OTOOL64" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7112 if test "x$ac_ct_OTOOL64" = x; then
7113 OTOOL64=":"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116 yes:)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121 OTOOL64=$ac_ct_OTOOL64
7123 else
7124 OTOOL64="$ac_cv_prog_OTOOL64"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7154 $as_echo_n "checking for -single_module linker flag... " >&6; }
7155 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 lt_cv_apple_cc_single_mod=no
7159 if test -z "${LT_MULTI_MODULE}"; then
7160 # By default we will add the -single_module flag. You can override
7161 # by either setting the environment variable LT_MULTI_MODULE
7162 # non-empty at configure time, or by adding -multi_module to the
7163 # link flags.
7164 rm -rf libconftest.dylib*
7165 echo "int foo(void){return 1;}" > conftest.c
7166 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167 -dynamiclib -Wl,-single_module conftest.c" >&5
7168 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7169 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7170 _lt_result=$?
7171 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7172 lt_cv_apple_cc_single_mod=yes
7173 else
7174 cat conftest.err >&5
7176 rm -rf libconftest.dylib*
7177 rm -f conftest.*
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7181 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7183 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7184 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 lt_cv_ld_exported_symbols_list=no
7188 save_LDFLAGS=$LDFLAGS
7189 echo "_main" > conftest.sym
7190 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7195 main ()
7199 return 0;
7201 _ACEOF
7202 if ac_fn_c_try_link "$LINENO"; then :
7203 lt_cv_ld_exported_symbols_list=yes
7204 else
7205 lt_cv_ld_exported_symbols_list=no
7207 rm -f core conftest.err conftest.$ac_objext \
7208 conftest$ac_exeext conftest.$ac_ext
7209 LDFLAGS="$save_LDFLAGS"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7213 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7215 $as_echo_n "checking for -force_load linker flag... " >&6; }
7216 if test "${lt_cv_ld_force_load+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_ld_force_load=no
7220 cat > conftest.c << _LT_EOF
7221 int forced_loaded() { return 2;}
7222 _LT_EOF
7223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7225 echo "$AR cru libconftest.a conftest.o" >&5
7226 $AR cru libconftest.a conftest.o 2>&5
7227 cat > conftest.c << _LT_EOF
7228 int main() { return 0;}
7229 _LT_EOF
7230 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7231 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7232 _lt_result=$?
7233 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7234 lt_cv_ld_force_load=yes
7235 else
7236 cat conftest.err >&5
7238 rm -f conftest.err libconftest.a conftest conftest.c
7239 rm -rf conftest.dSYM
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7243 $as_echo "$lt_cv_ld_force_load" >&6; }
7244 case $host_os in
7245 rhapsody* | darwin1.[012])
7246 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7247 darwin1.*)
7248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7249 darwin*) # darwin 5.x on
7250 # if running on 10.5 or later, the deployment target defaults
7251 # to the OS version, if on x86, and 10.4, the deployment
7252 # target defaults to 10.4. Don't you love it?
7253 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7254 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7256 10.[012][,.]*)
7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7258 10.*)
7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7260 esac
7262 esac
7263 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7264 _lt_dar_single_mod='$single_module'
7266 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7267 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7268 else
7269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7271 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7272 _lt_dsymutil='~$DSYMUTIL $lib || :'
7273 else
7274 _lt_dsymutil=
7277 esac
7279 ac_ext=c
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7285 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7286 # On Suns, sometimes $CPP names a directory.
7287 if test -n "$CPP" && test -d "$CPP"; then
7288 CPP=
7290 if test -z "$CPP"; then
7291 if test "${ac_cv_prog_CPP+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 # Double quotes because CPP needs to be expanded
7295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7297 ac_preproc_ok=false
7298 for ac_c_preproc_warn_flag in '' yes
7300 # Use a header file that comes with gcc, so configuring glibc
7301 # with a fresh cross-compiler works.
7302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7303 # <limits.h> exists even on freestanding compilers.
7304 # On the NeXT, cc -E runs the code through the compiler's parser,
7305 # not just through cpp. "Syntax error" is here to catch this case.
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 #ifdef __STDC__
7309 # include <limits.h>
7310 #else
7311 # include <assert.h>
7312 #endif
7313 Syntax error
7314 _ACEOF
7315 if ac_fn_c_try_cpp "$LINENO"; then :
7317 else
7318 # Broken: fails on valid input.
7319 continue
7321 rm -f conftest.err conftest.$ac_ext
7323 # OK, works on sane cases. Now check whether nonexistent headers
7324 # can be detected and how.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 #include <ac_nonexistent.h>
7328 _ACEOF
7329 if ac_fn_c_try_cpp "$LINENO"; then :
7330 # Broken: success on invalid input.
7331 continue
7332 else
7333 # Passes both tests.
7334 ac_preproc_ok=:
7335 break
7337 rm -f conftest.err conftest.$ac_ext
7339 done
7340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7341 rm -f conftest.err conftest.$ac_ext
7342 if $ac_preproc_ok; then :
7343 break
7346 done
7347 ac_cv_prog_CPP=$CPP
7350 CPP=$ac_cv_prog_CPP
7351 else
7352 ac_cv_prog_CPP=$CPP
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7355 $as_echo "$CPP" >&6; }
7356 ac_preproc_ok=false
7357 for ac_c_preproc_warn_flag in '' yes
7359 # Use a header file that comes with gcc, so configuring glibc
7360 # with a fresh cross-compiler works.
7361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362 # <limits.h> exists even on freestanding compilers.
7363 # On the NeXT, cc -E runs the code through the compiler's parser,
7364 # not just through cpp. "Syntax error" is here to catch this case.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #ifdef __STDC__
7368 # include <limits.h>
7369 #else
7370 # include <assert.h>
7371 #endif
7372 Syntax error
7373 _ACEOF
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7376 else
7377 # Broken: fails on valid input.
7378 continue
7380 rm -f conftest.err conftest.$ac_ext
7382 # OK, works on sane cases. Now check whether nonexistent headers
7383 # can be detected and how.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #include <ac_nonexistent.h>
7387 _ACEOF
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389 # Broken: success on invalid input.
7390 continue
7391 else
7392 # Passes both tests.
7393 ac_preproc_ok=:
7394 break
7396 rm -f conftest.err conftest.$ac_ext
7398 done
7399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7400 rm -f conftest.err conftest.$ac_ext
7401 if $ac_preproc_ok; then :
7403 else
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7406 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7407 See \`config.log' for more details." "$LINENO" 5; }
7410 ac_ext=c
7411 ac_cpp='$CPP $CPPFLAGS'
7412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7418 $as_echo_n "checking for ANSI C header files... " >&6; }
7419 if test "${ac_cv_header_stdc+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <stdlib.h>
7425 #include <stdarg.h>
7426 #include <string.h>
7427 #include <float.h>
7430 main ()
7434 return 0;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 ac_cv_header_stdc=yes
7439 else
7440 ac_cv_header_stdc=no
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 if test $ac_cv_header_stdc = yes; then
7445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 #include <string.h>
7450 _ACEOF
7451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 $EGREP "memchr" >/dev/null 2>&1; then :
7454 else
7455 ac_cv_header_stdc=no
7457 rm -f conftest*
7461 if test $ac_cv_header_stdc = yes; then
7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <stdlib.h>
7467 _ACEOF
7468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7469 $EGREP "free" >/dev/null 2>&1; then :
7471 else
7472 ac_cv_header_stdc=no
7474 rm -f conftest*
7478 if test $ac_cv_header_stdc = yes; then
7479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7480 if test "$cross_compiling" = yes; then :
7482 else
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485 #include <ctype.h>
7486 #include <stdlib.h>
7487 #if ((' ' & 0x0FF) == 0x020)
7488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7490 #else
7491 # define ISLOWER(c) \
7492 (('a' <= (c) && (c) <= 'i') \
7493 || ('j' <= (c) && (c) <= 'r') \
7494 || ('s' <= (c) && (c) <= 'z'))
7495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7496 #endif
7498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7500 main ()
7502 int i;
7503 for (i = 0; i < 256; i++)
7504 if (XOR (islower (i), ISLOWER (i))
7505 || toupper (i) != TOUPPER (i))
7506 return 2;
7507 return 0;
7509 _ACEOF
7510 if ac_fn_c_try_run "$LINENO"; then :
7512 else
7513 ac_cv_header_stdc=no
7515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7516 conftest.$ac_objext conftest.beam conftest.$ac_ext
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7522 $as_echo "$ac_cv_header_stdc" >&6; }
7523 if test $ac_cv_header_stdc = yes; then
7525 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7529 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7531 inttypes.h stdint.h unistd.h
7532 do :
7533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7536 eval as_val=\$$as_ac_Header
7537 if test "x$as_val" = x""yes; then :
7538 cat >>confdefs.h <<_ACEOF
7539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7540 _ACEOF
7544 done
7547 for ac_header in dlfcn.h
7548 do :
7549 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7551 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7552 cat >>confdefs.h <<_ACEOF
7553 #define HAVE_DLFCN_H 1
7554 _ACEOF
7558 done
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_GOC+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$GOC"; then
7569 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7588 GOC=$ac_cv_prog_GOC
7589 if test -n "$GOC"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7591 $as_echo "$GOC" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7599 if test -z "$ac_cv_prog_GOC"; then
7600 ac_ct_GOC=$GOC
7601 # Extract the first word of "gccgo", so it can be a program name with args.
7602 set dummy gccgo; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$ac_ct_GOC"; then
7609 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_ac_ct_GOC="gccgo"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7629 if test -n "$ac_ct_GOC"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7631 $as_echo "$ac_ct_GOC" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7637 if test "x$ac_ct_GOC" = x; then
7638 GOC=""
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641 yes:)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7645 esac
7646 GOC=$ac_ct_GOC
7648 else
7649 GOC="$ac_cv_prog_GOC"
7657 # Set options
7662 enable_win32_dll=no
7665 # Check whether --enable-shared was given.
7666 if test "${enable_shared+set}" = set; then :
7667 enableval=$enable_shared; p=${PACKAGE-default}
7668 case $enableval in
7669 yes) enable_shared=yes ;;
7670 no) enable_shared=no ;;
7672 enable_shared=no
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7675 for pkg in $enableval; do
7676 IFS="$lt_save_ifs"
7677 if test "X$pkg" = "X$p"; then
7678 enable_shared=yes
7680 done
7681 IFS="$lt_save_ifs"
7683 esac
7684 else
7685 enable_shared=yes
7696 # Check whether --enable-static was given.
7697 if test "${enable_static+set}" = set; then :
7698 enableval=$enable_static; p=${PACKAGE-default}
7699 case $enableval in
7700 yes) enable_static=yes ;;
7701 no) enable_static=no ;;
7703 enable_static=no
7704 # Look at the argument we got. We use all the common list separators.
7705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7706 for pkg in $enableval; do
7707 IFS="$lt_save_ifs"
7708 if test "X$pkg" = "X$p"; then
7709 enable_static=yes
7711 done
7712 IFS="$lt_save_ifs"
7714 esac
7715 else
7716 enable_static=yes
7728 # Check whether --with-pic was given.
7729 if test "${with_pic+set}" = set; then :
7730 withval=$with_pic; pic_mode="$withval"
7731 else
7732 pic_mode=default
7736 test -z "$pic_mode" && pic_mode=default
7744 # Check whether --enable-fast-install was given.
7745 if test "${enable_fast_install+set}" = set; then :
7746 enableval=$enable_fast_install; p=${PACKAGE-default}
7747 case $enableval in
7748 yes) enable_fast_install=yes ;;
7749 no) enable_fast_install=no ;;
7751 enable_fast_install=no
7752 # Look at the argument we got. We use all the common list separators.
7753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7754 for pkg in $enableval; do
7755 IFS="$lt_save_ifs"
7756 if test "X$pkg" = "X$p"; then
7757 enable_fast_install=yes
7759 done
7760 IFS="$lt_save_ifs"
7762 esac
7763 else
7764 enable_fast_install=yes
7777 # This can be used to rebuild libtool when needed
7778 LIBTOOL_DEPS="$ltmain"
7780 # Always use our own libtool.
7781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7808 test -z "$LN_S" && LN_S="ln -s"
7823 if test -n "${ZSH_VERSION+set}" ; then
7824 setopt NO_GLOB_SUBST
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7828 $as_echo_n "checking for objdir... " >&6; }
7829 if test "${lt_cv_objdir+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 rm -f .libs 2>/dev/null
7833 mkdir .libs 2>/dev/null
7834 if test -d .libs; then
7835 lt_cv_objdir=.libs
7836 else
7837 # MS-DOS does not allow filenames that begin with a dot.
7838 lt_cv_objdir=_libs
7840 rmdir .libs 2>/dev/null
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7843 $as_echo "$lt_cv_objdir" >&6; }
7844 objdir=$lt_cv_objdir
7850 cat >>confdefs.h <<_ACEOF
7851 #define LT_OBJDIR "$lt_cv_objdir/"
7852 _ACEOF
7857 case $host_os in
7858 aix3*)
7859 # AIX sometimes has problems with the GCC collect2 program. For some
7860 # reason, if we set the COLLECT_NAMES environment variable, the problems
7861 # vanish in a puff of smoke.
7862 if test "X${COLLECT_NAMES+set}" != Xset; then
7863 COLLECT_NAMES=
7864 export COLLECT_NAMES
7867 esac
7869 # Global variables:
7870 ofile=libtool
7871 can_build_shared=yes
7873 # All known linkers require a `.a' archive for static linking (except MSVC,
7874 # which needs '.lib').
7875 libext=a
7877 with_gnu_ld="$lt_cv_prog_gnu_ld"
7879 old_CC="$CC"
7880 old_CFLAGS="$CFLAGS"
7882 # Set sane defaults for various variables
7883 test -z "$CC" && CC=cc
7884 test -z "$LTCC" && LTCC=$CC
7885 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7886 test -z "$LD" && LD=ld
7887 test -z "$ac_objext" && ac_objext=o
7889 for cc_temp in $compiler""; do
7890 case $cc_temp in
7891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7893 \-*) ;;
7894 *) break;;
7895 esac
7896 done
7897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7900 # Only perform the check for file, if the check method requires it
7901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7902 case $deplibs_check_method in
7903 file_magic*)
7904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7906 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 case $MAGIC_CMD in
7911 [\\/*] | ?:[\\/]*)
7912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7915 lt_save_MAGIC_CMD="$MAGIC_CMD"
7916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7918 for ac_dir in $ac_dummy; do
7919 IFS="$lt_save_ifs"
7920 test -z "$ac_dir" && ac_dir=.
7921 if test -f $ac_dir/${ac_tool_prefix}file; then
7922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7923 if test -n "$file_magic_test_file"; then
7924 case $deplibs_check_method in
7925 "file_magic "*)
7926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7929 $EGREP "$file_magic_regex" > /dev/null; then
7931 else
7932 cat <<_LT_EOF 1>&2
7934 *** Warning: the command libtool uses to detect shared libraries,
7935 *** $file_magic_cmd, produces output that libtool cannot recognize.
7936 *** The result is that libtool may fail to recognize shared libraries
7937 *** as such. This will affect the creation of libtool libraries that
7938 *** depend on shared libraries, but programs linked with such libtool
7939 *** libraries will work regardless of this problem. Nevertheless, you
7940 *** may want to report the problem to your system manager and/or to
7941 *** bug-libtool@gnu.org
7943 _LT_EOF
7944 fi ;;
7945 esac
7947 break
7949 done
7950 IFS="$lt_save_ifs"
7951 MAGIC_CMD="$lt_save_MAGIC_CMD"
7953 esac
7956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7957 if test -n "$MAGIC_CMD"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7959 $as_echo "$MAGIC_CMD" >&6; }
7960 else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7969 if test -z "$lt_cv_path_MAGIC_CMD"; then
7970 if test -n "$ac_tool_prefix"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7972 $as_echo_n "checking for file... " >&6; }
7973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 case $MAGIC_CMD in
7977 [\\/*] | ?:[\\/]*)
7978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7981 lt_save_MAGIC_CMD="$MAGIC_CMD"
7982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984 for ac_dir in $ac_dummy; do
7985 IFS="$lt_save_ifs"
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/file; then
7988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7989 if test -n "$file_magic_test_file"; then
7990 case $deplibs_check_method in
7991 "file_magic "*)
7992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995 $EGREP "$file_magic_regex" > /dev/null; then
7997 else
7998 cat <<_LT_EOF 1>&2
8000 *** Warning: the command libtool uses to detect shared libraries,
8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
8002 *** The result is that libtool may fail to recognize shared libraries
8003 *** as such. This will affect the creation of libtool libraries that
8004 *** depend on shared libraries, but programs linked with such libtool
8005 *** libraries will work regardless of this problem. Nevertheless, you
8006 *** may want to report the problem to your system manager and/or to
8007 *** bug-libtool@gnu.org
8009 _LT_EOF
8010 fi ;;
8011 esac
8013 break
8015 done
8016 IFS="$lt_save_ifs"
8017 MAGIC_CMD="$lt_save_MAGIC_CMD"
8019 esac
8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023 if test -n "$MAGIC_CMD"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8025 $as_echo "$MAGIC_CMD" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8032 else
8033 MAGIC_CMD=:
8039 esac
8041 # Use C for the default configuration in the libtool script
8043 lt_save_CC="$CC"
8044 ac_ext=c
8045 ac_cpp='$CPP $CPPFLAGS'
8046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051 # Source file extension for C test sources.
8052 ac_ext=c
8054 # Object file extension for compiled C test sources.
8055 objext=o
8056 objext=$objext
8058 # Code to be used in simple compile tests
8059 lt_simple_compile_test_code="int some_variable = 0;"
8061 # Code to be used in simple link tests
8062 lt_simple_link_test_code='int main(){return(0);}'
8070 # If no C compiler was specified, use CC.
8071 LTCC=${LTCC-"$CC"}
8073 # If no C compiler flags were specified, use CFLAGS.
8074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8076 # Allow CC to be a program name with arguments.
8077 compiler=$CC
8079 # Save the default compiler, since it gets overwritten when the other
8080 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8081 compiler_DEFAULT=$CC
8083 # save warnings/boilerplate of simple test code
8084 ac_outfile=conftest.$ac_objext
8085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8087 _lt_compiler_boilerplate=`cat conftest.err`
8088 $RM conftest*
8090 ac_outfile=conftest.$ac_objext
8091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8093 _lt_linker_boilerplate=`cat conftest.err`
8094 $RM -r conftest*
8097 ## CAVEAT EMPTOR:
8098 ## There is no encapsulation within the following macros, do not change
8099 ## the running order or otherwise move them around unless you know exactly
8100 ## what you are doing...
8101 if test -n "$compiler"; then
8103 lt_prog_compiler_no_builtin_flag=
8105 if test "$GCC" = yes; then
8106 case $cc_basename in
8107 nvcc*)
8108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8111 esac
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8114 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8115 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 lt_cv_prog_compiler_rtti_exceptions=no
8119 ac_outfile=conftest.$ac_objext
8120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8121 lt_compiler_flag="-fno-rtti -fno-exceptions"
8122 # Insert the option either (1) after the last *FLAGS variable, or
8123 # (2) before a word containing "conftest.", or (3) at the end.
8124 # Note that $ac_compile itself does not contain backslashes and begins
8125 # with a dollar sign (not a hyphen), so the echo should work correctly.
8126 # The option is referenced via a variable to avoid confusing sed.
8127 lt_compile=`echo "$ac_compile" | $SED \
8128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8130 -e 's:$: $lt_compiler_flag:'`
8131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8132 (eval "$lt_compile" 2>conftest.err)
8133 ac_status=$?
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 if (exit $ac_status) && test -s "$ac_outfile"; then
8137 # The compiler can only warn and ignore the option if not recognized
8138 # So say no if there are warnings other than the usual output.
8139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8142 lt_cv_prog_compiler_rtti_exceptions=yes
8145 $RM conftest*
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8149 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8151 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8153 else
8164 lt_prog_compiler_wl=
8165 lt_prog_compiler_pic=
8166 lt_prog_compiler_static=
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8171 if test "$GCC" = yes; then
8172 lt_prog_compiler_wl='-Wl,'
8173 lt_prog_compiler_static='-static'
8175 case $host_os in
8176 aix*)
8177 # All AIX code is PIC.
8178 if test "$host_cpu" = ia64; then
8179 # AIX 5 now supports IA64 processor
8180 lt_prog_compiler_static='-Bstatic'
8182 lt_prog_compiler_pic='-fPIC'
8185 amigaos*)
8186 case $host_cpu in
8187 powerpc)
8188 # see comment about AmigaOS4 .so support
8189 lt_prog_compiler_pic='-fPIC'
8191 m68k)
8192 # FIXME: we need at least 68020 code to build shared libraries, but
8193 # adding the `-m68020' flag to GCC prevents building anything better,
8194 # like `-m68040'.
8195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8197 esac
8200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8201 # PIC is the default for these OSes.
8204 mingw* | cygwin* | pw32* | os2* | cegcc*)
8205 # This hack is so that the source file can tell whether it is being
8206 # built for inclusion in a dll (and should export symbols for example).
8207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8208 # (--disable-auto-import) libraries
8209 lt_prog_compiler_pic='-DDLL_EXPORT'
8212 darwin* | rhapsody*)
8213 # PIC is the default on this platform
8214 # Common symbols not allowed in MH_DYLIB files
8215 lt_prog_compiler_pic='-fno-common'
8218 haiku*)
8219 # PIC is the default for Haiku.
8220 # The "-static" flag exists, but is broken.
8221 lt_prog_compiler_static=
8224 hpux*)
8225 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8226 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8227 # sets the default TLS model and affects inlining.
8228 case $host_cpu in
8229 hppa*64*)
8230 # +Z the default
8233 lt_prog_compiler_pic='-fPIC'
8235 esac
8238 interix[3-9]*)
8239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8240 # Instead, we relocate shared libraries at runtime.
8243 msdosdjgpp*)
8244 # Just because we use GCC doesn't mean we suddenly get shared libraries
8245 # on systems that don't support them.
8246 lt_prog_compiler_can_build_shared=no
8247 enable_shared=no
8250 *nto* | *qnx*)
8251 # QNX uses GNU C++, but need to define -shared option too, otherwise
8252 # it will coredump.
8253 lt_prog_compiler_pic='-fPIC -shared'
8256 sysv4*MP*)
8257 if test -d /usr/nec; then
8258 lt_prog_compiler_pic=-Kconform_pic
8263 lt_prog_compiler_pic='-fPIC'
8265 esac
8267 case $cc_basename in
8268 nvcc*) # Cuda Compiler Driver 2.2
8269 lt_prog_compiler_wl='-Xlinker '
8270 lt_prog_compiler_pic='-Xcompiler -fPIC'
8272 esac
8273 else
8274 # PORTME Check for flag to pass linker flags through the system compiler.
8275 case $host_os in
8276 aix*)
8277 lt_prog_compiler_wl='-Wl,'
8278 if test "$host_cpu" = ia64; then
8279 # AIX 5 now supports IA64 processor
8280 lt_prog_compiler_static='-Bstatic'
8281 else
8282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 hpux9* | hpux10* | hpux11*)
8293 lt_prog_compiler_wl='-Wl,'
8294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8295 # not for PA HP-UX.
8296 case $host_cpu in
8297 hppa*64*|ia64*)
8298 # +Z the default
8301 lt_prog_compiler_pic='+Z'
8303 esac
8304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8305 lt_prog_compiler_static='${wl}-a ${wl}archive'
8308 irix5* | irix6* | nonstopux*)
8309 lt_prog_compiler_wl='-Wl,'
8310 # PIC (with -KPIC) is the default.
8311 lt_prog_compiler_static='-non_shared'
8314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8315 case $cc_basename in
8316 # old Intel for x86_64 which still supported -KPIC.
8317 ecc*)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-KPIC'
8320 lt_prog_compiler_static='-static'
8322 # icc used to be incompatible with GCC.
8323 # ICC 10 doesn't accept -KPIC any more.
8324 icc* | ifort*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fPIC'
8327 lt_prog_compiler_static='-static'
8329 # Lahey Fortran 8.1.
8330 lf95*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='--shared'
8333 lt_prog_compiler_static='--static'
8335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8336 # Portland Group compilers (*not* the Pentium gcc compiler,
8337 # which looks to be a dead project)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='-fpic'
8340 lt_prog_compiler_static='-Bstatic'
8342 ccc*)
8343 lt_prog_compiler_wl='-Wl,'
8344 # All Alpha code is PIC.
8345 lt_prog_compiler_static='-non_shared'
8347 xl* | bgxl* | bgf* | mpixl*)
8348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='-qpic'
8351 lt_prog_compiler_static='-qstaticlink'
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ F* | *Sun*Fortran*)
8356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 lt_prog_compiler_wl=''
8361 *Sun\ C*)
8362 # Sun C 5.9
8363 lt_prog_compiler_pic='-KPIC'
8364 lt_prog_compiler_static='-Bstatic'
8365 lt_prog_compiler_wl='-Wl,'
8367 esac
8369 esac
8372 newsos6)
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8377 *nto* | *qnx*)
8378 # QNX uses GNU C++, but need to define -shared option too, otherwise
8379 # it will coredump.
8380 lt_prog_compiler_pic='-fPIC -shared'
8383 osf3* | osf4* | osf5*)
8384 lt_prog_compiler_wl='-Wl,'
8385 # All OSF/1 code is PIC.
8386 lt_prog_compiler_static='-non_shared'
8389 rdos*)
8390 lt_prog_compiler_static='-non_shared'
8393 solaris*)
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 case $cc_basename in
8397 f77* | f90* | f95*)
8398 lt_prog_compiler_wl='-Qoption ld ';;
8400 lt_prog_compiler_wl='-Wl,';;
8401 esac
8404 sunos4*)
8405 lt_prog_compiler_wl='-Qoption ld '
8406 lt_prog_compiler_pic='-PIC'
8407 lt_prog_compiler_static='-Bstatic'
8410 sysv4 | sysv4.2uw2* | sysv4.3*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8416 sysv4*MP*)
8417 if test -d /usr/nec ;then
8418 lt_prog_compiler_pic='-Kconform_pic'
8419 lt_prog_compiler_static='-Bstatic'
8423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8429 unicos*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_can_build_shared=no
8434 uts4*)
8435 lt_prog_compiler_pic='-pic'
8436 lt_prog_compiler_static='-Bstatic'
8440 lt_prog_compiler_can_build_shared=no
8442 esac
8445 case $host_os in
8446 # For platforms which do not support PIC, -DPIC is meaningless:
8447 *djgpp*)
8448 lt_prog_compiler_pic=
8451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8453 esac
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8455 $as_echo "$lt_prog_compiler_pic" >&6; }
8463 # Check to make sure the PIC flag actually works.
8465 if test -n "$lt_prog_compiler_pic"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8467 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8468 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_pic_works=no
8472 ac_outfile=conftest.$ac_objext
8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8475 # Insert the option either (1) after the last *FLAGS variable, or
8476 # (2) before a word containing "conftest.", or (3) at the end.
8477 # Note that $ac_compile itself does not contain backslashes and begins
8478 # with a dollar sign (not a hyphen), so the echo should work correctly.
8479 # The option is referenced via a variable to avoid confusing sed.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>conftest.err)
8486 ac_status=$?
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s "$ac_outfile"; then
8490 # The compiler can only warn and ignore the option if not recognized
8491 # So say no if there are warnings other than the usual output.
8492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8495 lt_cv_prog_compiler_pic_works=yes
8498 $RM conftest*
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8502 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8504 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8505 case $lt_prog_compiler_pic in
8506 "" | " "*) ;;
8507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8508 esac
8509 else
8510 lt_prog_compiler_pic=
8511 lt_prog_compiler_can_build_shared=no
8522 # Check to make sure the static flag actually works.
8524 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8526 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8527 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 lt_cv_prog_compiler_static_works=no
8531 save_LDFLAGS="$LDFLAGS"
8532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8533 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8535 # The linker can only warn and ignore the option if not recognized
8536 # So say no if there are warnings
8537 if test -s conftest.err; then
8538 # Append any errors to the config.log.
8539 cat conftest.err 1>&5
8540 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542 if diff conftest.exp conftest.er2 >/dev/null; then
8543 lt_cv_prog_compiler_static_works=yes
8545 else
8546 lt_cv_prog_compiler_static_works=yes
8549 $RM -r conftest*
8550 LDFLAGS="$save_LDFLAGS"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8554 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8556 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8558 else
8559 lt_prog_compiler_static=
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8569 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8570 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 lt_cv_prog_compiler_c_o=no
8574 $RM -r conftest 2>/dev/null
8575 mkdir conftest
8576 cd conftest
8577 mkdir out
8578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="-o out/conftest2.$ac_objext"
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 lt_compile=`echo "$ac_compile" | $SED \
8586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8588 -e 's:$: $lt_compiler_flag:'`
8589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8590 (eval "$lt_compile" 2>out/conftest.err)
8591 ac_status=$?
8592 cat out/conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8595 then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_c_o=yes
8604 chmod u+w . 2>&5
8605 $RM conftest*
8606 # SGI C++ compiler will create directory out/ii_files/ for
8607 # template instantiation
8608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8609 $RM out/* && rmdir out
8610 cd ..
8611 $RM -r conftest
8612 $RM conftest*
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8616 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8624 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8625 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 lt_cv_prog_compiler_c_o=no
8629 $RM -r conftest 2>/dev/null
8630 mkdir conftest
8631 cd conftest
8632 mkdir out
8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8635 lt_compiler_flag="-o out/conftest2.$ac_objext"
8636 # Insert the option either (1) after the last *FLAGS variable, or
8637 # (2) before a word containing "conftest.", or (3) at the end.
8638 # Note that $ac_compile itself does not contain backslashes and begins
8639 # with a dollar sign (not a hyphen), so the echo should work correctly.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>out/conftest.err)
8646 ac_status=$?
8647 cat out/conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8650 then
8651 # The compiler can only warn and ignore the option if not recognized
8652 # So say no if there are warnings
8653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8656 lt_cv_prog_compiler_c_o=yes
8659 chmod u+w . 2>&5
8660 $RM conftest*
8661 # SGI C++ compiler will create directory out/ii_files/ for
8662 # template instantiation
8663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8664 $RM out/* && rmdir out
8665 cd ..
8666 $RM -r conftest
8667 $RM conftest*
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8671 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8676 hard_links="nottested"
8677 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8678 # do not overwrite the value of need_locks provided by the user
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8680 $as_echo_n "checking if we can lock with hard links... " >&6; }
8681 hard_links=yes
8682 $RM conftest*
8683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8684 touch conftest.a
8685 ln conftest.a conftest.b 2>&5 || hard_links=no
8686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8688 $as_echo "$hard_links" >&6; }
8689 if test "$hard_links" = no; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8691 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8692 need_locks=warn
8694 else
8695 need_locks=no
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8704 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8706 runpath_var=
8707 allow_undefined_flag=
8708 always_export_symbols=no
8709 archive_cmds=
8710 archive_expsym_cmds=
8711 compiler_needs_object=no
8712 enable_shared_with_static_runtimes=no
8713 export_dynamic_flag_spec=
8714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8715 hardcode_automatic=no
8716 hardcode_direct=no
8717 hardcode_direct_absolute=no
8718 hardcode_libdir_flag_spec=
8719 hardcode_libdir_flag_spec_ld=
8720 hardcode_libdir_separator=
8721 hardcode_minus_L=no
8722 hardcode_shlibpath_var=unsupported
8723 inherit_rpath=no
8724 link_all_deplibs=unknown
8725 module_cmds=
8726 module_expsym_cmds=
8727 old_archive_from_new_cmds=
8728 old_archive_from_expsyms_cmds=
8729 thread_safe_flag_spec=
8730 whole_archive_flag_spec=
8731 # include_expsyms should be a list of space-separated symbols to be *always*
8732 # included in the symbol list
8733 include_expsyms=
8734 # exclude_expsyms can be an extended regexp of symbols to exclude
8735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8737 # as well as any symbol that contains `d'.
8738 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8740 # platforms (ab)use it in PIC code, but their linkers get confused if
8741 # the symbol is explicitly referenced. Since portable code cannot
8742 # rely on this symbol name, it's probably fine to never include it in
8743 # preloaded symbol tables.
8744 # Exclude shared library initialization/finalization symbols.
8745 extract_expsyms_cmds=
8747 case $host_os in
8748 cygwin* | mingw* | pw32* | cegcc*)
8749 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8750 # When not using gcc, we currently assume that we are using
8751 # Microsoft Visual C++.
8752 if test "$GCC" != yes; then
8753 with_gnu_ld=no
8756 interix*)
8757 # we just hope/assume this is gcc and not c89 (= MSVC++)
8758 with_gnu_ld=yes
8760 openbsd*)
8761 with_gnu_ld=no
8763 esac
8765 ld_shlibs=yes
8767 # On some targets, GNU ld is compatible enough with the native linker
8768 # that we're better off using the native interface for both.
8769 lt_use_gnu_ld_interface=no
8770 if test "$with_gnu_ld" = yes; then
8771 case $host_os in
8772 aix*)
8773 # The AIX port of GNU ld has always aspired to compatibility
8774 # with the native linker. However, as the warning in the GNU ld
8775 # block says, versions before 2.19.5* couldn't really create working
8776 # shared libraries, regardless of the interface used.
8777 case `$LD -v 2>&1` in
8778 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8779 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8780 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8782 lt_use_gnu_ld_interface=yes
8784 esac
8787 lt_use_gnu_ld_interface=yes
8789 esac
8792 if test "$lt_use_gnu_ld_interface" = yes; then
8793 # If archive_cmds runs LD, not CC, wlarc should be empty
8794 wlarc='${wl}'
8796 # Set some defaults for GNU ld with shared library support. These
8797 # are reset later if shared libraries are not supported. Putting them
8798 # here allows them to be overridden if necessary.
8799 runpath_var=LD_RUN_PATH
8800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801 export_dynamic_flag_spec='${wl}--export-dynamic'
8802 # ancient GNU ld didn't support --whole-archive et. al.
8803 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8805 else
8806 whole_archive_flag_spec=
8808 supports_anon_versioning=no
8809 case `$LD -v 2>&1` in
8810 *GNU\ gold*) supports_anon_versioning=yes ;;
8811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8814 *\ 2.11.*) ;; # other 2.11 versions
8815 *) supports_anon_versioning=yes ;;
8816 esac
8818 # See if GNU ld supports shared libraries.
8819 case $host_os in
8820 aix[3-9]*)
8821 # On AIX/PPC, the GNU linker is very broken
8822 if test "$host_cpu" != ia64; then
8823 ld_shlibs=no
8824 cat <<_LT_EOF 1>&2
8826 *** Warning: the GNU linker, at least up to release 2.19, is reported
8827 *** to be unable to reliably create shared libraries on AIX.
8828 *** Therefore, libtool is disabling shared libraries support. If you
8829 *** really care for shared libraries, you may want to install binutils
8830 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8831 *** You will then need to restart the configuration process.
8833 _LT_EOF
8837 amigaos*)
8838 case $host_cpu in
8839 powerpc)
8840 # see comment about AmigaOS4 .so support
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 archive_expsym_cmds=''
8844 m68k)
8845 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)'
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 hardcode_minus_L=yes
8849 esac
8852 beos*)
8853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8854 allow_undefined_flag=unsupported
8855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8856 # support --undefined. This deserves some investigation. FIXME
8857 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858 else
8859 ld_shlibs=no
8863 cygwin* | mingw* | pw32* | cegcc*)
8864 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8865 # as there is no search path for DLLs.
8866 hardcode_libdir_flag_spec='-L$libdir'
8867 export_dynamic_flag_spec='${wl}--export-all-symbols'
8868 allow_undefined_flag=unsupported
8869 always_export_symbols=no
8870 enable_shared_with_static_runtimes=yes
8871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8875 # If the export-symbols file already is a .def file (1st line
8876 # is EXPORTS), use it as is; otherwise, prepend...
8877 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8878 cp $export_symbols $output_objdir/$soname.def;
8879 else
8880 echo EXPORTS > $output_objdir/$soname.def;
8881 cat $export_symbols >> $output_objdir/$soname.def;
8883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8884 else
8885 ld_shlibs=no
8889 haiku*)
8890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8891 link_all_deplibs=yes
8894 interix[3-9]*)
8895 hardcode_direct=no
8896 hardcode_shlibpath_var=no
8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8898 export_dynamic_flag_spec='${wl}-E'
8899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8900 # Instead, shared libraries are loaded at an image base (0x10000000 by
8901 # default) and relocated if they conflict, which is a slow very memory
8902 # consuming and fragmenting process. To avoid this, we pick a random,
8903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8906 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'
8909 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8910 tmp_diet=no
8911 if test "$host_os" = linux-dietlibc; then
8912 case $cc_basename in
8913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8914 esac
8916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8917 && test "$tmp_diet" = no
8918 then
8919 tmp_addflag=
8920 tmp_sharedflag='-shared'
8921 case $cc_basename,$host_cpu in
8922 pgcc*) # Portland Group C compiler
8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924 tmp_addflag=' $pic_flag'
8926 pgf77* | pgf90* | pgf95* | pgfortran*)
8927 # Portland Group f77 and f90 compilers
8928 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'
8929 tmp_addflag=' $pic_flag -Mnomain' ;;
8930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8931 tmp_addflag=' -i_dynamic' ;;
8932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8933 tmp_addflag=' -i_dynamic -nofor_main' ;;
8934 ifc* | ifort*) # Intel Fortran compiler
8935 tmp_addflag=' -nofor_main' ;;
8936 lf95*) # Lahey Fortran 8.1
8937 whole_archive_flag_spec=
8938 tmp_sharedflag='--shared' ;;
8939 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8940 tmp_sharedflag='-qmkshrobj'
8941 tmp_addflag= ;;
8942 nvcc*) # Cuda Compiler Driver 2.2
8943 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'
8944 compiler_needs_object=yes
8946 esac
8947 case `$CC -V 2>&1 | sed 5q` in
8948 *Sun\ C*) # Sun C 5.9
8949 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'
8950 compiler_needs_object=yes
8951 tmp_sharedflag='-G' ;;
8952 *Sun\ F*) # Sun Fortran 8.3
8953 tmp_sharedflag='-G' ;;
8954 esac
8955 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 if test "x$supports_anon_versioning" = xyes; then
8958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8960 echo "local: *; };" >> $output_objdir/$libname.ver~
8961 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8964 case $cc_basename in
8965 xlf* | bgf* | bgxlf* | mpixlf*)
8966 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8967 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8968 hardcode_libdir_flag_spec=
8969 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8970 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8971 if test "x$supports_anon_versioning" = xyes; then
8972 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8974 echo "local: *; };" >> $output_objdir/$libname.ver~
8975 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8978 esac
8979 else
8980 ld_shlibs=no
8984 netbsd*)
8985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8986 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8987 wlarc=
8988 else
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994 solaris*)
8995 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9000 *** create shared libraries on Solaris systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.9.1 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9006 _LT_EOF
9007 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 else
9011 ld_shlibs=no
9015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9016 case `$LD -v 2>&1` in
9017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9018 ld_shlibs=no
9019 cat <<_LT_EOF 1>&2
9021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9022 *** reliably create shared libraries on SCO systems. Therefore, libtool
9023 *** is disabling shared libraries support. We urge you to upgrade GNU
9024 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9025 *** your PATH or compiler configuration so that the native linker is
9026 *** used, and then restart.
9028 _LT_EOF
9031 # For security reasons, it is highly recommended that you always
9032 # use absolute paths for naming shared libraries, and exclude the
9033 # DT_RUNPATH tag from executables and libraries. But doing so
9034 # requires that you compile everything twice, which is a pain.
9035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9043 esac
9046 sunos4*)
9047 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9048 wlarc=
9049 hardcode_direct=yes
9050 hardcode_shlibpath_var=no
9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057 else
9058 ld_shlibs=no
9061 esac
9063 if test "$ld_shlibs" = no; then
9064 runpath_var=
9065 hardcode_libdir_flag_spec=
9066 export_dynamic_flag_spec=
9067 whole_archive_flag_spec=
9069 else
9070 # PORTME fill in a description of your system's linker (not GNU ld)
9071 case $host_os in
9072 aix3*)
9073 allow_undefined_flag=unsupported
9074 always_export_symbols=yes
9075 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'
9076 # Note: this linker hardcodes the directories in LIBPATH if there
9077 # are no directories specified by -L.
9078 hardcode_minus_L=yes
9079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9080 # Neither direct hardcoding nor static linking is supported with a
9081 # broken collect2.
9082 hardcode_direct=unsupported
9086 aix[4-9]*)
9087 if test "$host_cpu" = ia64; then
9088 # On IA64, the linker does run time linking by default, so we don't
9089 # have to do anything special.
9090 aix_use_runtimelinking=no
9091 exp_sym_flag='-Bexport'
9092 no_entry_flag=""
9093 else
9094 # If we're using GNU nm, then we don't want the "-C" option.
9095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9096 # Also, AIX nm treats weak defined symbols like other global
9097 # defined symbols, whereas GNU nm marks them as "W".
9098 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9099 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'
9100 else
9101 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'
9103 aix_use_runtimelinking=no
9105 # Test if we are trying to use run time linking or normal
9106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9107 # need to do runtime linking.
9108 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9109 for ld_flag in $LDFLAGS; do
9110 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9111 aix_use_runtimelinking=yes
9112 break
9114 done
9116 esac
9118 exp_sym_flag='-bexport'
9119 no_entry_flag='-bnoentry'
9122 # When large executables or shared objects are built, AIX ld can
9123 # have problems creating the table of contents. If linking a library
9124 # or program results in "error TOC overflow" add -mminimal-toc to
9125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9128 archive_cmds=''
9129 hardcode_direct=yes
9130 hardcode_direct_absolute=yes
9131 hardcode_libdir_separator=':'
9132 link_all_deplibs=yes
9133 file_list_spec='${wl}-f,'
9135 if test "$GCC" = yes; then
9136 case $host_os in aix4.[012]|aix4.[012].*)
9137 # We only want to do this on AIX 4.2 and lower, the check
9138 # below for broken collect2 doesn't work under 4.3+
9139 collect2name=`${CC} -print-prog-name=collect2`
9140 if test -f "$collect2name" &&
9141 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9142 then
9143 # We have reworked collect2
9145 else
9146 # We have old collect2
9147 hardcode_direct=unsupported
9148 # It fails to find uninstalled libraries when the uninstalled
9149 # path is not listed in the libpath. Setting hardcode_minus_L
9150 # to unsupported forces relinking
9151 hardcode_minus_L=yes
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 hardcode_libdir_separator=
9156 esac
9157 shared_flag='-shared'
9158 if test "$aix_use_runtimelinking" = yes; then
9159 shared_flag="$shared_flag "'${wl}-G'
9161 else
9162 # not using gcc
9163 if test "$host_cpu" = ia64; then
9164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9165 # chokes on -Wl,-G. The following line is correct:
9166 shared_flag='-G'
9167 else
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag='${wl}-G'
9170 else
9171 shared_flag='${wl}-bM:SRE'
9176 export_dynamic_flag_spec='${wl}-bexpall'
9177 # It seems that -bexpall does not export symbols beginning with
9178 # underscore (_), so it is better to generate a list of symbols to export.
9179 always_export_symbols=yes
9180 if test "$aix_use_runtimelinking" = yes; then
9181 # Warning - without using the other runtime loading flags (-brtl),
9182 # -berok will link without error, but may produce a broken library.
9183 allow_undefined_flag='-berok'
9184 # Determine the default libpath from the value encoded in an
9185 # empty executable.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9190 main ()
9194 return 0;
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"; then :
9199 lt_aix_libpath_sed='
9200 /Import File Strings/,/^$/ {
9201 /^0/ {
9202 s/^0 *\(.*\)$/\1/
9206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 # Check for a 64-bit object if we didn't find anything.
9208 if test -z "$aix_libpath"; then
9209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9217 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"
9218 else
9219 if test "$host_cpu" = ia64; then
9220 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9221 allow_undefined_flag="-z nodefs"
9222 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"
9223 else
9224 # Determine the default libpath from the value encoded in an
9225 # empty executable.
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9230 main ()
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9239 lt_aix_libpath_sed='
9240 /Import File Strings/,/^$/ {
9241 /^0/ {
9242 s/^0 *\(.*\)$/\1/
9246 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9247 # Check for a 64-bit object if we didn't find anything.
9248 if test -z "$aix_libpath"; then
9249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 # Warning - without using the other run time loading flags,
9258 # -berok will link without error, but may produce a broken library.
9259 no_undefined_flag=' ${wl}-bernotok'
9260 allow_undefined_flag=' ${wl}-berok'
9261 if test "$with_gnu_ld" = yes; then
9262 # We only use this code for GNU lds that support --whole-archive.
9263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9264 else
9265 # Exported symbols can be pulled into shared objects from archives
9266 whole_archive_flag_spec='$convenience'
9268 archive_cmds_need_lc=yes
9269 # This is similar to how AIX traditionally builds its shared libraries.
9270 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'
9275 amigaos*)
9276 case $host_cpu in
9277 powerpc)
9278 # see comment about AmigaOS4 .so support
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds=''
9282 m68k)
9283 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)'
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9287 esac
9290 bsdi[45]*)
9291 export_dynamic_flag_spec=-rdynamic
9294 cygwin* | mingw* | pw32* | cegcc*)
9295 # When not using gcc, we currently assume that we are using
9296 # Microsoft Visual C++.
9297 # hardcode_libdir_flag_spec is actually meaningless, as there is
9298 # no search path for DLLs.
9299 hardcode_libdir_flag_spec=' '
9300 allow_undefined_flag=unsupported
9301 # Tell ltmain to make .lib files, not .a files.
9302 libext=lib
9303 # Tell ltmain to make .dll files, not .so files.
9304 shrext_cmds=".dll"
9305 # FIXME: Setting linknames here is a bad hack.
9306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9307 # The linker will automatically build a .lib file if we build a DLL.
9308 old_archive_from_new_cmds='true'
9309 # FIXME: Should let the user specify the lib program.
9310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9311 fix_srcfile_path='`cygpath -w "$srcfile"`'
9312 enable_shared_with_static_runtimes=yes
9315 darwin* | rhapsody*)
9318 archive_cmds_need_lc=no
9319 hardcode_direct=no
9320 hardcode_automatic=yes
9321 hardcode_shlibpath_var=unsupported
9322 if test "$lt_cv_ld_force_load" = "yes"; then
9323 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\"`'
9324 else
9325 whole_archive_flag_spec=''
9327 link_all_deplibs=yes
9328 allow_undefined_flag="$_lt_dar_allow_undefined"
9329 case $cc_basename in
9330 ifort*) _lt_dar_can_shared=yes ;;
9331 *) _lt_dar_can_shared=$GCC ;;
9332 esac
9333 if test "$_lt_dar_can_shared" = "yes"; then
9334 output_verbose_link_cmd=func_echo_all
9335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9337 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}"
9338 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}"
9340 else
9341 ld_shlibs=no
9346 dgux*)
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-L$libdir'
9349 hardcode_shlibpath_var=no
9352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9353 # support. Future versions do this automatically, but an explicit c++rt0.o
9354 # does not break anything, and helps significantly (at the cost of a little
9355 # extra space).
9356 freebsd2.2*)
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9358 hardcode_libdir_flag_spec='-R$libdir'
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9364 freebsd2.*)
9365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct=yes
9367 hardcode_minus_L=yes
9368 hardcode_shlibpath_var=no
9371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9372 freebsd* | dragonfly*)
9373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 hardcode_direct=yes
9376 hardcode_shlibpath_var=no
9379 hpux9*)
9380 if test "$GCC" = yes; then
9381 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'
9382 else
9383 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'
9385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9386 hardcode_libdir_separator=:
9387 hardcode_direct=yes
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9392 export_dynamic_flag_spec='${wl}-E'
9395 hpux10*)
9396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 else
9399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9401 if test "$with_gnu_ld" = no; then
9402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9403 hardcode_libdir_flag_spec_ld='+b $libdir'
9404 hardcode_libdir_separator=:
9405 hardcode_direct=yes
9406 hardcode_direct_absolute=yes
9407 export_dynamic_flag_spec='${wl}-E'
9408 # hardcode_minus_L: Not really in the search PATH,
9409 # but as the default location of the library.
9410 hardcode_minus_L=yes
9414 hpux11*)
9415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416 case $host_cpu in
9417 hppa*64*)
9418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 ia64*)
9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 esac
9427 else
9428 case $host_cpu in
9429 hppa*64*)
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 ia64*)
9433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9437 # Older versions of the 11.00 compiler do not understand -b yet
9438 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9440 $as_echo_n "checking if $CC understands -b... " >&6; }
9441 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 lt_cv_prog_compiler__b=no
9445 save_LDFLAGS="$LDFLAGS"
9446 LDFLAGS="$LDFLAGS -b"
9447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9449 # The linker can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 if test -s conftest.err; then
9452 # Append any errors to the config.log.
9453 cat conftest.err 1>&5
9454 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9456 if diff conftest.exp conftest.er2 >/dev/null; then
9457 lt_cv_prog_compiler__b=yes
9459 else
9460 lt_cv_prog_compiler__b=yes
9463 $RM -r conftest*
9464 LDFLAGS="$save_LDFLAGS"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9468 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9470 if test x"$lt_cv_prog_compiler__b" = xyes; then
9471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9472 else
9473 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9477 esac
9479 if test "$with_gnu_ld" = no; then
9480 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9481 hardcode_libdir_separator=:
9483 case $host_cpu in
9484 hppa*64*|ia64*)
9485 hardcode_direct=no
9486 hardcode_shlibpath_var=no
9489 hardcode_direct=yes
9490 hardcode_direct_absolute=yes
9491 export_dynamic_flag_spec='${wl}-E'
9493 # hardcode_minus_L: Not really in the search PATH,
9494 # but as the default location of the library.
9495 hardcode_minus_L=yes
9497 esac
9501 irix5* | irix6* | nonstopux*)
9502 if test "$GCC" = yes; then
9503 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'
9504 # Try to use the -exported_symbol ld option, if it does not
9505 # work, assume that -exports_file does not work either and
9506 # implicitly export all symbols.
9507 save_LDFLAGS="$LDFLAGS"
9508 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 int foo(void) {}
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 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'
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 LDFLAGS="$save_LDFLAGS"
9520 else
9521 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'
9522 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'
9524 archive_cmds_need_lc='no'
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator=:
9527 inherit_rpath=yes
9528 link_all_deplibs=yes
9531 netbsd*)
9532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9534 else
9535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9537 hardcode_libdir_flag_spec='-R$libdir'
9538 hardcode_direct=yes
9539 hardcode_shlibpath_var=no
9542 newsos6)
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_direct=yes
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 hardcode_libdir_separator=:
9547 hardcode_shlibpath_var=no
9550 *nto* | *qnx*)
9553 openbsd*)
9554 if test -f /usr/libexec/ld.so; then
9555 hardcode_direct=yes
9556 hardcode_shlibpath_var=no
9557 hardcode_direct_absolute=yes
9558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9562 export_dynamic_flag_spec='${wl}-E'
9563 else
9564 case $host_os in
9565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_libdir_flag_spec='-R$libdir'
9570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573 esac
9575 else
9576 ld_shlibs=no
9580 os2*)
9581 hardcode_libdir_flag_spec='-L$libdir'
9582 hardcode_minus_L=yes
9583 allow_undefined_flag=unsupported
9584 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'
9585 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9588 osf3*)
9589 if test "$GCC" = yes; then
9590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9591 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'
9592 else
9593 allow_undefined_flag=' -expect_unresolved \*'
9594 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'
9596 archive_cmds_need_lc='no'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 hardcode_libdir_separator=:
9601 osf4* | osf5*) # as osf3* with the addition of -msym flag
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 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~
9610 $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'
9612 # Both c and cxx compiler support -rpath directly
9613 hardcode_libdir_flag_spec='-rpath $libdir'
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_separator=:
9619 solaris*)
9620 no_undefined_flag=' -z defs'
9621 if test "$GCC" = yes; then
9622 wlarc='${wl}'
9623 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9625 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9626 else
9627 case `$CC -V 2>&1` in
9628 *"Compilers 5.0"*)
9629 wlarc=''
9630 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9635 wlarc='${wl}'
9636 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 esac
9642 hardcode_libdir_flag_spec='-R$libdir'
9643 hardcode_shlibpath_var=no
9644 case $host_os in
9645 solaris2.[0-5] | solaris2.[0-5].*) ;;
9647 # The compiler driver will combine and reorder linker options,
9648 # but understands `-z linker_flag'. GCC discards it without `$wl',
9649 # but is careful enough not to reorder.
9650 # Supported since Solaris 2.6 (maybe 2.5.1?)
9651 if test "$GCC" = yes; then
9652 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9653 else
9654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9657 esac
9658 link_all_deplibs=yes
9661 sunos4*)
9662 if test "x$host_vendor" = xsequent; then
9663 # Use $CC to link under sequent, because it throws in some extra .o
9664 # files that make .init and .fini sections work.
9665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666 else
9667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_direct=yes
9671 hardcode_minus_L=yes
9672 hardcode_shlibpath_var=no
9675 sysv4)
9676 case $host_vendor in
9677 sni)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_direct=yes # is this really true???
9681 siemens)
9682 ## LD is ld it makes a PLAMLIB
9683 ## CC just makes a GrossModule.
9684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9685 reload_cmds='$CC -r -o $output$reload_objs'
9686 hardcode_direct=no
9688 motorola)
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9692 esac
9693 runpath_var='LD_RUN_PATH'
9694 hardcode_shlibpath_var=no
9697 sysv4.3*)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_shlibpath_var=no
9700 export_dynamic_flag_spec='-Bexport'
9703 sysv4*MP*)
9704 if test -d /usr/nec; then
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_shlibpath_var=no
9707 runpath_var=LD_RUN_PATH
9708 hardcode_runpath_var=yes
9709 ld_shlibs=yes
9713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9714 no_undefined_flag='${wl}-z,text'
9715 archive_cmds_need_lc=no
9716 hardcode_shlibpath_var=no
9717 runpath_var='LD_RUN_PATH'
9719 if test "$GCC" = yes; then
9720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 else
9723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 sysv5* | sco3.2v5* | sco5v6*)
9729 # Note: We can NOT use -z defs as we might desire, because we do not
9730 # link with -lc, and that would cause any symbols used from libc to
9731 # always be unresolved, which means just about no library would
9732 # ever link correctly. If we're not using GNU ld we use -z text
9733 # though, which does catch some bad symbols but isn't as heavy-handed
9734 # as -z defs.
9735 no_undefined_flag='${wl}-z,text'
9736 allow_undefined_flag='${wl}-z,nodefs'
9737 archive_cmds_need_lc=no
9738 hardcode_shlibpath_var=no
9739 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9740 hardcode_libdir_separator=':'
9741 link_all_deplibs=yes
9742 export_dynamic_flag_spec='${wl}-Bexport'
9743 runpath_var='LD_RUN_PATH'
9745 if test "$GCC" = yes; then
9746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 else
9749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 uts4*)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_shlibpath_var=no
9761 ld_shlibs=no
9763 esac
9765 if test x$host_vendor = xsni; then
9766 case $host in
9767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9768 export_dynamic_flag_spec='${wl}-Blargedynsym'
9770 esac
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9775 $as_echo "$ld_shlibs" >&6; }
9776 test "$ld_shlibs" = no && can_build_shared=no
9778 with_gnu_ld=$with_gnu_ld
9795 # Do we need to explicitly link libc?
9797 case "x$archive_cmds_need_lc" in
9798 x|xyes)
9799 # Assume -lc should be added
9800 archive_cmds_need_lc=yes
9802 if test "$enable_shared" = yes && test "$GCC" = yes; then
9803 case $archive_cmds in
9804 *'~'*)
9805 # FIXME: we may have to deal with multi-command sequences.
9807 '$CC '*)
9808 # Test whether the compiler implicitly links with -lc since on some
9809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9810 # to ld, don't add -lc before -lgcc.
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 $RM conftest*
9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9820 (eval $ac_compile) 2>&5
9821 ac_status=$?
9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; } 2>conftest.err; then
9824 soname=conftest
9825 lib=conftest
9826 libobjs=conftest.$ac_objext
9827 deplibs=
9828 wl=$lt_prog_compiler_wl
9829 pic_flag=$lt_prog_compiler_pic
9830 compiler_flags=-v
9831 linker_flags=-v
9832 verstring=
9833 output_objdir=.
9834 libname=conftest
9835 lt_save_allow_undefined_flag=$allow_undefined_flag
9836 allow_undefined_flag=
9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9838 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9839 ac_status=$?
9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; }
9842 then
9843 lt_cv_archive_cmds_need_lc=no
9844 else
9845 lt_cv_archive_cmds_need_lc=yes
9847 allow_undefined_flag=$lt_save_allow_undefined_flag
9848 else
9849 cat conftest.err 1>&5
9851 $RM conftest*
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9858 esac
9861 esac
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10022 if test "$GCC" = yes; then
10023 case $host_os in
10024 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10025 *) lt_awk_arg="/^libraries:/" ;;
10026 esac
10027 case $host_os in
10028 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10029 *) lt_sed_strip_eq="s,=/,/,g" ;;
10030 esac
10031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10032 case $lt_search_path_spec in
10033 *\;*)
10034 # if the path contains ";" then we assume it to be the separator
10035 # otherwise default to the standard path separator (i.e. ":") - it is
10036 # assumed that no part of a normal pathname contains ";" but that should
10037 # okay in the real world where ";" in dirpaths is itself problematic.
10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10043 esac
10044 # Ok, now we have the path, separated by spaces, we can step through it
10045 # and add multilib dir if necessary.
10046 lt_tmp_lt_search_path_spec=
10047 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10048 for lt_sys_path in $lt_search_path_spec; do
10049 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10051 else
10052 test -d "$lt_sys_path" && \
10053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10055 done
10056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10057 BEGIN {RS=" "; FS="/|\n";} {
10058 lt_foo="";
10059 lt_count=0;
10060 for (lt_i = NF; lt_i > 0; lt_i--) {
10061 if ($lt_i != "" && $lt_i != ".") {
10062 if ($lt_i == "..") {
10063 lt_count++;
10064 } else {
10065 if (lt_count == 0) {
10066 lt_foo="/" $lt_i lt_foo;
10067 } else {
10068 lt_count--;
10073 if (lt_foo != "") { lt_freq[lt_foo]++; }
10074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10076 # AWK program above erroneously prepends '/' to C:/dos/paths
10077 # for these hosts.
10078 case $host_os in
10079 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10080 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10081 esac
10082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10083 else
10084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086 library_names_spec=
10087 libname_spec='lib$name'
10088 soname_spec=
10089 shrext_cmds=".so"
10090 postinstall_cmds=
10091 postuninstall_cmds=
10092 finish_cmds=
10093 finish_eval=
10094 shlibpath_var=
10095 shlibpath_overrides_runpath=unknown
10096 version_type=none
10097 dynamic_linker="$host_os ld.so"
10098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10099 need_lib_prefix=unknown
10100 hardcode_into_libs=no
10102 # when you set need_version to no, make sure it does not cause -set_version
10103 # flags to be left without arguments
10104 need_version=unknown
10106 case $host_os in
10107 aix3*)
10108 version_type=linux
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10110 shlibpath_var=LIBPATH
10112 # AIX 3 has no versioning support, so we append a major version to the name.
10113 soname_spec='${libname}${release}${shared_ext}$major'
10116 aix[4-9]*)
10117 version_type=linux
10118 need_lib_prefix=no
10119 need_version=no
10120 hardcode_into_libs=yes
10121 if test "$host_cpu" = ia64; then
10122 # AIX 5 supports IA64
10123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 else
10126 # With GCC up to 2.95.x, collect2 would create an import file
10127 # for dependence libraries. The import file would start with
10128 # the line `#! .'. This would cause the generated library to
10129 # depend on `.', always an invalid library. This was fixed in
10130 # development snapshots of GCC prior to 3.0.
10131 case $host_os in
10132 aix4 | aix4.[01] | aix4.[01].*)
10133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10134 echo ' yes '
10135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137 else
10138 can_build_shared=no
10141 esac
10142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10143 # soname into executable. Probably we can add versioning support to
10144 # collect2, so additional links can be useful in future.
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10147 # instead of lib<name>.a to let people know that these are not
10148 # typical AIX shared libraries.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 else
10151 # We preserve .a as extension for shared libraries through AIX4.2
10152 # and later when we are not doing run time linking.
10153 library_names_spec='${libname}${release}.a $libname.a'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10156 shlibpath_var=LIBPATH
10160 amigaos*)
10161 case $host_cpu in
10162 powerpc)
10163 # Since July 2007 AmigaOS4 officially supports .so libraries.
10164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 m68k)
10168 library_names_spec='$libname.ixlibrary $libname.a'
10169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10170 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'
10172 esac
10175 beos*)
10176 library_names_spec='${libname}${shared_ext}'
10177 dynamic_linker="$host_os ld.so"
10178 shlibpath_var=LIBRARY_PATH
10181 bsdi[45]*)
10182 version_type=linux
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190 # the default ld.so.conf also contains /usr/contrib/lib and
10191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192 # libtool to hard-code these into programs
10195 cygwin* | mingw* | pw32* | cegcc*)
10196 version_type=windows
10197 shrext_cmds=".dll"
10198 need_version=no
10199 need_lib_prefix=no
10201 case $GCC,$host_os in
10202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10203 library_names_spec='$libname.dll.a'
10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205 postinstall_cmds='base_file=`basename \${file}`~
10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10207 dldir=$destdir/`dirname \$dlpath`~
10208 test -d \$dldir || mkdir -p \$dldir~
10209 $install_prog $dir/$dlname \$dldir/$dlname~
10210 chmod a+x \$dldir/$dlname~
10211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215 dlpath=$dir/\$dldll~
10216 $RM \$dlpath'
10217 shlibpath_overrides_runpath=yes
10219 case $host_os in
10220 cygwin*)
10221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10226 mingw* | cegcc*)
10227 # MinGW DLLs use traditional 'lib' prefix
10228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 pw32*)
10231 # pw32 DLLs use 'pw' prefix rather than 'lib'
10232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 esac
10238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10240 esac
10241 dynamic_linker='Win32 ld.exe'
10242 # FIXME: first we should search . and the directory the executable is in
10243 shlibpath_var=PATH
10246 darwin* | rhapsody*)
10247 dynamic_linker="$host_os dyld"
10248 version_type=darwin
10249 need_lib_prefix=no
10250 need_version=no
10251 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10252 soname_spec='${libname}${release}${major}$shared_ext'
10253 shlibpath_overrides_runpath=yes
10254 shlibpath_var=DYLD_LIBRARY_PATH
10255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10261 dgux*)
10262 version_type=linux
10263 need_lib_prefix=no
10264 need_version=no
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10270 freebsd* | dragonfly*)
10271 # DragonFly does not have aout. When/if they implement a new
10272 # versioning mechanism, adjust this.
10273 if test -x /usr/bin/objformat; then
10274 objformat=`/usr/bin/objformat`
10275 else
10276 case $host_os in
10277 freebsd[23].*) objformat=aout ;;
10278 *) objformat=elf ;;
10279 esac
10281 version_type=freebsd-$objformat
10282 case $version_type in
10283 freebsd-elf*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285 need_version=no
10286 need_lib_prefix=no
10288 freebsd-*)
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10290 need_version=yes
10292 esac
10293 shlibpath_var=LD_LIBRARY_PATH
10294 case $host_os in
10295 freebsd2.*)
10296 shlibpath_overrides_runpath=yes
10298 freebsd3.[01]* | freebsdelf3.[01]*)
10299 shlibpath_overrides_runpath=yes
10300 hardcode_into_libs=yes
10302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10304 shlibpath_overrides_runpath=no
10305 hardcode_into_libs=yes
10307 *) # from 4.6 on, and DragonFly
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10311 esac
10314 gnu*)
10315 version_type=linux
10316 need_lib_prefix=no
10317 need_version=no
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 hardcode_into_libs=yes
10324 haiku*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 dynamic_linker="$host_os runtime_loader"
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10334 hardcode_into_libs=yes
10337 hpux9* | hpux10* | hpux11*)
10338 # Give a soname corresponding to the major version so that dld.sl refuses to
10339 # link against other versions.
10340 version_type=sunos
10341 need_lib_prefix=no
10342 need_version=no
10343 case $host_cpu in
10344 ia64*)
10345 shrext_cmds='.so'
10346 hardcode_into_libs=yes
10347 dynamic_linker="$host_os dld.so"
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 if test "X$HPUX_IA64_MODE" = X32; then
10353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10354 else
10355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359 hppa*64*)
10360 shrext_cmds='.sl'
10361 hardcode_into_libs=yes
10362 dynamic_linker="$host_os dld.sl"
10363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10371 shrext_cmds='.sl'
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=SHLIB_PATH
10374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10378 esac
10379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10380 postinstall_cmds='chmod 555 $lib'
10381 # or fails outright, so override atomically:
10382 install_override_mode=555
10385 interix[3-9]*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10397 irix5* | irix6* | nonstopux*)
10398 case $host_os in
10399 nonstopux*) version_type=nonstopux ;;
10401 if test "$lt_cv_prog_gnu_ld" = yes; then
10402 version_type=linux
10403 else
10404 version_type=irix
10405 fi ;;
10406 esac
10407 need_lib_prefix=no
10408 need_version=no
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 case $host_os in
10412 irix5* | nonstopux*)
10413 libsuff= shlibsuff=
10416 case $LD in # libtool.m4 will add one of these switches to LD
10417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10418 libsuff= shlibsuff= libmagic=32-bit;;
10419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10420 libsuff=32 shlibsuff=N32 libmagic=N32;;
10421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10423 *) libsuff= shlibsuff= libmagic=never-match;;
10424 esac
10426 esac
10427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10428 shlibpath_overrides_runpath=no
10429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10431 hardcode_into_libs=yes
10434 # No shared lib support for Linux oldld, aout, or coff.
10435 linux*oldld* | linux*aout* | linux*coff*)
10436 dynamic_linker=no
10439 # This must be Linux ELF.
10440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=no
10450 # Some binutils ld are patched to set DT_RUNPATH
10451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 lt_cv_shlibpath_overrides_runpath=no
10455 save_LDFLAGS=$LDFLAGS
10456 save_libdir=$libdir
10457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10463 main ()
10467 return 0;
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10472 lt_cv_shlibpath_overrides_runpath=yes
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LDFLAGS=$save_LDFLAGS
10478 libdir=$save_libdir
10482 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10484 # This implies no fast_install, which is unacceptable.
10485 # Some rework will be needed to allow for fast_install
10486 # before this can be enabled.
10487 hardcode_into_libs=yes
10489 # Append ld.so.conf contents to the search path
10490 if test -f /etc/ld.so.conf; then
10491 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' ' '`
10492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10495 # We used to test for /lib/ld.so.1 and disable shared libraries on
10496 # powerpc, because MkLinux only supported shared libraries with the
10497 # GNU dynamic linker. Since this was broken with cross compilers,
10498 # most powerpc-linux boxes support dynamic linking these days and
10499 # people can always --disable-shared, the test was removed, and we
10500 # assume the GNU/Linux dynamic linker is in use.
10501 dynamic_linker='GNU/Linux ld.so'
10504 netbsd*)
10505 version_type=sunos
10506 need_lib_prefix=no
10507 need_version=no
10508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10511 dynamic_linker='NetBSD (a.out) ld.so'
10512 else
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 dynamic_linker='NetBSD ld.elf_so'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10519 hardcode_into_libs=yes
10522 newsos6)
10523 version_type=linux
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=yes
10529 *nto* | *qnx*)
10530 version_type=qnx
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537 hardcode_into_libs=yes
10538 dynamic_linker='ldqnx.so'
10541 openbsd*)
10542 version_type=sunos
10543 sys_lib_dlsearch_path_spec="/usr/lib"
10544 need_lib_prefix=no
10545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10546 case $host_os in
10547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10548 *) need_version=no ;;
10549 esac
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10554 case $host_os in
10555 openbsd2.[89] | openbsd2.[89].*)
10556 shlibpath_overrides_runpath=no
10559 shlibpath_overrides_runpath=yes
10561 esac
10562 else
10563 shlibpath_overrides_runpath=yes
10567 os2*)
10568 libname_spec='$name'
10569 shrext_cmds=".dll"
10570 need_lib_prefix=no
10571 library_names_spec='$libname${shared_ext} $libname.a'
10572 dynamic_linker='OS/2 ld.exe'
10573 shlibpath_var=LIBPATH
10576 osf3* | osf4* | osf5*)
10577 version_type=osf
10578 need_lib_prefix=no
10579 need_version=no
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10587 rdos*)
10588 dynamic_linker=no
10591 solaris*)
10592 version_type=linux
10593 need_lib_prefix=no
10594 need_version=no
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 hardcode_into_libs=yes
10600 # ldd complains unless libraries are executable
10601 postinstall_cmds='chmod +x $lib'
10604 sunos4*)
10605 version_type=sunos
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10610 if test "$with_gnu_ld" = yes; then
10611 need_lib_prefix=no
10613 need_version=yes
10616 sysv4 | sysv4.3*)
10617 version_type=linux
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 case $host_vendor in
10622 sni)
10623 shlibpath_overrides_runpath=no
10624 need_lib_prefix=no
10625 runpath_var=LD_RUN_PATH
10627 siemens)
10628 need_lib_prefix=no
10630 motorola)
10631 need_lib_prefix=no
10632 need_version=no
10633 shlibpath_overrides_runpath=no
10634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10636 esac
10639 sysv4*MP*)
10640 if test -d /usr/nec ;then
10641 version_type=linux
10642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10643 soname_spec='$libname${shared_ext}.$major'
10644 shlibpath_var=LD_LIBRARY_PATH
10648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10649 version_type=freebsd-elf
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes
10656 hardcode_into_libs=yes
10657 if test "$with_gnu_ld" = yes; then
10658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10659 else
10660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10661 case $host_os in
10662 sco3.2v5*)
10663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10665 esac
10667 sys_lib_dlsearch_path_spec='/usr/lib'
10670 tpf*)
10671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10672 version_type=linux
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=no
10678 hardcode_into_libs=yes
10681 uts4*)
10682 version_type=linux
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10689 dynamic_linker=no
10691 esac
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10693 $as_echo "$dynamic_linker" >&6; }
10694 test "$dynamic_linker" = no && can_build_shared=no
10696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10697 if test "$GCC" = yes; then
10698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10800 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10801 hardcode_action=
10802 if test -n "$hardcode_libdir_flag_spec" ||
10803 test -n "$runpath_var" ||
10804 test "X$hardcode_automatic" = "Xyes" ; then
10806 # We can hardcode non-existent directories.
10807 if test "$hardcode_direct" != no &&
10808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10809 # have to relink, otherwise we might link with an installed library
10810 # when we should be linking with a yet-to-be-installed one
10811 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10812 test "$hardcode_minus_L" != no; then
10813 # Linking always hardcodes the temporary library directory.
10814 hardcode_action=relink
10815 else
10816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10817 hardcode_action=immediate
10819 else
10820 # We cannot hardcode anything, or else we can only hardcode existing
10821 # directories.
10822 hardcode_action=unsupported
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10825 $as_echo "$hardcode_action" >&6; }
10827 if test "$hardcode_action" = relink ||
10828 test "$inherit_rpath" = yes; then
10829 # Fast installation is not supported
10830 enable_fast_install=no
10831 elif test "$shlibpath_overrides_runpath" = yes ||
10832 test "$enable_shared" = no; then
10833 # Fast installation is not necessary
10834 enable_fast_install=needless
10842 if test "x$enable_dlopen" != xyes; then
10843 enable_dlopen=unknown
10844 enable_dlopen_self=unknown
10845 enable_dlopen_self_static=unknown
10846 else
10847 lt_cv_dlopen=no
10848 lt_cv_dlopen_libs=
10850 case $host_os in
10851 beos*)
10852 lt_cv_dlopen="load_add_on"
10853 lt_cv_dlopen_libs=
10854 lt_cv_dlopen_self=yes
10857 mingw* | pw32* | cegcc*)
10858 lt_cv_dlopen="LoadLibrary"
10859 lt_cv_dlopen_libs=
10862 cygwin*)
10863 lt_cv_dlopen="dlopen"
10864 lt_cv_dlopen_libs=
10867 darwin*)
10868 # if libdl is installed we need to link against it
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-ldl $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char dlopen ();
10887 main ()
10889 return dlopen ();
10891 return 0;
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_dl_dlopen=yes
10896 else
10897 ac_cv_lib_dl_dlopen=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10907 else
10909 lt_cv_dlopen="dyld"
10910 lt_cv_dlopen_libs=
10911 lt_cv_dlopen_self=yes
10918 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10919 if test "x$ac_cv_func_shl_load" = x""yes; then :
10920 lt_cv_dlopen="shl_load"
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10923 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldld $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char shl_load ();
10940 main ()
10942 return shl_load ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dld_shl_load=yes
10949 else
10950 ac_cv_lib_dld_shl_load=no
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10957 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10958 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10960 else
10961 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10962 if test "x$ac_cv_func_dlopen" = x""yes; then :
10963 lt_cv_dlopen="dlopen"
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-ldl $LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dlopen ();
10983 main ()
10985 return dlopen ();
10987 return 0;
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_dl_dlopen=yes
10992 else
10993 ac_cv_lib_dl_dlopen=no
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11001 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11006 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lsvld $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char dlopen ();
11022 main ()
11024 return dlopen ();
11026 return 0;
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_lib_svld_dlopen=yes
11031 else
11032 ac_cv_lib_svld_dlopen=no
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11039 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11040 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11044 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11045 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 ac_check_lib_save_LIBS=$LIBS
11049 LIBS="-ldld $LIBS"
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char dld_link ();
11061 main ()
11063 return dld_link ();
11065 return 0;
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11069 ac_cv_lib_dld_dld_link=yes
11070 else
11071 ac_cv_lib_dld_dld_link=no
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11079 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11099 esac
11101 if test "x$lt_cv_dlopen" != xno; then
11102 enable_dlopen=yes
11103 else
11104 enable_dlopen=no
11107 case $lt_cv_dlopen in
11108 dlopen)
11109 save_CPPFLAGS="$CPPFLAGS"
11110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11112 save_LDFLAGS="$LDFLAGS"
11113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11115 save_LIBS="$LIBS"
11116 LIBS="$lt_cv_dlopen_libs $LIBS"
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11120 if test "${lt_cv_dlopen_self+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 if test "$cross_compiling" = yes; then :
11124 lt_cv_dlopen_self=cross
11125 else
11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127 lt_status=$lt_dlunknown
11128 cat > conftest.$ac_ext <<_LT_EOF
11129 #line 11129 "configure"
11130 #include "confdefs.h"
11132 #if HAVE_DLFCN_H
11133 #include <dlfcn.h>
11134 #endif
11136 #include <stdio.h>
11138 #ifdef RTLD_GLOBAL
11139 # define LT_DLGLOBAL RTLD_GLOBAL
11140 #else
11141 # ifdef DL_GLOBAL
11142 # define LT_DLGLOBAL DL_GLOBAL
11143 # else
11144 # define LT_DLGLOBAL 0
11145 # endif
11146 #endif
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149 find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11151 # ifdef RTLD_LAZY
11152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11153 # else
11154 # ifdef DL_LAZY
11155 # define LT_DLLAZY_OR_NOW DL_LAZY
11156 # else
11157 # ifdef RTLD_NOW
11158 # define LT_DLLAZY_OR_NOW RTLD_NOW
11159 # else
11160 # ifdef DL_NOW
11161 # define LT_DLLAZY_OR_NOW DL_NOW
11162 # else
11163 # define LT_DLLAZY_OR_NOW 0
11164 # endif
11165 # endif
11166 # endif
11167 # endif
11168 #endif
11170 /* When -fvisbility=hidden is used, assume the code has been annotated
11171 correspondingly for the symbols needed. */
11172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11173 void fnord () __attribute__((visibility("default")));
11174 #endif
11176 void fnord () { int i=42; }
11177 int main ()
11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11180 int status = $lt_dlunknown;
11182 if (self)
11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11185 else
11187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11188 else puts (dlerror ());
11190 /* dlclose (self); */
11192 else
11193 puts (dlerror ());
11195 return status;
11197 _LT_EOF
11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11199 (eval $ac_link) 2>&5
11200 ac_status=$?
11201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11203 (./conftest; exit; ) >&5 2>/dev/null
11204 lt_status=$?
11205 case x$lt_status in
11206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11209 esac
11210 else :
11211 # compilation failed
11212 lt_cv_dlopen_self=no
11215 rm -fr conftest*
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11220 $as_echo "$lt_cv_dlopen_self" >&6; }
11222 if test "x$lt_cv_dlopen_self" = xyes; then
11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11226 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test "$cross_compiling" = yes; then :
11230 lt_cv_dlopen_self_static=cross
11231 else
11232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11233 lt_status=$lt_dlunknown
11234 cat > conftest.$ac_ext <<_LT_EOF
11235 #line 11235 "configure"
11236 #include "confdefs.h"
11238 #if HAVE_DLFCN_H
11239 #include <dlfcn.h>
11240 #endif
11242 #include <stdio.h>
11244 #ifdef RTLD_GLOBAL
11245 # define LT_DLGLOBAL RTLD_GLOBAL
11246 #else
11247 # ifdef DL_GLOBAL
11248 # define LT_DLGLOBAL DL_GLOBAL
11249 # else
11250 # define LT_DLGLOBAL 0
11251 # endif
11252 #endif
11254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11255 find out it does not work in some platform. */
11256 #ifndef LT_DLLAZY_OR_NOW
11257 # ifdef RTLD_LAZY
11258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11259 # else
11260 # ifdef DL_LAZY
11261 # define LT_DLLAZY_OR_NOW DL_LAZY
11262 # else
11263 # ifdef RTLD_NOW
11264 # define LT_DLLAZY_OR_NOW RTLD_NOW
11265 # else
11266 # ifdef DL_NOW
11267 # define LT_DLLAZY_OR_NOW DL_NOW
11268 # else
11269 # define LT_DLLAZY_OR_NOW 0
11270 # endif
11271 # endif
11272 # endif
11273 # endif
11274 #endif
11276 /* When -fvisbility=hidden is used, assume the code has been annotated
11277 correspondingly for the symbols needed. */
11278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11279 void fnord () __attribute__((visibility("default")));
11280 #endif
11282 void fnord () { int i=42; }
11283 int main ()
11285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11286 int status = $lt_dlunknown;
11288 if (self)
11290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11291 else
11293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11294 else puts (dlerror ());
11296 /* dlclose (self); */
11298 else
11299 puts (dlerror ());
11301 return status;
11303 _LT_EOF
11304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11305 (eval $ac_link) 2>&5
11306 ac_status=$?
11307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11309 (./conftest; exit; ) >&5 2>/dev/null
11310 lt_status=$?
11311 case x$lt_status in
11312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11314 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11315 esac
11316 else :
11317 # compilation failed
11318 lt_cv_dlopen_self_static=no
11321 rm -fr conftest*
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11326 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11329 CPPFLAGS="$save_CPPFLAGS"
11330 LDFLAGS="$save_LDFLAGS"
11331 LIBS="$save_LIBS"
11333 esac
11335 case $lt_cv_dlopen_self in
11336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11337 *) enable_dlopen_self=unknown ;;
11338 esac
11340 case $lt_cv_dlopen_self_static in
11341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11342 *) enable_dlopen_self_static=unknown ;;
11343 esac
11362 striplib=
11363 old_striplib=
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11365 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11366 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11371 else
11372 # FIXME - insert some real tests, host_os isn't really good enough
11373 case $host_os in
11374 darwin*)
11375 if test -n "$STRIP" ; then
11376 striplib="$STRIP -x"
11377 old_striplib="$STRIP -S"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379 $as_echo "yes" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11389 esac
11403 # Report which library types will actually be built
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11405 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11407 $as_echo "$can_build_shared" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11410 $as_echo_n "checking whether to build shared libraries... " >&6; }
11411 test "$can_build_shared" = "no" && enable_shared=no
11413 # On AIX, shared libraries and static libraries use the same namespace, and
11414 # are all built from PIC.
11415 case $host_os in
11416 aix3*)
11417 test "$enable_shared" = yes && enable_static=no
11418 if test -n "$RANLIB"; then
11419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11420 postinstall_cmds='$RANLIB $lib'
11424 aix[4-9]*)
11425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11426 test "$enable_shared" = yes && enable_static=no
11429 esac
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11431 $as_echo "$enable_shared" >&6; }
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11434 $as_echo_n "checking whether to build static libraries... " >&6; }
11435 # Make sure either enable_shared or enable_static is yes.
11436 test "$enable_shared" = yes || enable_static=yes
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11438 $as_echo "$enable_static" >&6; }
11444 ac_ext=c
11445 ac_cpp='$CPP $CPPFLAGS'
11446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11450 CC="$lt_save_CC"
11464 # Source file extension for Go test sources.
11465 ac_ext=go
11467 # Object file extension for compiled Go test sources.
11468 objext=o
11469 objext_GO=$objext
11471 # Code to be used in simple compile tests
11472 lt_simple_compile_test_code="package main; func main() { }"
11474 # Code to be used in simple link tests
11475 lt_simple_link_test_code='package main; func main() { }'
11477 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11484 # If no C compiler was specified, use CC.
11485 LTCC=${LTCC-"$CC"}
11487 # If no C compiler flags were specified, use CFLAGS.
11488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11490 # Allow CC to be a program name with arguments.
11491 compiler=$CC
11494 # save warnings/boilerplate of simple test code
11495 ac_outfile=conftest.$ac_objext
11496 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11498 _lt_compiler_boilerplate=`cat conftest.err`
11499 $RM conftest*
11501 ac_outfile=conftest.$ac_objext
11502 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11504 _lt_linker_boilerplate=`cat conftest.err`
11505 $RM -r conftest*
11508 # Allow CC to be a program name with arguments.
11509 lt_save_CC="$CC"
11510 lt_save_GCC="$GCC"
11511 GCC=yes
11512 CC=${GOC-"gccgo"}
11513 compiler=$CC
11514 compiler_GO=$CC
11515 LD_GO="$LD"
11516 for cc_temp in $compiler""; do
11517 case $cc_temp in
11518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11520 \-*) ;;
11521 *) break;;
11522 esac
11523 done
11524 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11527 # Go did not exist at the time GCC didn't implicitly link libc in.
11528 archive_cmds_need_lc_GO=no
11530 old_archive_cmds_GO=$old_archive_cmds
11532 ## CAVEAT EMPTOR:
11533 ## There is no encapsulation within the following macros, do not change
11534 ## the running order or otherwise move them around unless you know exactly
11535 ## what you are doing...
11536 if test -n "$compiler"; then
11538 lt_prog_compiler_no_builtin_flag_GO=
11540 if test "$GCC" = yes; then
11541 case $cc_basename in
11542 nvcc*)
11543 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11545 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11546 esac
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11549 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11550 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 lt_cv_prog_compiler_rtti_exceptions=no
11554 ac_outfile=conftest.$ac_objext
11555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11556 lt_compiler_flag="-fno-rtti -fno-exceptions"
11557 # Insert the option either (1) after the last *FLAGS variable, or
11558 # (2) before a word containing "conftest.", or (3) at the end.
11559 # Note that $ac_compile itself does not contain backslashes and begins
11560 # with a dollar sign (not a hyphen), so the echo should work correctly.
11561 # The option is referenced via a variable to avoid confusing sed.
11562 lt_compile=`echo "$ac_compile" | $SED \
11563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11565 -e 's:$: $lt_compiler_flag:'`
11566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11567 (eval "$lt_compile" 2>conftest.err)
11568 ac_status=$?
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 if (exit $ac_status) && test -s "$ac_outfile"; then
11572 # The compiler can only warn and ignore the option if not recognized
11573 # So say no if there are warnings other than the usual output.
11574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11577 lt_cv_prog_compiler_rtti_exceptions=yes
11580 $RM conftest*
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11584 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11586 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11587 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11588 else
11596 lt_prog_compiler_wl_GO=
11597 lt_prog_compiler_pic_GO=
11598 lt_prog_compiler_static_GO=
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11603 if test "$GCC" = yes; then
11604 lt_prog_compiler_wl_GO='-Wl,'
11605 lt_prog_compiler_static_GO='-static'
11607 case $host_os in
11608 aix*)
11609 # All AIX code is PIC.
11610 if test "$host_cpu" = ia64; then
11611 # AIX 5 now supports IA64 processor
11612 lt_prog_compiler_static_GO='-Bstatic'
11614 lt_prog_compiler_pic_GO='-fPIC'
11617 amigaos*)
11618 case $host_cpu in
11619 powerpc)
11620 # see comment about AmigaOS4 .so support
11621 lt_prog_compiler_pic_GO='-fPIC'
11623 m68k)
11624 # FIXME: we need at least 68020 code to build shared libraries, but
11625 # adding the `-m68020' flag to GCC prevents building anything better,
11626 # like `-m68040'.
11627 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11629 esac
11632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11633 # PIC is the default for these OSes.
11636 mingw* | cygwin* | pw32* | os2* | cegcc*)
11637 # This hack is so that the source file can tell whether it is being
11638 # built for inclusion in a dll (and should export symbols for example).
11639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11640 # (--disable-auto-import) libraries
11641 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11644 darwin* | rhapsody*)
11645 # PIC is the default on this platform
11646 # Common symbols not allowed in MH_DYLIB files
11647 lt_prog_compiler_pic_GO='-fno-common'
11650 haiku*)
11651 # PIC is the default for Haiku.
11652 # The "-static" flag exists, but is broken.
11653 lt_prog_compiler_static_GO=
11656 hpux*)
11657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11659 # sets the default TLS model and affects inlining.
11660 case $host_cpu in
11661 hppa*64*)
11662 # +Z the default
11665 lt_prog_compiler_pic_GO='-fPIC'
11667 esac
11670 interix[3-9]*)
11671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11672 # Instead, we relocate shared libraries at runtime.
11675 msdosdjgpp*)
11676 # Just because we use GCC doesn't mean we suddenly get shared libraries
11677 # on systems that don't support them.
11678 lt_prog_compiler_can_build_shared_GO=no
11679 enable_shared=no
11682 *nto* | *qnx*)
11683 # QNX uses GNU C++, but need to define -shared option too, otherwise
11684 # it will coredump.
11685 lt_prog_compiler_pic_GO='-fPIC -shared'
11688 sysv4*MP*)
11689 if test -d /usr/nec; then
11690 lt_prog_compiler_pic_GO=-Kconform_pic
11695 lt_prog_compiler_pic_GO='-fPIC'
11697 esac
11699 case $cc_basename in
11700 nvcc*) # Cuda Compiler Driver 2.2
11701 lt_prog_compiler_wl_GO='-Xlinker '
11702 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11704 esac
11705 else
11706 # PORTME Check for flag to pass linker flags through the system compiler.
11707 case $host_os in
11708 aix*)
11709 lt_prog_compiler_wl_GO='-Wl,'
11710 if test "$host_cpu" = ia64; then
11711 # AIX 5 now supports IA64 processor
11712 lt_prog_compiler_static_GO='-Bstatic'
11713 else
11714 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11718 mingw* | cygwin* | pw32* | os2* | cegcc*)
11719 # This hack is so that the source file can tell whether it is being
11720 # built for inclusion in a dll (and should export symbols for example).
11721 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11724 hpux9* | hpux10* | hpux11*)
11725 lt_prog_compiler_wl_GO='-Wl,'
11726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11727 # not for PA HP-UX.
11728 case $host_cpu in
11729 hppa*64*|ia64*)
11730 # +Z the default
11733 lt_prog_compiler_pic_GO='+Z'
11735 esac
11736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11737 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11740 irix5* | irix6* | nonstopux*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 # PIC (with -KPIC) is the default.
11743 lt_prog_compiler_static_GO='-non_shared'
11746 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11747 case $cc_basename in
11748 # old Intel for x86_64 which still supported -KPIC.
11749 ecc*)
11750 lt_prog_compiler_wl_GO='-Wl,'
11751 lt_prog_compiler_pic_GO='-KPIC'
11752 lt_prog_compiler_static_GO='-static'
11754 # icc used to be incompatible with GCC.
11755 # ICC 10 doesn't accept -KPIC any more.
11756 icc* | ifort*)
11757 lt_prog_compiler_wl_GO='-Wl,'
11758 lt_prog_compiler_pic_GO='-fPIC'
11759 lt_prog_compiler_static_GO='-static'
11761 # Lahey Fortran 8.1.
11762 lf95*)
11763 lt_prog_compiler_wl_GO='-Wl,'
11764 lt_prog_compiler_pic_GO='--shared'
11765 lt_prog_compiler_static_GO='--static'
11767 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11768 # Portland Group compilers (*not* the Pentium gcc compiler,
11769 # which looks to be a dead project)
11770 lt_prog_compiler_wl_GO='-Wl,'
11771 lt_prog_compiler_pic_GO='-fpic'
11772 lt_prog_compiler_static_GO='-Bstatic'
11774 ccc*)
11775 lt_prog_compiler_wl_GO='-Wl,'
11776 # All Alpha code is PIC.
11777 lt_prog_compiler_static_GO='-non_shared'
11779 xl* | bgxl* | bgf* | mpixl*)
11780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11781 lt_prog_compiler_wl_GO='-Wl,'
11782 lt_prog_compiler_pic_GO='-qpic'
11783 lt_prog_compiler_static_GO='-qstaticlink'
11786 case `$CC -V 2>&1 | sed 5q` in
11787 *Sun\ F* | *Sun*Fortran*)
11788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11789 lt_prog_compiler_pic_GO='-KPIC'
11790 lt_prog_compiler_static_GO='-Bstatic'
11791 lt_prog_compiler_wl_GO=''
11793 *Sun\ C*)
11794 # Sun C 5.9
11795 lt_prog_compiler_pic_GO='-KPIC'
11796 lt_prog_compiler_static_GO='-Bstatic'
11797 lt_prog_compiler_wl_GO='-Wl,'
11799 esac
11801 esac
11804 newsos6)
11805 lt_prog_compiler_pic_GO='-KPIC'
11806 lt_prog_compiler_static_GO='-Bstatic'
11809 *nto* | *qnx*)
11810 # QNX uses GNU C++, but need to define -shared option too, otherwise
11811 # it will coredump.
11812 lt_prog_compiler_pic_GO='-fPIC -shared'
11815 osf3* | osf4* | osf5*)
11816 lt_prog_compiler_wl_GO='-Wl,'
11817 # All OSF/1 code is PIC.
11818 lt_prog_compiler_static_GO='-non_shared'
11821 rdos*)
11822 lt_prog_compiler_static_GO='-non_shared'
11825 solaris*)
11826 lt_prog_compiler_pic_GO='-KPIC'
11827 lt_prog_compiler_static_GO='-Bstatic'
11828 case $cc_basename in
11829 f77* | f90* | f95*)
11830 lt_prog_compiler_wl_GO='-Qoption ld ';;
11832 lt_prog_compiler_wl_GO='-Wl,';;
11833 esac
11836 sunos4*)
11837 lt_prog_compiler_wl_GO='-Qoption ld '
11838 lt_prog_compiler_pic_GO='-PIC'
11839 lt_prog_compiler_static_GO='-Bstatic'
11842 sysv4 | sysv4.2uw2* | sysv4.3*)
11843 lt_prog_compiler_wl_GO='-Wl,'
11844 lt_prog_compiler_pic_GO='-KPIC'
11845 lt_prog_compiler_static_GO='-Bstatic'
11848 sysv4*MP*)
11849 if test -d /usr/nec ;then
11850 lt_prog_compiler_pic_GO='-Kconform_pic'
11851 lt_prog_compiler_static_GO='-Bstatic'
11855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11856 lt_prog_compiler_wl_GO='-Wl,'
11857 lt_prog_compiler_pic_GO='-KPIC'
11858 lt_prog_compiler_static_GO='-Bstatic'
11861 unicos*)
11862 lt_prog_compiler_wl_GO='-Wl,'
11863 lt_prog_compiler_can_build_shared_GO=no
11866 uts4*)
11867 lt_prog_compiler_pic_GO='-pic'
11868 lt_prog_compiler_static_GO='-Bstatic'
11872 lt_prog_compiler_can_build_shared_GO=no
11874 esac
11877 case $host_os in
11878 # For platforms which do not support PIC, -DPIC is meaningless:
11879 *djgpp*)
11880 lt_prog_compiler_pic_GO=
11883 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11885 esac
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11887 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11892 # Check to make sure the PIC flag actually works.
11894 if test -n "$lt_prog_compiler_pic_GO"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11897 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 lt_cv_prog_compiler_pic_works_GO=no
11901 ac_outfile=conftest.$ac_objext
11902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11903 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11904 # Insert the option either (1) after the last *FLAGS variable, or
11905 # (2) before a word containing "conftest.", or (3) at the end.
11906 # Note that $ac_compile itself does not contain backslashes and begins
11907 # with a dollar sign (not a hyphen), so the echo should work correctly.
11908 # The option is referenced via a variable to avoid confusing sed.
11909 lt_compile=`echo "$ac_compile" | $SED \
11910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912 -e 's:$: $lt_compiler_flag:'`
11913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11914 (eval "$lt_compile" 2>conftest.err)
11915 ac_status=$?
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 if (exit $ac_status) && test -s "$ac_outfile"; then
11919 # The compiler can only warn and ignore the option if not recognized
11920 # So say no if there are warnings other than the usual output.
11921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11924 lt_cv_prog_compiler_pic_works_GO=yes
11927 $RM conftest*
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11931 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11933 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11934 case $lt_prog_compiler_pic_GO in
11935 "" | " "*) ;;
11936 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11937 esac
11938 else
11939 lt_prog_compiler_pic_GO=
11940 lt_prog_compiler_can_build_shared_GO=no
11948 # Check to make sure the static flag actually works.
11950 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11952 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11953 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 lt_cv_prog_compiler_static_works_GO=no
11957 save_LDFLAGS="$LDFLAGS"
11958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11959 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11961 # The linker can only warn and ignore the option if not recognized
11962 # So say no if there are warnings
11963 if test -s conftest.err; then
11964 # Append any errors to the config.log.
11965 cat conftest.err 1>&5
11966 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11968 if diff conftest.exp conftest.er2 >/dev/null; then
11969 lt_cv_prog_compiler_static_works_GO=yes
11971 else
11972 lt_cv_prog_compiler_static_works_GO=yes
11975 $RM -r conftest*
11976 LDFLAGS="$save_LDFLAGS"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11980 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11982 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11984 else
11985 lt_prog_compiler_static_GO=
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11993 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 lt_cv_prog_compiler_c_o_GO=no
11997 $RM -r conftest 2>/dev/null
11998 mkdir conftest
11999 cd conftest
12000 mkdir out
12001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12003 lt_compiler_flag="-o out/conftest2.$ac_objext"
12004 # Insert the option either (1) after the last *FLAGS variable, or
12005 # (2) before a word containing "conftest.", or (3) at the end.
12006 # Note that $ac_compile itself does not contain backslashes and begins
12007 # with a dollar sign (not a hyphen), so the echo should work correctly.
12008 lt_compile=`echo "$ac_compile" | $SED \
12009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12011 -e 's:$: $lt_compiler_flag:'`
12012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12013 (eval "$lt_compile" 2>out/conftest.err)
12014 ac_status=$?
12015 cat out/conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12018 then
12019 # The compiler can only warn and ignore the option if not recognized
12020 # So say no if there are warnings
12021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12024 lt_cv_prog_compiler_c_o_GO=yes
12027 chmod u+w . 2>&5
12028 $RM conftest*
12029 # SGI C++ compiler will create directory out/ii_files/ for
12030 # template instantiation
12031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12032 $RM out/* && rmdir out
12033 cd ..
12034 $RM -r conftest
12035 $RM conftest*
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12039 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12044 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12045 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 lt_cv_prog_compiler_c_o_GO=no
12049 $RM -r conftest 2>/dev/null
12050 mkdir conftest
12051 cd conftest
12052 mkdir out
12053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12055 lt_compiler_flag="-o out/conftest2.$ac_objext"
12056 # Insert the option either (1) after the last *FLAGS variable, or
12057 # (2) before a word containing "conftest.", or (3) at the end.
12058 # Note that $ac_compile itself does not contain backslashes and begins
12059 # with a dollar sign (not a hyphen), so the echo should work correctly.
12060 lt_compile=`echo "$ac_compile" | $SED \
12061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12063 -e 's:$: $lt_compiler_flag:'`
12064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12065 (eval "$lt_compile" 2>out/conftest.err)
12066 ac_status=$?
12067 cat out/conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12070 then
12071 # The compiler can only warn and ignore the option if not recognized
12072 # So say no if there are warnings
12073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12076 lt_cv_prog_compiler_c_o_GO=yes
12079 chmod u+w . 2>&5
12080 $RM conftest*
12081 # SGI C++ compiler will create directory out/ii_files/ for
12082 # template instantiation
12083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12084 $RM out/* && rmdir out
12085 cd ..
12086 $RM -r conftest
12087 $RM conftest*
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12091 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12096 hard_links="nottested"
12097 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12098 # do not overwrite the value of need_locks provided by the user
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12100 $as_echo_n "checking if we can lock with hard links... " >&6; }
12101 hard_links=yes
12102 $RM conftest*
12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104 touch conftest.a
12105 ln conftest.a conftest.b 2>&5 || hard_links=no
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12108 $as_echo "$hard_links" >&6; }
12109 if test "$hard_links" = no; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12111 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12112 need_locks=warn
12114 else
12115 need_locks=no
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12123 runpath_var=
12124 allow_undefined_flag_GO=
12125 always_export_symbols_GO=no
12126 archive_cmds_GO=
12127 archive_expsym_cmds_GO=
12128 compiler_needs_object_GO=no
12129 enable_shared_with_static_runtimes_GO=no
12130 export_dynamic_flag_spec_GO=
12131 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12132 hardcode_automatic_GO=no
12133 hardcode_direct_GO=no
12134 hardcode_direct_absolute_GO=no
12135 hardcode_libdir_flag_spec_GO=
12136 hardcode_libdir_flag_spec_ld_GO=
12137 hardcode_libdir_separator_GO=
12138 hardcode_minus_L_GO=no
12139 hardcode_shlibpath_var_GO=unsupported
12140 inherit_rpath_GO=no
12141 link_all_deplibs_GO=unknown
12142 module_cmds_GO=
12143 module_expsym_cmds_GO=
12144 old_archive_from_new_cmds_GO=
12145 old_archive_from_expsyms_cmds_GO=
12146 thread_safe_flag_spec_GO=
12147 whole_archive_flag_spec_GO=
12148 # include_expsyms should be a list of space-separated symbols to be *always*
12149 # included in the symbol list
12150 include_expsyms_GO=
12151 # exclude_expsyms can be an extended regexp of symbols to exclude
12152 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12154 # as well as any symbol that contains `d'.
12155 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12157 # platforms (ab)use it in PIC code, but their linkers get confused if
12158 # the symbol is explicitly referenced. Since portable code cannot
12159 # rely on this symbol name, it's probably fine to never include it in
12160 # preloaded symbol tables.
12161 # Exclude shared library initialization/finalization symbols.
12162 extract_expsyms_cmds=
12164 case $host_os in
12165 cygwin* | mingw* | pw32* | cegcc*)
12166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12167 # When not using gcc, we currently assume that we are using
12168 # Microsoft Visual C++.
12169 if test "$GCC" != yes; then
12170 with_gnu_ld=no
12173 interix*)
12174 # we just hope/assume this is gcc and not c89 (= MSVC++)
12175 with_gnu_ld=yes
12177 openbsd*)
12178 with_gnu_ld=no
12180 esac
12182 ld_shlibs_GO=yes
12184 # On some targets, GNU ld is compatible enough with the native linker
12185 # that we're better off using the native interface for both.
12186 lt_use_gnu_ld_interface=no
12187 if test "$with_gnu_ld" = yes; then
12188 case $host_os in
12189 aix*)
12190 # The AIX port of GNU ld has always aspired to compatibility
12191 # with the native linker. However, as the warning in the GNU ld
12192 # block says, versions before 2.19.5* couldn't really create working
12193 # shared libraries, regardless of the interface used.
12194 case `$LD -v 2>&1` in
12195 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12196 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12197 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12199 lt_use_gnu_ld_interface=yes
12201 esac
12204 lt_use_gnu_ld_interface=yes
12206 esac
12209 if test "$lt_use_gnu_ld_interface" = yes; then
12210 # If archive_cmds runs LD, not CC, wlarc should be empty
12211 wlarc='${wl}'
12213 # Set some defaults for GNU ld with shared library support. These
12214 # are reset later if shared libraries are not supported. Putting them
12215 # here allows them to be overridden if necessary.
12216 runpath_var=LD_RUN_PATH
12217 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12218 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12219 # ancient GNU ld didn't support --whole-archive et. al.
12220 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12221 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12222 else
12223 whole_archive_flag_spec_GO=
12225 supports_anon_versioning=no
12226 case `$LD -v 2>&1` in
12227 *GNU\ gold*) supports_anon_versioning=yes ;;
12228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12231 *\ 2.11.*) ;; # other 2.11 versions
12232 *) supports_anon_versioning=yes ;;
12233 esac
12235 # See if GNU ld supports shared libraries.
12236 case $host_os in
12237 aix[3-9]*)
12238 # On AIX/PPC, the GNU linker is very broken
12239 if test "$host_cpu" != ia64; then
12240 ld_shlibs_GO=no
12241 cat <<_LT_EOF 1>&2
12243 *** Warning: the GNU linker, at least up to release 2.19, is reported
12244 *** to be unable to reliably create shared libraries on AIX.
12245 *** Therefore, libtool is disabling shared libraries support. If you
12246 *** really care for shared libraries, you may want to install binutils
12247 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12248 *** You will then need to restart the configuration process.
12250 _LT_EOF
12254 amigaos*)
12255 case $host_cpu in
12256 powerpc)
12257 # see comment about AmigaOS4 .so support
12258 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259 archive_expsym_cmds_GO=''
12261 m68k)
12262 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)'
12263 hardcode_libdir_flag_spec_GO='-L$libdir'
12264 hardcode_minus_L_GO=yes
12266 esac
12269 beos*)
12270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12271 allow_undefined_flag_GO=unsupported
12272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12273 # support --undefined. This deserves some investigation. FIXME
12274 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12275 else
12276 ld_shlibs_GO=no
12280 cygwin* | mingw* | pw32* | cegcc*)
12281 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12282 # as there is no search path for DLLs.
12283 hardcode_libdir_flag_spec_GO='-L$libdir'
12284 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12285 allow_undefined_flag_GO=unsupported
12286 always_export_symbols_GO=no
12287 enable_shared_with_static_runtimes_GO=yes
12288 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12290 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12291 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12292 # If the export-symbols file already is a .def file (1st line
12293 # is EXPORTS), use it as is; otherwise, prepend...
12294 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12295 cp $export_symbols $output_objdir/$soname.def;
12296 else
12297 echo EXPORTS > $output_objdir/$soname.def;
12298 cat $export_symbols >> $output_objdir/$soname.def;
12300 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12301 else
12302 ld_shlibs_GO=no
12306 haiku*)
12307 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12308 link_all_deplibs_GO=yes
12311 interix[3-9]*)
12312 hardcode_direct_GO=no
12313 hardcode_shlibpath_var_GO=no
12314 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12315 export_dynamic_flag_spec_GO='${wl}-E'
12316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12317 # Instead, shared libraries are loaded at an image base (0x10000000 by
12318 # default) and relocated if they conflict, which is a slow very memory
12319 # consuming and fragmenting process. To avoid this, we pick a random,
12320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12322 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'
12323 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'
12326 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12327 tmp_diet=no
12328 if test "$host_os" = linux-dietlibc; then
12329 case $cc_basename in
12330 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12331 esac
12333 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12334 && test "$tmp_diet" = no
12335 then
12336 tmp_addflag=
12337 tmp_sharedflag='-shared'
12338 case $cc_basename,$host_cpu in
12339 pgcc*) # Portland Group C compiler
12340 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12341 tmp_addflag=' $pic_flag'
12343 pgf77* | pgf90* | pgf95* | pgfortran*)
12344 # Portland Group f77 and f90 compilers
12345 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'
12346 tmp_addflag=' $pic_flag -Mnomain' ;;
12347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12348 tmp_addflag=' -i_dynamic' ;;
12349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12350 tmp_addflag=' -i_dynamic -nofor_main' ;;
12351 ifc* | ifort*) # Intel Fortran compiler
12352 tmp_addflag=' -nofor_main' ;;
12353 lf95*) # Lahey Fortran 8.1
12354 whole_archive_flag_spec_GO=
12355 tmp_sharedflag='--shared' ;;
12356 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12357 tmp_sharedflag='-qmkshrobj'
12358 tmp_addflag= ;;
12359 nvcc*) # Cuda Compiler Driver 2.2
12360 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'
12361 compiler_needs_object_GO=yes
12363 esac
12364 case `$CC -V 2>&1 | sed 5q` in
12365 *Sun\ C*) # Sun C 5.9
12366 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'
12367 compiler_needs_object_GO=yes
12368 tmp_sharedflag='-G' ;;
12369 *Sun\ F*) # Sun Fortran 8.3
12370 tmp_sharedflag='-G' ;;
12371 esac
12372 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 if test "x$supports_anon_versioning" = xyes; then
12375 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12377 echo "local: *; };" >> $output_objdir/$libname.ver~
12378 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12381 case $cc_basename in
12382 xlf* | bgf* | bgxlf* | mpixlf*)
12383 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12384 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12385 hardcode_libdir_flag_spec_GO=
12386 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12387 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12388 if test "x$supports_anon_versioning" = xyes; then
12389 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12391 echo "local: *; };" >> $output_objdir/$libname.ver~
12392 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12395 esac
12396 else
12397 ld_shlibs_GO=no
12401 netbsd*)
12402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12403 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12404 wlarc=
12405 else
12406 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12407 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12411 solaris*)
12412 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12413 ld_shlibs_GO=no
12414 cat <<_LT_EOF 1>&2
12416 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12417 *** create shared libraries on Solaris systems. Therefore, libtool
12418 *** is disabling shared libraries support. We urge you to upgrade GNU
12419 *** binutils to release 2.9.1 or newer. Another option is to modify
12420 *** your PATH or compiler configuration so that the native linker is
12421 *** used, and then restart.
12423 _LT_EOF
12424 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12425 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12426 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12427 else
12428 ld_shlibs_GO=no
12432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12433 case `$LD -v 2>&1` in
12434 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12435 ld_shlibs_GO=no
12436 cat <<_LT_EOF 1>&2
12438 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12439 *** reliably create shared libraries on SCO systems. Therefore, libtool
12440 *** is disabling shared libraries support. We urge you to upgrade GNU
12441 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12442 *** your PATH or compiler configuration so that the native linker is
12443 *** used, and then restart.
12445 _LT_EOF
12448 # For security reasons, it is highly recommended that you always
12449 # use absolute paths for naming shared libraries, and exclude the
12450 # DT_RUNPATH tag from executables and libraries. But doing so
12451 # requires that you compile everything twice, which is a pain.
12452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12453 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12454 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12455 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12456 else
12457 ld_shlibs_GO=no
12460 esac
12463 sunos4*)
12464 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12465 wlarc=
12466 hardcode_direct_GO=yes
12467 hardcode_shlibpath_var_GO=no
12471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12472 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12473 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12474 else
12475 ld_shlibs_GO=no
12478 esac
12480 if test "$ld_shlibs_GO" = no; then
12481 runpath_var=
12482 hardcode_libdir_flag_spec_GO=
12483 export_dynamic_flag_spec_GO=
12484 whole_archive_flag_spec_GO=
12486 else
12487 # PORTME fill in a description of your system's linker (not GNU ld)
12488 case $host_os in
12489 aix3*)
12490 allow_undefined_flag_GO=unsupported
12491 always_export_symbols_GO=yes
12492 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'
12493 # Note: this linker hardcodes the directories in LIBPATH if there
12494 # are no directories specified by -L.
12495 hardcode_minus_L_GO=yes
12496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12497 # Neither direct hardcoding nor static linking is supported with a
12498 # broken collect2.
12499 hardcode_direct_GO=unsupported
12503 aix[4-9]*)
12504 if test "$host_cpu" = ia64; then
12505 # On IA64, the linker does run time linking by default, so we don't
12506 # have to do anything special.
12507 aix_use_runtimelinking=no
12508 exp_sym_flag='-Bexport'
12509 no_entry_flag=""
12510 else
12511 # If we're using GNU nm, then we don't want the "-C" option.
12512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12513 # Also, AIX nm treats weak defined symbols like other global
12514 # defined symbols, whereas GNU nm marks them as "W".
12515 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12516 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'
12517 else
12518 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'
12520 aix_use_runtimelinking=no
12522 # Test if we are trying to use run time linking or normal
12523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12524 # need to do runtime linking.
12525 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12526 for ld_flag in $LDFLAGS; do
12527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12528 aix_use_runtimelinking=yes
12529 break
12531 done
12533 esac
12535 exp_sym_flag='-bexport'
12536 no_entry_flag='-bnoentry'
12539 # When large executables or shared objects are built, AIX ld can
12540 # have problems creating the table of contents. If linking a library
12541 # or program results in "error TOC overflow" add -mminimal-toc to
12542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12545 archive_cmds_GO=''
12546 hardcode_direct_GO=yes
12547 hardcode_direct_absolute_GO=yes
12548 hardcode_libdir_separator_GO=':'
12549 link_all_deplibs_GO=yes
12550 file_list_spec_GO='${wl}-f,'
12552 if test "$GCC" = yes; then
12553 case $host_os in aix4.[012]|aix4.[012].*)
12554 # We only want to do this on AIX 4.2 and lower, the check
12555 # below for broken collect2 doesn't work under 4.3+
12556 collect2name=`${CC} -print-prog-name=collect2`
12557 if test -f "$collect2name" &&
12558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12559 then
12560 # We have reworked collect2
12562 else
12563 # We have old collect2
12564 hardcode_direct_GO=unsupported
12565 # It fails to find uninstalled libraries when the uninstalled
12566 # path is not listed in the libpath. Setting hardcode_minus_L
12567 # to unsupported forces relinking
12568 hardcode_minus_L_GO=yes
12569 hardcode_libdir_flag_spec_GO='-L$libdir'
12570 hardcode_libdir_separator_GO=
12573 esac
12574 shared_flag='-shared'
12575 if test "$aix_use_runtimelinking" = yes; then
12576 shared_flag="$shared_flag "'${wl}-G'
12578 else
12579 # not using gcc
12580 if test "$host_cpu" = ia64; then
12581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12582 # chokes on -Wl,-G. The following line is correct:
12583 shared_flag='-G'
12584 else
12585 if test "$aix_use_runtimelinking" = yes; then
12586 shared_flag='${wl}-G'
12587 else
12588 shared_flag='${wl}-bM:SRE'
12593 export_dynamic_flag_spec_GO='${wl}-bexpall'
12594 # It seems that -bexpall does not export symbols beginning with
12595 # underscore (_), so it is better to generate a list of symbols to export.
12596 always_export_symbols_GO=yes
12597 if test "$aix_use_runtimelinking" = yes; then
12598 # Warning - without using the other runtime loading flags (-brtl),
12599 # -berok will link without error, but may produce a broken library.
12600 allow_undefined_flag_GO='-berok'
12601 # Determine the default libpath from the value encoded in an
12602 # empty executable.
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12607 main ()
12611 return 0;
12613 _ACEOF
12614 if ac_fn_c_try_link "$LINENO"; then :
12616 lt_aix_libpath_sed='
12617 /Import File Strings/,/^$/ {
12618 /^0/ {
12619 s/^0 *\(.*\)$/\1/
12623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 # Check for a 64-bit object if we didn't find anything.
12625 if test -z "$aix_libpath"; then
12626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12633 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12634 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"
12635 else
12636 if test "$host_cpu" = ia64; then
12637 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12638 allow_undefined_flag_GO="-z nodefs"
12639 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"
12640 else
12641 # Determine the default libpath from the value encoded in an
12642 # empty executable.
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12647 main ()
12651 return 0;
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12656 lt_aix_libpath_sed='
12657 /Import File Strings/,/^$/ {
12658 /^0/ {
12659 s/^0 *\(.*\)$/\1/
12663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664 # Check for a 64-bit object if we didn't find anything.
12665 if test -z "$aix_libpath"; then
12666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12673 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12674 # Warning - without using the other run time loading flags,
12675 # -berok will link without error, but may produce a broken library.
12676 no_undefined_flag_GO=' ${wl}-bernotok'
12677 allow_undefined_flag_GO=' ${wl}-berok'
12678 if test "$with_gnu_ld" = yes; then
12679 # We only use this code for GNU lds that support --whole-archive.
12680 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12681 else
12682 # Exported symbols can be pulled into shared objects from archives
12683 whole_archive_flag_spec_GO='$convenience'
12685 archive_cmds_need_lc_GO=yes
12686 # This is similar to how AIX traditionally builds its shared libraries.
12687 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'
12692 amigaos*)
12693 case $host_cpu in
12694 powerpc)
12695 # see comment about AmigaOS4 .so support
12696 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697 archive_expsym_cmds_GO=''
12699 m68k)
12700 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)'
12701 hardcode_libdir_flag_spec_GO='-L$libdir'
12702 hardcode_minus_L_GO=yes
12704 esac
12707 bsdi[45]*)
12708 export_dynamic_flag_spec_GO=-rdynamic
12711 cygwin* | mingw* | pw32* | cegcc*)
12712 # When not using gcc, we currently assume that we are using
12713 # Microsoft Visual C++.
12714 # hardcode_libdir_flag_spec is actually meaningless, as there is
12715 # no search path for DLLs.
12716 hardcode_libdir_flag_spec_GO=' '
12717 allow_undefined_flag_GO=unsupported
12718 # Tell ltmain to make .lib files, not .a files.
12719 libext=lib
12720 # Tell ltmain to make .dll files, not .so files.
12721 shrext_cmds=".dll"
12722 # FIXME: Setting linknames here is a bad hack.
12723 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12724 # The linker will automatically build a .lib file if we build a DLL.
12725 old_archive_from_new_cmds_GO='true'
12726 # FIXME: Should let the user specify the lib program.
12727 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12728 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12729 enable_shared_with_static_runtimes_GO=yes
12732 darwin* | rhapsody*)
12735 archive_cmds_need_lc_GO=no
12736 hardcode_direct_GO=no
12737 hardcode_automatic_GO=yes
12738 hardcode_shlibpath_var_GO=unsupported
12739 if test "$lt_cv_ld_force_load" = "yes"; then
12740 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\"`'
12741 else
12742 whole_archive_flag_spec_GO=''
12744 link_all_deplibs_GO=yes
12745 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12746 case $cc_basename in
12747 ifort*) _lt_dar_can_shared=yes ;;
12748 *) _lt_dar_can_shared=$GCC ;;
12749 esac
12750 if test "$_lt_dar_can_shared" = "yes"; then
12751 output_verbose_link_cmd=func_echo_all
12752 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}"
12753 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12754 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}"
12755 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}"
12757 else
12758 ld_shlibs_GO=no
12763 dgux*)
12764 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765 hardcode_libdir_flag_spec_GO='-L$libdir'
12766 hardcode_shlibpath_var_GO=no
12769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12770 # support. Future versions do this automatically, but an explicit c++rt0.o
12771 # does not break anything, and helps significantly (at the cost of a little
12772 # extra space).
12773 freebsd2.2*)
12774 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12775 hardcode_libdir_flag_spec_GO='-R$libdir'
12776 hardcode_direct_GO=yes
12777 hardcode_shlibpath_var_GO=no
12780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12781 freebsd2.*)
12782 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_direct_GO=yes
12784 hardcode_minus_L_GO=yes
12785 hardcode_shlibpath_var_GO=no
12788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12789 freebsd* | dragonfly*)
12790 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12791 hardcode_libdir_flag_spec_GO='-R$libdir'
12792 hardcode_direct_GO=yes
12793 hardcode_shlibpath_var_GO=no
12796 hpux9*)
12797 if test "$GCC" = yes; then
12798 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'
12799 else
12800 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'
12802 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12803 hardcode_libdir_separator_GO=:
12804 hardcode_direct_GO=yes
12806 # hardcode_minus_L: Not really in the search PATH,
12807 # but as the default location of the library.
12808 hardcode_minus_L_GO=yes
12809 export_dynamic_flag_spec_GO='${wl}-E'
12812 hpux10*)
12813 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12814 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815 else
12816 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12818 if test "$with_gnu_ld" = no; then
12819 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12820 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12821 hardcode_libdir_separator_GO=:
12822 hardcode_direct_GO=yes
12823 hardcode_direct_absolute_GO=yes
12824 export_dynamic_flag_spec_GO='${wl}-E'
12825 # hardcode_minus_L: Not really in the search PATH,
12826 # but as the default location of the library.
12827 hardcode_minus_L_GO=yes
12831 hpux11*)
12832 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12833 case $host_cpu in
12834 hppa*64*)
12835 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12837 ia64*)
12838 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12841 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12843 esac
12844 else
12845 case $host_cpu in
12846 hppa*64*)
12847 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 ia64*)
12850 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12853 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12855 esac
12857 if test "$with_gnu_ld" = no; then
12858 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12859 hardcode_libdir_separator_GO=:
12861 case $host_cpu in
12862 hppa*64*|ia64*)
12863 hardcode_direct_GO=no
12864 hardcode_shlibpath_var_GO=no
12867 hardcode_direct_GO=yes
12868 hardcode_direct_absolute_GO=yes
12869 export_dynamic_flag_spec_GO='${wl}-E'
12871 # hardcode_minus_L: Not really in the search PATH,
12872 # but as the default location of the library.
12873 hardcode_minus_L_GO=yes
12875 esac
12879 irix5* | irix6* | nonstopux*)
12880 if test "$GCC" = yes; then
12881 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'
12882 # Try to use the -exported_symbol ld option, if it does not
12883 # work, assume that -exports_file does not work either and
12884 # implicitly export all symbols.
12885 save_LDFLAGS="$LDFLAGS"
12886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 int foo(void) {}
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 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'
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LDFLAGS="$save_LDFLAGS"
12898 else
12899 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'
12900 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'
12902 archive_cmds_need_lc_GO='no'
12903 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12904 hardcode_libdir_separator_GO=:
12905 inherit_rpath_GO=yes
12906 link_all_deplibs_GO=yes
12909 netbsd*)
12910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12911 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12912 else
12913 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12915 hardcode_libdir_flag_spec_GO='-R$libdir'
12916 hardcode_direct_GO=yes
12917 hardcode_shlibpath_var_GO=no
12920 newsos6)
12921 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_direct_GO=yes
12923 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12924 hardcode_libdir_separator_GO=:
12925 hardcode_shlibpath_var_GO=no
12928 *nto* | *qnx*)
12931 openbsd*)
12932 if test -f /usr/libexec/ld.so; then
12933 hardcode_direct_GO=yes
12934 hardcode_shlibpath_var_GO=no
12935 hardcode_direct_absolute_GO=yes
12936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12937 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12938 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12939 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12940 export_dynamic_flag_spec_GO='${wl}-E'
12941 else
12942 case $host_os in
12943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12944 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12945 hardcode_libdir_flag_spec_GO='-R$libdir'
12948 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12949 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12951 esac
12953 else
12954 ld_shlibs_GO=no
12958 os2*)
12959 hardcode_libdir_flag_spec_GO='-L$libdir'
12960 hardcode_minus_L_GO=yes
12961 allow_undefined_flag_GO=unsupported
12962 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'
12963 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12966 osf3*)
12967 if test "$GCC" = yes; then
12968 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12969 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'
12970 else
12971 allow_undefined_flag_GO=' -expect_unresolved \*'
12972 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'
12974 archive_cmds_need_lc_GO='no'
12975 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12976 hardcode_libdir_separator_GO=:
12979 osf4* | osf5*) # as osf3* with the addition of -msym flag
12980 if test "$GCC" = yes; then
12981 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12982 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'
12983 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12984 else
12985 allow_undefined_flag_GO=' -expect_unresolved \*'
12986 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'
12987 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~
12988 $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'
12990 # Both c and cxx compiler support -rpath directly
12991 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12993 archive_cmds_need_lc_GO='no'
12994 hardcode_libdir_separator_GO=:
12997 solaris*)
12998 no_undefined_flag_GO=' -z defs'
12999 if test "$GCC" = yes; then
13000 wlarc='${wl}'
13001 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13003 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13004 else
13005 case `$CC -V 2>&1` in
13006 *"Compilers 5.0"*)
13007 wlarc=''
13008 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13013 wlarc='${wl}'
13014 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13015 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13016 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13018 esac
13020 hardcode_libdir_flag_spec_GO='-R$libdir'
13021 hardcode_shlibpath_var_GO=no
13022 case $host_os in
13023 solaris2.[0-5] | solaris2.[0-5].*) ;;
13025 # The compiler driver will combine and reorder linker options,
13026 # but understands `-z linker_flag'. GCC discards it without `$wl',
13027 # but is careful enough not to reorder.
13028 # Supported since Solaris 2.6 (maybe 2.5.1?)
13029 if test "$GCC" = yes; then
13030 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13031 else
13032 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13035 esac
13036 link_all_deplibs_GO=yes
13039 sunos4*)
13040 if test "x$host_vendor" = xsequent; then
13041 # Use $CC to link under sequent, because it throws in some extra .o
13042 # files that make .init and .fini sections work.
13043 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13044 else
13045 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_libdir_flag_spec_GO='-L$libdir'
13048 hardcode_direct_GO=yes
13049 hardcode_minus_L_GO=yes
13050 hardcode_shlibpath_var_GO=no
13053 sysv4)
13054 case $host_vendor in
13055 sni)
13056 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_direct_GO=yes # is this really true???
13059 siemens)
13060 ## LD is ld it makes a PLAMLIB
13061 ## CC just makes a GrossModule.
13062 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13063 reload_cmds_GO='$CC -r -o $output$reload_objs'
13064 hardcode_direct_GO=no
13066 motorola)
13067 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13068 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13070 esac
13071 runpath_var='LD_RUN_PATH'
13072 hardcode_shlibpath_var_GO=no
13075 sysv4.3*)
13076 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13077 hardcode_shlibpath_var_GO=no
13078 export_dynamic_flag_spec_GO='-Bexport'
13081 sysv4*MP*)
13082 if test -d /usr/nec; then
13083 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084 hardcode_shlibpath_var_GO=no
13085 runpath_var=LD_RUN_PATH
13086 hardcode_runpath_var=yes
13087 ld_shlibs_GO=yes
13091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13092 no_undefined_flag_GO='${wl}-z,text'
13093 archive_cmds_need_lc_GO=no
13094 hardcode_shlibpath_var_GO=no
13095 runpath_var='LD_RUN_PATH'
13097 if test "$GCC" = yes; then
13098 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 else
13101 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 sysv5* | sco3.2v5* | sco5v6*)
13107 # Note: We can NOT use -z defs as we might desire, because we do not
13108 # link with -lc, and that would cause any symbols used from libc to
13109 # always be unresolved, which means just about no library would
13110 # ever link correctly. If we're not using GNU ld we use -z text
13111 # though, which does catch some bad symbols but isn't as heavy-handed
13112 # as -z defs.
13113 no_undefined_flag_GO='${wl}-z,text'
13114 allow_undefined_flag_GO='${wl}-z,nodefs'
13115 archive_cmds_need_lc_GO=no
13116 hardcode_shlibpath_var_GO=no
13117 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13118 hardcode_libdir_separator_GO=':'
13119 link_all_deplibs_GO=yes
13120 export_dynamic_flag_spec_GO='${wl}-Bexport'
13121 runpath_var='LD_RUN_PATH'
13123 if test "$GCC" = yes; then
13124 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 else
13127 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13128 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 uts4*)
13133 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13134 hardcode_libdir_flag_spec_GO='-L$libdir'
13135 hardcode_shlibpath_var_GO=no
13139 ld_shlibs_GO=no
13141 esac
13143 if test x$host_vendor = xsni; then
13144 case $host in
13145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13146 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13148 esac
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13153 $as_echo "$ld_shlibs_GO" >&6; }
13154 test "$ld_shlibs_GO" = no && can_build_shared=no
13156 with_gnu_ld_GO=$with_gnu_ld
13164 # Do we need to explicitly link libc?
13166 case "x$archive_cmds_need_lc_GO" in
13167 x|xyes)
13168 # Assume -lc should be added
13169 archive_cmds_need_lc_GO=yes
13171 if test "$enable_shared" = yes && test "$GCC" = yes; then
13172 case $archive_cmds_GO in
13173 *'~'*)
13174 # FIXME: we may have to deal with multi-command sequences.
13176 '$CC '*)
13177 # Test whether the compiler implicitly links with -lc since on some
13178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13179 # to ld, don't add -lc before -lgcc.
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13182 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 $RM conftest*
13186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13189 (eval $ac_compile) 2>&5
13190 ac_status=$?
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; } 2>conftest.err; then
13193 soname=conftest
13194 lib=conftest
13195 libobjs=conftest.$ac_objext
13196 deplibs=
13197 wl=$lt_prog_compiler_wl_GO
13198 pic_flag=$lt_prog_compiler_pic_GO
13199 compiler_flags=-v
13200 linker_flags=-v
13201 verstring=
13202 output_objdir=.
13203 libname=conftest
13204 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13205 allow_undefined_flag_GO=
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13207 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }
13211 then
13212 lt_cv_archive_cmds_need_lc_GO=no
13213 else
13214 lt_cv_archive_cmds_need_lc_GO=yes
13216 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13217 else
13218 cat conftest.err 1>&5
13220 $RM conftest*
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13224 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13225 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13227 esac
13230 esac
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13296 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13297 hardcode_action_GO=
13298 if test -n "$hardcode_libdir_flag_spec_GO" ||
13299 test -n "$runpath_var_GO" ||
13300 test "X$hardcode_automatic_GO" = "Xyes" ; then
13302 # We can hardcode non-existent directories.
13303 if test "$hardcode_direct_GO" != no &&
13304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13305 # have to relink, otherwise we might link with an installed library
13306 # when we should be linking with a yet-to-be-installed one
13307 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13308 test "$hardcode_minus_L_GO" != no; then
13309 # Linking always hardcodes the temporary library directory.
13310 hardcode_action_GO=relink
13311 else
13312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13313 hardcode_action_GO=immediate
13315 else
13316 # We cannot hardcode anything, or else we can only hardcode existing
13317 # directories.
13318 hardcode_action_GO=unsupported
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13321 $as_echo "$hardcode_action_GO" >&6; }
13323 if test "$hardcode_action_GO" = relink ||
13324 test "$inherit_rpath_GO" = yes; then
13325 # Fast installation is not supported
13326 enable_fast_install=no
13327 elif test "$shlibpath_overrides_runpath" = yes ||
13328 test "$enable_shared" = no; then
13329 # Fast installation is not necessary
13330 enable_fast_install=needless
13341 ac_ext=c
13342 ac_cpp='$CPP $CPPFLAGS'
13343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13348 GCC=$lt_save_GCC
13349 CC="$lt_save_CC"
13354 ac_config_commands="$ac_config_commands libtool"
13359 # Only expand once:
13365 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13368 for ac_prog in gawk mawk nawk awk
13370 # Extract the first word of "$ac_prog", so it can be a program name with args.
13371 set dummy $ac_prog; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_AWK+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$AWK"; then
13378 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_AWK="$ac_prog"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13397 AWK=$ac_cv_prog_AWK
13398 if test -n "$AWK"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13400 $as_echo "$AWK" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13407 test -n "$AWK" && break
13408 done
13411 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13414 # Check whether --enable-werror was given.
13415 if test "${enable_werror+set}" = set; then :
13416 enableval=$enable_werror;
13419 if test "x$enable_werror" != "xno"; then
13420 WERROR="-Werror"
13424 glibgo_toolexecdir=no
13425 glibgo_toolexeclibdir=no
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13428 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13429 # Check whether --enable-version-specific-runtime-libs was given.
13430 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13431 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13432 yes) version_specific_libs=yes ;;
13433 no) version_specific_libs=no ;;
13434 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13435 esac
13436 else
13437 version_specific_libs=no
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13441 $as_echo "$version_specific_libs" >&6; }
13443 # Version-specific runtime libs processing.
13444 if test $version_specific_libs = yes; then
13445 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13446 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13449 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13450 # Install a library built with a cross compiler in tooldir, not libdir.
13451 if test -n "$with_cross_host" &&
13452 test x"$with_cross_host" != x"no"; then
13453 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13454 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13455 else
13456 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13457 nover_glibgo_toolexeclibdir='${libdir}'
13459 multi_os_directory=`$GOC -print-multi-os-directory`
13460 case $multi_os_directory in
13461 .) ;; # Avoid trailing /.
13462 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13463 esac
13465 if test x"$glibgo_toolexecdir" = x"no"; then
13466 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13467 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13474 # See if the user wants to configure without libffi. Some
13475 # architectures don't support it. FIXME: We should set a default
13476 # based on the host.
13478 # Check whether --with-libffi was given.
13479 if test "${with_libffi+set}" = set; then :
13480 withval=$with_libffi; :
13481 else
13482 with_libffi=${with_libffi_default-yes}
13486 LIBFFI=
13487 LIBFFIINCS=
13488 if test "$with_libffi" != no; then
13490 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13492 LIBFFI=../libffi/libffi_convenience.la
13493 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13498 # See if the user wants to configure without libatomic. This is useful if we are
13499 # on an architecture for which libgo does not need an atomic support library and
13500 # libatomic does not support our C compiler.
13502 # Check whether --with-libatomic was given.
13503 if test "${with_libatomic+set}" = set; then :
13504 withval=$with_libatomic; :
13505 else
13506 with_libatomic=${with_libatomic_default-yes}
13510 LIBATOMIC=
13511 if test "$with_libatomic" != no; then
13512 LIBATOMIC=../libatomic/libatomic_convenience.la
13516 # Used to tell GNU make to include a file without telling automake to
13517 # include it.
13518 go_include="-include"
13521 is_darwin=no
13522 is_freebsd=no
13523 is_irix=no
13524 is_linux=no
13525 is_netbsd=no
13526 is_openbsd=no
13527 is_dragonfly=no
13528 is_rtems=no
13529 is_solaris=no
13530 GOOS=unknown
13531 case ${host} in
13532 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13533 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13534 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13535 *-*-linux*) is_linux=yes; GOOS=linux ;;
13536 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13537 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13538 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13539 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13540 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13541 esac
13542 if test $is_darwin = yes; then
13543 LIBGO_IS_DARWIN_TRUE=
13544 LIBGO_IS_DARWIN_FALSE='#'
13545 else
13546 LIBGO_IS_DARWIN_TRUE='#'
13547 LIBGO_IS_DARWIN_FALSE=
13550 if test $is_freebsd = yes; then
13551 LIBGO_IS_FREEBSD_TRUE=
13552 LIBGO_IS_FREEBSD_FALSE='#'
13553 else
13554 LIBGO_IS_FREEBSD_TRUE='#'
13555 LIBGO_IS_FREEBSD_FALSE=
13558 if test $is_irix = yes; then
13559 LIBGO_IS_IRIX_TRUE=
13560 LIBGO_IS_IRIX_FALSE='#'
13561 else
13562 LIBGO_IS_IRIX_TRUE='#'
13563 LIBGO_IS_IRIX_FALSE=
13566 if test $is_linux = yes; then
13567 LIBGO_IS_LINUX_TRUE=
13568 LIBGO_IS_LINUX_FALSE='#'
13569 else
13570 LIBGO_IS_LINUX_TRUE='#'
13571 LIBGO_IS_LINUX_FALSE=
13574 if test $is_netbsd = yes; then
13575 LIBGO_IS_NETBSD_TRUE=
13576 LIBGO_IS_NETBSD_FALSE='#'
13577 else
13578 LIBGO_IS_NETBSD_TRUE='#'
13579 LIBGO_IS_NETBSD_FALSE=
13582 if test $is_openbsd = yes; then
13583 LIBGO_IS_OPENBSD_TRUE=
13584 LIBGO_IS_OPENBSD_FALSE='#'
13585 else
13586 LIBGO_IS_OPENBSD_TRUE='#'
13587 LIBGO_IS_OPENBSD_FALSE=
13590 if test $is_dragonfly = yes; then
13591 LIBGO_IS_DRAGONFLY_TRUE=
13592 LIBGO_IS_DRAGONFLY_FALSE='#'
13593 else
13594 LIBGO_IS_DRAGONFLY_TRUE='#'
13595 LIBGO_IS_DRAGONFLY_FALSE=
13598 if test $is_rtems = yes; then
13599 LIBGO_IS_RTEMS_TRUE=
13600 LIBGO_IS_RTEMS_FALSE='#'
13601 else
13602 LIBGO_IS_RTEMS_TRUE='#'
13603 LIBGO_IS_RTEMS_FALSE=
13606 if test $is_solaris = yes; then
13607 LIBGO_IS_SOLARIS_TRUE=
13608 LIBGO_IS_SOLARIS_FALSE='#'
13609 else
13610 LIBGO_IS_SOLARIS_TRUE='#'
13611 LIBGO_IS_SOLARIS_FALSE=
13616 USE_DEJAGNU=no
13617 case ${host} in
13618 *-*-rtems*) USE_DEJAGNU=yes ;;
13619 ${build}) ;;
13620 *) USE_DEJAGNU=yes ;;
13621 esac
13624 is_386=no
13625 is_alpha=no
13626 is_arm=no
13627 is_arm64=no
13628 is_m68k=no
13629 mips_abi=unknown
13630 is_ppc=no
13631 is_ppc64=no
13632 is_ppc64le=no
13633 is_s390=no
13634 is_s390x=no
13635 is_sparc=no
13636 is_sparc64=no
13637 is_x86_64=no
13638 GOARCH=unknown
13639 case ${host} in
13640 alpha*-*-*)
13641 is_alpha=yes
13642 GOARCH=alpha
13644 aarch64-*-*)
13645 is_arm64=yes
13646 GOARCH=arm64
13648 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13649 is_arm=yes
13650 GOARCH=arm
13652 i[34567]86-*-* | x86_64-*-*)
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 #ifdef __x86_64__
13657 #error 64-bit
13658 #endif
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661 is_386=yes
13662 else
13663 is_x86_64=yes
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 if test "$is_386" = "yes"; then
13667 GOARCH=386
13668 else
13669 GOARCH=amd64
13672 m68k*-*-*)
13673 is_m68k=yes
13674 GOARCH=m68k
13676 mips*-*-*)
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13680 #if _MIPS_SIM != _ABIO32
13681 #error not o32
13682 #endif
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 mips_abi="o32"
13686 else
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 #if _MIPS_SIM != _ABIN32
13691 #error not n32
13692 #endif
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695 mips_abi="n32"
13696 else
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 #if _MIPS_SIM != _ABI64
13701 #error not n64
13702 #endif
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 mips_abi="n64"
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13710 #if _MIPS_SIM != _ABIO64
13711 #error not o64
13712 #endif
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"; then :
13715 mips_abi="o64"
13716 else
13717 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13718 mips_abi="n32"
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 case "$mips_abi" in
13728 "o32") GOARCH=mipso32 ;;
13729 "n32") GOARCH=mipsn32 ;;
13730 "n64") GOARCH=mipsn64 ;;
13731 "o64") GOARCH=mipso64 ;;
13732 esac
13734 rs6000*-*-* | powerpc*-*-*)
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13738 #ifdef _ARCH_PPC64
13739 #error 64-bit
13740 #endif
13741 _ACEOF
13742 if ac_fn_c_try_compile "$LINENO"; then :
13743 is_ppc=yes
13744 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13748 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13749 #error 64be
13750 #endif
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"; then :
13753 is_ppc64le=yes
13754 else
13755 is_ppc64=yes
13757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 if test "$is_ppc" = "yes"; then
13761 GOARCH=ppc
13762 elif test "$is_ppc64" = "yes"; then
13763 GOARCH=ppc64
13764 else
13765 GOARCH=ppc64le
13768 s390*-*-*)
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 #if defined(__s390x__)
13773 #error 64-bit
13774 #endif
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 is_s390=yes
13778 else
13779 is_s390x=yes
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 if test "$is_s390" = "yes"; then
13783 GOARCH=s390
13784 else
13785 GOARCH=s390x
13788 sparc*-*-*)
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13792 #if defined(__sparcv9) || defined(__arch64__)
13793 #error 64-bit
13794 #endif
13795 _ACEOF
13796 if ac_fn_c_try_compile "$LINENO"; then :
13797 is_sparc=yes
13798 else
13799 is_sparc64=yes
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 if test "$is_sparc" = "yes"; then
13803 GOARCH=sparc
13804 else
13805 GOARCH=sparc64
13808 esac
13809 if test $is_386 = yes; then
13810 LIBGO_IS_386_TRUE=
13811 LIBGO_IS_386_FALSE='#'
13812 else
13813 LIBGO_IS_386_TRUE='#'
13814 LIBGO_IS_386_FALSE=
13817 if test $is_alpha = yes; then
13818 LIBGO_IS_ALPHA_TRUE=
13819 LIBGO_IS_ALPHA_FALSE='#'
13820 else
13821 LIBGO_IS_ALPHA_TRUE='#'
13822 LIBGO_IS_ALPHA_FALSE=
13825 if test $is_arm = yes; then
13826 LIBGO_IS_ARM_TRUE=
13827 LIBGO_IS_ARM_FALSE='#'
13828 else
13829 LIBGO_IS_ARM_TRUE='#'
13830 LIBGO_IS_ARM_FALSE=
13833 if test $is_arm64 = yes; then
13834 LIBGO_IS_ARM64_TRUE=
13835 LIBGO_IS_ARM64_FALSE='#'
13836 else
13837 LIBGO_IS_ARM64_TRUE='#'
13838 LIBGO_IS_ARM64_FALSE=
13841 if test $is_m68k = yes; then
13842 LIBGO_IS_M68K_TRUE=
13843 LIBGO_IS_M68K_FALSE='#'
13844 else
13845 LIBGO_IS_M68K_TRUE='#'
13846 LIBGO_IS_M68K_FALSE=
13849 if test $mips_abi != unknown; then
13850 LIBGO_IS_MIPS_TRUE=
13851 LIBGO_IS_MIPS_FALSE='#'
13852 else
13853 LIBGO_IS_MIPS_TRUE='#'
13854 LIBGO_IS_MIPS_FALSE=
13857 if test $mips_abi = o32; then
13858 LIBGO_IS_MIPSO32_TRUE=
13859 LIBGO_IS_MIPSO32_FALSE='#'
13860 else
13861 LIBGO_IS_MIPSO32_TRUE='#'
13862 LIBGO_IS_MIPSO32_FALSE=
13865 if test $mips_abi = n32; then
13866 LIBGO_IS_MIPSN32_TRUE=
13867 LIBGO_IS_MIPSN32_FALSE='#'
13868 else
13869 LIBGO_IS_MIPSN32_TRUE='#'
13870 LIBGO_IS_MIPSN32_FALSE=
13873 if test $mips_abi = n64; then
13874 LIBGO_IS_MIPSN64_TRUE=
13875 LIBGO_IS_MIPSN64_FALSE='#'
13876 else
13877 LIBGO_IS_MIPSN64_TRUE='#'
13878 LIBGO_IS_MIPSN64_FALSE=
13881 if test $mips_abi = o64; then
13882 LIBGO_IS_MIPSO64_TRUE=
13883 LIBGO_IS_MIPSO64_FALSE='#'
13884 else
13885 LIBGO_IS_MIPSO64_TRUE='#'
13886 LIBGO_IS_MIPSO64_FALSE=
13889 if test $mips_abi = n64 -o $mips_abi = o64; then
13890 LIBGO_IS_MIPS64_TRUE=
13891 LIBGO_IS_MIPS64_FALSE='#'
13892 else
13893 LIBGO_IS_MIPS64_TRUE='#'
13894 LIBGO_IS_MIPS64_FALSE=
13897 if test $is_ppc = yes; then
13898 LIBGO_IS_PPC_TRUE=
13899 LIBGO_IS_PPC_FALSE='#'
13900 else
13901 LIBGO_IS_PPC_TRUE='#'
13902 LIBGO_IS_PPC_FALSE=
13905 if test $is_ppc64 = yes; then
13906 LIBGO_IS_PPC64_TRUE=
13907 LIBGO_IS_PPC64_FALSE='#'
13908 else
13909 LIBGO_IS_PPC64_TRUE='#'
13910 LIBGO_IS_PPC64_FALSE=
13913 if test $is_ppc64le = yes; then
13914 LIBGO_IS_PPC64LE_TRUE=
13915 LIBGO_IS_PPC64LE_FALSE='#'
13916 else
13917 LIBGO_IS_PPC64LE_TRUE='#'
13918 LIBGO_IS_PPC64LE_FALSE=
13921 if test $is_s390 = yes; then
13922 LIBGO_IS_S390_TRUE=
13923 LIBGO_IS_S390_FALSE='#'
13924 else
13925 LIBGO_IS_S390_TRUE='#'
13926 LIBGO_IS_S390_FALSE=
13929 if test $is_s390x = yes; then
13930 LIBGO_IS_S390X_TRUE=
13931 LIBGO_IS_S390X_FALSE='#'
13932 else
13933 LIBGO_IS_S390X_TRUE='#'
13934 LIBGO_IS_S390X_FALSE=
13937 if test $is_sparc = yes; then
13938 LIBGO_IS_SPARC_TRUE=
13939 LIBGO_IS_SPARC_FALSE='#'
13940 else
13941 LIBGO_IS_SPARC_TRUE='#'
13942 LIBGO_IS_SPARC_FALSE=
13945 if test $is_sparc64 = yes; then
13946 LIBGO_IS_SPARC64_TRUE=
13947 LIBGO_IS_SPARC64_FALSE='#'
13948 else
13949 LIBGO_IS_SPARC64_TRUE='#'
13950 LIBGO_IS_SPARC64_FALSE=
13953 if test $is_x86_64 = yes; then
13954 LIBGO_IS_X86_64_TRUE=
13955 LIBGO_IS_X86_64_FALSE='#'
13956 else
13957 LIBGO_IS_X86_64_TRUE='#'
13958 LIBGO_IS_X86_64_FALSE=
13963 GO_LIBCALL_OS_FILE=
13964 GO_LIBCALL_OS_ARCH_FILE=
13965 GO_SYSCALL_OS_FILE=
13966 GO_SYSCALL_OS_ARCH_FILE=
13967 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13968 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13970 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13971 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13973 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13974 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13976 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13977 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13984 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13985 case "$target" in
13986 mips-sgi-irix6.5*)
13987 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13988 # msghdr in <sys/socket.h>.
13989 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13991 *-*-solaris2.1[01])
13992 # Solaris 10+ needs this so struct msghdr gets the msg_control
13993 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13994 # above doesn't work with C99.
13995 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13997 esac
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14001 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14002 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 CFLAGS_hold=$CFLAGS
14006 CFLAGS="$CFLAGS -fsplit-stack"
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 int i;
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 libgo_cv_c_split_stack_supported=yes
14013 else
14014 libgo_cv_c_split_stack_supported=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 CFLAGS=$CFLAGS_hold
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14020 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14023 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14024 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat > conftest1.c << EOF
14028 extern void f();
14029 int main() { f(); return 0; }
14031 cat > conftest2.c << EOF
14032 void f() {}
14034 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
14035 $CC -c $CFLAGS $CPPFLAGS conftest2.c
14036 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then
14037 libgo_cv_c_linker_split_non_split=yes
14038 else
14039 libgo_cv_c_linker_split_non_split=no
14041 rm -f conftest1.* conftest2.* conftest
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14044 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14046 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14047 SPLIT_STACK=-fsplit-stack
14049 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14051 else
14052 SPLIT_STACK=
14055 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14056 USING_SPLIT_STACK_TRUE=
14057 USING_SPLIT_STACK_FALSE='#'
14058 else
14059 USING_SPLIT_STACK_TRUE='#'
14060 USING_SPLIT_STACK_FALSE=
14064 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14065 GO_SPLIT_STACK=-fno-split-stack
14066 else
14067 GO_SPLIT_STACK=
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14072 $as_echo_n "checking whether linker supports split stack... " >&6; }
14073 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 libgo_cv_c_linker_supports_split_stack=no
14077 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14078 libgo_cv_c_linker_supports_split_stack=yes
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14082 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14083 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14085 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14090 $as_echo_n "checking whether compiler is llgo... " >&6; }
14091 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 libgo_cv_c_goc_is_llgo=no
14095 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14096 libgo_cv_c_goc_is_llgo=yes
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14100 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14101 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14102 GOC_IS_LLGO_TRUE=
14103 GOC_IS_LLGO_FALSE='#'
14104 else
14105 GOC_IS_LLGO_TRUE='#'
14106 GOC_IS_LLGO_FALSE=
14110 MATH_LIBS=
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14112 $as_echo_n "checking for sqrt in -lm... " >&6; }
14113 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lm $LIBS"
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14124 #ifdef __cplusplus
14125 extern "C"
14126 #endif
14127 char sqrt ();
14129 main ()
14131 return sqrt ();
14133 return 0;
14135 _ACEOF
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 ac_cv_lib_m_sqrt=yes
14138 else
14139 ac_cv_lib_m_sqrt=no
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14146 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14147 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14148 MATH_LIBS=-lm
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14154 $as_echo_n "checking for socket libraries... " >&6; }
14155 if test "${libgo_cv_lib_sockets+set}" = set; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 libgo_cv_lib_sockets=
14159 libgo_check_both=no
14160 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14161 if test "x$ac_cv_func_connect" = x""yes; then :
14162 libgo_check_socket=no
14163 else
14164 libgo_check_socket=yes
14167 if test "$libgo_check_socket" = "yes"; then
14168 unset ac_cv_func_connect
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14170 $as_echo_n "checking for main in -lsocket... " >&6; }
14171 if test "${ac_cv_lib_socket_main+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-lsocket $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14181 main ()
14183 return main ();
14185 return 0;
14187 _ACEOF
14188 if ac_fn_c_try_link "$LINENO"; then :
14189 ac_cv_lib_socket_main=yes
14190 else
14191 ac_cv_lib_socket_main=no
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14198 $as_echo "$ac_cv_lib_socket_main" >&6; }
14199 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14200 libgo_cv_lib_sockets="-lsocket"
14201 else
14202 libgo_check_both=yes
14206 if test "$libgo_check_both" = "yes"; then
14207 libgo_old_libs=$LIBS
14208 LIBS="$LIBS -lsocket -lnsl"
14209 unset ac_cv_func_accept
14210 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14211 if test "x$ac_cv_func_accept" = x""yes; then :
14212 libgo_check_nsl=no
14213 libgo_cv_lib_sockets="-lsocket -lnsl"
14216 unset ac_cv_func_accept
14217 LIBS=$libgo_old_libs
14219 unset ac_cv_func_gethostbyname
14220 libgo_old_libs="$LIBS"
14221 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14222 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14226 $as_echo_n "checking for main in -lnsl... " >&6; }
14227 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 ac_check_lib_save_LIBS=$LIBS
14231 LIBS="-lnsl $LIBS"
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14237 main ()
14239 return main ();
14241 return 0;
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 ac_cv_lib_nsl_main=yes
14246 else
14247 ac_cv_lib_nsl_main=no
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14254 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14255 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14256 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14261 unset ac_cv_func_gethostbyname
14262 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14263 if test "x$ac_cv_func_sendfile" = x""yes; then :
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14267 $as_echo_n "checking for main in -lsendfile... " >&6; }
14268 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 ac_check_lib_save_LIBS=$LIBS
14272 LIBS="-lsendfile $LIBS"
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14278 main ()
14280 return main ();
14282 return 0;
14284 _ACEOF
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 ac_cv_lib_sendfile_main=yes
14287 else
14288 ac_cv_lib_sendfile_main=no
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext conftest.$ac_ext
14292 LIBS=$ac_check_lib_save_LIBS
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14295 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14296 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14297 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14302 LIBS=$libgo_old_libs
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14306 $as_echo "$libgo_cv_lib_sockets" >&6; }
14307 NET_LIBS="$libgo_cv_lib_sockets"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14311 $as_echo_n "checking whether -pthread is supported... " >&6; }
14312 if test "${libgo_cv_lib_pthread+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 CFLAGS_hold=$CFLAGS
14316 CFLAGS="$CFLAGS -pthread"
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 int i;
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322 libgo_cv_lib_pthread=yes
14323 else
14324 libgo_cv_lib_pthread=no
14326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14327 CFLAGS=$CFLAGS_hold
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14330 $as_echo "$libgo_cv_lib_pthread" >&6; }
14331 PTHREAD_CFLAGS=
14332 if test "$libgo_cv_lib_pthread" = yes; then
14333 PTHREAD_CFLAGS=-pthread
14337 PTHREAD_LIBS=
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14339 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14340 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 ac_check_lib_save_LIBS=$LIBS
14344 LIBS="-lpthread $LIBS"
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char pthread_create ();
14356 main ()
14358 return pthread_create ();
14360 return 0;
14362 _ACEOF
14363 if ac_fn_c_try_link "$LINENO"; then :
14364 ac_cv_lib_pthread_pthread_create=yes
14365 else
14366 ac_cv_lib_pthread_pthread_create=no
14368 rm -f core conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS=$ac_check_lib_save_LIBS
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14373 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14374 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14375 PTHREAD_LIBS=-lpthread
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14381 $as_echo_n "checking for library containing sched_yield... " >&6; }
14382 if test "${ac_cv_search_sched_yield+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 ac_func_search_save_LIBS=$LIBS
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char sched_yield ();
14397 main ()
14399 return sched_yield ();
14401 return 0;
14403 _ACEOF
14404 for ac_lib in '' rt; do
14405 if test -z "$ac_lib"; then
14406 ac_res="none required"
14407 else
14408 ac_res=-l$ac_lib
14409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14411 if ac_fn_c_try_link "$LINENO"; then :
14412 ac_cv_search_sched_yield=$ac_res
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext
14416 if test "${ac_cv_search_sched_yield+set}" = set; then :
14417 break
14419 done
14420 if test "${ac_cv_search_sched_yield+set}" = set; then :
14422 else
14423 ac_cv_search_sched_yield=no
14425 rm conftest.$ac_ext
14426 LIBS=$ac_func_search_save_LIBS
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14429 $as_echo "$ac_cv_search_sched_yield" >&6; }
14430 ac_res=$ac_cv_search_sched_yield
14431 if test "$ac_res" != no; then :
14432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14437 $as_echo_n "checking for library containing nanosleep... " >&6; }
14438 if test "${ac_cv_search_nanosleep+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 ac_func_search_save_LIBS=$LIBS
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14445 /* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply. */
14448 #ifdef __cplusplus
14449 extern "C"
14450 #endif
14451 char nanosleep ();
14453 main ()
14455 return nanosleep ();
14457 return 0;
14459 _ACEOF
14460 for ac_lib in '' rt; do
14461 if test -z "$ac_lib"; then
14462 ac_res="none required"
14463 else
14464 ac_res=-l$ac_lib
14465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14467 if ac_fn_c_try_link "$LINENO"; then :
14468 ac_cv_search_nanosleep=$ac_res
14470 rm -f core conftest.err conftest.$ac_objext \
14471 conftest$ac_exeext
14472 if test "${ac_cv_search_nanosleep+set}" = set; then :
14473 break
14475 done
14476 if test "${ac_cv_search_nanosleep+set}" = set; then :
14478 else
14479 ac_cv_search_nanosleep=no
14481 rm conftest.$ac_ext
14482 LIBS=$ac_func_search_save_LIBS
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14485 $as_echo "$ac_cv_search_nanosleep" >&6; }
14486 ac_res=$ac_cv_search_nanosleep
14487 if test "$ac_res" != no; then :
14488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14493 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14494 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 ac_func_search_save_LIBS=$LIBS
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 char clock_gettime ();
14509 main ()
14511 return clock_gettime ();
14513 return 0;
14515 _ACEOF
14516 for ac_lib in '' rt; do
14517 if test -z "$ac_lib"; then
14518 ac_res="none required"
14519 else
14520 ac_res=-l$ac_lib
14521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14523 if ac_fn_c_try_link "$LINENO"; then :
14524 ac_cv_search_clock_gettime=$ac_res
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext
14528 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14529 break
14531 done
14532 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14534 else
14535 ac_cv_search_clock_gettime=no
14537 rm conftest.$ac_ext
14538 LIBS=$ac_func_search_save_LIBS
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14541 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14542 ac_res=$ac_cv_search_clock_gettime
14543 if test "$ac_res" != no; then :
14544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14550 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14551 if test "${ac_cv_c_bigendian+set}" = set; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 ac_cv_c_bigendian=unknown
14555 # See if we're dealing with a universal compiler.
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558 #ifndef __APPLE_CC__
14559 not a universal capable compiler
14560 #endif
14561 typedef int dummy;
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14566 # Check for potential -arch flags. It is not universal unless
14567 # there are at least two -arch flags with different values.
14568 ac_arch=
14569 ac_prev=
14570 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14571 if test -n "$ac_prev"; then
14572 case $ac_word in
14573 i?86 | x86_64 | ppc | ppc64)
14574 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14575 ac_arch=$ac_word
14576 else
14577 ac_cv_c_bigendian=universal
14578 break
14581 esac
14582 ac_prev=
14583 elif test "x$ac_word" = "x-arch"; then
14584 ac_prev=arch
14586 done
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 if test $ac_cv_c_bigendian = unknown; then
14590 # See if sys/param.h defines the BYTE_ORDER macro.
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <sys/types.h>
14594 #include <sys/param.h>
14597 main ()
14599 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14600 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14601 && LITTLE_ENDIAN)
14602 bogus endian macros
14603 #endif
14606 return 0;
14608 _ACEOF
14609 if ac_fn_c_try_compile "$LINENO"; then :
14610 # It does; now see whether it defined to BIG_ENDIAN or not.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <sys/types.h>
14614 #include <sys/param.h>
14617 main ()
14619 #if BYTE_ORDER != BIG_ENDIAN
14620 not big endian
14621 #endif
14624 return 0;
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"; then :
14628 ac_cv_c_bigendian=yes
14629 else
14630 ac_cv_c_bigendian=no
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 if test $ac_cv_c_bigendian = unknown; then
14637 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 #include <limits.h>
14643 main ()
14645 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14646 bogus endian macros
14647 #endif
14650 return 0;
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 # It does; now see whether it defined to _BIG_ENDIAN or not.
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 #include <limits.h>
14660 main ()
14662 #ifndef _BIG_ENDIAN
14663 not big endian
14664 #endif
14667 return 0;
14669 _ACEOF
14670 if ac_fn_c_try_compile "$LINENO"; then :
14671 ac_cv_c_bigendian=yes
14672 else
14673 ac_cv_c_bigendian=no
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 if test $ac_cv_c_bigendian = unknown; then
14680 # Compile a test program.
14681 if test "$cross_compiling" = yes; then :
14682 # Try to guess by grepping values from an object file.
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 short int ascii_mm[] =
14686 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14687 short int ascii_ii[] =
14688 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14689 int use_ascii (int i) {
14690 return ascii_mm[i] + ascii_ii[i];
14692 short int ebcdic_ii[] =
14693 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14694 short int ebcdic_mm[] =
14695 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14696 int use_ebcdic (int i) {
14697 return ebcdic_mm[i] + ebcdic_ii[i];
14699 extern int foo;
14702 main ()
14704 return use_ascii (foo) == use_ebcdic (foo);
14706 return 0;
14708 _ACEOF
14709 if ac_fn_c_try_compile "$LINENO"; then :
14710 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14711 ac_cv_c_bigendian=yes
14713 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14714 if test "$ac_cv_c_bigendian" = unknown; then
14715 ac_cv_c_bigendian=no
14716 else
14717 # finding both strings is unlikely to happen, but who knows?
14718 ac_cv_c_bigendian=unknown
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 else
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 $ac_includes_default
14728 main ()
14731 /* Are we little or big endian? From Harbison&Steele. */
14732 union
14734 long int l;
14735 char c[sizeof (long int)];
14736 } u;
14737 u.l = 1;
14738 return u.c[sizeof (long int) - 1] == 1;
14741 return 0;
14743 _ACEOF
14744 if ac_fn_c_try_run "$LINENO"; then :
14745 ac_cv_c_bigendian=no
14746 else
14747 ac_cv_c_bigendian=yes
14749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750 conftest.$ac_objext conftest.beam conftest.$ac_ext
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14756 $as_echo "$ac_cv_c_bigendian" >&6; }
14757 case $ac_cv_c_bigendian in #(
14758 yes)
14759 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14760 ;; #(
14762 ;; #(
14763 universal)
14765 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14767 ;; #(
14769 as_fn_error "unknown endianness
14770 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14771 esac
14776 # Check whether --with-system-libunwind was given.
14777 if test "${with_system_libunwind+set}" = set; then :
14778 withval=$with_system_libunwind;
14781 # If system-libunwind was not specifically set, pick a default setting.
14782 if test x$with_system_libunwind = x; then
14783 case ${target} in
14784 ia64-*-hpux*) with_system_libunwind=yes ;;
14785 *) with_system_libunwind=no ;;
14786 esac
14788 # Based on system-libunwind and target, do we have ipinfo?
14789 if test x$with_system_libunwind = xyes; then
14790 case ${target} in
14791 ia64-*-*) have_unwind_getipinfo=no ;;
14792 *) have_unwind_getipinfo=yes ;;
14793 esac
14794 else
14795 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14797 case ${target} in
14798 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14799 *) have_unwind_getipinfo=yes ;;
14800 esac
14804 if test x$have_unwind_getipinfo = xyes; then
14806 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14811 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
14812 do :
14813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14815 eval as_val=\$$as_ac_Header
14816 if test "x$as_val" = x""yes; then :
14817 cat >>confdefs.h <<_ACEOF
14818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14819 _ACEOF
14823 done
14826 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
14827 do :
14828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14830 #include <sys/socket.h>
14831 #endif
14834 eval as_val=\$$as_ac_Header
14835 if test "x$as_val" = x""yes; then :
14836 cat >>confdefs.h <<_ACEOF
14837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14838 _ACEOF
14842 done
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14846 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14847 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 CFLAGS_hold=$CFLAGS
14851 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14855 #include <sys/types.h>
14856 #ifdef HAVE_LINUX_FILTER_H
14857 #include <linux/filter.h>
14858 #endif
14859 #include <ustat.h>
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 libgo_cv_c_ustat_h=yes
14864 else
14865 libgo_cv_c_ustat_h=no
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 CFLAGS=$CFLAGS_hold
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14871 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14872 if test $libgo_cv_c_ustat_h = yes; then
14874 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14878 if test "$ac_cv_header_sys_mman_h" = yes; then
14879 HAVE_SYS_MMAN_H_TRUE=
14880 HAVE_SYS_MMAN_H_FALSE='#'
14881 else
14882 HAVE_SYS_MMAN_H_TRUE='#'
14883 HAVE_SYS_MMAN_H_FALSE=
14887 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14888 do :
14889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14891 eval as_val=\$$as_ac_var
14892 if test "x$as_val" = x""yes; then :
14893 cat >>confdefs.h <<_ACEOF
14894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895 _ACEOF
14898 done
14900 if test "$ac_cv_func_strerror_r" = yes; then
14901 HAVE_STRERROR_R_TRUE=
14902 HAVE_STRERROR_R_FALSE='#'
14903 else
14904 HAVE_STRERROR_R_TRUE='#'
14905 HAVE_STRERROR_R_FALSE=
14908 if test "$ac_cv_func_wait4" = yes; then
14909 HAVE_WAIT4_TRUE=
14910 HAVE_WAIT4_FALSE='#'
14911 else
14912 HAVE_WAIT4_TRUE='#'
14913 HAVE_WAIT4_FALSE=
14917 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
14918 do :
14919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14920 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14921 eval as_val=\$$as_ac_var
14922 if test "x$as_val" = x""yes; then :
14923 cat >>confdefs.h <<_ACEOF
14924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14925 _ACEOF
14928 done
14930 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14931 if test "x$ac_cv_type_off_t" = x""yes; then :
14933 else
14935 cat >>confdefs.h <<_ACEOF
14936 #define off_t long int
14937 _ACEOF
14941 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14942 if test "x$ac_cv_type_loff_t" = x""yes; then :
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_LOFF_T 1
14946 _ACEOF
14952 LIBS_hold="$LIBS"
14953 LIBS="$LIBS -lm"
14954 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14955 do :
14956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14958 eval as_val=\$$as_ac_var
14959 if test "x$as_val" = x""yes; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962 _ACEOF
14965 done
14967 LIBS="$LIBS_hold"
14969 CFLAGS_hold="$CFLAGS"
14970 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14971 LIBS_hold="$LIBS"
14972 LIBS="$LIBS $PTHREAD_LIBS"
14973 for ac_func in sem_timedwait
14974 do :
14975 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14976 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_SEM_TIMEDWAIT 1
14979 _ACEOF
14982 done
14984 CFLAGS="$CFLAGS_hold"
14985 LIBS="$LIBS_hold"
14987 LIBS_hold="$LIBS"
14988 LIBS="$LIBS $MATH_LIBS"
14989 for ac_func in matherr
14990 do :
14991 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14992 if test "x$ac_cv_func_matherr" = x""yes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_MATHERR 1
14995 _ACEOF
14998 done
15000 LIBS="$LIBS_hold"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
15003 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
15004 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
15005 $as_echo_n "(cached) " >&6
15006 else
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15010 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15011 uint32 i;
15012 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15016 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15017 else
15018 libgo_cv_func___sync_bool_compare_and_swap_4=no
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15024 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15025 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
15027 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15032 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15033 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15040 uint64 i;
15041 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15043 _ACEOF
15044 if ac_fn_c_try_link "$LINENO"; then :
15045 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15046 else
15047 libgo_cv_func___sync_bool_compare_and_swap_8=no
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15053 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15054 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15056 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15061 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15062 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15068 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15069 uint32 i;
15070 int main() { return __sync_fetch_and_add (&i, 1); }
15072 _ACEOF
15073 if ac_fn_c_try_link "$LINENO"; then :
15074 libgo_cv_func___sync_fetch_and_add_4=yes
15075 else
15076 libgo_cv_func___sync_fetch_and_add_4=no
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15082 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15083 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15085 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15090 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15091 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15097 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15098 uint64 i;
15099 int main() { return __sync_add_and_fetch (&i, 1); }
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 libgo_cv_func___sync_add_and_fetch_8=yes
15104 else
15105 libgo_cv_func___sync_add_and_fetch_8=no
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15111 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15112 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15114 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15119 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15120 if test "${libgo_cv_c_stringops+set}" = set; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 CFLAGS_hold=$CFLAGS
15124 CFLAGS="$CFLAGS -minline-all-stringops"
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 int i;
15128 _ACEOF
15129 if ac_fn_c_try_compile "$LINENO"; then :
15130 libgo_cv_c_stringops=yes
15131 else
15132 libgo_cv_c_stringops=no
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 CFLAGS=$CFLAGS_hold
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15138 $as_echo "$libgo_cv_c_stringops" >&6; }
15139 STRINGOPS_FLAG=
15140 if test "$libgo_cv_c_stringops" = yes; then
15141 STRINGOPS_FLAG=-minline-all-stringops
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15146 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15147 if test "${libgo_cv_c_fancymath+set}" = set; then :
15148 $as_echo_n "(cached) " >&6
15149 else
15150 CFLAGS_hold=$CFLAGS
15151 CFLAGS="$CFLAGS -mfancy-math-387"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 int i;
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157 libgo_cv_c_fancymath=yes
15158 else
15159 libgo_cv_c_fancymath=no
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 CFLAGS=$CFLAGS_hold
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15165 $as_echo "$libgo_cv_c_fancymath" >&6; }
15166 MATH_FLAG=
15167 if test "$libgo_cv_c_fancymath" = yes; then
15168 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15169 else
15170 MATH_FLAG="-ffp-contract=off"
15174 CFLAGS_hold=$CFLAGS
15175 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15176 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15177 if test "x$ac_cv_type_off64_t" = x""yes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_OFF64_T 1
15181 _ACEOF
15186 CFLAGS=$CFLAGS_hold
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15189 $as_echo_n "checking epoll_event size... " >&6; }
15190 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15195 else
15196 libgo_cv_c_epoll_event_size=0
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15201 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15202 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15206 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15207 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15211 #include <sys/epoll.h>"; then :
15213 else
15214 libgo_cv_c_epoll_event_fd_offset=0
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15219 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15220 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 #include <sys/stat.h>
15227 _ACEOF
15228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15229 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15230 have_stat_timespec=yes
15231 else
15232 have_stat_timespec=no
15234 rm -f conftest*
15236 if test $have_stat_timespec = yes; then
15237 HAVE_STAT_TIMESPEC_TRUE=
15238 HAVE_STAT_TIMESPEC_FALSE='#'
15239 else
15240 HAVE_STAT_TIMESPEC_TRUE='#'
15241 HAVE_STAT_TIMESPEC_FALSE=
15245 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15247 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15248 libgo_has_struct_exception=yes
15249 else
15250 libgo_has_struct_exception=no
15253 if test "$libgo_has_struct_exception" = "yes"; then
15255 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15260 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15261 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 CFLAGS_hold="$CFLAGS"
15265 CFLAGS="$PTHREAD_CFLAGS"
15266 LIBS_hold="$LIBS"
15267 LIBS="$LIBS $PTHREAD_LIBS"
15268 # The cast to long int works around a bug in the HP C Compiler
15269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15271 # This bug is HP SR number 8606223364.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15273 $as_echo_n "checking size of void *... " >&6; }
15274 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15279 else
15280 if test "$ac_cv_type_void_p" = yes; then
15281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15283 { as_fn_set_status 77
15284 as_fn_error "cannot compute sizeof (void *)
15285 See \`config.log' for more details." "$LINENO" 5; }; }
15286 else
15287 ac_cv_sizeof_void_p=0
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15293 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15297 cat >>confdefs.h <<_ACEOF
15298 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15299 _ACEOF
15302 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15303 if test "$cross_compiling" = yes; then :
15304 case "$target:$ptr_type_size" in
15305 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15306 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15308 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15309 esac
15311 else
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15315 #include <pthread.h>
15316 #include <stdlib.h>
15317 #include <ucontext.h>
15318 #include <unistd.h>
15320 __thread int tls;
15322 static char stack[10 * 1024 * 1024];
15323 static ucontext_t c;
15325 /* Called via makecontext/setcontext. */
15327 static void
15328 cfn (void)
15330 exit (tls);
15333 /* Called via pthread_create. */
15335 static void *
15336 tfn (void *dummy)
15338 /* The thread should still see this value after calling
15339 setcontext. */
15340 tls = 0;
15342 setcontext (&c);
15344 /* The call to setcontext should not return. */
15345 abort ();
15349 main ()
15351 pthread_t tid;
15353 /* The thread should not see this value. */
15354 tls = 1;
15356 if (getcontext (&c) < 0)
15357 abort ();
15359 c.uc_stack.ss_sp = stack;
15360 #ifdef MAKECONTEXT_STACK_TOP
15361 c.uc_stack.ss_sp += sizeof stack;
15362 #endif
15363 c.uc_stack.ss_flags = 0;
15364 c.uc_stack.ss_size = sizeof stack;
15365 c.uc_link = NULL;
15366 makecontext (&c, cfn, 0);
15368 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15369 abort ();
15371 if (pthread_join (tid, NULL) != 0)
15372 abort ();
15374 /* The thread should have called exit. */
15375 abort ();
15378 _ACEOF
15379 if ac_fn_c_try_run "$LINENO"; then :
15380 libgo_cv_lib_setcontext_clobbers_tls=no
15381 else
15382 libgo_cv_lib_setcontext_clobbers_tls=yes
15384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15385 conftest.$ac_objext conftest.beam conftest.$ac_ext
15388 CFLAGS="$CFLAGS_hold"
15389 LIBS="$LIBS_hold"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15393 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15394 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15396 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15401 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15402 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15406 libgo_cv_ro_eh_frame=no
15407 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15408 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15409 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15410 libgo_cv_ro_eh_frame=yes
15411 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15412 | grep -v '#write' > /dev/null; then
15413 libgo_cv_ro_eh_frame=yes
15416 rm -f conftest.*
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15420 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15421 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15423 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15425 else
15427 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15432 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15433 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 CFLAGS_hold=$CFLAGS
15437 CFLAGS="$CFLAGS -Qunused-arguments"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 int i;
15441 _ACEOF
15442 if ac_fn_c_try_compile "$LINENO"; then :
15443 libgo_cv_c_unused_arguments=yes
15444 else
15445 libgo_cv_c_unused_arguments=no
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 CFLAGS=$CFLAGS_hold
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15451 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15454 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15455 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15456 $as_echo_n "(cached) " >&6
15457 else
15459 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15460 CFLAGS_hold=$CFLAGS
15461 if test "$libgo_cv_c_unused_arguments" = yes; then
15462 CFLAGS="$CFLAGS -Qunused-arguments"
15464 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15465 libgo_cv_as_comdat_gnu=yes
15466 else
15467 libgo_cv_as_comdat_gnu=no
15469 CFLAGS=$CFLAGS_hold
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15473 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15474 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15476 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15481 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15482 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15486 libgo_cv_as_x86_pcrel=yes
15487 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15488 CFLAGS_hold=$CFLAGS
15489 if test "$libgo_cv_c_unused_arguments" = yes; then
15490 CFLAGS="$CFLAGS -Qunused-arguments"
15492 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15493 libgo_cv_as_x86_pcrel=no
15495 CFLAGS=$CFLAGS_hold
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15499 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15500 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15502 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15507 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15508 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15509 $as_echo_n "(cached) " >&6
15510 else
15512 libgo_cv_as_x86_64_unwind_section_type=yes
15513 echo '.section .eh_frame,"a",@unwind' > conftest.s
15514 CFLAGS_hold=$CFLAGS
15515 if test "$libgo_cv_c_unused_arguments" = yes; then
15516 CFLAGS="$CFLAGS -Qunused-arguments"
15518 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15519 libgo_cv_as_x86_64_unwind_section_type=no
15521 CFLAGS=$CFLAGS_hold
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15525 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15526 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15528 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15532 cat >confcache <<\_ACEOF
15533 # This file is a shell script that caches the results of configure
15534 # tests run on this system so they can be shared between configure
15535 # scripts and configure runs, see configure's option --config-cache.
15536 # It is not useful on other systems. If it contains results you don't
15537 # want to keep, you may remove or edit it.
15539 # config.status only pays attention to the cache file if you give it
15540 # the --recheck option to rerun configure.
15542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15544 # following values.
15546 _ACEOF
15548 # The following way of writing the cache mishandles newlines in values,
15549 # but we know of no workaround that is simple, portable, and efficient.
15550 # So, we kill variables containing newlines.
15551 # Ultrix sh set writes to stderr and can't be redirected directly,
15552 # and sets the high bit in the cache file unless we assign to the vars.
15554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15555 eval ac_val=\$$ac_var
15556 case $ac_val in #(
15557 *${as_nl}*)
15558 case $ac_var in #(
15559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15561 esac
15562 case $ac_var in #(
15563 _ | IFS | as_nl) ;; #(
15564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15565 *) { eval $ac_var=; unset $ac_var;} ;;
15566 esac ;;
15567 esac
15568 done
15570 (set) 2>&1 |
15571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15572 *${as_nl}ac_space=\ *)
15573 # `set' does not quote correctly, so add quotes: double-quote
15574 # substitution turns \\\\ into \\, and sed turns \\ into \.
15575 sed -n \
15576 "s/'/'\\\\''/g;
15577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15578 ;; #(
15580 # `set' quotes correctly as required by POSIX, so do not add quotes.
15581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15583 esac |
15584 sort
15586 sed '
15587 /^ac_cv_env_/b end
15588 t clear
15589 :clear
15590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15591 t end
15592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15593 :end' >>confcache
15594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15595 if test -w "$cache_file"; then
15596 test "x$cache_file" != "x/dev/null" &&
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15598 $as_echo "$as_me: updating cache $cache_file" >&6;}
15599 cat confcache >$cache_file
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15605 rm -f confcache
15607 if test ${multilib} = yes; then
15608 multilib_arg="--enable-multilib"
15609 else
15610 multilib_arg=
15613 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15616 ac_config_commands="$ac_config_commands default"
15619 cat >confcache <<\_ACEOF
15620 # This file is a shell script that caches the results of configure
15621 # tests run on this system so they can be shared between configure
15622 # scripts and configure runs, see configure's option --config-cache.
15623 # It is not useful on other systems. If it contains results you don't
15624 # want to keep, you may remove or edit it.
15626 # config.status only pays attention to the cache file if you give it
15627 # the --recheck option to rerun configure.
15629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15631 # following values.
15633 _ACEOF
15635 # The following way of writing the cache mishandles newlines in values,
15636 # but we know of no workaround that is simple, portable, and efficient.
15637 # So, we kill variables containing newlines.
15638 # Ultrix sh set writes to stderr and can't be redirected directly,
15639 # and sets the high bit in the cache file unless we assign to the vars.
15641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15642 eval ac_val=\$$ac_var
15643 case $ac_val in #(
15644 *${as_nl}*)
15645 case $ac_var in #(
15646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15648 esac
15649 case $ac_var in #(
15650 _ | IFS | as_nl) ;; #(
15651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15652 *) { eval $ac_var=; unset $ac_var;} ;;
15653 esac ;;
15654 esac
15655 done
15657 (set) 2>&1 |
15658 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15659 *${as_nl}ac_space=\ *)
15660 # `set' does not quote correctly, so add quotes: double-quote
15661 # substitution turns \\\\ into \\, and sed turns \\ into \.
15662 sed -n \
15663 "s/'/'\\\\''/g;
15664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15665 ;; #(
15667 # `set' quotes correctly as required by POSIX, so do not add quotes.
15668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15670 esac |
15671 sort
15673 sed '
15674 /^ac_cv_env_/b end
15675 t clear
15676 :clear
15677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15678 t end
15679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15680 :end' >>confcache
15681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15682 if test -w "$cache_file"; then
15683 test "x$cache_file" != "x/dev/null" &&
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15685 $as_echo "$as_me: updating cache $cache_file" >&6;}
15686 cat confcache >$cache_file
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15689 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15692 rm -f confcache
15694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15695 # Let make expand exec_prefix.
15696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15698 DEFS=-DHAVE_CONFIG_H
15700 ac_libobjs=
15701 ac_ltlibobjs=
15702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15703 # 1. Remove the extension, and $U if already installed.
15704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15705 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15707 # will be set to the directory where LIBOBJS objects are built.
15708 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15709 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15710 done
15711 LIBOBJS=$ac_libobjs
15713 LTLIBOBJS=$ac_ltlibobjs
15716 if test -n "$EXEEXT"; then
15717 am__EXEEXT_TRUE=
15718 am__EXEEXT_FALSE='#'
15719 else
15720 am__EXEEXT_TRUE='#'
15721 am__EXEEXT_FALSE=
15724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15725 as_fn_error "conditional \"AMDEP\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15729 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15733 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15737 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15741 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15745 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15749 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15753 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15757 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15761 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15765 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15768 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15769 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15772 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15773 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15776 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15777 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15780 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15781 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15784 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15785 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15788 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15789 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15792 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15793 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15796 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15797 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15800 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15801 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15804 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15805 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15808 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15809 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15812 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
15813 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
15814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15816 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15817 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15820 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15821 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15824 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15825 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15828 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15829 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15832 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15833 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15836 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15837 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15840 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15841 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15844 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15845 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15848 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15849 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15852 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15853 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15858 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15862 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15866 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15869 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15870 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 : ${CONFIG_STATUS=./config.status}
15875 ac_write_fail=0
15876 ac_clean_files_save=$ac_clean_files
15877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15880 as_write_fail=0
15881 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15882 #! $SHELL
15883 # Generated by $as_me.
15884 # Run this file to recreate the current configuration.
15885 # Compiler output produced by configure, useful for debugging
15886 # configure, is in config.log if it exists.
15888 debug=false
15889 ac_cs_recheck=false
15890 ac_cs_silent=false
15892 SHELL=\${CONFIG_SHELL-$SHELL}
15893 export SHELL
15894 _ASEOF
15895 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15896 ## -------------------- ##
15897 ## M4sh Initialization. ##
15898 ## -------------------- ##
15900 # Be more Bourne compatible
15901 DUALCASE=1; export DUALCASE # for MKS sh
15902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15903 emulate sh
15904 NULLCMD=:
15905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15906 # is contrary to our usage. Disable this feature.
15907 alias -g '${1+"$@"}'='"$@"'
15908 setopt NO_GLOB_SUBST
15909 else
15910 case `(set -o) 2>/dev/null` in #(
15911 *posix*) :
15912 set -o posix ;; #(
15913 *) :
15915 esac
15919 as_nl='
15921 export as_nl
15922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15926 # Prefer a ksh shell builtin over an external printf program on Solaris,
15927 # but without wasting forks for bash or zsh.
15928 if test -z "$BASH_VERSION$ZSH_VERSION" \
15929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15930 as_echo='print -r --'
15931 as_echo_n='print -rn --'
15932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15933 as_echo='printf %s\n'
15934 as_echo_n='printf %s'
15935 else
15936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15938 as_echo_n='/usr/ucb/echo -n'
15939 else
15940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15941 as_echo_n_body='eval
15942 arg=$1;
15943 case $arg in #(
15944 *"$as_nl"*)
15945 expr "X$arg" : "X\\(.*\\)$as_nl";
15946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15947 esac;
15948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15950 export as_echo_n_body
15951 as_echo_n='sh -c $as_echo_n_body as_echo'
15953 export as_echo_body
15954 as_echo='sh -c $as_echo_body as_echo'
15957 # The user is always right.
15958 if test "${PATH_SEPARATOR+set}" != set; then
15959 PATH_SEPARATOR=:
15960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15962 PATH_SEPARATOR=';'
15967 # IFS
15968 # We need space, tab and new line, in precisely that order. Quoting is
15969 # there to prevent editors from complaining about space-tab.
15970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15971 # splitting by setting IFS to empty value.)
15972 IFS=" "" $as_nl"
15974 # Find who we are. Look in the path if we contain no directory separator.
15975 case $0 in #((
15976 *[\\/]* ) as_myself=$0 ;;
15977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15980 IFS=$as_save_IFS
15981 test -z "$as_dir" && as_dir=.
15982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15983 done
15984 IFS=$as_save_IFS
15987 esac
15988 # We did not find ourselves, most probably we were run as `sh COMMAND'
15989 # in which case we are not to be found in the path.
15990 if test "x$as_myself" = x; then
15991 as_myself=$0
15993 if test ! -f "$as_myself"; then
15994 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15995 exit 1
15998 # Unset variables that we do not need and which cause bugs (e.g. in
15999 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16000 # suppresses any "Segmentation fault" message there. '((' could
16001 # trigger a bug in pdksh 5.2.14.
16002 for as_var in BASH_ENV ENV MAIL MAILPATH
16003 do eval test x\${$as_var+set} = xset \
16004 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16005 done
16006 PS1='$ '
16007 PS2='> '
16008 PS4='+ '
16010 # NLS nuisances.
16011 LC_ALL=C
16012 export LC_ALL
16013 LANGUAGE=C
16014 export LANGUAGE
16016 # CDPATH.
16017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16020 # as_fn_error ERROR [LINENO LOG_FD]
16021 # ---------------------------------
16022 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16023 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16024 # script with status $?, using 1 if that was 0.
16025 as_fn_error ()
16027 as_status=$?; test $as_status -eq 0 && as_status=1
16028 if test "$3"; then
16029 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16030 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16032 $as_echo "$as_me: error: $1" >&2
16033 as_fn_exit $as_status
16034 } # as_fn_error
16037 # as_fn_set_status STATUS
16038 # -----------------------
16039 # Set $? to STATUS, without forking.
16040 as_fn_set_status ()
16042 return $1
16043 } # as_fn_set_status
16045 # as_fn_exit STATUS
16046 # -----------------
16047 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16048 as_fn_exit ()
16050 set +e
16051 as_fn_set_status $1
16052 exit $1
16053 } # as_fn_exit
16055 # as_fn_unset VAR
16056 # ---------------
16057 # Portably unset VAR.
16058 as_fn_unset ()
16060 { eval $1=; unset $1;}
16062 as_unset=as_fn_unset
16063 # as_fn_append VAR VALUE
16064 # ----------------------
16065 # Append the text in VALUE to the end of the definition contained in VAR. Take
16066 # advantage of any shell optimizations that allow amortized linear growth over
16067 # repeated appends, instead of the typical quadratic growth present in naive
16068 # implementations.
16069 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16070 eval 'as_fn_append ()
16072 eval $1+=\$2
16074 else
16075 as_fn_append ()
16077 eval $1=\$$1\$2
16079 fi # as_fn_append
16081 # as_fn_arith ARG...
16082 # ------------------
16083 # Perform arithmetic evaluation on the ARGs, and store the result in the
16084 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16085 # must be portable across $(()) and expr.
16086 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16087 eval 'as_fn_arith ()
16089 as_val=$(( $* ))
16091 else
16092 as_fn_arith ()
16094 as_val=`expr "$@" || test $? -eq 1`
16096 fi # as_fn_arith
16099 if expr a : '\(a\)' >/dev/null 2>&1 &&
16100 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16101 as_expr=expr
16102 else
16103 as_expr=false
16106 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16107 as_basename=basename
16108 else
16109 as_basename=false
16112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16113 as_dirname=dirname
16114 else
16115 as_dirname=false
16118 as_me=`$as_basename -- "$0" ||
16119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16120 X"$0" : 'X\(//\)$' \| \
16121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16122 $as_echo X/"$0" |
16123 sed '/^.*\/\([^/][^/]*\)\/*$/{
16124 s//\1/
16127 /^X\/\(\/\/\)$/{
16128 s//\1/
16131 /^X\/\(\/\).*/{
16132 s//\1/
16135 s/.*/./; q'`
16137 # Avoid depending upon Character Ranges.
16138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16141 as_cr_digits='0123456789'
16142 as_cr_alnum=$as_cr_Letters$as_cr_digits
16144 ECHO_C= ECHO_N= ECHO_T=
16145 case `echo -n x` in #(((((
16146 -n*)
16147 case `echo 'xy\c'` in
16148 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16149 xy) ECHO_C='\c';;
16150 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16151 ECHO_T=' ';;
16152 esac;;
16154 ECHO_N='-n';;
16155 esac
16157 rm -f conf$$ conf$$.exe conf$$.file
16158 if test -d conf$$.dir; then
16159 rm -f conf$$.dir/conf$$.file
16160 else
16161 rm -f conf$$.dir
16162 mkdir conf$$.dir 2>/dev/null
16164 if (echo >conf$$.file) 2>/dev/null; then
16165 if ln -s conf$$.file conf$$ 2>/dev/null; then
16166 as_ln_s='ln -s'
16167 # ... but there are two gotchas:
16168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16170 # In both cases, we have to default to `cp -p'.
16171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16172 as_ln_s='cp -p'
16173 elif ln conf$$.file conf$$ 2>/dev/null; then
16174 as_ln_s=ln
16175 else
16176 as_ln_s='cp -p'
16178 else
16179 as_ln_s='cp -p'
16181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16182 rmdir conf$$.dir 2>/dev/null
16185 # as_fn_mkdir_p
16186 # -------------
16187 # Create "$as_dir" as a directory, including parents if necessary.
16188 as_fn_mkdir_p ()
16191 case $as_dir in #(
16192 -*) as_dir=./$as_dir;;
16193 esac
16194 test -d "$as_dir" || eval $as_mkdir_p || {
16195 as_dirs=
16196 while :; do
16197 case $as_dir in #(
16198 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16199 *) as_qdir=$as_dir;;
16200 esac
16201 as_dirs="'$as_qdir' $as_dirs"
16202 as_dir=`$as_dirname -- "$as_dir" ||
16203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16204 X"$as_dir" : 'X\(//\)[^/]' \| \
16205 X"$as_dir" : 'X\(//\)$' \| \
16206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16207 $as_echo X"$as_dir" |
16208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16209 s//\1/
16212 /^X\(\/\/\)[^/].*/{
16213 s//\1/
16216 /^X\(\/\/\)$/{
16217 s//\1/
16220 /^X\(\/\).*/{
16221 s//\1/
16224 s/.*/./; q'`
16225 test -d "$as_dir" && break
16226 done
16227 test -z "$as_dirs" || eval "mkdir $as_dirs"
16228 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16231 } # as_fn_mkdir_p
16232 if mkdir -p . 2>/dev/null; then
16233 as_mkdir_p='mkdir -p "$as_dir"'
16234 else
16235 test -d ./-p && rmdir ./-p
16236 as_mkdir_p=false
16239 if test -x / >/dev/null 2>&1; then
16240 as_test_x='test -x'
16241 else
16242 if ls -dL / >/dev/null 2>&1; then
16243 as_ls_L_option=L
16244 else
16245 as_ls_L_option=
16247 as_test_x='
16248 eval sh -c '\''
16249 if test -d "$1"; then
16250 test -d "$1/.";
16251 else
16252 case $1 in #(
16253 -*)set "./$1";;
16254 esac;
16255 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16256 ???[sx]*):;;*)false;;esac;fi
16257 '\'' sh
16260 as_executable_p=$as_test_x
16262 # Sed expression to map a string onto a valid CPP name.
16263 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16265 # Sed expression to map a string onto a valid variable name.
16266 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16269 exec 6>&1
16270 ## ----------------------------------- ##
16271 ## Main body of $CONFIG_STATUS script. ##
16272 ## ----------------------------------- ##
16273 _ASEOF
16274 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277 # Save the log message, to keep $0 and so on meaningful, and to
16278 # report actual input values of CONFIG_FILES etc. instead of their
16279 # values after options handling.
16280 ac_log="
16281 This file was extended by package-unused $as_me version-unused, which was
16282 generated by GNU Autoconf 2.64. Invocation command line was
16284 CONFIG_FILES = $CONFIG_FILES
16285 CONFIG_HEADERS = $CONFIG_HEADERS
16286 CONFIG_LINKS = $CONFIG_LINKS
16287 CONFIG_COMMANDS = $CONFIG_COMMANDS
16288 $ $0 $@
16290 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16293 _ACEOF
16295 case $ac_config_files in *"
16296 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16297 esac
16299 case $ac_config_headers in *"
16300 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16301 esac
16304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16305 # Files that config.status was made for.
16306 config_files="$ac_config_files"
16307 config_headers="$ac_config_headers"
16308 config_commands="$ac_config_commands"
16310 _ACEOF
16312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 ac_cs_usage="\
16314 \`$as_me' instantiates files and other configuration actions
16315 from templates according to the current configuration. Unless the files
16316 and actions are specified as TAGs, all are instantiated by default.
16318 Usage: $0 [OPTION]... [TAG]...
16320 -h, --help print this help, then exit
16321 -V, --version print version number and configuration settings, then exit
16322 -q, --quiet, --silent
16323 do not print progress messages
16324 -d, --debug don't remove temporary files
16325 --recheck update $as_me by reconfiguring in the same conditions
16326 --file=FILE[:TEMPLATE]
16327 instantiate the configuration file FILE
16328 --header=FILE[:TEMPLATE]
16329 instantiate the configuration header FILE
16331 Configuration files:
16332 $config_files
16334 Configuration headers:
16335 $config_headers
16337 Configuration commands:
16338 $config_commands
16340 Report bugs to the package provider."
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 ac_cs_version="\\
16345 package-unused config.status version-unused
16346 configured by $0, generated by GNU Autoconf 2.64,
16347 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16349 Copyright (C) 2009 Free Software Foundation, Inc.
16350 This config.status script is free software; the Free Software Foundation
16351 gives unlimited permission to copy, distribute and modify it."
16353 ac_pwd='$ac_pwd'
16354 srcdir='$srcdir'
16355 INSTALL='$INSTALL'
16356 MKDIR_P='$MKDIR_P'
16357 AWK='$AWK'
16358 test -n "\$AWK" || AWK=awk
16359 _ACEOF
16361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16362 # The default lists apply if the user does not specify any file.
16363 ac_need_defaults=:
16364 while test $# != 0
16366 case $1 in
16367 --*=*)
16368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16370 ac_shift=:
16373 ac_option=$1
16374 ac_optarg=$2
16375 ac_shift=shift
16377 esac
16379 case $ac_option in
16380 # Handling of the options.
16381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16382 ac_cs_recheck=: ;;
16383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16384 $as_echo "$ac_cs_version"; exit ;;
16385 --debug | --debu | --deb | --de | --d | -d )
16386 debug=: ;;
16387 --file | --fil | --fi | --f )
16388 $ac_shift
16389 case $ac_optarg in
16390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16391 esac
16392 as_fn_append CONFIG_FILES " '$ac_optarg'"
16393 ac_need_defaults=false;;
16394 --header | --heade | --head | --hea )
16395 $ac_shift
16396 case $ac_optarg in
16397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16398 esac
16399 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16400 ac_need_defaults=false;;
16401 --he | --h)
16402 # Conflict between --help and --header
16403 as_fn_error "ambiguous option: \`$1'
16404 Try \`$0 --help' for more information.";;
16405 --help | --hel | -h )
16406 $as_echo "$ac_cs_usage"; exit ;;
16407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16409 ac_cs_silent=: ;;
16411 # This is an error.
16412 -*) as_fn_error "unrecognized option: \`$1'
16413 Try \`$0 --help' for more information." ;;
16415 *) as_fn_append ac_config_targets " $1"
16416 ac_need_defaults=false ;;
16418 esac
16419 shift
16420 done
16422 ac_configure_extra_args=
16424 if $ac_cs_silent; then
16425 exec 6>/dev/null
16426 ac_configure_extra_args="$ac_configure_extra_args --silent"
16429 _ACEOF
16430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16431 if \$ac_cs_recheck; then
16432 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16433 shift
16434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16435 CONFIG_SHELL='$SHELL'
16436 export CONFIG_SHELL
16437 exec "\$@"
16440 _ACEOF
16441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16442 exec 5>>config.log
16444 echo
16445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16446 ## Running $as_me. ##
16447 _ASBOX
16448 $as_echo "$ac_log"
16449 } >&5
16451 _ACEOF
16452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16454 # INIT-COMMANDS
16457 srcdir="$srcdir"
16458 host="$host"
16459 target="$target"
16460 with_multisubdir="$with_multisubdir"
16461 with_multisrctop="$with_multisrctop"
16462 with_target_subdir="$with_target_subdir"
16463 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16464 multi_basedir="$multi_basedir"
16465 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16466 CC="$CC"
16467 CXX="$CXX"
16468 GFORTRAN="$GFORTRAN"
16469 GCJ="$GCJ"
16470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16473 # The HP-UX ksh and POSIX shell print the target directory to stdout
16474 # if CDPATH is set.
16475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16477 sed_quote_subst='$sed_quote_subst'
16478 double_quote_subst='$double_quote_subst'
16479 delay_variable_subst='$delay_variable_subst'
16480 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16481 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16482 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16483 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16484 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16485 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16486 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16487 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16488 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16489 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16490 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16491 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16492 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16493 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16494 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16495 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16496 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16497 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16498 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16499 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16500 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16501 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16502 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16503 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16504 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16505 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16506 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16507 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16508 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16509 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16510 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16513 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16514 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16515 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16516 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16517 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16518 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16519 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16520 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16521 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16522 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16523 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16524 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16525 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16526 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16527 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16528 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"`'
16529 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16530 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16531 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16533 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16534 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16535 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16536 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16560 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16561 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16562 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16563 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16564 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16565 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16566 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16567 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16568 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16569 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16570 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16571 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16572 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16573 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16574 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16575 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16576 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16577 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16578 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16579 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16580 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16581 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16582 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16583 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16584 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16585 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16586 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16587 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16588 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16589 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16590 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16591 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16592 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16593 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16594 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16595 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16596 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16597 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16598 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16599 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16600 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16601 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16602 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16603 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16604 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16605 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16606 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16607 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16608 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16609 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16610 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16611 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16612 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16613 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16614 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16615 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16616 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16617 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16618 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16619 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16620 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16621 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16622 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16623 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16624 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16625 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16626 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16627 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16628 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16629 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16630 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16631 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16632 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16633 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16634 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16635 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16636 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16637 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16638 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16639 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16640 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16641 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16642 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16644 LTCC='$LTCC'
16645 LTCFLAGS='$LTCFLAGS'
16646 compiler='$compiler_DEFAULT'
16648 # A function that is used when there is no print builtin or printf.
16649 func_fallback_echo ()
16651 eval 'cat <<_LTECHO_EOF
16653 _LTECHO_EOF'
16656 # Quote evaled strings.
16657 for var in SED \
16658 GREP \
16659 EGREP \
16660 FGREP \
16661 SHELL \
16662 ECHO \
16663 LD \
16664 NM \
16665 LN_S \
16666 lt_SP2NL \
16667 lt_NL2SP \
16668 reload_flag \
16669 OBJDUMP \
16670 deplibs_check_method \
16671 file_magic_cmd \
16672 AR \
16673 AR_FLAGS \
16674 STRIP \
16675 RANLIB \
16676 CC \
16677 CFLAGS \
16678 compiler \
16679 lt_cv_sys_global_symbol_pipe \
16680 lt_cv_sys_global_symbol_to_cdecl \
16681 lt_cv_sys_global_symbol_to_c_name_address \
16682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16683 lt_prog_compiler_no_builtin_flag \
16684 lt_prog_compiler_wl \
16685 lt_prog_compiler_pic \
16686 lt_prog_compiler_static \
16687 lt_cv_prog_compiler_c_o \
16688 need_locks \
16689 DSYMUTIL \
16690 NMEDIT \
16691 LIPO \
16692 OTOOL \
16693 OTOOL64 \
16694 shrext_cmds \
16695 export_dynamic_flag_spec \
16696 whole_archive_flag_spec \
16697 compiler_needs_object \
16698 with_gnu_ld \
16699 allow_undefined_flag \
16700 no_undefined_flag \
16701 hardcode_libdir_flag_spec \
16702 hardcode_libdir_flag_spec_ld \
16703 hardcode_libdir_separator \
16704 fix_srcfile_path \
16705 exclude_expsyms \
16706 include_expsyms \
16707 file_list_spec \
16708 variables_saved_for_relink \
16709 libname_spec \
16710 library_names_spec \
16711 soname_spec \
16712 install_override_mode \
16713 finish_eval \
16714 old_striplib \
16715 striplib \
16716 LD_GO \
16717 reload_flag_GO \
16718 compiler_GO \
16719 lt_prog_compiler_no_builtin_flag_GO \
16720 lt_prog_compiler_wl_GO \
16721 lt_prog_compiler_pic_GO \
16722 lt_prog_compiler_static_GO \
16723 lt_cv_prog_compiler_c_o_GO \
16724 export_dynamic_flag_spec_GO \
16725 whole_archive_flag_spec_GO \
16726 compiler_needs_object_GO \
16727 with_gnu_ld_GO \
16728 allow_undefined_flag_GO \
16729 no_undefined_flag_GO \
16730 hardcode_libdir_flag_spec_GO \
16731 hardcode_libdir_flag_spec_ld_GO \
16732 hardcode_libdir_separator_GO \
16733 fix_srcfile_path_GO \
16734 exclude_expsyms_GO \
16735 include_expsyms_GO \
16736 file_list_spec_GO; do
16737 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16738 *[\\\\\\\`\\"\\\$]*)
16739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16744 esac
16745 done
16747 # Double-quote double-evaled strings.
16748 for var in reload_cmds \
16749 old_postinstall_cmds \
16750 old_postuninstall_cmds \
16751 old_archive_cmds \
16752 extract_expsyms_cmds \
16753 old_archive_from_new_cmds \
16754 old_archive_from_expsyms_cmds \
16755 archive_cmds \
16756 archive_expsym_cmds \
16757 module_cmds \
16758 module_expsym_cmds \
16759 export_symbols_cmds \
16760 prelink_cmds \
16761 postinstall_cmds \
16762 postuninstall_cmds \
16763 finish_cmds \
16764 sys_lib_search_path_spec \
16765 sys_lib_dlsearch_path_spec \
16766 reload_cmds_GO \
16767 old_archive_cmds_GO \
16768 old_archive_from_new_cmds_GO \
16769 old_archive_from_expsyms_cmds_GO \
16770 archive_cmds_GO \
16771 archive_expsym_cmds_GO \
16772 module_cmds_GO \
16773 module_expsym_cmds_GO \
16774 export_symbols_cmds_GO \
16775 prelink_cmds_GO; do
16776 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16777 *[\\\\\\\`\\"\\\$]*)
16778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16783 esac
16784 done
16786 ac_aux_dir='$ac_aux_dir'
16787 xsi_shell='$xsi_shell'
16788 lt_shell_append='$lt_shell_append'
16790 # See if we are running on zsh, and set the options which allow our
16791 # commands through without removal of \ escapes INIT.
16792 if test -n "\${ZSH_VERSION+set}" ; then
16793 setopt NO_GLOB_SUBST
16797 PACKAGE='$PACKAGE'
16798 VERSION='$VERSION'
16799 TIMESTAMP='$TIMESTAMP'
16800 RM='$RM'
16801 ofile='$ofile'
16808 # Variables needed in config.status (file generation) which aren't already
16809 # passed by autoconf.
16810 SUBDIRS="$SUBDIRS"
16813 _ACEOF
16815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817 # Handling of arguments.
16818 for ac_config_target in $ac_config_targets
16820 case $ac_config_target in
16821 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16822 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16826 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16827 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16830 esac
16831 done
16834 # If the user did not use the arguments to specify the items to instantiate,
16835 # then the envvar interface is used. Set only those that are not.
16836 # We use the long form for the default assignment because of an extremely
16837 # bizarre bug on SunOS 4.1.3.
16838 if $ac_need_defaults; then
16839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16844 # Have a temporary directory for convenience. Make it in the build tree
16845 # simply because there is no reason against having it here, and in addition,
16846 # creating and moving files from /tmp can sometimes cause problems.
16847 # Hook for its removal unless debugging.
16848 # Note that there is a small window in which the directory will not be cleaned:
16849 # after its creation but before its name has been assigned to `$tmp'.
16850 $debug ||
16852 tmp=
16853 trap 'exit_status=$?
16854 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16856 trap 'as_fn_exit 1' 1 2 13 15
16858 # Create a (secure) tmp directory for tmp files.
16861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16862 test -n "$tmp" && test -d "$tmp"
16863 } ||
16865 tmp=./conf$$-$RANDOM
16866 (umask 077 && mkdir "$tmp")
16867 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16869 # Set up the scripts for CONFIG_FILES section.
16870 # No need to generate them if there are no CONFIG_FILES.
16871 # This happens for instance with `./config.status config.h'.
16872 if test -n "$CONFIG_FILES"; then
16875 ac_cr=`echo X | tr X '\015'`
16876 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16877 # But we know of no other shell where ac_cr would be empty at this
16878 # point, so we can use a bashism as a fallback.
16879 if test "x$ac_cr" = x; then
16880 eval ac_cr=\$\'\\r\'
16882 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16883 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16884 ac_cs_awk_cr='\r'
16885 else
16886 ac_cs_awk_cr=$ac_cr
16889 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16890 _ACEOF
16894 echo "cat >conf$$subs.awk <<_ACEOF" &&
16895 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16896 echo "_ACEOF"
16897 } >conf$$subs.sh ||
16898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16899 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16900 ac_delim='%!_!# '
16901 for ac_last_try in false false false false false :; do
16902 . ./conf$$subs.sh ||
16903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16905 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16906 if test $ac_delim_n = $ac_delim_num; then
16907 break
16908 elif $ac_last_try; then
16909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16910 else
16911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16913 done
16914 rm -f conf$$subs.sh
16916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16917 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16918 _ACEOF
16919 sed -n '
16921 s/^/S["/; s/!.*/"]=/
16924 s/^[^!]*!//
16925 :repl
16926 t repl
16927 s/'"$ac_delim"'$//
16928 t delim
16931 s/\(.\{148\}\).*/\1/
16932 t more1
16933 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16936 b repl
16937 :more1
16938 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16941 s/.\{148\}//
16942 t nl
16943 :delim
16945 s/\(.\{148\}\).*/\1/
16946 t more2
16947 s/["\\]/\\&/g; s/^/"/; s/$/"/
16950 :more2
16951 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16954 s/.\{148\}//
16955 t delim
16956 ' <conf$$subs.awk | sed '
16957 /^[^""]/{
16959 s/\n//
16961 ' >>$CONFIG_STATUS || ac_write_fail=1
16962 rm -f conf$$subs.awk
16963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16964 _ACAWK
16965 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16966 for (key in S) S_is_set[key] = 1
16967 FS = "\a"
16971 line = $ 0
16972 nfields = split(line, field, "@")
16973 substed = 0
16974 len = length(field[1])
16975 for (i = 2; i < nfields; i++) {
16976 key = field[i]
16977 keylen = length(key)
16978 if (S_is_set[key]) {
16979 value = S[key]
16980 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16981 len += length(value) + length(field[++i])
16982 substed = 1
16983 } else
16984 len += 1 + keylen
16987 print line
16990 _ACAWK
16991 _ACEOF
16992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16993 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16994 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16995 else
16997 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16998 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16999 _ACEOF
17001 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17002 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17003 # trailing colons and then remove the whole line if VPATH becomes empty
17004 # (actually we leave an empty line to preserve line numbers).
17005 if test "x$srcdir" = x.; then
17006 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17007 s/:*\$(srcdir):*/:/
17008 s/:*\${srcdir}:*/:/
17009 s/:*@srcdir@:*/:/
17010 s/^\([^=]*=[ ]*\):*/\1/
17011 s/:*$//
17012 s/^[^=]*=[ ]*$//
17016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17017 fi # test -n "$CONFIG_FILES"
17019 # Set up the scripts for CONFIG_HEADERS section.
17020 # No need to generate them if there are no CONFIG_HEADERS.
17021 # This happens for instance with `./config.status Makefile'.
17022 if test -n "$CONFIG_HEADERS"; then
17023 cat >"$tmp/defines.awk" <<\_ACAWK ||
17024 BEGIN {
17025 _ACEOF
17027 # Transform confdefs.h into an awk script `defines.awk', embedded as
17028 # here-document in config.status, that substitutes the proper values into
17029 # config.h.in to produce config.h.
17031 # Create a delimiter string that does not exist in confdefs.h, to ease
17032 # handling of long lines.
17033 ac_delim='%!_!# '
17034 for ac_last_try in false false :; do
17035 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17036 if test -z "$ac_t"; then
17037 break
17038 elif $ac_last_try; then
17039 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17040 else
17041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17043 done
17045 # For the awk script, D is an array of macro values keyed by name,
17046 # likewise P contains macro parameters if any. Preserve backslash
17047 # newline sequences.
17049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17050 sed -n '
17051 s/.\{148\}/&'"$ac_delim"'/g
17052 t rset
17053 :rset
17054 s/^[ ]*#[ ]*define[ ][ ]*/ /
17055 t def
17057 :def
17058 s/\\$//
17059 t bsnl
17060 s/["\\]/\\&/g
17061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17062 D["\1"]=" \3"/p
17063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17065 :bsnl
17066 s/["\\]/\\&/g
17067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17068 D["\1"]=" \3\\\\\\n"\\/p
17069 t cont
17070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17071 t cont
17073 :cont
17075 s/.\{148\}/&'"$ac_delim"'/g
17076 t clear
17077 :clear
17078 s/\\$//
17079 t bsnlc
17080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17082 :bsnlc
17083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17084 b cont
17085 ' <confdefs.h | sed '
17086 s/'"$ac_delim"'/"\\\
17087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17090 for (key in D) D_is_set[key] = 1
17091 FS = "\a"
17093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17094 line = \$ 0
17095 split(line, arg, " ")
17096 if (arg[1] == "#") {
17097 defundef = arg[2]
17098 mac1 = arg[3]
17099 } else {
17100 defundef = substr(arg[1], 2)
17101 mac1 = arg[2]
17103 split(mac1, mac2, "(") #)
17104 macro = mac2[1]
17105 prefix = substr(line, 1, index(line, defundef) - 1)
17106 if (D_is_set[macro]) {
17107 # Preserve the white space surrounding the "#".
17108 print prefix "define", macro P[macro] D[macro]
17109 next
17110 } else {
17111 # Replace #undef with comments. This is necessary, for example,
17112 # in the case of _POSIX_SOURCE, which is predefined and required
17113 # on some systems where configure will not decide to define it.
17114 if (defundef == "undef") {
17115 print "/*", prefix defundef, macro, "*/"
17116 next
17120 { print }
17121 _ACAWK
17122 _ACEOF
17123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17124 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17125 fi # test -n "$CONFIG_HEADERS"
17128 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17129 shift
17130 for ac_tag
17132 case $ac_tag in
17133 :[FHLC]) ac_mode=$ac_tag; continue;;
17134 esac
17135 case $ac_mode$ac_tag in
17136 :[FHL]*:*);;
17137 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17138 :[FH]-) ac_tag=-:-;;
17139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17140 esac
17141 ac_save_IFS=$IFS
17142 IFS=:
17143 set x $ac_tag
17144 IFS=$ac_save_IFS
17145 shift
17146 ac_file=$1
17147 shift
17149 case $ac_mode in
17150 :L) ac_source=$1;;
17151 :[FH])
17152 ac_file_inputs=
17153 for ac_f
17155 case $ac_f in
17156 -) ac_f="$tmp/stdin";;
17157 *) # Look for the file first in the build tree, then in the source tree
17158 # (if the path is not absolute). The absolute path cannot be DOS-style,
17159 # because $ac_f cannot contain `:'.
17160 test -f "$ac_f" ||
17161 case $ac_f in
17162 [\\/$]*) false;;
17163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17164 esac ||
17165 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17166 esac
17167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17168 as_fn_append ac_file_inputs " '$ac_f'"
17169 done
17171 # Let's still pretend it is `configure' which instantiates (i.e., don't
17172 # use $as_me), people would be surprised to read:
17173 # /* config.h. Generated by config.status. */
17174 configure_input='Generated from '`
17175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17176 `' by configure.'
17177 if test x"$ac_file" != x-; then
17178 configure_input="$ac_file. $configure_input"
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17180 $as_echo "$as_me: creating $ac_file" >&6;}
17182 # Neutralize special characters interpreted by sed in replacement strings.
17183 case $configure_input in #(
17184 *\&* | *\|* | *\\* )
17185 ac_sed_conf_input=`$as_echo "$configure_input" |
17186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17187 *) ac_sed_conf_input=$configure_input;;
17188 esac
17190 case $ac_tag in
17191 *:-:* | *:-) cat >"$tmp/stdin" \
17192 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17193 esac
17195 esac
17197 ac_dir=`$as_dirname -- "$ac_file" ||
17198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17199 X"$ac_file" : 'X\(//\)[^/]' \| \
17200 X"$ac_file" : 'X\(//\)$' \| \
17201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17202 $as_echo X"$ac_file" |
17203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17204 s//\1/
17207 /^X\(\/\/\)[^/].*/{
17208 s//\1/
17211 /^X\(\/\/\)$/{
17212 s//\1/
17215 /^X\(\/\).*/{
17216 s//\1/
17219 s/.*/./; q'`
17220 as_dir="$ac_dir"; as_fn_mkdir_p
17221 ac_builddir=.
17223 case "$ac_dir" in
17224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17227 # A ".." for each directory in $ac_dir_suffix.
17228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17229 case $ac_top_builddir_sub in
17230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17232 esac ;;
17233 esac
17234 ac_abs_top_builddir=$ac_pwd
17235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17236 # for backward compatibility:
17237 ac_top_builddir=$ac_top_build_prefix
17239 case $srcdir in
17240 .) # We are building in place.
17241 ac_srcdir=.
17242 ac_top_srcdir=$ac_top_builddir_sub
17243 ac_abs_top_srcdir=$ac_pwd ;;
17244 [\\/]* | ?:[\\/]* ) # Absolute name.
17245 ac_srcdir=$srcdir$ac_dir_suffix;
17246 ac_top_srcdir=$srcdir
17247 ac_abs_top_srcdir=$srcdir ;;
17248 *) # Relative name.
17249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17250 ac_top_srcdir=$ac_top_build_prefix$srcdir
17251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17252 esac
17253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17256 case $ac_mode in
17259 # CONFIG_FILE
17262 case $INSTALL in
17263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17265 esac
17266 ac_MKDIR_P=$MKDIR_P
17267 case $MKDIR_P in
17268 [\\/$]* | ?:[\\/]* ) ;;
17269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17270 esac
17271 _ACEOF
17273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17274 # If the template does not know about datarootdir, expand it.
17275 # FIXME: This hack should be removed a few years after 2.60.
17276 ac_datarootdir_hack=; ac_datarootdir_seen=
17277 ac_sed_dataroot='
17278 /datarootdir/ {
17282 /@datadir@/p
17283 /@docdir@/p
17284 /@infodir@/p
17285 /@localedir@/p
17286 /@mandir@/p'
17287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17288 *datarootdir*) ac_datarootdir_seen=yes;;
17289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17292 _ACEOF
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 ac_datarootdir_hack='
17295 s&@datadir@&$datadir&g
17296 s&@docdir@&$docdir&g
17297 s&@infodir@&$infodir&g
17298 s&@localedir@&$localedir&g
17299 s&@mandir@&$mandir&g
17300 s&\\\${datarootdir}&$datarootdir&g' ;;
17301 esac
17302 _ACEOF
17304 # Neutralize VPATH when `$srcdir' = `.'.
17305 # Shell code in configure.ac might set extrasub.
17306 # FIXME: do we really want to maintain this feature?
17307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308 ac_sed_extra="$ac_vpsub
17309 $extrasub
17310 _ACEOF
17311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17314 s|@configure_input@|$ac_sed_conf_input|;t t
17315 s&@top_builddir@&$ac_top_builddir_sub&;t t
17316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17317 s&@srcdir@&$ac_srcdir&;t t
17318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17319 s&@top_srcdir@&$ac_top_srcdir&;t t
17320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17321 s&@builddir@&$ac_builddir&;t t
17322 s&@abs_builddir@&$ac_abs_builddir&;t t
17323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17324 s&@INSTALL@&$ac_INSTALL&;t t
17325 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17326 $ac_datarootdir_hack
17328 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17329 || as_fn_error "could not create $ac_file" "$LINENO" 5
17331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17335 which seems to be undefined. Please make sure it is defined." >&5
17336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17337 which seems to be undefined. Please make sure it is defined." >&2;}
17339 rm -f "$tmp/stdin"
17340 case $ac_file in
17341 -) cat "$tmp/out" && rm -f "$tmp/out";;
17342 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17343 esac \
17344 || as_fn_error "could not create $ac_file" "$LINENO" 5
17348 # CONFIG_HEADER
17350 if test x"$ac_file" != x-; then
17352 $as_echo "/* $configure_input */" \
17353 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17354 } >"$tmp/config.h" \
17355 || as_fn_error "could not create $ac_file" "$LINENO" 5
17356 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17359 else
17360 rm -f "$ac_file"
17361 mv "$tmp/config.h" "$ac_file" \
17362 || as_fn_error "could not create $ac_file" "$LINENO" 5
17364 else
17365 $as_echo "/* $configure_input */" \
17366 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17367 || as_fn_error "could not create -" "$LINENO" 5
17369 # Compute "$ac_file"'s index in $config_headers.
17370 _am_arg="$ac_file"
17371 _am_stamp_count=1
17372 for _am_header in $config_headers :; do
17373 case $_am_header in
17374 $_am_arg | $_am_arg:* )
17375 break ;;
17377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17378 esac
17379 done
17380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382 X"$_am_arg" : 'X\(//\)[^/]' \| \
17383 X"$_am_arg" : 'X\(//\)$' \| \
17384 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17385 $as_echo X"$_am_arg" |
17386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17387 s//\1/
17390 /^X\(\/\/\)[^/].*/{
17391 s//\1/
17394 /^X\(\/\/\)$/{
17395 s//\1/
17398 /^X\(\/\).*/{
17399 s//\1/
17402 s/.*/./; q'`/stamp-h$_am_stamp_count
17405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17406 $as_echo "$as_me: executing $ac_file commands" >&6;}
17408 esac
17411 case $ac_file$ac_mode in
17412 "default-1":C)
17413 # Only add multilib support code if we just rebuilt the top-level
17414 # Makefile.
17415 case " $CONFIG_FILES " in
17416 *" Makefile "*)
17417 ac_file=Makefile . ${multi_basedir}/config-ml.in
17419 esac ;;
17420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17421 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17422 # are listed without --file. Let's play safe and only enable the eval
17423 # if we detect the quoting.
17424 case $CONFIG_FILES in
17425 *\'*) eval set x "$CONFIG_FILES" ;;
17426 *) set x $CONFIG_FILES ;;
17427 esac
17428 shift
17429 for mf
17431 # Strip MF so we end up with the name of the file.
17432 mf=`echo "$mf" | sed -e 's/:.*$//'`
17433 # Check whether this is an Automake generated Makefile or not.
17434 # We used to match only the files named `Makefile.in', but
17435 # some people rename them; so instead we look at the file content.
17436 # Grep'ing the first line is not enough: some people post-process
17437 # each Makefile.in and add a new line on top of each file to say so.
17438 # Grep'ing the whole file is not good either: AIX grep has a line
17439 # limit of 2048, but all sed's we know have understand at least 4000.
17440 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17441 dirpart=`$as_dirname -- "$mf" ||
17442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443 X"$mf" : 'X\(//\)[^/]' \| \
17444 X"$mf" : 'X\(//\)$' \| \
17445 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17446 $as_echo X"$mf" |
17447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17448 s//\1/
17451 /^X\(\/\/\)[^/].*/{
17452 s//\1/
17455 /^X\(\/\/\)$/{
17456 s//\1/
17459 /^X\(\/\).*/{
17460 s//\1/
17463 s/.*/./; q'`
17464 else
17465 continue
17467 # Extract the definition of DEPDIR, am__include, and am__quote
17468 # from the Makefile without running `make'.
17469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17470 test -z "$DEPDIR" && continue
17471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17472 test -z "am__include" && continue
17473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17474 # When using ansi2knr, U may be empty or an underscore; expand it
17475 U=`sed -n 's/^U = //p' < "$mf"`
17476 # Find all dependency output files, they are included files with
17477 # $(DEPDIR) in their names. We invoke sed twice because it is the
17478 # simplest approach to changing $(DEPDIR) to its actual value in the
17479 # expansion.
17480 for file in `sed -n "
17481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17483 # Make sure the directory exists.
17484 test -f "$dirpart/$file" && continue
17485 fdir=`$as_dirname -- "$file" ||
17486 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$file" : 'X\(//\)[^/]' \| \
17488 X"$file" : 'X\(//\)$' \| \
17489 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$file" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17492 s//\1/
17495 /^X\(\/\/\)[^/].*/{
17496 s//\1/
17499 /^X\(\/\/\)$/{
17500 s//\1/
17503 /^X\(\/\).*/{
17504 s//\1/
17507 s/.*/./; q'`
17508 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17509 # echo "creating $dirpart/$file"
17510 echo '# dummy' > "$dirpart/$file"
17511 done
17512 done
17515 "libtool":C)
17517 # See if we are running on zsh, and set the options which allow our
17518 # commands through without removal of \ escapes.
17519 if test -n "${ZSH_VERSION+set}" ; then
17520 setopt NO_GLOB_SUBST
17523 cfgfile="${ofile}T"
17524 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17525 $RM "$cfgfile"
17527 cat <<_LT_EOF >> "$cfgfile"
17528 #! $SHELL
17530 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17531 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17536 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17537 # Written by Gordon Matzigkeit, 1996
17539 # This file is part of GNU Libtool.
17541 # GNU Libtool is free software; you can redistribute it and/or
17542 # modify it under the terms of the GNU General Public License as
17543 # published by the Free Software Foundation; either version 2 of
17544 # the License, or (at your option) any later version.
17546 # As a special exception to the GNU General Public License,
17547 # if you distribute this file as part of a program or library that
17548 # is built using GNU Libtool, you may include this file under the
17549 # same distribution terms that you use for the rest of that program.
17551 # GNU Libtool is distributed in the hope that it will be useful,
17552 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17553 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17554 # GNU General Public License for more details.
17556 # You should have received a copy of the GNU General Public License
17557 # along with GNU Libtool; see the file COPYING. If not, a copy
17558 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17559 # obtained by writing to the Free Software Foundation, Inc.,
17560 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17563 # The names of the tagged configurations supported by this script.
17564 available_tags="GO "
17566 # ### BEGIN LIBTOOL CONFIG
17568 # A sed program that does not truncate output.
17569 SED=$lt_SED
17571 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17572 Xsed="\$SED -e 1s/^X//"
17574 # A grep program that handles long lines.
17575 GREP=$lt_GREP
17577 # An ERE matcher.
17578 EGREP=$lt_EGREP
17580 # A literal string matcher.
17581 FGREP=$lt_FGREP
17583 # Shell to use when invoking shell scripts.
17584 SHELL=$lt_SHELL
17586 # An echo program that protects backslashes.
17587 ECHO=$lt_ECHO
17589 # Which release of libtool.m4 was used?
17590 macro_version=$macro_version
17591 macro_revision=$macro_revision
17593 # Whether or not to build shared libraries.
17594 build_libtool_libs=$enable_shared
17596 # Whether or not to build static libraries.
17597 build_old_libs=$enable_static
17599 # What type of objects to build.
17600 pic_mode=$pic_mode
17602 # Whether or not to optimize for fast installation.
17603 fast_install=$enable_fast_install
17605 # The host system.
17606 host_alias=$host_alias
17607 host=$host
17608 host_os=$host_os
17610 # The build system.
17611 build_alias=$build_alias
17612 build=$build
17613 build_os=$build_os
17615 # A BSD- or MS-compatible name lister.
17616 NM=$lt_NM
17618 # Whether we need soft or hard links.
17619 LN_S=$lt_LN_S
17621 # What is the maximum length of a command?
17622 max_cmd_len=$max_cmd_len
17624 # Object file suffix (normally "o").
17625 objext=$ac_objext
17627 # Executable file suffix (normally "").
17628 exeext=$exeext
17630 # whether the shell understands "unset".
17631 lt_unset=$lt_unset
17633 # turn spaces into newlines.
17634 SP2NL=$lt_lt_SP2NL
17636 # turn newlines into spaces.
17637 NL2SP=$lt_lt_NL2SP
17639 # An object symbol dumper.
17640 OBJDUMP=$lt_OBJDUMP
17642 # Method to check whether dependent libraries are shared objects.
17643 deplibs_check_method=$lt_deplibs_check_method
17645 # Command to use when deplibs_check_method == "file_magic".
17646 file_magic_cmd=$lt_file_magic_cmd
17648 # The archiver.
17649 AR=$lt_AR
17650 AR_FLAGS=$lt_AR_FLAGS
17652 # A symbol stripping program.
17653 STRIP=$lt_STRIP
17655 # Commands used to install an old-style archive.
17656 RANLIB=$lt_RANLIB
17657 old_postinstall_cmds=$lt_old_postinstall_cmds
17658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17660 # Whether to use a lock for old archive extraction.
17661 lock_old_archive_extraction=$lock_old_archive_extraction
17663 # A C compiler.
17664 LTCC=$lt_CC
17666 # LTCC compiler flags.
17667 LTCFLAGS=$lt_CFLAGS
17669 # Take the output of nm and produce a listing of raw symbols and C names.
17670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17672 # Transform the output of nm in a proper C declaration.
17673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17675 # Transform the output of nm in a C name address pair.
17676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17678 # Transform the output of nm in a C name address pair when lib prefix is needed.
17679 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17681 # The name of the directory that contains temporary libtool files.
17682 objdir=$objdir
17684 # Used to examine libraries when file_magic_cmd begins with "file".
17685 MAGIC_CMD=$MAGIC_CMD
17687 # Must we lock files when doing compilation?
17688 need_locks=$lt_need_locks
17690 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17691 DSYMUTIL=$lt_DSYMUTIL
17693 # Tool to change global to local symbols on Mac OS X.
17694 NMEDIT=$lt_NMEDIT
17696 # Tool to manipulate fat objects and archives on Mac OS X.
17697 LIPO=$lt_LIPO
17699 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17700 OTOOL=$lt_OTOOL
17702 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17703 OTOOL64=$lt_OTOOL64
17705 # Old archive suffix (normally "a").
17706 libext=$libext
17708 # Shared library suffix (normally ".so").
17709 shrext_cmds=$lt_shrext_cmds
17711 # The commands to extract the exported symbol list from a shared archive.
17712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17714 # Variables whose values should be saved in libtool wrapper scripts and
17715 # restored at link time.
17716 variables_saved_for_relink=$lt_variables_saved_for_relink
17718 # Do we need the "lib" prefix for modules?
17719 need_lib_prefix=$need_lib_prefix
17721 # Do we need a version for libraries?
17722 need_version=$need_version
17724 # Library versioning type.
17725 version_type=$version_type
17727 # Shared library runtime path variable.
17728 runpath_var=$runpath_var
17730 # Shared library path variable.
17731 shlibpath_var=$shlibpath_var
17733 # Is shlibpath searched before the hard-coded library search path?
17734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17736 # Format of library name prefix.
17737 libname_spec=$lt_libname_spec
17739 # List of archive names. First name is the real one, the rest are links.
17740 # The last name is the one that the linker finds with -lNAME
17741 library_names_spec=$lt_library_names_spec
17743 # The coded name of the library, if different from the real name.
17744 soname_spec=$lt_soname_spec
17746 # Permission mode override for installation of shared libraries.
17747 install_override_mode=$lt_install_override_mode
17749 # Command to use after installation of a shared archive.
17750 postinstall_cmds=$lt_postinstall_cmds
17752 # Command to use after uninstallation of a shared archive.
17753 postuninstall_cmds=$lt_postuninstall_cmds
17755 # Commands used to finish a libtool library installation in a directory.
17756 finish_cmds=$lt_finish_cmds
17758 # As "finish_cmds", except a single script fragment to be evaled but
17759 # not shown.
17760 finish_eval=$lt_finish_eval
17762 # Whether we should hardcode library paths into libraries.
17763 hardcode_into_libs=$hardcode_into_libs
17765 # Compile-time system search path for libraries.
17766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17768 # Run-time system search path for libraries.
17769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17771 # Whether dlopen is supported.
17772 dlopen_support=$enable_dlopen
17774 # Whether dlopen of programs is supported.
17775 dlopen_self=$enable_dlopen_self
17777 # Whether dlopen of statically linked programs is supported.
17778 dlopen_self_static=$enable_dlopen_self_static
17780 # Commands to strip libraries.
17781 old_striplib=$lt_old_striplib
17782 striplib=$lt_striplib
17785 # The linker used to build libraries.
17786 LD=$lt_LD
17788 # How to create reloadable object files.
17789 reload_flag=$lt_reload_flag
17790 reload_cmds=$lt_reload_cmds
17792 # Commands used to build an old-style archive.
17793 old_archive_cmds=$lt_old_archive_cmds
17795 # A language specific compiler.
17796 CC=$lt_compiler
17798 # Is the compiler the GNU compiler?
17799 with_gcc=$GCC
17801 # Compiler flag to turn off builtin functions.
17802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17804 # How to pass a linker flag through the compiler.
17805 wl=$lt_lt_prog_compiler_wl
17807 # Additional compiler flags for building library objects.
17808 pic_flag=$lt_lt_prog_compiler_pic
17810 # Compiler flag to prevent dynamic linking.
17811 link_static_flag=$lt_lt_prog_compiler_static
17813 # Does compiler simultaneously support -c and -o options?
17814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17816 # Whether or not to add -lc for building shared libraries.
17817 build_libtool_need_lc=$archive_cmds_need_lc
17819 # Whether or not to disallow shared libs when runtime libs are static.
17820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17822 # Compiler flag to allow reflexive dlopens.
17823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17825 # Compiler flag to generate shared objects directly from archives.
17826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17828 # Whether the compiler copes with passing no objects directly.
17829 compiler_needs_object=$lt_compiler_needs_object
17831 # Create an old-style archive from a shared archive.
17832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17834 # Create a temporary old-style archive to link instead of a shared archive.
17835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17837 # Commands used to build a shared archive.
17838 archive_cmds=$lt_archive_cmds
17839 archive_expsym_cmds=$lt_archive_expsym_cmds
17841 # Commands used to build a loadable module if different from building
17842 # a shared archive.
17843 module_cmds=$lt_module_cmds
17844 module_expsym_cmds=$lt_module_expsym_cmds
17846 # Whether we are building with GNU ld or not.
17847 with_gnu_ld=$lt_with_gnu_ld
17849 # Flag that allows shared libraries with undefined symbols to be built.
17850 allow_undefined_flag=$lt_allow_undefined_flag
17852 # Flag that enforces no undefined symbols.
17853 no_undefined_flag=$lt_no_undefined_flag
17855 # Flag to hardcode \$libdir into a binary during linking.
17856 # This must work even if \$libdir does not exist
17857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17859 # If ld is used when linking, flag to hardcode \$libdir into a binary
17860 # during linking. This must work even if \$libdir does not exist.
17861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17863 # Whether we need a single "-rpath" flag with a separated argument.
17864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17867 # DIR into the resulting binary.
17868 hardcode_direct=$hardcode_direct
17870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17871 # DIR into the resulting binary and the resulting library dependency is
17872 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17873 # library is relocated.
17874 hardcode_direct_absolute=$hardcode_direct_absolute
17876 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17877 # into the resulting binary.
17878 hardcode_minus_L=$hardcode_minus_L
17880 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17881 # into the resulting binary.
17882 hardcode_shlibpath_var=$hardcode_shlibpath_var
17884 # Set to "yes" if building a shared library automatically hardcodes DIR
17885 # into the library and all subsequent libraries and executables linked
17886 # against it.
17887 hardcode_automatic=$hardcode_automatic
17889 # Set to yes if linker adds runtime paths of dependent libraries
17890 # to runtime path list.
17891 inherit_rpath=$inherit_rpath
17893 # Whether libtool must link a program against all its dependency libraries.
17894 link_all_deplibs=$link_all_deplibs
17896 # Fix the shell variable \$srcfile for the compiler.
17897 fix_srcfile_path=$lt_fix_srcfile_path
17899 # Set to "yes" if exported symbols are required.
17900 always_export_symbols=$always_export_symbols
17902 # The commands to list exported symbols.
17903 export_symbols_cmds=$lt_export_symbols_cmds
17905 # Symbols that should not be listed in the preloaded symbols.
17906 exclude_expsyms=$lt_exclude_expsyms
17908 # Symbols that must always be exported.
17909 include_expsyms=$lt_include_expsyms
17911 # Commands necessary for linking programs (against libraries) with templates.
17912 prelink_cmds=$lt_prelink_cmds
17914 # Specify filename containing input files.
17915 file_list_spec=$lt_file_list_spec
17917 # How to hardcode a shared library path into an executable.
17918 hardcode_action=$hardcode_action
17920 # ### END LIBTOOL CONFIG
17922 _LT_EOF
17924 case $host_os in
17925 aix3*)
17926 cat <<\_LT_EOF >> "$cfgfile"
17927 # AIX sometimes has problems with the GCC collect2 program. For some
17928 # reason, if we set the COLLECT_NAMES environment variable, the problems
17929 # vanish in a puff of smoke.
17930 if test "X${COLLECT_NAMES+set}" != Xset; then
17931 COLLECT_NAMES=
17932 export COLLECT_NAMES
17934 _LT_EOF
17936 esac
17939 ltmain="$ac_aux_dir/ltmain.sh"
17942 # We use sed instead of cat because bash on DJGPP gets confused if
17943 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17944 # text mode, it properly converts lines to CR/LF. This bash problem
17945 # is reportedly fixed, but why not run on old versions too?
17946 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17947 || (rm -f "$cfgfile"; exit 1)
17949 case $xsi_shell in
17950 yes)
17951 cat << \_LT_EOF >> "$cfgfile"
17953 # func_dirname file append nondir_replacement
17954 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17955 # otherwise set result to NONDIR_REPLACEMENT.
17956 func_dirname ()
17958 case ${1} in
17959 */*) func_dirname_result="${1%/*}${2}" ;;
17960 * ) func_dirname_result="${3}" ;;
17961 esac
17964 # func_basename file
17965 func_basename ()
17967 func_basename_result="${1##*/}"
17970 # func_dirname_and_basename file append nondir_replacement
17971 # perform func_basename and func_dirname in a single function
17972 # call:
17973 # dirname: Compute the dirname of FILE. If nonempty,
17974 # add APPEND to the result, otherwise set result
17975 # to NONDIR_REPLACEMENT.
17976 # value returned in "$func_dirname_result"
17977 # basename: Compute filename of FILE.
17978 # value retuned in "$func_basename_result"
17979 # Implementation must be kept synchronized with func_dirname
17980 # and func_basename. For efficiency, we do not delegate to
17981 # those functions but instead duplicate the functionality here.
17982 func_dirname_and_basename ()
17984 case ${1} in
17985 */*) func_dirname_result="${1%/*}${2}" ;;
17986 * ) func_dirname_result="${3}" ;;
17987 esac
17988 func_basename_result="${1##*/}"
17991 # func_stripname prefix suffix name
17992 # strip PREFIX and SUFFIX off of NAME.
17993 # PREFIX and SUFFIX must not contain globbing or regex special
17994 # characters, hashes, percent signs, but SUFFIX may contain a leading
17995 # dot (in which case that matches only a dot).
17996 func_stripname ()
17998 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17999 # positional parameters, so assign one to ordinary parameter first.
18000 func_stripname_result=${3}
18001 func_stripname_result=${func_stripname_result#"${1}"}
18002 func_stripname_result=${func_stripname_result%"${2}"}
18005 # func_opt_split
18006 func_opt_split ()
18008 func_opt_split_opt=${1%%=*}
18009 func_opt_split_arg=${1#*=}
18012 # func_lo2o object
18013 func_lo2o ()
18015 case ${1} in
18016 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18017 *) func_lo2o_result=${1} ;;
18018 esac
18021 # func_xform libobj-or-source
18022 func_xform ()
18024 func_xform_result=${1%.*}.lo
18027 # func_arith arithmetic-term...
18028 func_arith ()
18030 func_arith_result=$(( $* ))
18033 # func_len string
18034 # STRING may not start with a hyphen.
18035 func_len ()
18037 func_len_result=${#1}
18040 _LT_EOF
18042 *) # Bourne compatible functions.
18043 cat << \_LT_EOF >> "$cfgfile"
18045 # func_dirname file append nondir_replacement
18046 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18047 # otherwise set result to NONDIR_REPLACEMENT.
18048 func_dirname ()
18050 # Extract subdirectory from the argument.
18051 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18052 if test "X$func_dirname_result" = "X${1}"; then
18053 func_dirname_result="${3}"
18054 else
18055 func_dirname_result="$func_dirname_result${2}"
18059 # func_basename file
18060 func_basename ()
18062 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18066 # func_stripname prefix suffix name
18067 # strip PREFIX and SUFFIX off of NAME.
18068 # PREFIX and SUFFIX must not contain globbing or regex special
18069 # characters, hashes, percent signs, but SUFFIX may contain a leading
18070 # dot (in which case that matches only a dot).
18071 # func_strip_suffix prefix name
18072 func_stripname ()
18074 case ${2} in
18075 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18076 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18077 esac
18080 # sed scripts:
18081 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18082 my_sed_long_arg='1s/^-[^=]*=//'
18084 # func_opt_split
18085 func_opt_split ()
18087 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18088 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18091 # func_lo2o object
18092 func_lo2o ()
18094 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18097 # func_xform libobj-or-source
18098 func_xform ()
18100 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18103 # func_arith arithmetic-term...
18104 func_arith ()
18106 func_arith_result=`expr "$@"`
18109 # func_len string
18110 # STRING may not start with a hyphen.
18111 func_len ()
18113 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18116 _LT_EOF
18117 esac
18119 case $lt_shell_append in
18120 yes)
18121 cat << \_LT_EOF >> "$cfgfile"
18123 # func_append var value
18124 # Append VALUE to the end of shell variable VAR.
18125 func_append ()
18127 eval "$1+=\$2"
18129 _LT_EOF
18132 cat << \_LT_EOF >> "$cfgfile"
18134 # func_append var value
18135 # Append VALUE to the end of shell variable VAR.
18136 func_append ()
18138 eval "$1=\$$1\$2"
18141 _LT_EOF
18143 esac
18146 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18147 || (rm -f "$cfgfile"; exit 1)
18149 mv -f "$cfgfile" "$ofile" ||
18150 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18151 chmod +x "$ofile"
18154 cat <<_LT_EOF >> "$ofile"
18156 # ### BEGIN LIBTOOL TAG CONFIG: GO
18158 # The linker used to build libraries.
18159 LD=$lt_LD_GO
18161 # How to create reloadable object files.
18162 reload_flag=$lt_reload_flag_GO
18163 reload_cmds=$lt_reload_cmds_GO
18165 # Commands used to build an old-style archive.
18166 old_archive_cmds=$lt_old_archive_cmds_GO
18168 # A language specific compiler.
18169 CC=$lt_compiler_GO
18171 # Is the compiler the GNU compiler?
18172 with_gcc=$GCC_GO
18174 # Compiler flag to turn off builtin functions.
18175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18177 # How to pass a linker flag through the compiler.
18178 wl=$lt_lt_prog_compiler_wl_GO
18180 # Additional compiler flags for building library objects.
18181 pic_flag=$lt_lt_prog_compiler_pic_GO
18183 # Compiler flag to prevent dynamic linking.
18184 link_static_flag=$lt_lt_prog_compiler_static_GO
18186 # Does compiler simultaneously support -c and -o options?
18187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18189 # Whether or not to add -lc for building shared libraries.
18190 build_libtool_need_lc=$archive_cmds_need_lc_GO
18192 # Whether or not to disallow shared libs when runtime libs are static.
18193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18195 # Compiler flag to allow reflexive dlopens.
18196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18198 # Compiler flag to generate shared objects directly from archives.
18199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18201 # Whether the compiler copes with passing no objects directly.
18202 compiler_needs_object=$lt_compiler_needs_object_GO
18204 # Create an old-style archive from a shared archive.
18205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18207 # Create a temporary old-style archive to link instead of a shared archive.
18208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18210 # Commands used to build a shared archive.
18211 archive_cmds=$lt_archive_cmds_GO
18212 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18214 # Commands used to build a loadable module if different from building
18215 # a shared archive.
18216 module_cmds=$lt_module_cmds_GO
18217 module_expsym_cmds=$lt_module_expsym_cmds_GO
18219 # Whether we are building with GNU ld or not.
18220 with_gnu_ld=$lt_with_gnu_ld_GO
18222 # Flag that allows shared libraries with undefined symbols to be built.
18223 allow_undefined_flag=$lt_allow_undefined_flag_GO
18225 # Flag that enforces no undefined symbols.
18226 no_undefined_flag=$lt_no_undefined_flag_GO
18228 # Flag to hardcode \$libdir into a binary during linking.
18229 # This must work even if \$libdir does not exist
18230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18232 # If ld is used when linking, flag to hardcode \$libdir into a binary
18233 # during linking. This must work even if \$libdir does not exist.
18234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18236 # Whether we need a single "-rpath" flag with a separated argument.
18237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18239 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18240 # DIR into the resulting binary.
18241 hardcode_direct=$hardcode_direct_GO
18243 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18244 # DIR into the resulting binary and the resulting library dependency is
18245 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18246 # library is relocated.
18247 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18249 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18250 # into the resulting binary.
18251 hardcode_minus_L=$hardcode_minus_L_GO
18253 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18254 # into the resulting binary.
18255 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18257 # Set to "yes" if building a shared library automatically hardcodes DIR
18258 # into the library and all subsequent libraries and executables linked
18259 # against it.
18260 hardcode_automatic=$hardcode_automatic_GO
18262 # Set to yes if linker adds runtime paths of dependent libraries
18263 # to runtime path list.
18264 inherit_rpath=$inherit_rpath_GO
18266 # Whether libtool must link a program against all its dependency libraries.
18267 link_all_deplibs=$link_all_deplibs_GO
18269 # Fix the shell variable \$srcfile for the compiler.
18270 fix_srcfile_path=$lt_fix_srcfile_path_GO
18272 # Set to "yes" if exported symbols are required.
18273 always_export_symbols=$always_export_symbols_GO
18275 # The commands to list exported symbols.
18276 export_symbols_cmds=$lt_export_symbols_cmds_GO
18278 # Symbols that should not be listed in the preloaded symbols.
18279 exclude_expsyms=$lt_exclude_expsyms_GO
18281 # Symbols that must always be exported.
18282 include_expsyms=$lt_include_expsyms_GO
18284 # Commands necessary for linking programs (against libraries) with templates.
18285 prelink_cmds=$lt_prelink_cmds_GO
18287 # Specify filename containing input files.
18288 file_list_spec=$lt_file_list_spec_GO
18290 # How to hardcode a shared library path into an executable.
18291 hardcode_action=$hardcode_action_GO
18293 # ### END LIBTOOL TAG CONFIG: GO
18294 _LT_EOF
18297 "default":C) if test -n "$CONFIG_FILES"; then
18298 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18299 # that multilib installs will end up installed in the correct place.
18300 # The testsuite needs it for multilib-aware ABI baseline files.
18301 # To work around this not being passed down from config-ml.in ->
18302 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18303 # append it here. Only modify Makefiles that have just been created.
18305 # Also, get rid of this simulated-VPATH thing that automake does.
18306 cat > vpsed << \_EOF
18307 s!`test -f '$<' || echo '$(srcdir)/'`!!
18308 _EOF
18309 for i in $SUBDIRS; do
18310 case $CONFIG_FILES in
18311 *${i}/Makefile*)
18312 #echo "Adding MULTISUBDIR to $i/Makefile"
18313 sed -f vpsed $i/Makefile > tmp
18314 grep '^MULTISUBDIR =' Makefile >> tmp
18315 mv tmp $i/Makefile
18317 esac
18318 done
18319 rm vpsed
18323 esac
18324 done # for ac_tag
18327 as_fn_exit 0
18328 _ACEOF
18329 ac_clean_files=$ac_clean_files_save
18331 test $ac_write_fail = 0 ||
18332 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18335 # configure is writing to config.log, and then calls config.status.
18336 # config.status does its own redirection, appending to config.log.
18337 # Unfortunately, on DOS this fails, as config.log is still kept open
18338 # by configure, so config.status won't be able to write to it; its
18339 # output is simply discarded. So we exec the FD to /dev/null,
18340 # effectively closing config.log, so it can be properly (re)opened and
18341 # appended to by config.status. When coming back to configure, we
18342 # need to make the FD available again.
18343 if test "$no_create" != yes; then
18344 ac_cs_success=:
18345 ac_config_status_args=
18346 test "$silent" = yes &&
18347 ac_config_status_args="$ac_config_status_args --quiet"
18348 exec 5>/dev/null
18349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18350 exec 5>>config.log
18351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18352 # would make configure fail if this is the last instruction.
18353 $ac_cs_success || as_fn_exit $?
18355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}