* Makefile.in (gcov-iov.h): Add dummy recipe.
[official-gcc.git] / libgo / configure
blob756f62e137c2dcbace195a2a403d4aeabbed207f
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_IA64_FALSE
664 LIBGO_IS_IA64_TRUE
665 LIBGO_IS_ARM64_FALSE
666 LIBGO_IS_ARM64_TRUE
667 LIBGO_IS_ARM_FALSE
668 LIBGO_IS_ARM_TRUE
669 LIBGO_IS_ALPHA_FALSE
670 LIBGO_IS_ALPHA_TRUE
671 LIBGO_IS_386_FALSE
672 LIBGO_IS_386_TRUE
673 USE_DEJAGNU
674 GOOS
675 LIBGO_IS_BSD_FALSE
676 LIBGO_IS_BSD_TRUE
677 LIBGO_IS_SOLARIS_FALSE
678 LIBGO_IS_SOLARIS_TRUE
679 LIBGO_IS_RTEMS_FALSE
680 LIBGO_IS_RTEMS_TRUE
681 LIBGO_IS_DRAGONFLY_FALSE
682 LIBGO_IS_DRAGONFLY_TRUE
683 LIBGO_IS_OPENBSD_FALSE
684 LIBGO_IS_OPENBSD_TRUE
685 LIBGO_IS_NETBSD_FALSE
686 LIBGO_IS_NETBSD_TRUE
687 LIBGO_IS_LINUX_FALSE
688 LIBGO_IS_LINUX_TRUE
689 LIBGO_IS_IRIX_FALSE
690 LIBGO_IS_IRIX_TRUE
691 LIBGO_IS_FREEBSD_FALSE
692 LIBGO_IS_FREEBSD_TRUE
693 LIBGO_IS_DARWIN_FALSE
694 LIBGO_IS_DARWIN_TRUE
695 go_include
696 LIBATOMIC
697 LIBFFIINCS
698 LIBFFI
699 nover_glibgo_toolexeclibdir
700 glibgo_toolexeclibdir
701 glibgo_toolexecdir
702 WERROR
703 WARN_FLAGS
704 CC_FOR_BUILD
705 enable_static
706 enable_shared
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
714 OBJDUMP
715 LN_S
717 ac_ct_DUMPBIN
718 DUMPBIN
719 LIBTOOL
720 OBJCOPY
721 RANLIB
723 FGREP
724 EGREP
725 GREP
727 MAINT
728 MAINTAINER_MODE_FALSE
729 MAINTAINER_MODE_TRUE
730 GOCFLAGS
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__quote
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 multi_basedir
785 libtool_VERSION
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_multilib
828 enable_dependency_tracking
829 enable_maintainer_mode
830 with_gnu_ld
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 enable_libtool_lock
836 enable_werror
837 enable_version_specific_runtime_libs
838 with_libffi
839 with_libatomic
840 with_system_libunwind
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
846 CPPFLAGS'
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 esac
1254 done
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1340 /^X\(\/\/\)$/{
1341 s//\1/
1344 /^X\(\/\).*/{
1345 s//\1/
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1353 else
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1382 # Report the --help message.
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1395 Defaults for the options are specified in brackets.
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1419 For better control, use the options below.
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1443 cat <<\_ACEOF
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 --target=TARGET configure for building compilers for TARGET [HOST]
1454 _ACEOF
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of package-unused version-unused:";;
1460 esac
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-multilib build many library versions (default)
1468 --disable-dependency-tracking speeds up one-time build
1469 --enable-dependency-tracking do not reject slow dependency extractors
1470 --enable-maintainer-mode enable make rules and dependencies not useful
1471 (and sometimes confusing) to the casual installer
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-werror turns on -Werror [default=yes]
1478 --enable-version-specific-runtime-libs
1479 Specify that runtime libraries should be installed
1480 in a compiler-specific directory
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --without-libffi don't use libffi
1489 --without-libatomic don't use libatomic
1490 --with-system-libunwind use installed libunwind
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 GOC Go compiler command
1501 GOCFLAGS Go compiler flags
1502 CPP C preprocessor
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to the package provider.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 package-unused configure version-unused
1571 generated by GNU Autoconf 2.64
1573 Copyright (C) 2009 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=1
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 return $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 return $ac_retval
1666 } # ac_fn_c_try_link
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 } # ac_fn_c_check_header_compile
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=1
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_cpp
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 ac_retval=$ac_status
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1776 } # ac_fn_c_try_run
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (); below.
1797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798 <limits.h> exists even on freestanding compilers. */
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1806 #undef $2
1808 /* Override any GCC internal prototype to avoid an error.
1809 Use char because int might match the return type of a GCC
1810 builtin and then its argument prototype would still apply. */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1823 main ()
1825 return $2 ();
1827 return 0;
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831 eval "$3=yes"
1832 else
1833 eval "$3=no"
1835 rm -f core conftest.err conftest.$ac_objext \
1836 conftest$ac_exeext conftest.$ac_ext
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 } # ac_fn_c_check_func
1845 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1848 # the include files in INCLUDES and setting the cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_header_mongrel ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 $as_echo_n "(cached) " >&6
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 else
1863 # Is the header compilable?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1865 $as_echo_n "checking $2 usability... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872 ac_header_compiler=yes
1873 else
1874 ac_header_compiler=no
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1878 $as_echo "$ac_header_compiler" >&6; }
1880 # Is the header present?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1882 $as_echo_n "checking $2 presence... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_cpp "$LINENO"; then :
1888 ac_header_preproc=yes
1889 else
1890 ac_header_preproc=no
1892 rm -f conftest.err conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1894 $as_echo "$ac_header_preproc" >&6; }
1896 # So? What about this header?
1897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 yes:no: )
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1900 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 no:yes:* )
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1906 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1908 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1910 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1912 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 esac
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1921 else
1922 eval "$3=\$ac_header_compiler"
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 } # ac_fn_c_check_header_mongrel
1932 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933 # -------------------------------------------
1934 # Tests whether TYPE exists after having included INCLUDES, setting cache
1935 # variable VAR accordingly.
1936 ac_fn_c_check_type ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 eval "$3=no"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 if (sizeof ($2))
1952 return 0;
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1962 main ()
1964 if (sizeof (($2)))
1965 return 0;
1967 return 0;
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1972 else
1973 eval "$3=yes"
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 } # ac_fn_c_check_type
1986 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987 # --------------------------------------------
1988 # Tries to find the compile-time value of EXPR in a program that includes
1989 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1990 # computed
1991 ac_fn_c_compute_int ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2000 main ()
2002 static int test_array [1 - 2 * !(($2) >= 0)];
2003 test_array [0] = 0
2006 return 0;
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_lo=0 ac_mid=0
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019 test_array [0] = 0
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid; break
2027 else
2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2029 if test $ac_lo -le $ac_mid; then
2030 ac_lo= ac_hi=
2031 break
2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037 else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 static int test_array [1 - 2 * !(($2) < 0)];
2045 test_array [0] = 0
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=-1 ac_mid=-1
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2061 test_array [0] = 0
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=$ac_mid; break
2069 else
2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2071 if test $ac_mid -le $ac_hi; then
2072 ac_lo= ac_hi=
2073 break
2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 else
2080 ac_lo= ac_hi=
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 # Binary search between lo and hi bounds.
2086 while test "x$ac_lo" != "x$ac_hi"; do
2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid
2103 else
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 done
2108 case $ac_lo in #((
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2110 '') ac_retval=1 ;;
2111 esac
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2118 #include <stdio.h>
2119 #include <stdlib.h>
2121 main ()
2124 FILE *f = fopen ("conftest.val", "w");
2125 if (! f)
2126 return 1;
2127 if (($2) < 0)
2129 long int i = longval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%ld", i);
2134 else
2136 unsigned long int i = ulongval ();
2137 if (i != ($2))
2138 return 1;
2139 fprintf (f, "%lu", i);
2141 /* Do not output a trailing newline, as this causes \r\n confusion
2142 on some platforms. */
2143 return ferror (f) || fclose (f) != 0;
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_run "$LINENO"; then :
2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2151 else
2152 ac_retval=1
2154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2155 conftest.$ac_objext conftest.beam conftest.$ac_ext
2156 rm -f conftest.val
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 return $ac_retval
2162 } # ac_fn_c_compute_int
2163 cat >config.log <<_ACEOF
2164 This file contains any messages produced by compilers while
2165 running configure, to aid debugging if configure makes a mistake.
2167 It was created by package-unused $as_me version-unused, which was
2168 generated by GNU Autoconf 2.64. Invocation command line was
2170 $ $0 $@
2172 _ACEOF
2173 exec 5>>config.log
2175 cat <<_ASUNAME
2176 ## --------- ##
2177 ## Platform. ##
2178 ## --------- ##
2180 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2181 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2182 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2183 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2184 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2187 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2189 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2190 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2191 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2192 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2193 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2194 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2195 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2197 _ASUNAME
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 $as_echo "PATH: $as_dir"
2205 done
2206 IFS=$as_save_IFS
2208 } >&5
2210 cat >&5 <<_ACEOF
2213 ## ----------- ##
2214 ## Core tests. ##
2215 ## ----------- ##
2217 _ACEOF
2220 # Keep a trace of the command line.
2221 # Strip out --no-create and --no-recursion so they do not pile up.
2222 # Strip out --silent because we don't want to record it for future runs.
2223 # Also quote any args containing shell meta-characters.
2224 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_configure_args=
2226 ac_configure_args0=
2227 ac_configure_args1=
2228 ac_must_keep_next=false
2229 for ac_pass in 1 2
2231 for ac_arg
2233 case $ac_arg in
2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2236 | -silent | --silent | --silen | --sile | --sil)
2237 continue ;;
2238 *\'*)
2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 esac
2241 case $ac_pass in
2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2244 as_fn_append ac_configure_args1 " '$ac_arg'"
2245 if test $ac_must_keep_next = true; then
2246 ac_must_keep_next=false # Got value, back to normal.
2247 else
2248 case $ac_arg in
2249 *=* | --config-cache | -C | -disable-* | --disable-* \
2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2252 | -with-* | --with-* | -without-* | --without-* | --x)
2253 case "$ac_configure_args0 " in
2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2255 esac
2257 -* ) ac_must_keep_next=true ;;
2258 esac
2260 as_fn_append ac_configure_args " '$ac_arg'"
2262 esac
2263 done
2264 done
2265 { ac_configure_args0=; unset ac_configure_args0;}
2266 { ac_configure_args1=; unset ac_configure_args1;}
2268 # When interrupted or exit'd, cleanup temporary files, and complete
2269 # config.log. We remove comments because anyway the quotes in there
2270 # would cause problems or look ugly.
2271 # WARNING: Use '\'' to represent an apostrophe within the trap.
2272 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2273 trap 'exit_status=$?
2274 # Save into config.log some information that might help in debugging.
2276 echo
2278 cat <<\_ASBOX
2279 ## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##
2282 _ASBOX
2283 echo
2284 # The following way of writing the cache mishandles newlines in values,
2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in #(
2289 *${as_nl}*)
2290 case $ac_var in #(
2291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 esac
2294 case $ac_var in #(
2295 _ | IFS | as_nl) ;; #(
2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297 *) { eval $ac_var=; unset $ac_var;} ;;
2298 esac ;;
2299 esac
2300 done
2301 (set) 2>&1 |
2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303 *${as_nl}ac_space=\ *)
2304 sed -n \
2305 "s/'\''/'\''\\\\'\'''\''/g;
2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 ;; #(
2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 esac |
2312 sort
2314 echo
2316 cat <<\_ASBOX
2317 ## ----------------- ##
2318 ## Output variables. ##
2319 ## ----------------- ##
2320 _ASBOX
2321 echo
2322 for ac_var in $ac_subst_vars
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2332 if test -n "$ac_subst_files"; then
2333 cat <<\_ASBOX
2334 ## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##
2337 _ASBOX
2338 echo
2339 for ac_var in $ac_subst_files
2341 eval ac_val=\$$ac_var
2342 case $ac_val in
2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 esac
2345 $as_echo "$ac_var='\''$ac_val'\''"
2346 done | sort
2347 echo
2350 if test -s confdefs.h; then
2351 cat <<\_ASBOX
2352 ## ----------- ##
2353 ## confdefs.h. ##
2354 ## ----------- ##
2355 _ASBOX
2356 echo
2357 cat confdefs.h
2358 echo
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2376 $as_echo "/* confdefs.h */" > confdefs.h
2378 # Predefined preprocessor variables.
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410 ac_site_file1=$CONFIG_SITE
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_file1=$prefix/share/config.site
2413 ac_site_file2=$prefix/etc/config.site
2414 else
2415 ac_site_file1=$ac_default_prefix/share/config.site
2416 ac_site_file2=$ac_default_prefix/etc/config.site
2418 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420 test "x$ac_site_file" = xNONE && continue
2421 if test -r "$ac_site_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2423 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2424 sed 's/^/| /' "$ac_site_file" >&5
2425 . "$ac_site_file"
2427 done
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special
2431 # files actually), so we avoid doing that.
2432 if test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2446 # Check that the precious variables saved in the cache have kept the same
2447 # value.
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2455 set,)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,set)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,);;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x $ac_old_val`
2468 ac_new_val_w=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted=:
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 fi;;
2483 esac
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2486 case $ac_new_val in
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2489 esac
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 esac
2495 done
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 ac_config_headers="$ac_config_headers config.h"
2521 libtool_VERSION=10:0:0
2524 # Default to --enable-multilib
2525 # Check whether --enable-multilib was given.
2526 if test "${enable_multilib+set}" = set; then :
2527 enableval=$enable_multilib; case "$enableval" in
2528 yes) multilib=yes ;;
2529 no) multilib=no ;;
2530 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2531 esac
2532 else
2533 multilib=yes
2537 # We may get other options which we leave undocumented:
2538 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2539 # See config-ml.in if you want the gory details.
2541 if test "$srcdir" = "."; then
2542 if test "$with_target_subdir" != "."; then
2543 multi_basedir="$srcdir/$with_multisrctop../.."
2544 else
2545 multi_basedir="$srcdir/$with_multisrctop.."
2547 else
2548 multi_basedir="$srcdir/.."
2552 # Even if the default multilib is not a cross compilation,
2553 # it may be that some of the other multilibs are.
2554 if test $cross_compiling = no && test $multilib = yes \
2555 && test "x${with_multisubdir}" != x ; then
2556 cross_compiling=maybe
2559 ac_config_commands="$ac_config_commands default-1"
2562 ac_aux_dir=
2563 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2564 for ac_t in install-sh install.sh shtool; do
2565 if test -f "$ac_dir/$ac_t"; then
2566 ac_aux_dir=$ac_dir
2567 ac_install_sh="$ac_aux_dir/$ac_t -c"
2568 break 2
2570 done
2571 done
2572 if test -z "$ac_aux_dir"; then
2573 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if test "${ac_cv_build+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2606 *-*-*) ;;
2607 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if test "${ac_cv_host+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test "x$host_alias" = x; then
2629 ac_cv_host=$ac_cv_build
2630 else
2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2638 case $ac_cv_host in
2639 *-*-*) ;;
2640 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2641 esac
2642 host=$ac_cv_host
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_host
2645 shift
2646 host_cpu=$1
2647 host_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 host_os=$*
2652 IFS=$ac_save_IFS
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if test "${ac_cv_target+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test "x$target_alias" = x; then
2662 ac_cv_target=$ac_cv_host
2663 else
2664 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2672 *-*-*) ;;
2673 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2674 esac
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_target
2678 shift
2679 target_cpu=$1
2680 target_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 target_os=$*
2685 IFS=$ac_save_IFS
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692 test "$program_prefix$program_suffix$program_transform_name" = \
2693 NONENONEs,x,x, &&
2694 program_prefix=${target_alias}-
2696 target_alias=${target_alias-$host_alias}
2698 am__api_version='1.11'
2700 # Find a good install program. We prefer a C program (faster),
2701 # so one script is as good as another. But avoid the broken or
2702 # incompatible versions:
2703 # SysV /etc/install, /usr/sbin/install
2704 # SunOS /usr/etc/install
2705 # IRIX /sbin/install
2706 # AIX /bin/install
2707 # AmigaOS /C/install, which installs bootblocks on floppy discs
2708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2711 # OS/2's system install, which has a completely different semantic
2712 # ./install, which can be erroneously created by make from ./install.sh.
2713 # Reject install programs that cannot install multiple files.
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2715 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2716 if test -z "$INSTALL"; then
2717 if test "${ac_cv_path_install+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 # Account for people who put trailing slashes in PATH elements.
2726 case $as_dir/ in #((
2727 ./ | .// | /[cC]/* | \
2728 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2729 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2730 /usr/ucb/* ) ;;
2732 # OSF1 and SCO ODT 3.0 have their own names for install.
2733 # Don't use installbsd from OSF since it installs stuff as root
2734 # by default.
2735 for ac_prog in ginstall scoinst install; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2738 if test $ac_prog = install &&
2739 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2740 # AIX install. It has an incompatible calling convention.
2742 elif test $ac_prog = install &&
2743 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744 # program-specific install script used by HP pwplus--don't use.
2746 else
2747 rm -rf conftest.one conftest.two conftest.dir
2748 echo one > conftest.one
2749 echo two > conftest.two
2750 mkdir conftest.dir
2751 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2752 test -s conftest.one && test -s conftest.two &&
2753 test -s conftest.dir/conftest.one &&
2754 test -s conftest.dir/conftest.two
2755 then
2756 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2757 break 3
2761 done
2762 done
2764 esac
2766 done
2767 IFS=$as_save_IFS
2769 rm -rf conftest.one conftest.two conftest.dir
2772 if test "${ac_cv_path_install+set}" = set; then
2773 INSTALL=$ac_cv_path_install
2774 else
2775 # As a last resort, use the slow shell script. Don't cache a
2776 # value for INSTALL within a source directory, because that will
2777 # break other packages using the cache if that directory is
2778 # removed, or if the value is a relative name.
2779 INSTALL=$ac_install_sh
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2783 $as_echo "$INSTALL" >&6; }
2785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2786 # It thinks the first close brace ends the variable substitution.
2787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2794 $as_echo_n "checking whether build environment is sane... " >&6; }
2795 # Just in case
2796 sleep 1
2797 echo timestamp > conftest.file
2798 # Reject unsafe characters in $srcdir or the absolute working directory
2799 # name. Accept space and tab only in the latter.
2800 am_lf='
2802 case `pwd` in
2803 *[\\\"\#\$\&\'\`$am_lf]*)
2804 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2805 esac
2806 case $srcdir in
2807 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2808 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2809 esac
2811 # Do `set' in a subshell so we don't clobber the current shell's
2812 # arguments. Must try -L first in case configure is actually a
2813 # symlink; some systems play weird games with the mod time of symlinks
2814 # (eg FreeBSD returns the mod time of the symlink's containing
2815 # directory).
2816 if (
2817 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2818 if test "$*" = "X"; then
2819 # -L didn't work.
2820 set X `ls -t "$srcdir/configure" conftest.file`
2822 rm -f conftest.file
2823 if test "$*" != "X $srcdir/configure conftest.file" \
2824 && test "$*" != "X conftest.file $srcdir/configure"; then
2826 # If neither matched, then we have a broken ls. This can happen
2827 # if, for instance, CONFIG_SHELL is bash and it inherits a
2828 # broken ls alias from the environment. This has actually
2829 # happened. Such a system could not be considered "sane".
2830 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2831 alias in your environment" "$LINENO" 5
2834 test "$2" = conftest.file
2836 then
2837 # Ok.
2839 else
2840 as_fn_error "newly created file is older than distributed files!
2841 Check your system clock" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2844 $as_echo "yes" >&6; }
2845 test "$program_prefix" != NONE &&
2846 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2847 # Use a double $ so make ignores it.
2848 test "$program_suffix" != NONE &&
2849 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2850 # Double any \ or $.
2851 # By default was `s,x,x', remove it if useless.
2852 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2853 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2855 # expand $ac_aux_dir to an absolute path
2856 am_aux_dir=`cd $ac_aux_dir && pwd`
2858 if test x"${MISSING+set}" != xset; then
2859 case $am_aux_dir in
2860 *\ * | *\ *)
2861 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2863 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2864 esac
2866 # Use eval to expand $SHELL
2867 if eval "$MISSING --run true"; then
2868 am_missing_run="$MISSING --run "
2869 else
2870 am_missing_run=
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2872 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2875 if test x"${install_sh}" != xset; then
2876 case $am_aux_dir in
2877 *\ * | *\ *)
2878 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2880 install_sh="\${SHELL} $am_aux_dir/install-sh"
2881 esac
2884 # Installed binaries are usually stripped using `strip' when the user
2885 # run `make install-strip'. However `strip' might not be the right
2886 # tool to use in cross-compilation environments, therefore Automake
2887 # will honor the `STRIP' environment variable to overrule this program.
2888 if test "$cross_compiling" != no; then
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}strip; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if test "${ac_cv_prog_STRIP+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$STRIP"; then
2898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2913 IFS=$as_save_IFS
2917 STRIP=$ac_cv_prog_STRIP
2918 if test -n "$STRIP"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2920 $as_echo "$STRIP" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2928 if test -z "$ac_cv_prog_STRIP"; then
2929 ac_ct_STRIP=$STRIP
2930 # Extract the first word of "strip", so it can be a program name with args.
2931 set dummy strip; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_STRIP"; then
2938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_ac_ct_STRIP="strip"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2958 if test -n "$ac_ct_STRIP"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2960 $as_echo "$ac_ct_STRIP" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2966 if test "x$ac_ct_STRIP" = x; then
2967 STRIP=":"
2968 else
2969 case $cross_compiling:$ac_tool_warned in
2970 yes:)
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975 STRIP=$ac_ct_STRIP
2977 else
2978 STRIP="$ac_cv_prog_STRIP"
2982 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2985 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2986 if test -z "$MKDIR_P"; then
2987 if test "${ac_cv_path_mkdir+set}" = set; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_prog in mkdir gmkdir; do
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2998 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2999 'mkdir (GNU coreutils) '* | \
3000 'mkdir (coreutils) '* | \
3001 'mkdir (fileutils) '4.1*)
3002 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3003 break 3;;
3004 esac
3005 done
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 if test "${ac_cv_path_mkdir+set}" = set; then
3013 MKDIR_P="$ac_cv_path_mkdir -p"
3014 else
3015 # As a last resort, use the slow shell script. Don't cache a
3016 # value for MKDIR_P within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the value is a relative name.
3019 test -d ./--version && rmdir ./--version
3020 MKDIR_P="$ac_install_sh -d"
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3024 $as_echo "$MKDIR_P" >&6; }
3026 mkdir_p="$MKDIR_P"
3027 case $mkdir_p in
3028 [\\/$]* | ?:[\\/]*) ;;
3029 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3030 esac
3032 for ac_prog in gawk mawk nawk awk
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_AWK+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$AWK"; then
3042 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_AWK="$ac_prog"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3061 AWK=$ac_cv_prog_AWK
3062 if test -n "$AWK"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3064 $as_echo "$AWK" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3071 test -n "$AWK" && break
3072 done
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3075 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3076 set x ${MAKE-make}
3077 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3078 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 cat >conftest.make <<\_ACEOF
3082 SHELL = /bin/sh
3083 all:
3084 @echo '@@@%%%=$(MAKE)=@@@%%%'
3085 _ACEOF
3086 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3087 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3088 *@@@%%%=?*=@@@%%%*)
3089 eval ac_cv_prog_make_${ac_make}_set=yes;;
3091 eval ac_cv_prog_make_${ac_make}_set=no;;
3092 esac
3093 rm -f conftest.make
3095 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; }
3098 SET_MAKE=
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 SET_MAKE="MAKE=${MAKE-make}"
3105 rm -rf .tst 2>/dev/null
3106 mkdir .tst 2>/dev/null
3107 if test -d .tst; then
3108 am__leading_dot=.
3109 else
3110 am__leading_dot=_
3112 rmdir .tst 2>/dev/null
3114 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3115 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3116 # is not polluted with repeated "-I."
3117 am__isrc=' -I$(srcdir)'
3118 # test to see if srcdir already configured
3119 if test -f $srcdir/config.status; then
3120 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124 # test whether we have cygpath
3125 if test -z "$CYGPATH_W"; then
3126 if (cygpath --version) >/dev/null 2>/dev/null; then
3127 CYGPATH_W='cygpath -w'
3128 else
3129 CYGPATH_W=echo
3134 # Define the identity of the package.
3135 PACKAGE='libgo'
3136 VERSION='version-unused'
3139 # Some tools Automake needs.
3141 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3144 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3147 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3150 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3153 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3155 # We need awk for the "check" target. The system "awk" is bad on
3156 # some platforms.
3157 # Always define AMTAR for backward compatibility. Yes, it's still used
3158 # in the wild :-( We should find a proper way to deprecate it ...
3159 AMTAR='$${TAR-tar}'
3161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3216 if test -z "$ac_cv_prog_CC"; then
3217 ac_ct_CC=$CC
3218 # Extract the first word of "gcc", so it can be a program name with args.
3219 set dummy gcc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="gcc"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3241 IFS=$as_save_IFS
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3254 if test "x$ac_ct_CC" = x; then
3255 CC=""
3256 else
3257 case $cross_compiling:$ac_tool_warned in
3258 yes:)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261 ac_tool_warned=yes ;;
3262 esac
3263 CC=$ac_ct_CC
3265 else
3266 CC="$ac_cv_prog_CC"
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC="${ac_tool_prefix}cc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3310 if test -z "$CC"; then
3311 # Extract the first word of "cc", so it can be a program name with args.
3312 set dummy cc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_CC+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 ac_prog_rejected=no
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3330 ac_prog_rejected=yes
3331 continue
3333 ac_cv_prog_CC="cc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3341 if test $ac_prog_rejected = yes; then
3342 # We found a bogon in the path, so make sure we never use it.
3343 set dummy $ac_cv_prog_CC
3344 shift
3345 if test $# != 0; then
3346 # We chose a different compiler from the bogus one.
3347 # However, it has the same basename, so the bogon will be chosen
3348 # first if we set CC to just the basename; use the full file name.
3349 shift
3350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 for ac_prog in cl.exe
3370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3391 done
3392 done
3393 IFS=$as_save_IFS
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3407 test -n "$CC" && break
3408 done
3410 if test -z "$CC"; then
3411 ac_ct_CC=$CC
3412 for ac_prog in cl.exe
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC="$ac_prog"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3451 test -n "$ac_ct_CC" && break
3452 done
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 CC=$ac_ct_CC
3470 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "no acceptable C compiler found in \$PATH
3473 See \`config.log' for more details." "$LINENO" 5; }
3475 # Provide some information about the compiler.
3476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3477 set X $ac_compile
3478 ac_compiler=$2
3479 for ac_option in --version -v -V -qversion; do
3480 { { ac_try="$ac_compiler $ac_option >&5"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3488 ac_status=$?
3489 if test -s conftest.err; then
3490 sed '10a\
3491 ... rest of stderr output deleted ...
3492 10q' conftest.err >conftest.er1
3493 cat conftest.er1 >&5
3494 rm -f conftest.er1 conftest.err
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }
3498 done
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3504 main ()
3508 return 0;
3510 _ACEOF
3511 ac_clean_files_save=$ac_clean_files
3512 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3513 # Try to create an executable without -o first, disregard a.out.
3514 # It will help us diagnose broken compilers, and finding out an intuition
3515 # of exeext.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520 # The possible output files:
3521 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3523 ac_rmfiles=
3524 for ac_file in $ac_files
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3529 esac
3530 done
3531 rm -f $ac_rmfiles
3533 if { { ac_try="$ac_link_default"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_link_default") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3545 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3546 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3547 # so that the user can short-circuit this test for compilers unknown to
3548 # Autoconf.
3549 for ac_file in $ac_files ''
3551 test -f "$ac_file" || continue
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3555 [ab].out )
3556 # We found the default executable, but exeext='' is most
3557 # certainly right.
3558 break;;
3559 *.* )
3560 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3561 then :; else
3562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 # We set ac_cv_exeext here because the later test for it is not
3565 # safe: cross compilers may not add the suffix if given an `-o'
3566 # argument, so we may need to know it at that point already.
3567 # Even if this section looks crufty: it has the advantage of
3568 # actually working.
3569 break;;
3571 break;;
3572 esac
3573 done
3574 test "$ac_cv_exeext" = no && ac_cv_exeext=
3576 else
3577 ac_file=''
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3580 $as_echo "$ac_file" >&6; }
3581 if test -z "$ac_file"; then :
3582 $as_echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 { as_fn_set_status 77
3588 as_fn_error "C compiler cannot create executables
3589 See \`config.log' for more details." "$LINENO" 5; }; }
3591 ac_exeext=$ac_cv_exeext
3593 # Check that the compiler produces executables we can run. If not, either
3594 # the compiler is broken, or we cross compile.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 # If not cross compiling, check that we can run a simple program.
3598 if test "$cross_compiling" != yes; then
3599 if { ac_try='./$ac_file'
3600 { { case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_try") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; }; then
3610 cross_compiling=no
3611 else
3612 if test "$cross_compiling" = maybe; then
3613 cross_compiling=yes
3614 else
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error "cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." "$LINENO" 5; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3624 $as_echo "yes" >&6; }
3626 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3627 ac_clean_files=$ac_clean_files_save
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3633 $as_echo "$cross_compiling" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3636 $as_echo_n "checking for suffix of executables... " >&6; }
3637 if { { ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3650 # work properly (i.e., refer to `conftest.exe'), while it won't with
3651 # `rm'.
3652 for ac_file in conftest.exe conftest conftest.*; do
3653 test -f "$ac_file" || continue
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 break;;
3658 * ) break;;
3659 esac
3660 done
3661 else
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error "cannot compute suffix of executables: cannot compile and link
3665 See \`config.log' for more details." "$LINENO" 5; }
3667 rm -f conftest$ac_cv_exeext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3669 $as_echo "$ac_cv_exeext" >&6; }
3671 rm -f conftest.$ac_ext
3672 EXEEXT=$ac_cv_exeext
3673 ac_exeext=$EXEEXT
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3675 $as_echo_n "checking for suffix of object files... " >&6; }
3676 if test "${ac_cv_objext+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 rm -f conftest.o conftest.obj
3691 if { { ac_try="$ac_compile"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_compile") 2>&5
3699 ac_status=$?
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 for ac_file in conftest.o conftest.obj conftest.*; do
3703 test -f "$ac_file" || continue;
3704 case $ac_file in
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3707 break;;
3708 esac
3709 done
3710 else
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error "cannot compute suffix of object files: cannot compile
3717 See \`config.log' for more details." "$LINENO" 5; }
3719 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3722 $as_echo "$ac_cv_objext" >&6; }
3723 OBJEXT=$ac_cv_objext
3724 ac_objext=$OBJEXT
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3726 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3727 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3734 main ()
3736 #ifndef __GNUC__
3737 choke me
3738 #endif
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_compiler_gnu=yes
3746 else
3747 ac_compiler_gnu=no
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3755 if test $ac_compiler_gnu = yes; then
3756 GCC=yes
3757 else
3758 GCC=
3760 ac_test_CFLAGS=${CFLAGS+set}
3761 ac_save_CFLAGS=$CFLAGS
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3764 if test "${ac_cv_prog_cc_g+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_save_c_werror_flag=$ac_c_werror_flag
3768 ac_c_werror_flag=yes
3769 ac_cv_prog_cc_g=no
3770 CFLAGS="-g"
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_g=yes
3784 else
3785 CFLAGS=""
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3790 main ()
3794 return 0;
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3799 else
3800 ac_c_werror_flag=$ac_save_c_werror_flag
3801 CFLAGS="-g"
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3806 main ()
3810 return 0;
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_cv_prog_cc_g=yes
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3824 $as_echo "$ac_cv_prog_cc_g" >&6; }
3825 if test "$ac_test_CFLAGS" = set; then
3826 CFLAGS=$ac_save_CFLAGS
3827 elif test $ac_cv_prog_cc_g = yes; then
3828 if test "$GCC" = yes; then
3829 CFLAGS="-g -O2"
3830 else
3831 CFLAGS="-g"
3833 else
3834 if test "$GCC" = yes; then
3835 CFLAGS="-O2"
3836 else
3837 CFLAGS=
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3842 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_cv_prog_cc_c89=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <stdarg.h>
3850 #include <stdio.h>
3851 #include <sys/types.h>
3852 #include <sys/stat.h>
3853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3854 struct buf { int x; };
3855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856 static char *e (p, i)
3857 char **p;
3858 int i;
3860 return p[i];
3862 static char *f (char * (*g) (char **, int), char **p, ...)
3864 char *s;
3865 va_list v;
3866 va_start (v,p);
3867 s = g (p, va_arg (v,int));
3868 va_end (v);
3869 return s;
3872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3873 function prototypes and stuff, but not '\xHH' hex character constants.
3874 These don't provoke an error unfortunately, instead are silently treated
3875 as 'x'. The following induces an error, until -std is added to get
3876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3877 array size at least. It's necessary to write '\x00'==0 to get something
3878 that's true only with -std. */
3879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882 inside strings and character constants. */
3883 #define FOO(x) 'x'
3884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886 int test (int i, double x);
3887 struct s1 {int (*f) (int a);};
3888 struct s2 {int (*f) (double a);};
3889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890 int argc;
3891 char **argv;
3893 main ()
3895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 return 0;
3899 _ACEOF
3900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c89=$ac_arg
3907 rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909 done
3910 rm -f conftest.$ac_ext
3911 CC=$ac_save_CC
3914 # AC_CACHE_VAL
3915 case "x$ac_cv_prog_cc_c89" in
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918 $as_echo "none needed" >&6; } ;;
3919 xno)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 $as_echo "unsupported" >&6; } ;;
3923 CC="$CC $ac_cv_prog_cc_c89"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926 esac
3927 if test "x$ac_cv_prog_cc_c89" != xno; then :
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 DEPDIR="${am__leading_dot}deps"
3938 ac_config_commands="$ac_config_commands depfiles"
3941 am_make=${MAKE-make}
3942 cat > confinc << 'END'
3943 am__doit:
3944 @echo this is the am__doit target
3945 .PHONY: am__doit
3947 # If we don't find an include directive, just comment out the code.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3949 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3950 am__include="#"
3951 am__quote=
3952 _am_result=none
3953 # First try GNU make style include.
3954 echo "include confinc" > confmf
3955 # Ignore all kinds of additional output from `make'.
3956 case `$am_make -s -f confmf 2> /dev/null` in #(
3957 *the\ am__doit\ target*)
3958 am__include=include
3959 am__quote=
3960 _am_result=GNU
3962 esac
3963 # Now try BSD make style include.
3964 if test "$am__include" = "#"; then
3965 echo '.include "confinc"' > confmf
3966 case `$am_make -s -f confmf 2> /dev/null` in #(
3967 *the\ am__doit\ target*)
3968 am__include=.include
3969 am__quote="\""
3970 _am_result=BSD
3972 esac
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3977 $as_echo "$_am_result" >&6; }
3978 rm -f confinc confmf
3980 # Check whether --enable-dependency-tracking was given.
3981 if test "${enable_dependency_tracking+set}" = set; then :
3982 enableval=$enable_dependency_tracking;
3985 if test "x$enable_dependency_tracking" != xno; then
3986 am_depcomp="$ac_aux_dir/depcomp"
3987 AMDEPBACKSLASH='\'
3988 am__nodep='_no'
3990 if test "x$enable_dependency_tracking" != xno; then
3991 AMDEP_TRUE=
3992 AMDEP_FALSE='#'
3993 else
3994 AMDEP_TRUE='#'
3995 AMDEP_FALSE=
4000 depcc="$CC" am_compiler_list=
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4003 $as_echo_n "checking dependency style of $depcc... " >&6; }
4004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008 # We make a subdir and do the tests there. Otherwise we can end up
4009 # making bogus files that we don't know about and never remove. For
4010 # instance it was reported that on HP-UX the gcc test will end up
4011 # making a dummy file named `D' -- because `-MD' means `put the output
4012 # in D'.
4013 rm -rf conftest.dir
4014 mkdir conftest.dir
4015 # Copy depcomp to subdir because otherwise we won't find it if we're
4016 # using a relative directory.
4017 cp "$am_depcomp" conftest.dir
4018 cd conftest.dir
4019 # We will build objects and dependencies in a subdirectory because
4020 # it helps to detect inapplicable dependency modes. For instance
4021 # both Tru64's cc and ICC support -MD to output dependencies as a
4022 # side effect of compilation, but ICC will put the dependencies in
4023 # the current directory while Tru64 will put them in the object
4024 # directory.
4025 mkdir sub
4027 am_cv_CC_dependencies_compiler_type=none
4028 if test "$am_compiler_list" = ""; then
4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4031 am__universal=false
4032 case " $depcc " in #(
4033 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034 esac
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4044 : > sub/conftest.c
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4048 # Solaris 8's {/usr,}/bin/sh.
4049 touch sub/conftst$i.h
4050 done
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4053 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4054 # mode. It turns out that the SunPro C++ compiler does not properly
4055 # handle `-M -o', and we need to detect this. Also, some Intel
4056 # versions had trouble with output in subdirs
4057 am__obj=sub/conftest.${OBJEXT-o}
4058 am__minus_obj="-o $am__obj"
4059 case $depmode in
4060 gcc)
4061 # This depmode causes a compiler race in universal mode.
4062 test "$am__universal" = false || continue
4064 nosideeffect)
4065 # after this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested
4067 if test "x$enable_dependency_tracking" = xyes; then
4068 continue
4069 else
4070 break
4073 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4074 # This compiler won't grok `-c -o', but also, the minuso test has
4075 # not run yet. These depmodes are late enough in the game, and
4076 # so weak that their functioning should not be impacted.
4077 am__obj=conftest.${OBJEXT-o}
4078 am__minus_obj=
4080 none) break ;;
4081 esac
4082 if depmode=$depmode \
4083 source=sub/conftest.c object=$am__obj \
4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086 >/dev/null 2>conftest.err &&
4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091 # icc doesn't choke on unknown options, it will just issue warnings
4092 # or remarks (even with -Werror). So we grep stderr for any message
4093 # that says an option was ignored or not supported.
4094 # When given -MP, icc 7.0 and 7.1 complain thusly:
4095 # icc: Command line warning: ignoring option '-M'; no argument required
4096 # The diagnosis changed in icc 8.0:
4097 # icc: Command line remark: option '-MP' not supported
4098 if (grep 'ignoring option' conftest.err ||
4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100 am_cv_CC_dependencies_compiler_type=$depmode
4101 break
4104 done
4106 cd ..
4107 rm -rf conftest.dir
4108 else
4109 am_cv_CC_dependencies_compiler_type=none
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4118 test "x$enable_dependency_tracking" != xno \
4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4120 am__fastdepCC_TRUE=
4121 am__fastdepCC_FALSE='#'
4122 else
4123 am__fastdepCC_TRUE='#'
4124 am__fastdepCC_FALSE=
4128 ac_ext=go
4129 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4130 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compile_gnu=yes
4132 if test -n "$ac_tool_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if test "${ac_cv_prog_GOC+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -n "$GOC"; then
4141 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4156 IFS=$as_save_IFS
4160 GOC=$ac_cv_prog_GOC
4161 if test -n "$GOC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4163 $as_echo "$GOC" >&6; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4171 if test -z "$ac_cv_prog_GOC"; then
4172 ac_ct_GOC=$GOC
4173 # Extract the first word of "gccgo", so it can be a program name with args.
4174 set dummy gccgo; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$ac_ct_GOC"; then
4181 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190 ac_cv_prog_ac_ct_GOC="gccgo"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4201 if test -n "$ac_ct_GOC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4203 $as_echo "$ac_ct_GOC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4209 if test "x$ac_ct_GOC" = x; then
4210 GOC=""
4211 else
4212 case $cross_compiling:$ac_tool_warned in
4213 yes:)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216 ac_tool_warned=yes ;;
4217 esac
4218 GOC=$ac_ct_GOC
4220 else
4221 GOC="$ac_cv_prog_GOC"
4224 if test -z "$GOC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_GOC+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$GOC"; then
4234 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 GOC=$ac_cv_prog_GOC
4254 if test -n "$GOC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4256 $as_echo "$GOC" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4265 if test -z "$GOC"; then
4266 # Extract the first word of "gccgo", so it can be a program name with args.
4267 set dummy gccgo; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_GOC+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$GOC"; then
4274 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4275 else
4276 ac_prog_rejected=no
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4285 ac_prog_rejected=yes
4286 continue
4288 ac_cv_prog_GOC="gccgo"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4296 if test $ac_prog_rejected = yes; then
4297 # We found a bogon in the path, so make sure we never use it.
4298 set dummy $ac_cv_prog_GOC
4299 shift
4300 if test $# != 0; then
4301 # We chose a different compiler from the bogus one.
4302 # However, it has the same basename, so the bogon will be chosen
4303 # first if we set GOC to just the basename; use the full file name.
4304 shift
4305 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4310 GOC=$ac_cv_prog_GOC
4311 if test -n "$GOC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4313 $as_echo "$GOC" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 { { ac_try="$ac_compiler --version >&5"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_compiler --version >&5") 2>conftest.err
4335 ac_status=$?
4336 if test -s conftest.err; then
4337 sed '10a\
4338 ... rest of stderr output deleted ...
4339 10q' conftest.err >conftest.er1
4340 cat conftest.er1 >&5
4341 rm -f conftest.er1 conftest.err
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 GOCFLAGS="-g -O2"
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4358 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4359 # Check whether --enable-maintainer-mode was given.
4360 if test "${enable_maintainer_mode+set}" = set; then :
4361 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4362 else
4363 USE_MAINTAINER_MODE=no
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4367 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4368 if test $USE_MAINTAINER_MODE = yes; then
4369 MAINTAINER_MODE_TRUE=
4370 MAINTAINER_MODE_FALSE='#'
4371 else
4372 MAINTAINER_MODE_TRUE='#'
4373 MAINTAINER_MODE_FALSE=
4376 MAINT=$MAINTAINER_MODE_TRUE
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4381 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4382 if test "${ac_cv_path_SED+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4386 for ac_i in 1 2 3 4 5 6 7; do
4387 ac_script="$ac_script$as_nl$ac_script"
4388 done
4389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4390 { ac_script=; unset ac_script;}
4391 if test -z "$SED"; then
4392 ac_path_SED_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in sed gsed; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4403 # Check for GNU ac_path_SED and select it if it is found.
4404 # Check for GNU $ac_path_SED
4405 case `"$ac_path_SED" --version 2>&1` in
4406 *GNU*)
4407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4409 ac_count=0
4410 $as_echo_n 0123456789 >"conftest.in"
4411 while :
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo '' >> "conftest.nl"
4417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 as_fn_arith $ac_count + 1 && ac_count=$as_val
4420 if test $ac_count -gt ${ac_path_SED_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_SED="$ac_path_SED"
4423 ac_path_SED_max=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4431 $ac_path_SED_found && break 3
4432 done
4433 done
4434 done
4435 IFS=$as_save_IFS
4436 if test -z "$ac_cv_path_SED"; then
4437 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4439 else
4440 ac_cv_path_SED=$SED
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4445 $as_echo "$ac_cv_path_SED" >&6; }
4446 SED="$ac_cv_path_SED"
4447 rm -f conftest.sed
4449 test -z "$SED" && SED=sed
4450 Xsed="$SED -e 1s/^X//"
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4463 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$GREP"; then
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in grep ggrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4485 ac_count=0
4486 $as_echo_n 0123456789 >"conftest.in"
4487 while :
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP="$ac_path_GREP"
4499 ac_path_GREP_max=$ac_count
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4507 $ac_path_GREP_found && break 3
4508 done
4509 done
4510 done
4511 IFS=$as_save_IFS
4512 if test -z "$ac_cv_path_GREP"; then
4513 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4515 else
4516 ac_cv_path_GREP=$GREP
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4521 $as_echo "$ac_cv_path_GREP" >&6; }
4522 GREP="$ac_cv_path_GREP"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4526 $as_echo_n "checking for egrep... " >&6; }
4527 if test "${ac_cv_path_EGREP+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4531 then ac_cv_path_EGREP="$GREP -E"
4532 else
4533 if test -z "$EGREP"; then
4534 ac_path_EGREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in egrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4545 # Check for GNU ac_path_EGREP and select it if it is found.
4546 # Check for GNU $ac_path_EGREP
4547 case `"$ac_path_EGREP" --version 2>&1` in
4548 *GNU*)
4549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4551 ac_count=0
4552 $as_echo_n 0123456789 >"conftest.in"
4553 while :
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'EGREP' >> "conftest.nl"
4559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_EGREP="$ac_path_EGREP"
4565 ac_path_EGREP_max=$ac_count
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4569 done
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4573 $ac_path_EGREP_found && break 3
4574 done
4575 done
4576 done
4577 IFS=$as_save_IFS
4578 if test -z "$ac_cv_path_EGREP"; then
4579 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581 else
4582 ac_cv_path_EGREP=$EGREP
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4588 $as_echo "$ac_cv_path_EGREP" >&6; }
4589 EGREP="$ac_cv_path_EGREP"
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4593 $as_echo_n "checking for fgrep... " >&6; }
4594 if test "${ac_cv_path_FGREP+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4598 then ac_cv_path_FGREP="$GREP -F"
4599 else
4600 if test -z "$FGREP"; then
4601 ac_path_FGREP_found=false
4602 # Loop through the user's path and test for each of PROGNAME-LIST
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_prog in fgrep; do
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4611 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4612 # Check for GNU ac_path_FGREP and select it if it is found.
4613 # Check for GNU $ac_path_FGREP
4614 case `"$ac_path_FGREP" --version 2>&1` in
4615 *GNU*)
4616 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4618 ac_count=0
4619 $as_echo_n 0123456789 >"conftest.in"
4620 while :
4622 cat "conftest.in" "conftest.in" >"conftest.tmp"
4623 mv "conftest.tmp" "conftest.in"
4624 cp "conftest.in" "conftest.nl"
4625 $as_echo 'FGREP' >> "conftest.nl"
4626 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4628 as_fn_arith $ac_count + 1 && ac_count=$as_val
4629 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4630 # Best one so far, save it but keep looking for a better one
4631 ac_cv_path_FGREP="$ac_path_FGREP"
4632 ac_path_FGREP_max=$ac_count
4634 # 10*(2^10) chars as input seems more than enough
4635 test $ac_count -gt 10 && break
4636 done
4637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4638 esac
4640 $ac_path_FGREP_found && break 3
4641 done
4642 done
4643 done
4644 IFS=$as_save_IFS
4645 if test -z "$ac_cv_path_FGREP"; then
4646 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648 else
4649 ac_cv_path_FGREP=$FGREP
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4655 $as_echo "$ac_cv_path_FGREP" >&6; }
4656 FGREP="$ac_cv_path_FGREP"
4659 test -z "$GREP" && GREP=grep
4677 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4678 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4679 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4682 $as_echo_n "checking how to print strings... " >&6; }
4683 # Test print first, because it will be a builtin if present.
4684 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4685 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4686 ECHO='print -r --'
4687 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4688 ECHO='printf %s\n'
4689 else
4690 # Use this function as a fallback that always works.
4691 func_fallback_echo ()
4693 eval 'cat <<_LTECHO_EOF
4695 _LTECHO_EOF'
4697 ECHO='func_fallback_echo'
4700 # func_echo_all arg...
4701 # Invoke $ECHO with all args, space-separated.
4702 func_echo_all ()
4704 $ECHO ""
4707 case "$ECHO" in
4708 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4709 $as_echo "printf" >&6; } ;;
4710 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4711 $as_echo "print -r" >&6; } ;;
4712 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4713 $as_echo "cat" >&6; } ;;
4714 esac
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734 else
4735 with_gnu_ld=no
4738 ac_prog=ld
4739 if test "$GCC" = yes; then
4740 # Check if gcc -print-prog-name=ld gives a path.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4743 case $host in
4744 *-*-mingw*)
4745 # gcc leaves a trailing carriage return which upsets mingw
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749 esac
4750 case $ac_prog in
4751 # Accept absolute paths.
4752 [\\/]* | ?:[\\/]*)
4753 re_direlt='/[^/][^/]*/\.\./'
4754 # Canonicalize the pathname of ld
4755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758 done
4759 test -z "$LD" && LD="$ac_prog"
4762 # If it fails, then pretend we aren't using GCC.
4763 ac_prog=ld
4766 # If it is relative, then search for the first ld in PATH.
4767 with_gnu_ld=unknown
4769 esac
4770 elif test "$with_gnu_ld" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4777 if test "${lt_cv_path_LD+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -z "$LD"; then
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4783 IFS="$lt_save_ifs"
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786 lt_cv_path_LD="$ac_dir/$ac_prog"
4787 # Check to see if the program is GNU ld. I'd rather use --version,
4788 # but apparently some variants of GNU ld only accept -v.
4789 # Break only if it was the GNU/non-GNU ld that we prefer.
4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 test "$with_gnu_ld" != no && break
4795 test "$with_gnu_ld" != yes && break
4797 esac
4799 done
4800 IFS="$lt_save_ifs"
4801 else
4802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4806 LD="$lt_cv_path_LD"
4807 if test -n "$LD"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4814 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823 lt_cv_prog_gnu_ld=yes
4826 lt_cv_prog_gnu_ld=no
4828 esac
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4842 if test -n "$ac_tool_prefix"; then
4843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$RANLIB"; then
4851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 RANLIB=$ac_cv_prog_RANLIB
4871 if test -n "$RANLIB"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4873 $as_echo "$RANLIB" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4881 if test -z "$ac_cv_prog_RANLIB"; then
4882 ac_ct_RANLIB=$RANLIB
4883 # Extract the first word of "ranlib", so it can be a program name with args.
4884 set dummy ranlib; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -n "$ac_ct_RANLIB"; then
4891 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_ac_ct_RANLIB="ranlib"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4906 IFS=$as_save_IFS
4910 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4911 if test -n "$ac_ct_RANLIB"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4913 $as_echo "$ac_ct_RANLIB" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4919 if test "x$ac_ct_RANLIB" = x; then
4920 RANLIB=":"
4921 else
4922 case $cross_compiling:$ac_tool_warned in
4923 yes:)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4927 esac
4928 RANLIB=$ac_ct_RANLIB
4930 else
4931 RANLIB="$ac_cv_prog_RANLIB"
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$OBJCOPY"; then
4943 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 OBJCOPY=$ac_cv_prog_OBJCOPY
4963 if test -n "$OBJCOPY"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4965 $as_echo "$OBJCOPY" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4973 if test -z "$ac_cv_prog_OBJCOPY"; then
4974 ac_ct_OBJCOPY=$OBJCOPY
4975 # Extract the first word of "objcopy", so it can be a program name with args.
4976 set dummy objcopy; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$ac_ct_OBJCOPY"; then
4983 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5003 if test -n "$ac_ct_OBJCOPY"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5005 $as_echo "$ac_ct_OBJCOPY" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5011 if test "x$ac_ct_OBJCOPY" = x; then
5012 OBJCOPY="missing-objcopy"
5013 else
5014 case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020 OBJCOPY=$ac_ct_OBJCOPY
5022 else
5023 OBJCOPY="$ac_cv_prog_OBJCOPY"
5027 enable_dlopen=yes
5031 case `pwd` in
5032 *\ * | *\ *)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5034 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5035 esac
5039 macro_version='2.2.7a'
5040 macro_revision='1.3134'
5054 ltmain="$ac_aux_dir/ltmain.sh"
5056 # Backslashify metacharacters that are still active within
5057 # double-quoted strings.
5058 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5060 # Same as above, but do not quote variable references.
5061 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5063 # Sed substitution to delay expansion of an escaped shell variable in a
5064 # double_quote_subst'ed string.
5065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5067 # Sed substitution to delay expansion of an escaped single quote.
5068 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5070 # Sed substitution to avoid accidental globbing in evaled expressions
5071 no_glob_subst='s/\*/\\\*/g'
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5074 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5075 if test "${lt_cv_path_NM+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$NM"; then
5079 # Let the user override the test.
5080 lt_cv_path_NM="$NM"
5081 else
5082 lt_nm_to_check="${ac_tool_prefix}nm"
5083 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5084 lt_nm_to_check="$lt_nm_to_check nm"
5086 for lt_tmp_nm in $lt_nm_to_check; do
5087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5088 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5089 IFS="$lt_save_ifs"
5090 test -z "$ac_dir" && ac_dir=.
5091 tmp_nm="$ac_dir/$lt_tmp_nm"
5092 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5093 # Check to see if the nm accepts a BSD-compat flag.
5094 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5095 # nm: unknown option "B" ignored
5096 # Tru64's nm complains that /dev/null is an invalid object file
5097 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5098 */dev/null* | *'Invalid file or object type'*)
5099 lt_cv_path_NM="$tmp_nm -B"
5100 break
5103 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5104 */dev/null*)
5105 lt_cv_path_NM="$tmp_nm -p"
5106 break
5109 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5110 continue # so that we can try to find one that supports BSD flags
5112 esac
5114 esac
5116 done
5117 IFS="$lt_save_ifs"
5118 done
5119 : ${lt_cv_path_NM=no}
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5123 $as_echo "$lt_cv_path_NM" >&6; }
5124 if test "$lt_cv_path_NM" != "no"; then
5125 NM="$lt_cv_path_NM"
5126 else
5127 # Didn't find any BSD compatible name lister, look for dumpbin.
5128 if test -n "$DUMPBIN"; then :
5129 # Let the user override the test.
5130 else
5131 if test -n "$ac_tool_prefix"; then
5132 for ac_prog in dumpbin "link -dump"
5134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$DUMPBIN"; then
5142 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 DUMPBIN=$ac_cv_prog_DUMPBIN
5162 if test -n "$DUMPBIN"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5164 $as_echo "$DUMPBIN" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5171 test -n "$DUMPBIN" && break
5172 done
5174 if test -z "$DUMPBIN"; then
5175 ac_ct_DUMPBIN=$DUMPBIN
5176 for ac_prog in dumpbin "link -dump"
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_DUMPBIN"; then
5186 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5206 if test -n "$ac_ct_DUMPBIN"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5208 $as_echo "$ac_ct_DUMPBIN" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 test -n "$ac_ct_DUMPBIN" && break
5216 done
5218 if test "x$ac_ct_DUMPBIN" = x; then
5219 DUMPBIN=":"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 DUMPBIN=$ac_ct_DUMPBIN
5231 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5232 *COFF*)
5233 DUMPBIN="$DUMPBIN -symbols"
5236 DUMPBIN=:
5238 esac
5241 if test "$DUMPBIN" != ":"; then
5242 NM="$DUMPBIN"
5245 test -z "$NM" && NM=nm
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5253 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5254 if test "${lt_cv_nm_interface+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 lt_cv_nm_interface="BSD nm"
5258 echo "int some_variable = 0;" > conftest.$ac_ext
5259 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5260 (eval "$ac_compile" 2>conftest.err)
5261 cat conftest.err >&5
5262 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5263 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5264 cat conftest.err >&5
5265 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5266 cat conftest.out >&5
5267 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5268 lt_cv_nm_interface="MS dumpbin"
5270 rm -f conftest*
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5273 $as_echo "$lt_cv_nm_interface" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5276 $as_echo_n "checking whether ln -s works... " >&6; }
5277 LN_S=$as_ln_s
5278 if test "$LN_S" = "ln -s"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5283 $as_echo "no, using $LN_S" >&6; }
5286 # find the maximum length of command line arguments
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5288 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5289 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5293 teststring="ABCD"
5295 case $build_os in
5296 msdosdjgpp*)
5297 # On DJGPP, this test can blow up pretty badly due to problems in libc
5298 # (any single argument exceeding 2000 bytes causes a buffer overrun
5299 # during glob expansion). Even if it were fixed, the result of this
5300 # check would be larger than it should be.
5301 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5304 gnu*)
5305 # Under GNU Hurd, this test is not required because there is
5306 # no limit to the length of command line arguments.
5307 # Libtool will interpret -1 as no limit whatsoever
5308 lt_cv_sys_max_cmd_len=-1;
5311 cygwin* | mingw* | cegcc*)
5312 # On Win9x/ME, this test blows up -- it succeeds, but takes
5313 # about 5 minutes as the teststring grows exponentially.
5314 # Worse, since 9x/ME are not pre-emptively multitasking,
5315 # you end up with a "frozen" computer, even though with patience
5316 # the test eventually succeeds (with a max line length of 256k).
5317 # Instead, let's just punt: use the minimum linelength reported by
5318 # all of the supported platforms: 8192 (on NT/2K/XP).
5319 lt_cv_sys_max_cmd_len=8192;
5322 mint*)
5323 # On MiNT this can take a long time and run out of memory.
5324 lt_cv_sys_max_cmd_len=8192;
5327 amigaos*)
5328 # On AmigaOS with pdksh, this test takes hours, literally.
5329 # So we just punt and use a minimum line length of 8192.
5330 lt_cv_sys_max_cmd_len=8192;
5333 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5334 # This has been around since 386BSD, at least. Likely further.
5335 if test -x /sbin/sysctl; then
5336 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5337 elif test -x /usr/sbin/sysctl; then
5338 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5339 else
5340 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5342 # And add a safety zone
5343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5347 interix*)
5348 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5349 lt_cv_sys_max_cmd_len=196608
5352 osf*)
5353 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5354 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5355 # nice to cause kernel panics so lets avoid the loop below.
5356 # First set a reasonable default.
5357 lt_cv_sys_max_cmd_len=16384
5359 if test -x /sbin/sysconfig; then
5360 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5361 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5362 esac
5365 sco3.2v5*)
5366 lt_cv_sys_max_cmd_len=102400
5368 sysv5* | sco5v6* | sysv4.2uw2*)
5369 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5370 if test -n "$kargmax"; then
5371 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5372 else
5373 lt_cv_sys_max_cmd_len=32768
5377 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5378 if test -n "$lt_cv_sys_max_cmd_len"; then
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5381 else
5382 # Make teststring a little bigger before we do anything with it.
5383 # a 1K string should be a reasonable start.
5384 for i in 1 2 3 4 5 6 7 8 ; do
5385 teststring=$teststring$teststring
5386 done
5387 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5388 # If test is not a shell built-in, we'll probably end up computing a
5389 # maximum length that is only half of the actual maximum length, but
5390 # we can't tell.
5391 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5392 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5393 test $i != 17 # 1/2 MB should be enough
5395 i=`expr $i + 1`
5396 teststring=$teststring$teststring
5397 done
5398 # Only check the string length outside the loop.
5399 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5400 teststring=
5401 # Add a significant safety factor because C++ compilers can tack on
5402 # massive amounts of additional arguments before passing them to the
5403 # linker. It appears as though 1/2 is a usable value.
5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5407 esac
5411 if test -n $lt_cv_sys_max_cmd_len ; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5413 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5416 $as_echo "none" >&6; }
5418 max_cmd_len=$lt_cv_sys_max_cmd_len
5425 : ${CP="cp -f"}
5426 : ${MV="mv -f"}
5427 : ${RM="rm -f"}
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5430 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5431 # Try some XSI features
5432 xsi_shell=no
5433 ( _lt_dummy="a/b/c"
5434 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5435 = c,a/b,, \
5436 && eval 'test $(( 1 + 1 )) -eq 2 \
5437 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5438 && xsi_shell=yes
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5440 $as_echo "$xsi_shell" >&6; }
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5444 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5445 lt_shell_append=no
5446 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5447 >/dev/null 2>&1 \
5448 && lt_shell_append=yes
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5450 $as_echo "$lt_shell_append" >&6; }
5453 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5454 lt_unset=unset
5455 else
5456 lt_unset=false
5463 # test EBCDIC or ASCII
5464 case `echo X|tr X '\101'` in
5465 A) # ASCII based system
5466 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5467 lt_SP2NL='tr \040 \012'
5468 lt_NL2SP='tr \015\012 \040\040'
5470 *) # EBCDIC based system
5471 lt_SP2NL='tr \100 \n'
5472 lt_NL2SP='tr \r\n \100\100'
5474 esac
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5485 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5486 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 lt_cv_ld_reload_flag='-r'
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5492 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5493 reload_flag=$lt_cv_ld_reload_flag
5494 case $reload_flag in
5495 "" | " "*) ;;
5496 *) reload_flag=" $reload_flag" ;;
5497 esac
5498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5499 case $host_os in
5500 darwin*)
5501 if test "$GCC" = yes; then
5502 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5503 else
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5507 esac
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$OBJDUMP"; then
5526 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 OBJDUMP=$ac_cv_prog_OBJDUMP
5546 if test -n "$OBJDUMP"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5548 $as_echo "$OBJDUMP" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test -z "$ac_cv_prog_OBJDUMP"; then
5557 ac_ct_OBJDUMP=$OBJDUMP
5558 # Extract the first word of "objdump", so it can be a program name with args.
5559 set dummy objdump; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$ac_ct_OBJDUMP"; then
5566 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5586 if test -n "$ac_ct_OBJDUMP"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5588 $as_echo "$ac_ct_OBJDUMP" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5594 if test "x$ac_ct_OBJDUMP" = x; then
5595 OBJDUMP="false"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 OBJDUMP=$ac_ct_OBJDUMP
5605 else
5606 OBJDUMP="$ac_cv_prog_OBJDUMP"
5609 test -z "$OBJDUMP" && OBJDUMP=objdump
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5620 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5621 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 lt_cv_file_magic_cmd='$MAGIC_CMD'
5625 lt_cv_file_magic_test_file=
5626 lt_cv_deplibs_check_method='unknown'
5627 # Need to set the preceding variable on all platforms that support
5628 # interlibrary dependencies.
5629 # 'none' -- dependencies not supported.
5630 # `unknown' -- same as none, but documents that we really don't know.
5631 # 'pass_all' -- all dependencies passed with no checks.
5632 # 'test_compile' -- check by making test program.
5633 # 'file_magic [[regex]]' -- check by looking for files in library path
5634 # which responds to the $file_magic_cmd with a given extended regex.
5635 # If you have `file' or equivalent on your system and you're not sure
5636 # whether `pass_all' will *always* work, you probably want this one.
5638 case $host_os in
5639 aix[4-9]*)
5640 lt_cv_deplibs_check_method=pass_all
5643 beos*)
5644 lt_cv_deplibs_check_method=pass_all
5647 bsdi[45]*)
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5649 lt_cv_file_magic_cmd='/usr/bin/file -L'
5650 lt_cv_file_magic_test_file=/shlib/libc.so
5653 cygwin*)
5654 # func_win32_libid is a shell function defined in ltmain.sh
5655 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5656 lt_cv_file_magic_cmd='func_win32_libid'
5659 mingw* | pw32*)
5660 # Base MSYS/MinGW do not provide the 'file' command needed by
5661 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5662 # unless we find 'file', for example because we are cross-compiling.
5663 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5664 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5665 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5666 lt_cv_file_magic_cmd='func_win32_libid'
5667 else
5668 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5669 lt_cv_file_magic_cmd='$OBJDUMP -f'
5673 cegcc*)
5674 # use the weaker test based on 'objdump'. See mingw*.
5675 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5676 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 darwin* | rhapsody*)
5680 lt_cv_deplibs_check_method=pass_all
5683 freebsd* | dragonfly*)
5684 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5685 case $host_cpu in
5686 i*86 )
5687 # Not sure whether the presence of OpenBSD here was a mistake.
5688 # Let's accept both of them until this is cleared up.
5689 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5690 lt_cv_file_magic_cmd=/usr/bin/file
5691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5693 esac
5694 else
5695 lt_cv_deplibs_check_method=pass_all
5699 gnu*)
5700 lt_cv_deplibs_check_method=pass_all
5703 haiku*)
5704 lt_cv_deplibs_check_method=pass_all
5707 hpux10.20* | hpux11*)
5708 lt_cv_file_magic_cmd=/usr/bin/file
5709 case $host_cpu in
5710 ia64*)
5711 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5712 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5714 hppa*64*)
5715 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]'
5716 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5719 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5720 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5722 esac
5725 interix[3-9]*)
5726 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5730 irix5* | irix6* | nonstopux*)
5731 case $LD in
5732 *-32|*"-32 ") libmagic=32-bit;;
5733 *-n32|*"-n32 ") libmagic=N32;;
5734 *-64|*"-64 ") libmagic=64-bit;;
5735 *) libmagic=never-match;;
5736 esac
5737 lt_cv_deplibs_check_method=pass_all
5740 # This must be Linux ELF.
5741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5742 lt_cv_deplibs_check_method=pass_all
5745 netbsd*)
5746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5748 else
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5753 newos6*)
5754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5755 lt_cv_file_magic_cmd=/usr/bin/file
5756 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5759 *nto* | *qnx*)
5760 lt_cv_deplibs_check_method=pass_all
5763 openbsd*)
5764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5766 else
5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5771 osf3* | osf4* | osf5*)
5772 lt_cv_deplibs_check_method=pass_all
5775 rdos*)
5776 lt_cv_deplibs_check_method=pass_all
5779 solaris*)
5780 lt_cv_deplibs_check_method=pass_all
5783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5784 lt_cv_deplibs_check_method=pass_all
5787 sysv4 | sysv4.3*)
5788 case $host_vendor in
5789 motorola)
5790 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]'
5791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5793 ncr)
5794 lt_cv_deplibs_check_method=pass_all
5796 sequent)
5797 lt_cv_file_magic_cmd='/bin/file'
5798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5800 sni)
5801 lt_cv_file_magic_cmd='/bin/file'
5802 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5803 lt_cv_file_magic_test_file=/lib/libc.so
5805 siemens)
5806 lt_cv_deplibs_check_method=pass_all
5809 lt_cv_deplibs_check_method=pass_all
5811 esac
5814 tpf*)
5815 lt_cv_deplibs_check_method=pass_all
5817 esac
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5821 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5822 file_magic_cmd=$lt_cv_file_magic_cmd
5823 deplibs_check_method=$lt_cv_deplibs_check_method
5824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}ar; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if test "${ac_cv_prog_AR+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$AR"; then
5846 ac_cv_prog_AR="$AR" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_AR="${ac_tool_prefix}ar"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5859 done
5860 done
5861 IFS=$as_save_IFS
5865 AR=$ac_cv_prog_AR
5866 if test -n "$AR"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5868 $as_echo "$AR" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5876 if test -z "$ac_cv_prog_AR"; then
5877 ac_ct_AR=$AR
5878 # Extract the first word of "ar", so it can be a program name with args.
5879 set dummy ar; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ac_ct_AR"; then
5886 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_ac_ct_AR="ar"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5901 IFS=$as_save_IFS
5905 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5906 if test -n "$ac_ct_AR"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5908 $as_echo "$ac_ct_AR" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5914 if test "x$ac_ct_AR" = x; then
5915 AR="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 AR=$ac_ct_AR
5925 else
5926 AR="$ac_cv_prog_AR"
5929 test -z "$AR" && AR=ar
5930 test -z "$AR_FLAGS" && AR_FLAGS=cru
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}strip; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_STRIP+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$STRIP"; then
5951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 STRIP=$ac_cv_prog_STRIP
5971 if test -n "$STRIP"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5973 $as_echo "$STRIP" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_STRIP"; then
5982 ac_ct_STRIP=$STRIP
5983 # Extract the first word of "strip", so it can be a program name with args.
5984 set dummy strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$ac_ct_STRIP"; then
5991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_STRIP="strip"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6006 IFS=$as_save_IFS
6010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6011 if test -n "$ac_ct_STRIP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6013 $as_echo "$ac_ct_STRIP" >&6; }
6014 else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_STRIP" = x; then
6020 STRIP=":"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028 STRIP=$ac_ct_STRIP
6030 else
6031 STRIP="$ac_cv_prog_STRIP"
6034 test -z "$STRIP" && STRIP=:
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6063 done
6064 done
6065 IFS=$as_save_IFS
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6072 $as_echo "$RANLIB" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_RANLIB="ranlib"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6105 IFS=$as_save_IFS
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6112 $as_echo "$ac_ct_RANLIB" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6118 if test "x$ac_ct_RANLIB" = x; then
6119 RANLIB=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127 RANLIB=$ac_ct_RANLIB
6129 else
6130 RANLIB="$ac_cv_prog_RANLIB"
6133 test -z "$RANLIB" && RANLIB=:
6140 # Determine commands to create old-style static archives.
6141 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6142 old_postinstall_cmds='chmod 644 $oldlib'
6143 old_postuninstall_cmds=
6145 if test -n "$RANLIB"; then
6146 case $host_os in
6147 openbsd*)
6148 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6153 esac
6154 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6157 case $host_os in
6158 darwin*)
6159 lock_old_archive_extraction=yes ;;
6161 lock_old_archive_extraction=no ;;
6162 esac
6202 # If no C compiler was specified, use CC.
6203 LTCC=${LTCC-"$CC"}
6205 # If no C compiler flags were specified, use CFLAGS.
6206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6208 # Allow CC to be a program name with arguments.
6209 compiler=$CC
6212 # Check for command to grab the raw symbol name followed by C symbol from nm.
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6214 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6215 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6219 # These are sane defaults that work on at least a few old systems.
6220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6222 # Character class describing NM global symbol codes.
6223 symcode='[BCDEGRST]'
6225 # Regexp to match symbols that can be accessed directly from C.
6226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6228 # Define system-specific variables.
6229 case $host_os in
6230 aix*)
6231 symcode='[BCDT]'
6233 cygwin* | mingw* | pw32* | cegcc*)
6234 symcode='[ABCDGISTW]'
6236 hpux*)
6237 if test "$host_cpu" = ia64; then
6238 symcode='[ABCDEGRST]'
6241 irix* | nonstopux*)
6242 symcode='[BCDEGRST]'
6244 osf*)
6245 symcode='[BCDEGQRST]'
6247 solaris*)
6248 symcode='[BDRT]'
6250 sco3.2v5*)
6251 symcode='[DT]'
6253 sysv4.2uw2*)
6254 symcode='[DT]'
6256 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6257 symcode='[ABDT]'
6259 sysv4)
6260 symcode='[DFNSTU]'
6262 esac
6264 # If we're using GNU nm, then use its standard symbol codes.
6265 case `$NM -V 2>&1` in
6266 *GNU* | *'with BFD'*)
6267 symcode='[ABCDGIRSTW]' ;;
6268 esac
6270 # Transform an extracted symbol line into a proper C declaration.
6271 # Some systems (esp. on ia64) link data and code symbols differently,
6272 # so use this general approach.
6273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6275 # Transform an extracted symbol line into symbol name and symbol address
6276 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6277 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'"
6279 # Handle CRLF in mingw tool chain
6280 opt_cr=
6281 case $build_os in
6282 mingw*)
6283 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6285 esac
6287 # Try without a prefix underscore, then with it.
6288 for ac_symprfx in "" "_"; do
6290 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6291 symxfrm="\\1 $ac_symprfx\\2 \\2"
6293 # Write the raw and C identifiers.
6294 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6295 # Fake it for dumpbin and say T for any non-static function
6296 # and D for any global variable.
6297 # Also find C++ and __fastcall symbols from MSVC++,
6298 # which start with @ or ?.
6299 lt_cv_sys_global_symbol_pipe="$AWK '"\
6300 " {last_section=section; section=\$ 3};"\
6301 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6302 " \$ 0!~/External *\|/{next};"\
6303 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6304 " {if(hide[section]) next};"\
6305 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6306 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6307 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6308 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6309 " ' prfx=^$ac_symprfx"
6310 else
6311 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6314 # Check to see that the pipe works correctly.
6315 pipe_works=no
6317 rm -f conftest*
6318 cat > conftest.$ac_ext <<_LT_EOF
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322 char nm_test_var;
6323 void nm_test_func(void);
6324 void nm_test_func(void){}
6325 #ifdef __cplusplus
6327 #endif
6328 int main(){nm_test_var='a';nm_test_func();return(0);}
6329 _LT_EOF
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6333 ac_status=$?
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 # Now try to grab the symbols.
6337 nlist=conftest.nm
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6339 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; } && test -s "$nlist"; then
6343 # Try sorting and uniquifying the output.
6344 if sort "$nlist" | uniq > "$nlist"T; then
6345 mv -f "$nlist"T "$nlist"
6346 else
6347 rm -f "$nlist"T
6350 # Make sure that we snagged all the symbols we need.
6351 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353 cat <<_LT_EOF > conftest.$ac_ext
6354 #ifdef __cplusplus
6355 extern "C" {
6356 #endif
6358 _LT_EOF
6359 # Now generate the symbol file.
6360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6362 cat <<_LT_EOF >> conftest.$ac_ext
6364 /* The mapping between symbol names and symbols. */
6365 const struct {
6366 const char *name;
6367 void *address;
6369 lt__PROGRAM__LTX_preloaded_symbols[] =
6371 { "@PROGRAM@", (void *) 0 },
6372 _LT_EOF
6373 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6374 cat <<\_LT_EOF >> conftest.$ac_ext
6375 {0, (void *) 0}
6378 /* This works around a problem in FreeBSD linker */
6379 #ifdef FREEBSD_WORKAROUND
6380 static const void *lt_preloaded_setup() {
6381 return lt__PROGRAM__LTX_preloaded_symbols;
6383 #endif
6385 #ifdef __cplusplus
6387 #endif
6388 _LT_EOF
6389 # Now try linking the two files.
6390 mv conftest.$ac_objext conftstm.$ac_objext
6391 lt_save_LIBS="$LIBS"
6392 lt_save_CFLAGS="$CFLAGS"
6393 LIBS="conftstm.$ac_objext"
6394 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6396 (eval $ac_link) 2>&5
6397 ac_status=$?
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6400 pipe_works=yes
6402 LIBS="$lt_save_LIBS"
6403 CFLAGS="$lt_save_CFLAGS"
6404 else
6405 echo "cannot find nm_test_func in $nlist" >&5
6407 else
6408 echo "cannot find nm_test_var in $nlist" >&5
6410 else
6411 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6413 else
6414 echo "$progname: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 rm -rf conftest* conftst*
6419 # Do not use the global_symbol_pipe unless it works.
6420 if test "$pipe_works" = yes; then
6421 break
6422 else
6423 lt_cv_sys_global_symbol_pipe=
6425 done
6429 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6430 lt_cv_sys_global_symbol_to_cdecl=
6432 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6434 $as_echo "failed" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6437 $as_echo "ok" >&6; }
6462 # Check whether --enable-libtool-lock was given.
6463 if test "${enable_libtool_lock+set}" = set; then :
6464 enableval=$enable_libtool_lock;
6467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6469 # Some flags need to be propagated to the compiler or linker for good
6470 # libtool support.
6471 case $host in
6472 ia64-*-hpux*)
6473 # Find out which ABI we are using.
6474 echo 'int i;' > conftest.$ac_ext
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476 (eval $ac_compile) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *ELF-32*)
6482 HPUX_IA64_MODE="32"
6484 *ELF-64*)
6485 HPUX_IA64_MODE="64"
6487 esac
6489 rm -rf conftest*
6491 *-*-irix6*)
6492 # Find out which ABI we are using.
6493 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6495 (eval $ac_compile) 2>&5
6496 ac_status=$?
6497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498 test $ac_status = 0; }; then
6499 if test "$lt_cv_prog_gnu_ld" = yes; then
6500 case `/usr/bin/file conftest.$ac_objext` in
6501 *32-bit*)
6502 LD="${LD-ld} -melf32bsmip"
6504 *N32*)
6505 LD="${LD-ld} -melf32bmipn32"
6507 *64-bit*)
6508 LD="${LD-ld} -melf64bmip"
6510 esac
6511 else
6512 case `/usr/bin/file conftest.$ac_objext` in
6513 *32-bit*)
6514 LD="${LD-ld} -32"
6516 *N32*)
6517 LD="${LD-ld} -n32"
6519 *64-bit*)
6520 LD="${LD-ld} -64"
6522 esac
6525 rm -rf conftest*
6528 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6529 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6530 # Find out which ABI we are using.
6531 echo 'int i;' > conftest.$ac_ext
6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5
6534 ac_status=$?
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
6537 case `/usr/bin/file conftest.o` in
6538 *32-bit*)
6539 case $host in
6540 x86_64-*kfreebsd*-gnu)
6541 LD="${LD-ld} -m elf_i386_fbsd"
6543 x86_64-*linux*)
6544 case `/usr/bin/file conftest.o` in
6545 *x86-64*)
6546 LD="${LD-ld} -m elf32_x86_64"
6549 LD="${LD-ld} -m elf_i386"
6551 esac
6553 powerpc64le-*linux*)
6554 LD="${LD-ld} -m elf32lppclinux"
6556 powerpc64-*linux*)
6557 LD="${LD-ld} -m elf32ppclinux"
6559 s390x-*linux*)
6560 LD="${LD-ld} -m elf_s390"
6562 sparc64-*linux*)
6563 LD="${LD-ld} -m elf32_sparc"
6565 esac
6567 *64-bit*)
6568 case $host in
6569 x86_64-*kfreebsd*-gnu)
6570 LD="${LD-ld} -m elf_x86_64_fbsd"
6572 x86_64-*linux*)
6573 LD="${LD-ld} -m elf_x86_64"
6575 powerpcle-*linux*)
6576 LD="${LD-ld} -m elf64lppc"
6578 powerpc-*linux*)
6579 LD="${LD-ld} -m elf64ppc"
6581 s390*-*linux*|s390*-*tpf*)
6582 LD="${LD-ld} -m elf64_s390"
6584 sparc*-*linux*)
6585 LD="${LD-ld} -m elf64_sparc"
6587 esac
6589 esac
6591 rm -rf conftest*
6594 *-*-sco3.2v5*)
6595 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6596 SAVE_CFLAGS="$CFLAGS"
6597 CFLAGS="$CFLAGS -belf"
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6599 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6600 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 ac_ext=c
6604 ac_cpp='$CPP $CPPFLAGS'
6605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6613 main ()
6617 return 0;
6619 _ACEOF
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 lt_cv_cc_needs_belf=yes
6622 else
6623 lt_cv_cc_needs_belf=no
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 ac_ext=c
6628 ac_cpp='$CPP $CPPFLAGS'
6629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6635 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6638 CFLAGS="$SAVE_CFLAGS"
6641 sparc*-*solaris*)
6642 # Find out which ABI we are using.
6643 echo 'int i;' > conftest.$ac_ext
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 case `/usr/bin/file conftest.o` in
6650 *64-bit*)
6651 case $lt_cv_prog_gnu_ld in
6652 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6655 LD="${LD-ld} -64"
6658 esac
6660 esac
6662 rm -rf conftest*
6664 esac
6666 need_locks="$enable_libtool_lock"
6669 case $host_os in
6670 rhapsody* | darwin*)
6671 if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$DSYMUTIL"; then
6680 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6693 done
6694 done
6695 IFS=$as_save_IFS
6699 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6700 if test -n "$DSYMUTIL"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6702 $as_echo "$DSYMUTIL" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6710 if test -z "$ac_cv_prog_DSYMUTIL"; then
6711 ac_ct_DSYMUTIL=$DSYMUTIL
6712 # Extract the first word of "dsymutil", so it can be a program name with args.
6713 set dummy dsymutil; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$ac_ct_DSYMUTIL"; then
6720 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6733 done
6734 done
6735 IFS=$as_save_IFS
6739 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6740 if test -n "$ac_ct_DSYMUTIL"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6742 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6748 if test "x$ac_ct_DSYMUTIL" = x; then
6749 DSYMUTIL=":"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757 DSYMUTIL=$ac_ct_DSYMUTIL
6759 else
6760 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$NMEDIT"; then
6772 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 NMEDIT=$ac_cv_prog_NMEDIT
6792 if test -n "$NMEDIT"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6794 $as_echo "$NMEDIT" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6802 if test -z "$ac_cv_prog_NMEDIT"; then
6803 ac_ct_NMEDIT=$NMEDIT
6804 # Extract the first word of "nmedit", so it can be a program name with args.
6805 set dummy nmedit; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 if test -n "$ac_ct_NMEDIT"; then
6812 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6825 done
6826 done
6827 IFS=$as_save_IFS
6831 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6832 if test -n "$ac_ct_NMEDIT"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6834 $as_echo "$ac_ct_NMEDIT" >&6; }
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6840 if test "x$ac_ct_NMEDIT" = x; then
6841 NMEDIT=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 NMEDIT=$ac_ct_NMEDIT
6851 else
6852 NMEDIT="$ac_cv_prog_NMEDIT"
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_prog_LIPO+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$LIPO"; then
6864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6883 LIPO=$ac_cv_prog_LIPO
6884 if test -n "$LIPO"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6886 $as_echo "$LIPO" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6894 if test -z "$ac_cv_prog_LIPO"; then
6895 ac_ct_LIPO=$LIPO
6896 # Extract the first word of "lipo", so it can be a program name with args.
6897 set dummy lipo; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$ac_ct_LIPO"; then
6904 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_ac_ct_LIPO="lipo"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6917 done
6918 done
6919 IFS=$as_save_IFS
6923 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6924 if test -n "$ac_ct_LIPO"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6926 $as_echo "$ac_ct_LIPO" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932 if test "x$ac_ct_LIPO" = x; then
6933 LIPO=":"
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941 LIPO=$ac_ct_LIPO
6943 else
6944 LIPO="$ac_cv_prog_LIPO"
6947 if test -n "$ac_tool_prefix"; then
6948 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}otool; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$OTOOL"; then
6956 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6975 OTOOL=$ac_cv_prog_OTOOL
6976 if test -n "$OTOOL"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6978 $as_echo "$OTOOL" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6986 if test -z "$ac_cv_prog_OTOOL"; then
6987 ac_ct_OTOOL=$OTOOL
6988 # Extract the first word of "otool", so it can be a program name with args.
6989 set dummy otool; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 if test -n "$ac_ct_OTOOL"; then
6996 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_ac_ct_OTOOL="otool"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7011 IFS=$as_save_IFS
7015 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7016 if test -n "$ac_ct_OTOOL"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7018 $as_echo "$ac_ct_OTOOL" >&6; }
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7024 if test "x$ac_ct_OTOOL" = x; then
7025 OTOOL=":"
7026 else
7027 case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7031 ac_tool_warned=yes ;;
7032 esac
7033 OTOOL=$ac_ct_OTOOL
7035 else
7036 OTOOL="$ac_cv_prog_OTOOL"
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$OTOOL64"; then
7048 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7061 done
7062 done
7063 IFS=$as_save_IFS
7067 OTOOL64=$ac_cv_prog_OTOOL64
7068 if test -n "$OTOOL64"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7070 $as_echo "$OTOOL64" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7078 if test -z "$ac_cv_prog_OTOOL64"; then
7079 ac_ct_OTOOL64=$OTOOL64
7080 # Extract the first word of "otool64", so it can be a program name with args.
7081 set dummy otool64; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 if test -n "$ac_ct_OTOOL64"; then
7088 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_prog_ac_ct_OTOOL64="otool64"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7103 IFS=$as_save_IFS
7107 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7108 if test -n "$ac_ct_OTOOL64"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7110 $as_echo "$ac_ct_OTOOL64" >&6; }
7111 else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7116 if test "x$ac_ct_OTOOL64" = x; then
7117 OTOOL64=":"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120 yes:)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7124 esac
7125 OTOOL64=$ac_ct_OTOOL64
7127 else
7128 OTOOL64="$ac_cv_prog_OTOOL64"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7158 $as_echo_n "checking for -single_module linker flag... " >&6; }
7159 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 lt_cv_apple_cc_single_mod=no
7163 if test -z "${LT_MULTI_MODULE}"; then
7164 # By default we will add the -single_module flag. You can override
7165 # by either setting the environment variable LT_MULTI_MODULE
7166 # non-empty at configure time, or by adding -multi_module to the
7167 # link flags.
7168 rm -rf libconftest.dylib*
7169 echo "int foo(void){return 1;}" > conftest.c
7170 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7171 -dynamiclib -Wl,-single_module conftest.c" >&5
7172 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7173 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7174 _lt_result=$?
7175 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7176 lt_cv_apple_cc_single_mod=yes
7177 else
7178 cat conftest.err >&5
7180 rm -rf libconftest.dylib*
7181 rm -f conftest.*
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7185 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7187 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7188 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 lt_cv_ld_exported_symbols_list=no
7192 save_LDFLAGS=$LDFLAGS
7193 echo "_main" > conftest.sym
7194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7199 main ()
7203 return 0;
7205 _ACEOF
7206 if ac_fn_c_try_link "$LINENO"; then :
7207 lt_cv_ld_exported_symbols_list=yes
7208 else
7209 lt_cv_ld_exported_symbols_list=no
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 LDFLAGS="$save_LDFLAGS"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7217 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7219 $as_echo_n "checking for -force_load linker flag... " >&6; }
7220 if test "${lt_cv_ld_force_load+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 lt_cv_ld_force_load=no
7224 cat > conftest.c << _LT_EOF
7225 int forced_loaded() { return 2;}
7226 _LT_EOF
7227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7229 echo "$AR cru libconftest.a conftest.o" >&5
7230 $AR cru libconftest.a conftest.o 2>&5
7231 cat > conftest.c << _LT_EOF
7232 int main() { return 0;}
7233 _LT_EOF
7234 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7235 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7236 _lt_result=$?
7237 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7238 lt_cv_ld_force_load=yes
7239 else
7240 cat conftest.err >&5
7242 rm -f conftest.err libconftest.a conftest conftest.c
7243 rm -rf conftest.dSYM
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7247 $as_echo "$lt_cv_ld_force_load" >&6; }
7248 case $host_os in
7249 rhapsody* | darwin1.[012])
7250 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7251 darwin1.*)
7252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7253 darwin*) # darwin 5.x on
7254 # if running on 10.5 or later, the deployment target defaults
7255 # to the OS version, if on x86, and 10.4, the deployment
7256 # target defaults to 10.4. Don't you love it?
7257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7260 10.[012][,.]*)
7261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7262 10.*)
7263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7264 esac
7266 esac
7267 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7268 _lt_dar_single_mod='$single_module'
7270 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7271 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7272 else
7273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7275 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7276 _lt_dsymutil='~$DSYMUTIL $lib || :'
7277 else
7278 _lt_dsymutil=
7281 esac
7283 ac_ext=c
7284 ac_cpp='$CPP $CPPFLAGS'
7285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7289 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7290 # On Suns, sometimes $CPP names a directory.
7291 if test -n "$CPP" && test -d "$CPP"; then
7292 CPP=
7294 if test -z "$CPP"; then
7295 if test "${ac_cv_prog_CPP+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 # Double quotes because CPP needs to be expanded
7299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7301 ac_preproc_ok=false
7302 for ac_c_preproc_warn_flag in '' yes
7304 # Use a header file that comes with gcc, so configuring glibc
7305 # with a fresh cross-compiler works.
7306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 # <limits.h> exists even on freestanding compilers.
7308 # On the NeXT, cc -E runs the code through the compiler's parser,
7309 # not just through cpp. "Syntax error" is here to catch this case.
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 #ifdef __STDC__
7313 # include <limits.h>
7314 #else
7315 # include <assert.h>
7316 #endif
7317 Syntax error
7318 _ACEOF
7319 if ac_fn_c_try_cpp "$LINENO"; then :
7321 else
7322 # Broken: fails on valid input.
7323 continue
7325 rm -f conftest.err conftest.$ac_ext
7327 # OK, works on sane cases. Now check whether nonexistent headers
7328 # can be detected and how.
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <ac_nonexistent.h>
7332 _ACEOF
7333 if ac_fn_c_try_cpp "$LINENO"; then :
7334 # Broken: success on invalid input.
7335 continue
7336 else
7337 # Passes both tests.
7338 ac_preproc_ok=:
7339 break
7341 rm -f conftest.err conftest.$ac_ext
7343 done
7344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7345 rm -f conftest.err conftest.$ac_ext
7346 if $ac_preproc_ok; then :
7347 break
7350 done
7351 ac_cv_prog_CPP=$CPP
7354 CPP=$ac_cv_prog_CPP
7355 else
7356 ac_cv_prog_CPP=$CPP
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7359 $as_echo "$CPP" >&6; }
7360 ac_preproc_ok=false
7361 for ac_c_preproc_warn_flag in '' yes
7363 # Use a header file that comes with gcc, so configuring glibc
7364 # with a fresh cross-compiler works.
7365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7366 # <limits.h> exists even on freestanding compilers.
7367 # On the NeXT, cc -E runs the code through the compiler's parser,
7368 # not just through cpp. "Syntax error" is here to catch this case.
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #ifdef __STDC__
7372 # include <limits.h>
7373 #else
7374 # include <assert.h>
7375 #endif
7376 Syntax error
7377 _ACEOF
7378 if ac_fn_c_try_cpp "$LINENO"; then :
7380 else
7381 # Broken: fails on valid input.
7382 continue
7384 rm -f conftest.err conftest.$ac_ext
7386 # OK, works on sane cases. Now check whether nonexistent headers
7387 # can be detected and how.
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 #include <ac_nonexistent.h>
7391 _ACEOF
7392 if ac_fn_c_try_cpp "$LINENO"; then :
7393 # Broken: success on invalid input.
7394 continue
7395 else
7396 # Passes both tests.
7397 ac_preproc_ok=:
7398 break
7400 rm -f conftest.err conftest.$ac_ext
7402 done
7403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7404 rm -f conftest.err conftest.$ac_ext
7405 if $ac_preproc_ok; then :
7407 else
7408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7410 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7411 See \`config.log' for more details." "$LINENO" 5; }
7414 ac_ext=c
7415 ac_cpp='$CPP $CPPFLAGS'
7416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7422 $as_echo_n "checking for ANSI C header files... " >&6; }
7423 if test "${ac_cv_header_stdc+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 #include <stdlib.h>
7429 #include <stdarg.h>
7430 #include <string.h>
7431 #include <float.h>
7434 main ()
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 ac_cv_header_stdc=yes
7443 else
7444 ac_cv_header_stdc=no
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 if test $ac_cv_header_stdc = yes; then
7449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 #include <string.h>
7454 _ACEOF
7455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7456 $EGREP "memchr" >/dev/null 2>&1; then :
7458 else
7459 ac_cv_header_stdc=no
7461 rm -f conftest*
7465 if test $ac_cv_header_stdc = yes; then
7466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #include <stdlib.h>
7471 _ACEOF
7472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "free" >/dev/null 2>&1; then :
7475 else
7476 ac_cv_header_stdc=no
7478 rm -f conftest*
7482 if test $ac_cv_header_stdc = yes; then
7483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7484 if test "$cross_compiling" = yes; then :
7486 else
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 #include <ctype.h>
7490 #include <stdlib.h>
7491 #if ((' ' & 0x0FF) == 0x020)
7492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7494 #else
7495 # define ISLOWER(c) \
7496 (('a' <= (c) && (c) <= 'i') \
7497 || ('j' <= (c) && (c) <= 'r') \
7498 || ('s' <= (c) && (c) <= 'z'))
7499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7500 #endif
7502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7504 main ()
7506 int i;
7507 for (i = 0; i < 256; i++)
7508 if (XOR (islower (i), ISLOWER (i))
7509 || toupper (i) != TOUPPER (i))
7510 return 2;
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_run "$LINENO"; then :
7516 else
7517 ac_cv_header_stdc=no
7519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7520 conftest.$ac_objext conftest.beam conftest.$ac_ext
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7526 $as_echo "$ac_cv_header_stdc" >&6; }
7527 if test $ac_cv_header_stdc = yes; then
7529 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7535 inttypes.h stdint.h unistd.h
7536 do :
7537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7540 eval as_val=\$$as_ac_Header
7541 if test "x$as_val" = x""yes; then :
7542 cat >>confdefs.h <<_ACEOF
7543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 _ACEOF
7548 done
7551 for ac_header in dlfcn.h
7552 do :
7553 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7555 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_DLFCN_H 1
7558 _ACEOF
7562 done
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_GOC+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$GOC"; then
7573 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7586 done
7587 done
7588 IFS=$as_save_IFS
7592 GOC=$ac_cv_prog_GOC
7593 if test -n "$GOC"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7595 $as_echo "$GOC" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7603 if test -z "$ac_cv_prog_GOC"; then
7604 ac_ct_GOC=$GOC
7605 # Extract the first word of "gccgo", so it can be a program name with args.
7606 set dummy gccgo; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$ac_ct_GOC"; then
7613 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_ac_ct_GOC="gccgo"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7626 done
7627 done
7628 IFS=$as_save_IFS
7632 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7633 if test -n "$ac_ct_GOC"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7635 $as_echo "$ac_ct_GOC" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7641 if test "x$ac_ct_GOC" = x; then
7642 GOC=""
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 GOC=$ac_ct_GOC
7652 else
7653 GOC="$ac_cv_prog_GOC"
7661 # Set options
7666 enable_win32_dll=no
7669 # Check whether --enable-shared was given.
7670 if test "${enable_shared+set}" = set; then :
7671 enableval=$enable_shared; p=${PACKAGE-default}
7672 case $enableval in
7673 yes) enable_shared=yes ;;
7674 no) enable_shared=no ;;
7676 enable_shared=no
7677 # Look at the argument we got. We use all the common list separators.
7678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7679 for pkg in $enableval; do
7680 IFS="$lt_save_ifs"
7681 if test "X$pkg" = "X$p"; then
7682 enable_shared=yes
7684 done
7685 IFS="$lt_save_ifs"
7687 esac
7688 else
7689 enable_shared=yes
7700 # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702 enableval=$enable_static; p=${PACKAGE-default}
7703 case $enableval in
7704 yes) enable_static=yes ;;
7705 no) enable_static=no ;;
7707 enable_static=no
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710 for pkg in $enableval; do
7711 IFS="$lt_save_ifs"
7712 if test "X$pkg" = "X$p"; then
7713 enable_static=yes
7715 done
7716 IFS="$lt_save_ifs"
7718 esac
7719 else
7720 enable_static=yes
7732 # Check whether --with-pic was given.
7733 if test "${with_pic+set}" = set; then :
7734 withval=$with_pic; pic_mode="$withval"
7735 else
7736 pic_mode=default
7740 test -z "$pic_mode" && pic_mode=default
7748 # Check whether --enable-fast-install was given.
7749 if test "${enable_fast_install+set}" = set; then :
7750 enableval=$enable_fast_install; p=${PACKAGE-default}
7751 case $enableval in
7752 yes) enable_fast_install=yes ;;
7753 no) enable_fast_install=no ;;
7755 enable_fast_install=no
7756 # Look at the argument we got. We use all the common list separators.
7757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7758 for pkg in $enableval; do
7759 IFS="$lt_save_ifs"
7760 if test "X$pkg" = "X$p"; then
7761 enable_fast_install=yes
7763 done
7764 IFS="$lt_save_ifs"
7766 esac
7767 else
7768 enable_fast_install=yes
7781 # This can be used to rebuild libtool when needed
7782 LIBTOOL_DEPS="$ltmain"
7784 # Always use our own libtool.
7785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7812 test -z "$LN_S" && LN_S="ln -s"
7827 if test -n "${ZSH_VERSION+set}" ; then
7828 setopt NO_GLOB_SUBST
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7832 $as_echo_n "checking for objdir... " >&6; }
7833 if test "${lt_cv_objdir+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7839 lt_cv_objdir=.libs
7840 else
7841 # MS-DOS does not allow filenames that begin with a dot.
7842 lt_cv_objdir=_libs
7844 rmdir .libs 2>/dev/null
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7847 $as_echo "$lt_cv_objdir" >&6; }
7848 objdir=$lt_cv_objdir
7854 cat >>confdefs.h <<_ACEOF
7855 #define LT_OBJDIR "$lt_cv_objdir/"
7856 _ACEOF
7861 case $host_os in
7862 aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7871 esac
7873 # Global variables:
7874 ofile=libtool
7875 can_build_shared=yes
7877 # All known linkers require a `.a' archive for static linking (except MSVC,
7878 # which needs '.lib').
7879 libext=a
7881 with_gnu_ld="$lt_cv_prog_gnu_ld"
7883 old_CC="$CC"
7884 old_CFLAGS="$CFLAGS"
7886 # Set sane defaults for various variables
7887 test -z "$CC" && CC=cc
7888 test -z "$LTCC" && LTCC=$CC
7889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7890 test -z "$LD" && LD=ld
7891 test -z "$ac_objext" && ac_objext=o
7893 for cc_temp in $compiler""; do
7894 case $cc_temp in
7895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897 \-*) ;;
7898 *) break;;
7899 esac
7900 done
7901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7904 # Only perform the check for file, if the check method requires it
7905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7906 case $deplibs_check_method in
7907 file_magic*)
7908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 case $MAGIC_CMD in
7915 [\\/*] | ?:[\\/]*)
7916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7919 lt_save_MAGIC_CMD="$MAGIC_CMD"
7920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922 for ac_dir in $ac_dummy; do
7923 IFS="$lt_save_ifs"
7924 test -z "$ac_dir" && ac_dir=.
7925 if test -f $ac_dir/${ac_tool_prefix}file; then
7926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7927 if test -n "$file_magic_test_file"; then
7928 case $deplibs_check_method in
7929 "file_magic "*)
7930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933 $EGREP "$file_magic_regex" > /dev/null; then
7935 else
7936 cat <<_LT_EOF 1>&2
7938 *** Warning: the command libtool uses to detect shared libraries,
7939 *** $file_magic_cmd, produces output that libtool cannot recognize.
7940 *** The result is that libtool may fail to recognize shared libraries
7941 *** as such. This will affect the creation of libtool libraries that
7942 *** depend on shared libraries, but programs linked with such libtool
7943 *** libraries will work regardless of this problem. Nevertheless, you
7944 *** may want to report the problem to your system manager and/or to
7945 *** bug-libtool@gnu.org
7947 _LT_EOF
7948 fi ;;
7949 esac
7951 break
7953 done
7954 IFS="$lt_save_ifs"
7955 MAGIC_CMD="$lt_save_MAGIC_CMD"
7957 esac
7960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961 if test -n "$MAGIC_CMD"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963 $as_echo "$MAGIC_CMD" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7973 if test -z "$lt_cv_path_MAGIC_CMD"; then
7974 if test -n "$ac_tool_prefix"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7976 $as_echo_n "checking for file... " >&6; }
7977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 case $MAGIC_CMD in
7981 [\\/*] | ?:[\\/]*)
7982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7985 lt_save_MAGIC_CMD="$MAGIC_CMD"
7986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7988 for ac_dir in $ac_dummy; do
7989 IFS="$lt_save_ifs"
7990 test -z "$ac_dir" && ac_dir=.
7991 if test -f $ac_dir/file; then
7992 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7993 if test -n "$file_magic_test_file"; then
7994 case $deplibs_check_method in
7995 "file_magic "*)
7996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7999 $EGREP "$file_magic_regex" > /dev/null; then
8001 else
8002 cat <<_LT_EOF 1>&2
8004 *** Warning: the command libtool uses to detect shared libraries,
8005 *** $file_magic_cmd, produces output that libtool cannot recognize.
8006 *** The result is that libtool may fail to recognize shared libraries
8007 *** as such. This will affect the creation of libtool libraries that
8008 *** depend on shared libraries, but programs linked with such libtool
8009 *** libraries will work regardless of this problem. Nevertheless, you
8010 *** may want to report the problem to your system manager and/or to
8011 *** bug-libtool@gnu.org
8013 _LT_EOF
8014 fi ;;
8015 esac
8017 break
8019 done
8020 IFS="$lt_save_ifs"
8021 MAGIC_CMD="$lt_save_MAGIC_CMD"
8023 esac
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if test -n "$MAGIC_CMD"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8029 $as_echo "$MAGIC_CMD" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8036 else
8037 MAGIC_CMD=:
8043 esac
8045 # Use C for the default configuration in the libtool script
8047 lt_save_CC="$CC"
8048 ac_ext=c
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055 # Source file extension for C test sources.
8056 ac_ext=c
8058 # Object file extension for compiled C test sources.
8059 objext=o
8060 objext=$objext
8062 # Code to be used in simple compile tests
8063 lt_simple_compile_test_code="int some_variable = 0;"
8065 # Code to be used in simple link tests
8066 lt_simple_link_test_code='int main(){return(0);}'
8074 # If no C compiler was specified, use CC.
8075 LTCC=${LTCC-"$CC"}
8077 # If no C compiler flags were specified, use CFLAGS.
8078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8080 # Allow CC to be a program name with arguments.
8081 compiler=$CC
8083 # Save the default compiler, since it gets overwritten when the other
8084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8085 compiler_DEFAULT=$CC
8087 # save warnings/boilerplate of simple test code
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_compiler_boilerplate=`cat conftest.err`
8092 $RM conftest*
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_linker_boilerplate=`cat conftest.err`
8098 $RM -r conftest*
8101 ## CAVEAT EMPTOR:
8102 ## There is no encapsulation within the following macros, do not change
8103 ## the running order or otherwise move them around unless you know exactly
8104 ## what you are doing...
8105 if test -n "$compiler"; then
8107 lt_prog_compiler_no_builtin_flag=
8109 if test "$GCC" = yes; then
8110 case $cc_basename in
8111 nvcc*)
8112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8115 esac
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_prog_compiler_rtti_exceptions=no
8123 ac_outfile=conftest.$ac_objext
8124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8125 lt_compiler_flag="-fno-rtti -fno-exceptions"
8126 # Insert the option either (1) after the last *FLAGS variable, or
8127 # (2) before a word containing "conftest.", or (3) at the end.
8128 # Note that $ac_compile itself does not contain backslashes and begins
8129 # with a dollar sign (not a hyphen), so the echo should work correctly.
8130 # The option is referenced via a variable to avoid confusing sed.
8131 lt_compile=`echo "$ac_compile" | $SED \
8132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8134 -e 's:$: $lt_compiler_flag:'`
8135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8136 (eval "$lt_compile" 2>conftest.err)
8137 ac_status=$?
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 if (exit $ac_status) && test -s "$ac_outfile"; then
8141 # The compiler can only warn and ignore the option if not recognized
8142 # So say no if there are warnings other than the usual output.
8143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8146 lt_cv_prog_compiler_rtti_exceptions=yes
8149 $RM conftest*
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8157 else
8168 lt_prog_compiler_wl=
8169 lt_prog_compiler_pic=
8170 lt_prog_compiler_static=
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8175 if test "$GCC" = yes; then
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_static='-static'
8179 case $host_os in
8180 aix*)
8181 # All AIX code is PIC.
8182 if test "$host_cpu" = ia64; then
8183 # AIX 5 now supports IA64 processor
8184 lt_prog_compiler_static='-Bstatic'
8186 lt_prog_compiler_pic='-fPIC'
8189 amigaos*)
8190 case $host_cpu in
8191 powerpc)
8192 # see comment about AmigaOS4 .so support
8193 lt_prog_compiler_pic='-fPIC'
8195 m68k)
8196 # FIXME: we need at least 68020 code to build shared libraries, but
8197 # adding the `-m68020' flag to GCC prevents building anything better,
8198 # like `-m68040'.
8199 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8201 esac
8204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8205 # PIC is the default for these OSes.
8208 mingw* | cygwin* | pw32* | os2* | cegcc*)
8209 # This hack is so that the source file can tell whether it is being
8210 # built for inclusion in a dll (and should export symbols for example).
8211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8212 # (--disable-auto-import) libraries
8213 lt_prog_compiler_pic='-DDLL_EXPORT'
8216 darwin* | rhapsody*)
8217 # PIC is the default on this platform
8218 # Common symbols not allowed in MH_DYLIB files
8219 lt_prog_compiler_pic='-fno-common'
8222 haiku*)
8223 # PIC is the default for Haiku.
8224 # The "-static" flag exists, but is broken.
8225 lt_prog_compiler_static=
8228 hpux*)
8229 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8230 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8231 # sets the default TLS model and affects inlining.
8232 case $host_cpu in
8233 hppa*64*)
8234 # +Z the default
8237 lt_prog_compiler_pic='-fPIC'
8239 esac
8242 interix[3-9]*)
8243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8244 # Instead, we relocate shared libraries at runtime.
8247 msdosdjgpp*)
8248 # Just because we use GCC doesn't mean we suddenly get shared libraries
8249 # on systems that don't support them.
8250 lt_prog_compiler_can_build_shared=no
8251 enable_shared=no
8254 *nto* | *qnx*)
8255 # QNX uses GNU C++, but need to define -shared option too, otherwise
8256 # it will coredump.
8257 lt_prog_compiler_pic='-fPIC -shared'
8260 sysv4*MP*)
8261 if test -d /usr/nec; then
8262 lt_prog_compiler_pic=-Kconform_pic
8267 lt_prog_compiler_pic='-fPIC'
8269 esac
8271 case $cc_basename in
8272 nvcc*) # Cuda Compiler Driver 2.2
8273 lt_prog_compiler_wl='-Xlinker '
8274 lt_prog_compiler_pic='-Xcompiler -fPIC'
8276 esac
8277 else
8278 # PORTME Check for flag to pass linker flags through the system compiler.
8279 case $host_os in
8280 aix*)
8281 lt_prog_compiler_wl='-Wl,'
8282 if test "$host_cpu" = ia64; then
8283 # AIX 5 now supports IA64 processor
8284 lt_prog_compiler_static='-Bstatic'
8285 else
8286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8290 mingw* | cygwin* | pw32* | os2* | cegcc*)
8291 # This hack is so that the source file can tell whether it is being
8292 # built for inclusion in a dll (and should export symbols for example).
8293 lt_prog_compiler_pic='-DDLL_EXPORT'
8296 hpux9* | hpux10* | hpux11*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8299 # not for PA HP-UX.
8300 case $host_cpu in
8301 hppa*64*|ia64*)
8302 # +Z the default
8305 lt_prog_compiler_pic='+Z'
8307 esac
8308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8309 lt_prog_compiler_static='${wl}-a ${wl}archive'
8312 irix5* | irix6* | nonstopux*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # PIC (with -KPIC) is the default.
8315 lt_prog_compiler_static='-non_shared'
8318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8319 case $cc_basename in
8320 # old Intel for x86_64 which still supported -KPIC.
8321 ecc*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-static'
8326 # icc used to be incompatible with GCC.
8327 # ICC 10 doesn't accept -KPIC any more.
8328 icc* | ifort*)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fPIC'
8331 lt_prog_compiler_static='-static'
8333 # Lahey Fortran 8.1.
8334 lf95*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='--shared'
8337 lt_prog_compiler_static='--static'
8339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8340 # Portland Group compilers (*not* the Pentium gcc compiler,
8341 # which looks to be a dead project)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fpic'
8344 lt_prog_compiler_static='-Bstatic'
8346 ccc*)
8347 lt_prog_compiler_wl='-Wl,'
8348 # All Alpha code is PIC.
8349 lt_prog_compiler_static='-non_shared'
8351 xl* | bgxl* | bgf* | mpixl*)
8352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='-qpic'
8355 lt_prog_compiler_static='-qstaticlink'
8358 case `$CC -V 2>&1 | sed 5q` in
8359 *Sun\ F* | *Sun*Fortran*)
8360 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 lt_prog_compiler_wl=''
8365 *Sun\ C*)
8366 # Sun C 5.9
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 lt_prog_compiler_wl='-Wl,'
8371 esac
8373 esac
8376 newsos6)
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-Bstatic'
8381 *nto* | *qnx*)
8382 # QNX uses GNU C++, but need to define -shared option too, otherwise
8383 # it will coredump.
8384 lt_prog_compiler_pic='-fPIC -shared'
8387 osf3* | osf4* | osf5*)
8388 lt_prog_compiler_wl='-Wl,'
8389 # All OSF/1 code is PIC.
8390 lt_prog_compiler_static='-non_shared'
8393 rdos*)
8394 lt_prog_compiler_static='-non_shared'
8397 solaris*)
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-Bstatic'
8400 case $cc_basename in
8401 f77* | f90* | f95*)
8402 lt_prog_compiler_wl='-Qoption ld ';;
8404 lt_prog_compiler_wl='-Wl,';;
8405 esac
8408 sunos4*)
8409 lt_prog_compiler_wl='-Qoption ld '
8410 lt_prog_compiler_pic='-PIC'
8411 lt_prog_compiler_static='-Bstatic'
8414 sysv4 | sysv4.2uw2* | sysv4.3*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
8420 sysv4*MP*)
8421 if test -d /usr/nec ;then
8422 lt_prog_compiler_pic='-Kconform_pic'
8423 lt_prog_compiler_static='-Bstatic'
8427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8433 unicos*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_can_build_shared=no
8438 uts4*)
8439 lt_prog_compiler_pic='-pic'
8440 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_can_build_shared=no
8446 esac
8449 case $host_os in
8450 # For platforms which do not support PIC, -DPIC is meaningless:
8451 *djgpp*)
8452 lt_prog_compiler_pic=
8455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8457 esac
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8459 $as_echo "$lt_prog_compiler_pic" >&6; }
8467 # Check to make sure the PIC flag actually works.
8469 if test -n "$lt_prog_compiler_pic"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 lt_cv_prog_compiler_pic_works=no
8476 ac_outfile=conftest.$ac_objext
8477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 # The option is referenced via a variable to avoid confusing sed.
8484 lt_compile=`echo "$ac_compile" | $SED \
8485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8487 -e 's:$: $lt_compiler_flag:'`
8488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8489 (eval "$lt_compile" 2>conftest.err)
8490 ac_status=$?
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 if (exit $ac_status) && test -s "$ac_outfile"; then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings other than the usual output.
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_pic_works=yes
8502 $RM conftest*
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8509 case $lt_prog_compiler_pic in
8510 "" | " "*) ;;
8511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8512 esac
8513 else
8514 lt_prog_compiler_pic=
8515 lt_prog_compiler_can_build_shared=no
8526 # Check to make sure the static flag actually works.
8528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 lt_cv_prog_compiler_static_works=no
8535 save_LDFLAGS="$LDFLAGS"
8536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8539 # The linker can only warn and ignore the option if not recognized
8540 # So say no if there are warnings
8541 if test -s conftest.err; then
8542 # Append any errors to the config.log.
8543 cat conftest.err 1>&5
8544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8546 if diff conftest.exp conftest.er2 >/dev/null; then
8547 lt_cv_prog_compiler_static_works=yes
8549 else
8550 lt_cv_prog_compiler_static_works=yes
8553 $RM -r conftest*
8554 LDFLAGS="$save_LDFLAGS"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8562 else
8563 lt_prog_compiler_static=
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_prog_compiler_c_o=no
8578 $RM -r conftest 2>/dev/null
8579 mkdir conftest
8580 cd conftest
8581 mkdir out
8582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-o out/conftest2.$ac_objext"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 lt_compile=`echo "$ac_compile" | $SED \
8590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
8593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594 (eval "$lt_compile" 2>out/conftest.err)
8595 ac_status=$?
8596 cat out/conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8599 then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings
8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_c_o=yes
8608 chmod u+w . 2>&5
8609 $RM conftest*
8610 # SGI C++ compiler will create directory out/ii_files/ for
8611 # template instantiation
8612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8613 $RM out/* && rmdir out
8614 cd ..
8615 $RM -r conftest
8616 $RM conftest*
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 lt_cv_prog_compiler_c_o=no
8633 $RM -r conftest 2>/dev/null
8634 mkdir conftest
8635 cd conftest
8636 mkdir out
8637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639 lt_compiler_flag="-o out/conftest2.$ac_objext"
8640 # Insert the option either (1) after the last *FLAGS variable, or
8641 # (2) before a word containing "conftest.", or (3) at the end.
8642 # Note that $ac_compile itself does not contain backslashes and begins
8643 # with a dollar sign (not a hyphen), so the echo should work correctly.
8644 lt_compile=`echo "$ac_compile" | $SED \
8645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8647 -e 's:$: $lt_compiler_flag:'`
8648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8649 (eval "$lt_compile" 2>out/conftest.err)
8650 ac_status=$?
8651 cat out/conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8654 then
8655 # The compiler can only warn and ignore the option if not recognized
8656 # So say no if there are warnings
8657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8660 lt_cv_prog_compiler_c_o=yes
8663 chmod u+w . 2>&5
8664 $RM conftest*
8665 # SGI C++ compiler will create directory out/ii_files/ for
8666 # template instantiation
8667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8668 $RM out/* && rmdir out
8669 cd ..
8670 $RM -r conftest
8671 $RM conftest*
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8680 hard_links="nottested"
8681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8682 # do not overwrite the value of need_locks provided by the user
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8684 $as_echo_n "checking if we can lock with hard links... " >&6; }
8685 hard_links=yes
8686 $RM conftest*
8687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8688 touch conftest.a
8689 ln conftest.a conftest.b 2>&5 || hard_links=no
8690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8692 $as_echo "$hard_links" >&6; }
8693 if test "$hard_links" = no; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8696 need_locks=warn
8698 else
8699 need_locks=no
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8710 runpath_var=
8711 allow_undefined_flag=
8712 always_export_symbols=no
8713 archive_cmds=
8714 archive_expsym_cmds=
8715 compiler_needs_object=no
8716 enable_shared_with_static_runtimes=no
8717 export_dynamic_flag_spec=
8718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8719 hardcode_automatic=no
8720 hardcode_direct=no
8721 hardcode_direct_absolute=no
8722 hardcode_libdir_flag_spec=
8723 hardcode_libdir_flag_spec_ld=
8724 hardcode_libdir_separator=
8725 hardcode_minus_L=no
8726 hardcode_shlibpath_var=unsupported
8727 inherit_rpath=no
8728 link_all_deplibs=unknown
8729 module_cmds=
8730 module_expsym_cmds=
8731 old_archive_from_new_cmds=
8732 old_archive_from_expsyms_cmds=
8733 thread_safe_flag_spec=
8734 whole_archive_flag_spec=
8735 # include_expsyms should be a list of space-separated symbols to be *always*
8736 # included in the symbol list
8737 include_expsyms=
8738 # exclude_expsyms can be an extended regexp of symbols to exclude
8739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8741 # as well as any symbol that contains `d'.
8742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8744 # platforms (ab)use it in PIC code, but their linkers get confused if
8745 # the symbol is explicitly referenced. Since portable code cannot
8746 # rely on this symbol name, it's probably fine to never include it in
8747 # preloaded symbol tables.
8748 # Exclude shared library initialization/finalization symbols.
8749 extract_expsyms_cmds=
8751 case $host_os in
8752 cygwin* | mingw* | pw32* | cegcc*)
8753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8754 # When not using gcc, we currently assume that we are using
8755 # Microsoft Visual C++.
8756 if test "$GCC" != yes; then
8757 with_gnu_ld=no
8760 interix*)
8761 # we just hope/assume this is gcc and not c89 (= MSVC++)
8762 with_gnu_ld=yes
8764 openbsd*)
8765 with_gnu_ld=no
8767 esac
8769 ld_shlibs=yes
8771 # On some targets, GNU ld is compatible enough with the native linker
8772 # that we're better off using the native interface for both.
8773 lt_use_gnu_ld_interface=no
8774 if test "$with_gnu_ld" = yes; then
8775 case $host_os in
8776 aix*)
8777 # The AIX port of GNU ld has always aspired to compatibility
8778 # with the native linker. However, as the warning in the GNU ld
8779 # block says, versions before 2.19.5* couldn't really create working
8780 # shared libraries, regardless of the interface used.
8781 case `$LD -v 2>&1` in
8782 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8783 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8784 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8786 lt_use_gnu_ld_interface=yes
8788 esac
8791 lt_use_gnu_ld_interface=yes
8793 esac
8796 if test "$lt_use_gnu_ld_interface" = yes; then
8797 # If archive_cmds runs LD, not CC, wlarc should be empty
8798 wlarc='${wl}'
8800 # Set some defaults for GNU ld with shared library support. These
8801 # are reset later if shared libraries are not supported. Putting them
8802 # here allows them to be overridden if necessary.
8803 runpath_var=LD_RUN_PATH
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805 export_dynamic_flag_spec='${wl}--export-dynamic'
8806 # ancient GNU ld didn't support --whole-archive et. al.
8807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8809 else
8810 whole_archive_flag_spec=
8812 supports_anon_versioning=no
8813 case `$LD -v 2>&1` in
8814 *GNU\ gold*) supports_anon_versioning=yes ;;
8815 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8818 *\ 2.11.*) ;; # other 2.11 versions
8819 *) supports_anon_versioning=yes ;;
8820 esac
8822 # See if GNU ld supports shared libraries.
8823 case $host_os in
8824 aix[3-9]*)
8825 # On AIX/PPC, the GNU linker is very broken
8826 if test "$host_cpu" != ia64; then
8827 ld_shlibs=no
8828 cat <<_LT_EOF 1>&2
8830 *** Warning: the GNU linker, at least up to release 2.19, is reported
8831 *** to be unable to reliably create shared libraries on AIX.
8832 *** Therefore, libtool is disabling shared libraries support. If you
8833 *** really care for shared libraries, you may want to install binutils
8834 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8835 *** You will then need to restart the configuration process.
8837 _LT_EOF
8841 amigaos*)
8842 case $host_cpu in
8843 powerpc)
8844 # see comment about AmigaOS4 .so support
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 archive_expsym_cmds=''
8848 m68k)
8849 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)'
8850 hardcode_libdir_flag_spec='-L$libdir'
8851 hardcode_minus_L=yes
8853 esac
8856 beos*)
8857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8858 allow_undefined_flag=unsupported
8859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8860 # support --undefined. This deserves some investigation. FIXME
8861 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 else
8863 ld_shlibs=no
8867 cygwin* | mingw* | pw32* | cegcc*)
8868 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8869 # as there is no search path for DLLs.
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 export_dynamic_flag_spec='${wl}--export-all-symbols'
8872 allow_undefined_flag=unsupported
8873 always_export_symbols=no
8874 enable_shared_with_static_runtimes=yes
8875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8877 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879 # If the export-symbols file already is a .def file (1st line
8880 # is EXPORTS), use it as is; otherwise, prepend...
8881 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8882 cp $export_symbols $output_objdir/$soname.def;
8883 else
8884 echo EXPORTS > $output_objdir/$soname.def;
8885 cat $export_symbols >> $output_objdir/$soname.def;
8887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8888 else
8889 ld_shlibs=no
8893 haiku*)
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895 link_all_deplibs=yes
8898 interix[3-9]*)
8899 hardcode_direct=no
8900 hardcode_shlibpath_var=no
8901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8902 export_dynamic_flag_spec='${wl}-E'
8903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8904 # Instead, shared libraries are loaded at an image base (0x10000000 by
8905 # default) and relocated if they conflict, which is a slow very memory
8906 # consuming and fragmenting process. To avoid this, we pick a random,
8907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8908 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8910 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'
8913 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8914 tmp_diet=no
8915 if test "$host_os" = linux-dietlibc; then
8916 case $cc_basename in
8917 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8918 esac
8920 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8921 && test "$tmp_diet" = no
8922 then
8923 tmp_addflag=
8924 tmp_sharedflag='-shared'
8925 case $cc_basename,$host_cpu in
8926 pgcc*) # Portland Group C compiler
8927 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'
8928 tmp_addflag=' $pic_flag'
8930 pgf77* | pgf90* | pgf95* | pgfortran*)
8931 # Portland Group f77 and f90 compilers
8932 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'
8933 tmp_addflag=' $pic_flag -Mnomain' ;;
8934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8935 tmp_addflag=' -i_dynamic' ;;
8936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8937 tmp_addflag=' -i_dynamic -nofor_main' ;;
8938 ifc* | ifort*) # Intel Fortran compiler
8939 tmp_addflag=' -nofor_main' ;;
8940 lf95*) # Lahey Fortran 8.1
8941 whole_archive_flag_spec=
8942 tmp_sharedflag='--shared' ;;
8943 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8944 tmp_sharedflag='-qmkshrobj'
8945 tmp_addflag= ;;
8946 nvcc*) # Cuda Compiler Driver 2.2
8947 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'
8948 compiler_needs_object=yes
8950 esac
8951 case `$CC -V 2>&1 | sed 5q` in
8952 *Sun\ C*) # Sun C 5.9
8953 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'
8954 compiler_needs_object=yes
8955 tmp_sharedflag='-G' ;;
8956 *Sun\ F*) # Sun Fortran 8.3
8957 tmp_sharedflag='-G' ;;
8958 esac
8959 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 if test "x$supports_anon_versioning" = xyes; then
8962 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8964 echo "local: *; };" >> $output_objdir/$libname.ver~
8965 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8968 case $cc_basename in
8969 xlf* | bgf* | bgxlf* | mpixlf*)
8970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8972 hardcode_libdir_flag_spec=
8973 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8974 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8975 if test "x$supports_anon_versioning" = xyes; then
8976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978 echo "local: *; };" >> $output_objdir/$libname.ver~
8979 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8982 esac
8983 else
8984 ld_shlibs=no
8988 netbsd*)
8989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8991 wlarc=
8992 else
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 solaris*)
8999 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9000 ld_shlibs=no
9001 cat <<_LT_EOF 1>&2
9003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9004 *** create shared libraries on Solaris systems. Therefore, libtool
9005 *** is disabling shared libraries support. We urge you to upgrade GNU
9006 *** binutils to release 2.9.1 or newer. Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9010 _LT_EOF
9011 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 else
9015 ld_shlibs=no
9019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9020 case `$LD -v 2>&1` in
9021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9022 ld_shlibs=no
9023 cat <<_LT_EOF 1>&2
9025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9026 *** reliably create shared libraries on SCO systems. Therefore, libtool
9027 *** is disabling shared libraries support. We urge you to upgrade GNU
9028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9029 *** your PATH or compiler configuration so that the native linker is
9030 *** used, and then restart.
9032 _LT_EOF
9035 # For security reasons, it is highly recommended that you always
9036 # use absolute paths for naming shared libraries, and exclude the
9037 # DT_RUNPATH tag from executables and libraries. But doing so
9038 # requires that you compile everything twice, which is a pain.
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 else
9044 ld_shlibs=no
9047 esac
9050 sunos4*)
9051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9052 wlarc=
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 else
9062 ld_shlibs=no
9065 esac
9067 if test "$ld_shlibs" = no; then
9068 runpath_var=
9069 hardcode_libdir_flag_spec=
9070 export_dynamic_flag_spec=
9071 whole_archive_flag_spec=
9073 else
9074 # PORTME fill in a description of your system's linker (not GNU ld)
9075 case $host_os in
9076 aix3*)
9077 allow_undefined_flag=unsupported
9078 always_export_symbols=yes
9079 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'
9080 # Note: this linker hardcodes the directories in LIBPATH if there
9081 # are no directories specified by -L.
9082 hardcode_minus_L=yes
9083 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9084 # Neither direct hardcoding nor static linking is supported with a
9085 # broken collect2.
9086 hardcode_direct=unsupported
9090 aix[4-9]*)
9091 if test "$host_cpu" = ia64; then
9092 # On IA64, the linker does run time linking by default, so we don't
9093 # have to do anything special.
9094 aix_use_runtimelinking=no
9095 exp_sym_flag='-Bexport'
9096 no_entry_flag=""
9097 else
9098 # If we're using GNU nm, then we don't want the "-C" option.
9099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9100 # Also, AIX nm treats weak defined symbols like other global
9101 # defined symbols, whereas GNU nm marks them as "W".
9102 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9103 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'
9104 else
9105 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'
9107 aix_use_runtimelinking=no
9109 # Test if we are trying to use run time linking or normal
9110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9111 # need to do runtime linking.
9112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9113 for ld_flag in $LDFLAGS; do
9114 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9115 aix_use_runtimelinking=yes
9116 break
9118 done
9120 esac
9122 exp_sym_flag='-bexport'
9123 no_entry_flag='-bnoentry'
9126 # When large executables or shared objects are built, AIX ld can
9127 # have problems creating the table of contents. If linking a library
9128 # or program results in "error TOC overflow" add -mminimal-toc to
9129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9132 archive_cmds=''
9133 hardcode_direct=yes
9134 hardcode_direct_absolute=yes
9135 hardcode_libdir_separator=':'
9136 link_all_deplibs=yes
9137 file_list_spec='${wl}-f,'
9139 if test "$GCC" = yes; then
9140 case $host_os in aix4.[012]|aix4.[012].*)
9141 # We only want to do this on AIX 4.2 and lower, the check
9142 # below for broken collect2 doesn't work under 4.3+
9143 collect2name=`${CC} -print-prog-name=collect2`
9144 if test -f "$collect2name" &&
9145 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9146 then
9147 # We have reworked collect2
9149 else
9150 # We have old collect2
9151 hardcode_direct=unsupported
9152 # It fails to find uninstalled libraries when the uninstalled
9153 # path is not listed in the libpath. Setting hardcode_minus_L
9154 # to unsupported forces relinking
9155 hardcode_minus_L=yes
9156 hardcode_libdir_flag_spec='-L$libdir'
9157 hardcode_libdir_separator=
9160 esac
9161 shared_flag='-shared'
9162 if test "$aix_use_runtimelinking" = yes; then
9163 shared_flag="$shared_flag "'${wl}-G'
9165 else
9166 # not using gcc
9167 if test "$host_cpu" = ia64; then
9168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9169 # chokes on -Wl,-G. The following line is correct:
9170 shared_flag='-G'
9171 else
9172 if test "$aix_use_runtimelinking" = yes; then
9173 shared_flag='${wl}-G'
9174 else
9175 shared_flag='${wl}-bM:SRE'
9180 export_dynamic_flag_spec='${wl}-bexpall'
9181 # It seems that -bexpall does not export symbols beginning with
9182 # underscore (_), so it is better to generate a list of symbols to export.
9183 always_export_symbols=yes
9184 if test "$aix_use_runtimelinking" = yes; then
9185 # Warning - without using the other runtime loading flags (-brtl),
9186 # -berok will link without error, but may produce a broken library.
9187 allow_undefined_flag='-berok'
9188 # Determine the default libpath from the value encoded in an
9189 # empty executable.
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9194 main ()
9198 return 0;
9200 _ACEOF
9201 if ac_fn_c_try_link "$LINENO"; then :
9203 lt_aix_libpath_sed='
9204 /Import File Strings/,/^$/ {
9205 /^0/ {
9206 s/^0 *\(.*\)$/\1/
9210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211 # Check for a 64-bit object if we didn't find anything.
9212 if test -z "$aix_libpath"; then
9213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216 rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9221 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"
9222 else
9223 if test "$host_cpu" = ia64; then
9224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9225 allow_undefined_flag="-z nodefs"
9226 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"
9227 else
9228 # Determine the default libpath from the value encoded in an
9229 # empty executable.
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9234 main ()
9238 return 0;
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9243 lt_aix_libpath_sed='
9244 /Import File Strings/,/^$/ {
9245 /^0/ {
9246 s/^0 *\(.*\)$/\1/
9250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9251 # Check for a 64-bit object if we didn't find anything.
9252 if test -z "$aix_libpath"; then
9253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9261 # Warning - without using the other run time loading flags,
9262 # -berok will link without error, but may produce a broken library.
9263 no_undefined_flag=' ${wl}-bernotok'
9264 allow_undefined_flag=' ${wl}-berok'
9265 if test "$with_gnu_ld" = yes; then
9266 # We only use this code for GNU lds that support --whole-archive.
9267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9268 else
9269 # Exported symbols can be pulled into shared objects from archives
9270 whole_archive_flag_spec='$convenience'
9272 archive_cmds_need_lc=yes
9273 # This is similar to how AIX traditionally builds its shared libraries.
9274 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'
9279 amigaos*)
9280 case $host_cpu in
9281 powerpc)
9282 # see comment about AmigaOS4 .so support
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds=''
9286 m68k)
9287 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)'
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_minus_L=yes
9291 esac
9294 bsdi[45]*)
9295 export_dynamic_flag_spec=-rdynamic
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 # When not using gcc, we currently assume that we are using
9300 # Microsoft Visual C++.
9301 # hardcode_libdir_flag_spec is actually meaningless, as there is
9302 # no search path for DLLs.
9303 hardcode_libdir_flag_spec=' '
9304 allow_undefined_flag=unsupported
9305 # Tell ltmain to make .lib files, not .a files.
9306 libext=lib
9307 # Tell ltmain to make .dll files, not .so files.
9308 shrext_cmds=".dll"
9309 # FIXME: Setting linknames here is a bad hack.
9310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9311 # The linker will automatically build a .lib file if we build a DLL.
9312 old_archive_from_new_cmds='true'
9313 # FIXME: Should let the user specify the lib program.
9314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9315 fix_srcfile_path='`cygpath -w "$srcfile"`'
9316 enable_shared_with_static_runtimes=yes
9319 darwin* | rhapsody*)
9322 archive_cmds_need_lc=no
9323 hardcode_direct=no
9324 hardcode_automatic=yes
9325 hardcode_shlibpath_var=unsupported
9326 if test "$lt_cv_ld_force_load" = "yes"; then
9327 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\"`'
9328 else
9329 whole_archive_flag_spec=''
9331 link_all_deplibs=yes
9332 allow_undefined_flag="$_lt_dar_allow_undefined"
9333 case $cc_basename in
9334 ifort*) _lt_dar_can_shared=yes ;;
9335 *) _lt_dar_can_shared=$GCC ;;
9336 esac
9337 if test "$_lt_dar_can_shared" = "yes"; then
9338 output_verbose_link_cmd=func_echo_all
9339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9341 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}"
9342 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}"
9344 else
9345 ld_shlibs=no
9350 dgux*)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 hardcode_shlibpath_var=no
9356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9357 # support. Future versions do this automatically, but an explicit c++rt0.o
9358 # does not break anything, and helps significantly (at the cost of a little
9359 # extra space).
9360 freebsd2.2*)
9361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9362 hardcode_libdir_flag_spec='-R$libdir'
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9368 freebsd2.*)
9369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_direct=yes
9371 hardcode_minus_L=yes
9372 hardcode_shlibpath_var=no
9375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9376 freebsd* | dragonfly*)
9377 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9378 hardcode_libdir_flag_spec='-R$libdir'
9379 hardcode_direct=yes
9380 hardcode_shlibpath_var=no
9383 hpux9*)
9384 if test "$GCC" = yes; then
9385 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'
9386 else
9387 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'
9389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9390 hardcode_libdir_separator=:
9391 hardcode_direct=yes
9393 # hardcode_minus_L: Not really in the search PATH,
9394 # but as the default location of the library.
9395 hardcode_minus_L=yes
9396 export_dynamic_flag_spec='${wl}-E'
9399 hpux10*)
9400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402 else
9403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9405 if test "$with_gnu_ld" = no; then
9406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407 hardcode_libdir_flag_spec_ld='+b $libdir'
9408 hardcode_libdir_separator=:
9409 hardcode_direct=yes
9410 hardcode_direct_absolute=yes
9411 export_dynamic_flag_spec='${wl}-E'
9412 # hardcode_minus_L: Not really in the search PATH,
9413 # but as the default location of the library.
9414 hardcode_minus_L=yes
9418 hpux11*)
9419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9420 case $host_cpu in
9421 hppa*64*)
9422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 ia64*)
9425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9430 esac
9431 else
9432 case $host_cpu in
9433 hppa*64*)
9434 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 ia64*)
9437 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441 # Older versions of the 11.00 compiler do not understand -b yet
9442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9444 $as_echo_n "checking if $CC understands -b... " >&6; }
9445 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 lt_cv_prog_compiler__b=no
9449 save_LDFLAGS="$LDFLAGS"
9450 LDFLAGS="$LDFLAGS -b"
9451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9453 # The linker can only warn and ignore the option if not recognized
9454 # So say no if there are warnings
9455 if test -s conftest.err; then
9456 # Append any errors to the config.log.
9457 cat conftest.err 1>&5
9458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9460 if diff conftest.exp conftest.er2 >/dev/null; then
9461 lt_cv_prog_compiler__b=yes
9463 else
9464 lt_cv_prog_compiler__b=yes
9467 $RM -r conftest*
9468 LDFLAGS="$save_LDFLAGS"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9472 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9474 if test x"$lt_cv_prog_compiler__b" = xyes; then
9475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476 else
9477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9481 esac
9483 if test "$with_gnu_ld" = no; then
9484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485 hardcode_libdir_separator=:
9487 case $host_cpu in
9488 hppa*64*|ia64*)
9489 hardcode_direct=no
9490 hardcode_shlibpath_var=no
9493 hardcode_direct=yes
9494 hardcode_direct_absolute=yes
9495 export_dynamic_flag_spec='${wl}-E'
9497 # hardcode_minus_L: Not really in the search PATH,
9498 # but as the default location of the library.
9499 hardcode_minus_L=yes
9501 esac
9505 irix5* | irix6* | nonstopux*)
9506 if test "$GCC" = yes; then
9507 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'
9508 # Try to use the -exported_symbol ld option, if it does not
9509 # work, assume that -exports_file does not work either and
9510 # implicitly export all symbols.
9511 save_LDFLAGS="$LDFLAGS"
9512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int foo(void) {}
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518 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'
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 LDFLAGS="$save_LDFLAGS"
9524 else
9525 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'
9526 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'
9528 archive_cmds_need_lc='no'
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 hardcode_libdir_separator=:
9531 inherit_rpath=yes
9532 link_all_deplibs=yes
9535 netbsd*)
9536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9538 else
9539 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9541 hardcode_libdir_flag_spec='-R$libdir'
9542 hardcode_direct=yes
9543 hardcode_shlibpath_var=no
9546 newsos6)
9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_direct=yes
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 hardcode_libdir_separator=:
9551 hardcode_shlibpath_var=no
9554 *nto* | *qnx*)
9557 openbsd*)
9558 if test -f /usr/libexec/ld.so; then
9559 hardcode_direct=yes
9560 hardcode_shlibpath_var=no
9561 hardcode_direct_absolute=yes
9562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9566 export_dynamic_flag_spec='${wl}-E'
9567 else
9568 case $host_os in
9569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9571 hardcode_libdir_flag_spec='-R$libdir'
9574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577 esac
9579 else
9580 ld_shlibs=no
9584 os2*)
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_minus_L=yes
9587 allow_undefined_flag=unsupported
9588 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'
9589 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 osf3*)
9593 if test "$GCC" = yes; then
9594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595 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'
9596 else
9597 allow_undefined_flag=' -expect_unresolved \*'
9598 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'
9600 archive_cmds_need_lc='no'
9601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602 hardcode_libdir_separator=:
9605 osf4* | osf5*) # as osf3* with the addition of -msym flag
9606 if test "$GCC" = yes; then
9607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9608 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'
9609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610 else
9611 allow_undefined_flag=' -expect_unresolved \*'
9612 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'
9613 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~
9614 $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'
9616 # Both c and cxx compiler support -rpath directly
9617 hardcode_libdir_flag_spec='-rpath $libdir'
9619 archive_cmds_need_lc='no'
9620 hardcode_libdir_separator=:
9623 solaris*)
9624 no_undefined_flag=' -z defs'
9625 if test "$GCC" = yes; then
9626 wlarc='${wl}'
9627 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9630 else
9631 case `$CC -V 2>&1` in
9632 *"Compilers 5.0"*)
9633 wlarc=''
9634 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9636 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 wlarc='${wl}'
9640 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9642 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9644 esac
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_shlibpath_var=no
9648 case $host_os in
9649 solaris2.[0-5] | solaris2.[0-5].*) ;;
9651 # The compiler driver will combine and reorder linker options,
9652 # but understands `-z linker_flag'. GCC discards it without `$wl',
9653 # but is careful enough not to reorder.
9654 # Supported since Solaris 2.6 (maybe 2.5.1?)
9655 if test "$GCC" = yes; then
9656 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9657 else
9658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 esac
9662 link_all_deplibs=yes
9665 sunos4*)
9666 if test "x$host_vendor" = xsequent; then
9667 # Use $CC to link under sequent, because it throws in some extra .o
9668 # files that make .init and .fini sections work.
9669 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_direct=yes
9675 hardcode_minus_L=yes
9676 hardcode_shlibpath_var=no
9679 sysv4)
9680 case $host_vendor in
9681 sni)
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_direct=yes # is this really true???
9685 siemens)
9686 ## LD is ld it makes a PLAMLIB
9687 ## CC just makes a GrossModule.
9688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9689 reload_cmds='$CC -r -o $output$reload_objs'
9690 hardcode_direct=no
9692 motorola)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9696 esac
9697 runpath_var='LD_RUN_PATH'
9698 hardcode_shlibpath_var=no
9701 sysv4.3*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 export_dynamic_flag_spec='-Bexport'
9707 sysv4*MP*)
9708 if test -d /usr/nec; then
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_shlibpath_var=no
9711 runpath_var=LD_RUN_PATH
9712 hardcode_runpath_var=yes
9713 ld_shlibs=yes
9717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9718 no_undefined_flag='${wl}-z,text'
9719 archive_cmds_need_lc=no
9720 hardcode_shlibpath_var=no
9721 runpath_var='LD_RUN_PATH'
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 sysv5* | sco3.2v5* | sco5v6*)
9733 # Note: We can NOT use -z defs as we might desire, because we do not
9734 # link with -lc, and that would cause any symbols used from libc to
9735 # always be unresolved, which means just about no library would
9736 # ever link correctly. If we're not using GNU ld we use -z text
9737 # though, which does catch some bad symbols but isn't as heavy-handed
9738 # as -z defs.
9739 no_undefined_flag='${wl}-z,text'
9740 allow_undefined_flag='${wl}-z,nodefs'
9741 archive_cmds_need_lc=no
9742 hardcode_shlibpath_var=no
9743 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9744 hardcode_libdir_separator=':'
9745 link_all_deplibs=yes
9746 export_dynamic_flag_spec='${wl}-Bexport'
9747 runpath_var='LD_RUN_PATH'
9749 if test "$GCC" = yes; then
9750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 uts4*)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_shlibpath_var=no
9765 ld_shlibs=no
9767 esac
9769 if test x$host_vendor = xsni; then
9770 case $host in
9771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9772 export_dynamic_flag_spec='${wl}-Blargedynsym'
9774 esac
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9779 $as_echo "$ld_shlibs" >&6; }
9780 test "$ld_shlibs" = no && can_build_shared=no
9782 with_gnu_ld=$with_gnu_ld
9799 # Do we need to explicitly link libc?
9801 case "x$archive_cmds_need_lc" in
9802 x|xyes)
9803 # Assume -lc should be added
9804 archive_cmds_need_lc=yes
9806 if test "$enable_shared" = yes && test "$GCC" = yes; then
9807 case $archive_cmds in
9808 *'~'*)
9809 # FIXME: we may have to deal with multi-command sequences.
9811 '$CC '*)
9812 # Test whether the compiler implicitly links with -lc since on some
9813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9814 # to ld, don't add -lc before -lgcc.
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9816 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9817 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 $RM conftest*
9821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9824 (eval $ac_compile) 2>&5
9825 ac_status=$?
9826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9827 test $ac_status = 0; } 2>conftest.err; then
9828 soname=conftest
9829 lib=conftest
9830 libobjs=conftest.$ac_objext
9831 deplibs=
9832 wl=$lt_prog_compiler_wl
9833 pic_flag=$lt_prog_compiler_pic
9834 compiler_flags=-v
9835 linker_flags=-v
9836 verstring=
9837 output_objdir=.
9838 libname=conftest
9839 lt_save_allow_undefined_flag=$allow_undefined_flag
9840 allow_undefined_flag=
9841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9842 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9843 ac_status=$?
9844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845 test $ac_status = 0; }
9846 then
9847 lt_cv_archive_cmds_need_lc=no
9848 else
9849 lt_cv_archive_cmds_need_lc=yes
9851 allow_undefined_flag=$lt_save_allow_undefined_flag
9852 else
9853 cat conftest.err 1>&5
9855 $RM conftest*
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9859 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9860 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9862 esac
9865 esac
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10024 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10026 if test "$GCC" = yes; then
10027 case $host_os in
10028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10029 *) lt_awk_arg="/^libraries:/" ;;
10030 esac
10031 case $host_os in
10032 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10033 *) lt_sed_strip_eq="s,=/,/,g" ;;
10034 esac
10035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10036 case $lt_search_path_spec in
10037 *\;*)
10038 # if the path contains ";" then we assume it to be the separator
10039 # otherwise default to the standard path separator (i.e. ":") - it is
10040 # assumed that no part of a normal pathname contains ";" but that should
10041 # okay in the real world where ";" in dirpaths is itself problematic.
10042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10047 esac
10048 # Ok, now we have the path, separated by spaces, we can step through it
10049 # and add multilib dir if necessary.
10050 lt_tmp_lt_search_path_spec=
10051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10052 for lt_sys_path in $lt_search_path_spec; do
10053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10055 else
10056 test -d "$lt_sys_path" && \
10057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10059 done
10060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10061 BEGIN {RS=" "; FS="/|\n";} {
10062 lt_foo="";
10063 lt_count=0;
10064 for (lt_i = NF; lt_i > 0; lt_i--) {
10065 if ($lt_i != "" && $lt_i != ".") {
10066 if ($lt_i == "..") {
10067 lt_count++;
10068 } else {
10069 if (lt_count == 0) {
10070 lt_foo="/" $lt_i lt_foo;
10071 } else {
10072 lt_count--;
10077 if (lt_foo != "") { lt_freq[lt_foo]++; }
10078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10080 # AWK program above erroneously prepends '/' to C:/dos/paths
10081 # for these hosts.
10082 case $host_os in
10083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10084 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10085 esac
10086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10087 else
10088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10090 library_names_spec=
10091 libname_spec='lib$name'
10092 soname_spec=
10093 shrext_cmds=".so"
10094 postinstall_cmds=
10095 postuninstall_cmds=
10096 finish_cmds=
10097 finish_eval=
10098 shlibpath_var=
10099 shlibpath_overrides_runpath=unknown
10100 version_type=none
10101 dynamic_linker="$host_os ld.so"
10102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10103 need_lib_prefix=unknown
10104 hardcode_into_libs=no
10106 # when you set need_version to no, make sure it does not cause -set_version
10107 # flags to be left without arguments
10108 need_version=unknown
10110 case $host_os in
10111 aix3*)
10112 version_type=linux
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10114 shlibpath_var=LIBPATH
10116 # AIX 3 has no versioning support, so we append a major version to the name.
10117 soname_spec='${libname}${release}${shared_ext}$major'
10120 aix[4-9]*)
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 hardcode_into_libs=yes
10125 if test "$host_cpu" = ia64; then
10126 # AIX 5 supports IA64
10127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 else
10130 # With GCC up to 2.95.x, collect2 would create an import file
10131 # for dependence libraries. The import file would start with
10132 # the line `#! .'. This would cause the generated library to
10133 # depend on `.', always an invalid library. This was fixed in
10134 # development snapshots of GCC prior to 3.0.
10135 case $host_os in
10136 aix4 | aix4.[01] | aix4.[01].*)
10137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10138 echo ' yes '
10139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10141 else
10142 can_build_shared=no
10145 esac
10146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10147 # soname into executable. Probably we can add versioning support to
10148 # collect2, so additional links can be useful in future.
10149 if test "$aix_use_runtimelinking" = yes; then
10150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10151 # instead of lib<name>.a to let people know that these are not
10152 # typical AIX shared libraries.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 else
10155 # We preserve .a as extension for shared libraries through AIX4.2
10156 # and later when we are not doing run time linking.
10157 library_names_spec='${libname}${release}.a $libname.a'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LIBPATH
10164 amigaos*)
10165 case $host_cpu in
10166 powerpc)
10167 # Since July 2007 AmigaOS4 officially supports .so libraries.
10168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 m68k)
10172 library_names_spec='$libname.ixlibrary $libname.a'
10173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10174 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'
10176 esac
10179 beos*)
10180 library_names_spec='${libname}${shared_ext}'
10181 dynamic_linker="$host_os ld.so"
10182 shlibpath_var=LIBRARY_PATH
10185 bsdi[45]*)
10186 version_type=linux
10187 need_version=no
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10194 # the default ld.so.conf also contains /usr/contrib/lib and
10195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10196 # libtool to hard-code these into programs
10199 cygwin* | mingw* | pw32* | cegcc*)
10200 version_type=windows
10201 shrext_cmds=".dll"
10202 need_version=no
10203 need_lib_prefix=no
10205 case $GCC,$host_os in
10206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10207 library_names_spec='$libname.dll.a'
10208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209 postinstall_cmds='base_file=`basename \${file}`~
10210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10211 dldir=$destdir/`dirname \$dlpath`~
10212 test -d \$dldir || mkdir -p \$dldir~
10213 $install_prog $dir/$dlname \$dldir/$dlname~
10214 chmod a+x \$dldir/$dlname~
10215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10219 dlpath=$dir/\$dldll~
10220 $RM \$dlpath'
10221 shlibpath_overrides_runpath=yes
10223 case $host_os in
10224 cygwin*)
10225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10230 mingw* | cegcc*)
10231 # MinGW DLLs use traditional 'lib' prefix
10232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 pw32*)
10235 # pw32 DLLs use 'pw' prefix rather than 'lib'
10236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10238 esac
10242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10244 esac
10245 dynamic_linker='Win32 ld.exe'
10246 # FIXME: first we should search . and the directory the executable is in
10247 shlibpath_var=PATH
10250 darwin* | rhapsody*)
10251 dynamic_linker="$host_os dyld"
10252 version_type=darwin
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10256 soname_spec='${libname}${release}${major}$shared_ext'
10257 shlibpath_overrides_runpath=yes
10258 shlibpath_var=DYLD_LIBRARY_PATH
10259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 dgux*)
10266 version_type=linux
10267 need_lib_prefix=no
10268 need_version=no
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10274 freebsd* | dragonfly*)
10275 # DragonFly does not have aout. When/if they implement a new
10276 # versioning mechanism, adjust this.
10277 if test -x /usr/bin/objformat; then
10278 objformat=`/usr/bin/objformat`
10279 else
10280 case $host_os in
10281 freebsd[23].*) objformat=aout ;;
10282 *) objformat=elf ;;
10283 esac
10285 version_type=freebsd-$objformat
10286 case $version_type in
10287 freebsd-elf*)
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10289 need_version=no
10290 need_lib_prefix=no
10292 freebsd-*)
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10294 need_version=yes
10296 esac
10297 shlibpath_var=LD_LIBRARY_PATH
10298 case $host_os in
10299 freebsd2.*)
10300 shlibpath_overrides_runpath=yes
10302 freebsd3.[01]* | freebsdelf3.[01]*)
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10311 *) # from 4.6 on, and DragonFly
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10315 esac
10318 gnu*)
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 hardcode_into_libs=yes
10328 haiku*)
10329 version_type=linux
10330 need_lib_prefix=no
10331 need_version=no
10332 dynamic_linker="$host_os runtime_loader"
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes
10337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10338 hardcode_into_libs=yes
10341 hpux9* | hpux10* | hpux11*)
10342 # Give a soname corresponding to the major version so that dld.sl refuses to
10343 # link against other versions.
10344 version_type=sunos
10345 need_lib_prefix=no
10346 need_version=no
10347 case $host_cpu in
10348 ia64*)
10349 shrext_cmds='.so'
10350 hardcode_into_libs=yes
10351 dynamic_linker="$host_os dld.so"
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 if test "X$HPUX_IA64_MODE" = X32; then
10357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10358 else
10359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10363 hppa*64*)
10364 shrext_cmds='.sl'
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.sl"
10367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10375 shrext_cmds='.sl'
10376 dynamic_linker="$host_os dld.sl"
10377 shlibpath_var=SHLIB_PATH
10378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10382 esac
10383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10384 postinstall_cmds='chmod 555 $lib'
10385 # or fails outright, so override atomically:
10386 install_override_mode=555
10389 interix[3-9]*)
10390 version_type=linux
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=no
10398 hardcode_into_libs=yes
10401 irix5* | irix6* | nonstopux*)
10402 case $host_os in
10403 nonstopux*) version_type=nonstopux ;;
10405 if test "$lt_cv_prog_gnu_ld" = yes; then
10406 version_type=linux
10407 else
10408 version_type=irix
10409 fi ;;
10410 esac
10411 need_lib_prefix=no
10412 need_version=no
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 case $host_os in
10416 irix5* | nonstopux*)
10417 libsuff= shlibsuff=
10420 case $LD in # libtool.m4 will add one of these switches to LD
10421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10422 libsuff= shlibsuff= libmagic=32-bit;;
10423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10424 libsuff=32 shlibsuff=N32 libmagic=N32;;
10425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10427 *) libsuff= shlibsuff= libmagic=never-match;;
10428 esac
10430 esac
10431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10432 shlibpath_overrides_runpath=no
10433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10435 hardcode_into_libs=yes
10438 # No shared lib support for Linux oldld, aout, or coff.
10439 linux*oldld* | linux*aout* | linux*coff*)
10440 dynamic_linker=no
10443 # This must be Linux ELF.
10444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10445 version_type=linux
10446 need_lib_prefix=no
10447 need_version=no
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=no
10454 # Some binutils ld are patched to set DT_RUNPATH
10455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 lt_cv_shlibpath_overrides_runpath=no
10459 save_LDFLAGS=$LDFLAGS
10460 save_libdir=$libdir
10461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10467 main ()
10471 return 0;
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10476 lt_cv_shlibpath_overrides_runpath=yes
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LDFLAGS=$save_LDFLAGS
10482 libdir=$save_libdir
10486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10488 # This implies no fast_install, which is unacceptable.
10489 # Some rework will be needed to allow for fast_install
10490 # before this can be enabled.
10491 hardcode_into_libs=yes
10493 # Append ld.so.conf contents to the search path
10494 if test -f /etc/ld.so.conf; then
10495 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' ' '`
10496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10499 # We used to test for /lib/ld.so.1 and disable shared libraries on
10500 # powerpc, because MkLinux only supported shared libraries with the
10501 # GNU dynamic linker. Since this was broken with cross compilers,
10502 # most powerpc-linux boxes support dynamic linking these days and
10503 # people can always --disable-shared, the test was removed, and we
10504 # assume the GNU/Linux dynamic linker is in use.
10505 dynamic_linker='GNU/Linux ld.so'
10508 netbsd*)
10509 version_type=sunos
10510 need_lib_prefix=no
10511 need_version=no
10512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10515 dynamic_linker='NetBSD (a.out) ld.so'
10516 else
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 dynamic_linker='NetBSD ld.elf_so'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10526 newsos6)
10527 version_type=linux
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=yes
10533 *nto* | *qnx*)
10534 version_type=qnx
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=no
10541 hardcode_into_libs=yes
10542 dynamic_linker='ldqnx.so'
10545 openbsd*)
10546 version_type=sunos
10547 sys_lib_dlsearch_path_spec="/usr/lib"
10548 need_lib_prefix=no
10549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10550 case $host_os in
10551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10552 *) need_version=no ;;
10553 esac
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10558 case $host_os in
10559 openbsd2.[89] | openbsd2.[89].*)
10560 shlibpath_overrides_runpath=no
10563 shlibpath_overrides_runpath=yes
10565 esac
10566 else
10567 shlibpath_overrides_runpath=yes
10571 os2*)
10572 libname_spec='$name'
10573 shrext_cmds=".dll"
10574 need_lib_prefix=no
10575 library_names_spec='$libname${shared_ext} $libname.a'
10576 dynamic_linker='OS/2 ld.exe'
10577 shlibpath_var=LIBPATH
10580 osf3* | osf4* | osf5*)
10581 version_type=osf
10582 need_lib_prefix=no
10583 need_version=no
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10591 rdos*)
10592 dynamic_linker=no
10595 solaris*)
10596 version_type=linux
10597 need_lib_prefix=no
10598 need_version=no
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 shlibpath_overrides_runpath=yes
10603 hardcode_into_libs=yes
10604 # ldd complains unless libraries are executable
10605 postinstall_cmds='chmod +x $lib'
10608 sunos4*)
10609 version_type=sunos
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes
10614 if test "$with_gnu_ld" = yes; then
10615 need_lib_prefix=no
10617 need_version=yes
10620 sysv4 | sysv4.3*)
10621 version_type=linux
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 case $host_vendor in
10626 sni)
10627 shlibpath_overrides_runpath=no
10628 need_lib_prefix=no
10629 runpath_var=LD_RUN_PATH
10631 siemens)
10632 need_lib_prefix=no
10634 motorola)
10635 need_lib_prefix=no
10636 need_version=no
10637 shlibpath_overrides_runpath=no
10638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10640 esac
10643 sysv4*MP*)
10644 if test -d /usr/nec ;then
10645 version_type=linux
10646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10647 soname_spec='$libname${shared_ext}.$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10653 version_type=freebsd-elf
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 if test "$with_gnu_ld" = yes; then
10662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10663 else
10664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10665 case $host_os in
10666 sco3.2v5*)
10667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10669 esac
10671 sys_lib_dlsearch_path_spec='/usr/lib'
10674 tpf*)
10675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10676 version_type=linux
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=no
10682 hardcode_into_libs=yes
10685 uts4*)
10686 version_type=linux
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 shlibpath_var=LD_LIBRARY_PATH
10693 dynamic_linker=no
10695 esac
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10697 $as_echo "$dynamic_linker" >&6; }
10698 test "$dynamic_linker" = no && can_build_shared=no
10700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10701 if test "$GCC" = yes; then
10702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10706 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10709 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10805 hardcode_action=
10806 if test -n "$hardcode_libdir_flag_spec" ||
10807 test -n "$runpath_var" ||
10808 test "X$hardcode_automatic" = "Xyes" ; then
10810 # We can hardcode non-existent directories.
10811 if test "$hardcode_direct" != no &&
10812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10813 # have to relink, otherwise we might link with an installed library
10814 # when we should be linking with a yet-to-be-installed one
10815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10816 test "$hardcode_minus_L" != no; then
10817 # Linking always hardcodes the temporary library directory.
10818 hardcode_action=relink
10819 else
10820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10821 hardcode_action=immediate
10823 else
10824 # We cannot hardcode anything, or else we can only hardcode existing
10825 # directories.
10826 hardcode_action=unsupported
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10829 $as_echo "$hardcode_action" >&6; }
10831 if test "$hardcode_action" = relink ||
10832 test "$inherit_rpath" = yes; then
10833 # Fast installation is not supported
10834 enable_fast_install=no
10835 elif test "$shlibpath_overrides_runpath" = yes ||
10836 test "$enable_shared" = no; then
10837 # Fast installation is not necessary
10838 enable_fast_install=needless
10846 if test "x$enable_dlopen" != xyes; then
10847 enable_dlopen=unknown
10848 enable_dlopen_self=unknown
10849 enable_dlopen_self_static=unknown
10850 else
10851 lt_cv_dlopen=no
10852 lt_cv_dlopen_libs=
10854 case $host_os in
10855 beos*)
10856 lt_cv_dlopen="load_add_on"
10857 lt_cv_dlopen_libs=
10858 lt_cv_dlopen_self=yes
10861 mingw* | pw32* | cegcc*)
10862 lt_cv_dlopen="LoadLibrary"
10863 lt_cv_dlopen_libs=
10866 cygwin*)
10867 lt_cv_dlopen="dlopen"
10868 lt_cv_dlopen_libs=
10871 darwin*)
10872 # if libdl is installed we need to link against it
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-ldl $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char dlopen ();
10891 main ()
10893 return dlopen ();
10895 return 0;
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 ac_cv_lib_dl_dlopen=yes
10900 else
10901 ac_cv_lib_dl_dlopen=no
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10911 else
10913 lt_cv_dlopen="dyld"
10914 lt_cv_dlopen_libs=
10915 lt_cv_dlopen_self=yes
10922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10923 if test "x$ac_cv_func_shl_load" = x""yes; then :
10924 lt_cv_dlopen="shl_load"
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-ldld $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char shl_load ();
10944 main ()
10946 return shl_load ();
10948 return 0;
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_dld_shl_load=yes
10953 else
10954 ac_cv_lib_dld_shl_load=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10964 else
10965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10966 if test "x$ac_cv_func_dlopen" = x""yes; then :
10967 lt_cv_dlopen="dlopen"
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-ldl $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10987 main ()
10989 return dlopen ();
10991 return 0;
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_dl_dlopen=yes
10996 else
10997 ac_cv_lib_dl_dlopen=no
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11011 $as_echo_n "(cached) " >&6
11012 else
11013 ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-lsvld $LIBS"
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char dlopen ();
11026 main ()
11028 return dlopen ();
11030 return 0;
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034 ac_cv_lib_svld_dlopen=yes
11035 else
11036 ac_cv_lib_svld_dlopen=no
11038 rm -f core conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-ldld $LIBS"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char dld_link ();
11065 main ()
11067 return dld_link ();
11069 return 0;
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 ac_cv_lib_dld_dld_link=yes
11074 else
11075 ac_cv_lib_dld_dld_link=no
11077 rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11103 esac
11105 if test "x$lt_cv_dlopen" != xno; then
11106 enable_dlopen=yes
11107 else
11108 enable_dlopen=no
11111 case $lt_cv_dlopen in
11112 dlopen)
11113 save_CPPFLAGS="$CPPFLAGS"
11114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11116 save_LDFLAGS="$LDFLAGS"
11117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11119 save_LIBS="$LIBS"
11120 LIBS="$lt_cv_dlopen_libs $LIBS"
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11124 if test "${lt_cv_dlopen_self+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test "$cross_compiling" = yes; then :
11128 lt_cv_dlopen_self=cross
11129 else
11130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11131 lt_status=$lt_dlunknown
11132 cat > conftest.$ac_ext <<_LT_EOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11136 #if HAVE_DLFCN_H
11137 #include <dlfcn.h>
11138 #endif
11140 #include <stdio.h>
11142 #ifdef RTLD_GLOBAL
11143 # define LT_DLGLOBAL RTLD_GLOBAL
11144 #else
11145 # ifdef DL_GLOBAL
11146 # define LT_DLGLOBAL DL_GLOBAL
11147 # else
11148 # define LT_DLGLOBAL 0
11149 # endif
11150 #endif
11152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11153 find out it does not work in some platform. */
11154 #ifndef LT_DLLAZY_OR_NOW
11155 # ifdef RTLD_LAZY
11156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11157 # else
11158 # ifdef DL_LAZY
11159 # define LT_DLLAZY_OR_NOW DL_LAZY
11160 # else
11161 # ifdef RTLD_NOW
11162 # define LT_DLLAZY_OR_NOW RTLD_NOW
11163 # else
11164 # ifdef DL_NOW
11165 # define LT_DLLAZY_OR_NOW DL_NOW
11166 # else
11167 # define LT_DLLAZY_OR_NOW 0
11168 # endif
11169 # endif
11170 # endif
11171 # endif
11172 #endif
11174 /* When -fvisbility=hidden is used, assume the code has been annotated
11175 correspondingly for the symbols needed. */
11176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11177 void fnord () __attribute__((visibility("default")));
11178 #endif
11180 void fnord () { int i=42; }
11181 int main ()
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11186 if (self)
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11189 else
11191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192 else puts (dlerror ());
11194 /* dlclose (self); */
11196 else
11197 puts (dlerror ());
11199 return status;
11201 _LT_EOF
11202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11203 (eval $ac_link) 2>&5
11204 ac_status=$?
11205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11207 (./conftest; exit; ) >&5 2>/dev/null
11208 lt_status=$?
11209 case x$lt_status in
11210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11213 esac
11214 else :
11215 # compilation failed
11216 lt_cv_dlopen_self=no
11219 rm -fr conftest*
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11224 $as_echo "$lt_cv_dlopen_self" >&6; }
11226 if test "x$lt_cv_dlopen_self" = xyes; then
11227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test "$cross_compiling" = yes; then :
11234 lt_cv_dlopen_self_static=cross
11235 else
11236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11237 lt_status=$lt_dlunknown
11238 cat > conftest.$ac_ext <<_LT_EOF
11239 #line 11239 "configure"
11240 #include "confdefs.h"
11242 #if HAVE_DLFCN_H
11243 #include <dlfcn.h>
11244 #endif
11246 #include <stdio.h>
11248 #ifdef RTLD_GLOBAL
11249 # define LT_DLGLOBAL RTLD_GLOBAL
11250 #else
11251 # ifdef DL_GLOBAL
11252 # define LT_DLGLOBAL DL_GLOBAL
11253 # else
11254 # define LT_DLGLOBAL 0
11255 # endif
11256 #endif
11258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11259 find out it does not work in some platform. */
11260 #ifndef LT_DLLAZY_OR_NOW
11261 # ifdef RTLD_LAZY
11262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11263 # else
11264 # ifdef DL_LAZY
11265 # define LT_DLLAZY_OR_NOW DL_LAZY
11266 # else
11267 # ifdef RTLD_NOW
11268 # define LT_DLLAZY_OR_NOW RTLD_NOW
11269 # else
11270 # ifdef DL_NOW
11271 # define LT_DLLAZY_OR_NOW DL_NOW
11272 # else
11273 # define LT_DLLAZY_OR_NOW 0
11274 # endif
11275 # endif
11276 # endif
11277 # endif
11278 #endif
11280 /* When -fvisbility=hidden is used, assume the code has been annotated
11281 correspondingly for the symbols needed. */
11282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11283 void fnord () __attribute__((visibility("default")));
11284 #endif
11286 void fnord () { int i=42; }
11287 int main ()
11289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11290 int status = $lt_dlunknown;
11292 if (self)
11294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11295 else
11297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11298 else puts (dlerror ());
11300 /* dlclose (self); */
11302 else
11303 puts (dlerror ());
11305 return status;
11307 _LT_EOF
11308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self_static=no
11325 rm -fr conftest*
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11333 CPPFLAGS="$save_CPPFLAGS"
11334 LDFLAGS="$save_LDFLAGS"
11335 LIBS="$save_LIBS"
11337 esac
11339 case $lt_cv_dlopen_self in
11340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341 *) enable_dlopen_self=unknown ;;
11342 esac
11344 case $lt_cv_dlopen_self_static in
11345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346 *) enable_dlopen_self_static=unknown ;;
11347 esac
11366 striplib=
11367 old_striplib=
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 # FIXME - insert some real tests, host_os isn't really good enough
11377 case $host_os in
11378 darwin*)
11379 if test -n "$STRIP" ; then
11380 striplib="$STRIP -x"
11381 old_striplib="$STRIP -S"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383 $as_echo "yes" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11393 esac
11407 # Report which library types will actually be built
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11411 $as_echo "$can_build_shared" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11414 $as_echo_n "checking whether to build shared libraries... " >&6; }
11415 test "$can_build_shared" = "no" && enable_shared=no
11417 # On AIX, shared libraries and static libraries use the same namespace, and
11418 # are all built from PIC.
11419 case $host_os in
11420 aix3*)
11421 test "$enable_shared" = yes && enable_static=no
11422 if test -n "$RANLIB"; then
11423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424 postinstall_cmds='$RANLIB $lib'
11428 aix[4-9]*)
11429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430 test "$enable_shared" = yes && enable_static=no
11433 esac
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11435 $as_echo "$enable_shared" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11438 $as_echo_n "checking whether to build static libraries... " >&6; }
11439 # Make sure either enable_shared or enable_static is yes.
11440 test "$enable_shared" = yes || enable_static=yes
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11442 $as_echo "$enable_static" >&6; }
11448 ac_ext=c
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11454 CC="$lt_save_CC"
11468 # Source file extension for Go test sources.
11469 ac_ext=go
11471 # Object file extension for compiled Go test sources.
11472 objext=o
11473 objext_GO=$objext
11475 # Code to be used in simple compile tests
11476 lt_simple_compile_test_code="package main; func main() { }"
11478 # Code to be used in simple link tests
11479 lt_simple_link_test_code='package main; func main() { }'
11481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11488 # If no C compiler was specified, use CC.
11489 LTCC=${LTCC-"$CC"}
11491 # If no C compiler flags were specified, use CFLAGS.
11492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11494 # Allow CC to be a program name with arguments.
11495 compiler=$CC
11498 # save warnings/boilerplate of simple test code
11499 ac_outfile=conftest.$ac_objext
11500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11502 _lt_compiler_boilerplate=`cat conftest.err`
11503 $RM conftest*
11505 ac_outfile=conftest.$ac_objext
11506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508 _lt_linker_boilerplate=`cat conftest.err`
11509 $RM -r conftest*
11512 # Allow CC to be a program name with arguments.
11513 lt_save_CC="$CC"
11514 lt_save_GCC="$GCC"
11515 GCC=yes
11516 CC=${GOC-"gccgo"}
11517 compiler=$CC
11518 compiler_GO=$CC
11519 LD_GO="$LD"
11520 for cc_temp in $compiler""; do
11521 case $cc_temp in
11522 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11523 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11524 \-*) ;;
11525 *) break;;
11526 esac
11527 done
11528 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11531 # Go did not exist at the time GCC didn't implicitly link libc in.
11532 archive_cmds_need_lc_GO=no
11534 old_archive_cmds_GO=$old_archive_cmds
11536 ## CAVEAT EMPTOR:
11537 ## There is no encapsulation within the following macros, do not change
11538 ## the running order or otherwise move them around unless you know exactly
11539 ## what you are doing...
11540 if test -n "$compiler"; then
11542 lt_prog_compiler_no_builtin_flag_GO=
11544 if test "$GCC" = yes; then
11545 case $cc_basename in
11546 nvcc*)
11547 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11549 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11550 esac
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11553 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11554 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 lt_cv_prog_compiler_rtti_exceptions=no
11558 ac_outfile=conftest.$ac_objext
11559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11560 lt_compiler_flag="-fno-rtti -fno-exceptions"
11561 # Insert the option either (1) after the last *FLAGS variable, or
11562 # (2) before a word containing "conftest.", or (3) at the end.
11563 # Note that $ac_compile itself does not contain backslashes and begins
11564 # with a dollar sign (not a hyphen), so the echo should work correctly.
11565 # The option is referenced via a variable to avoid confusing sed.
11566 lt_compile=`echo "$ac_compile" | $SED \
11567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11569 -e 's:$: $lt_compiler_flag:'`
11570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11571 (eval "$lt_compile" 2>conftest.err)
11572 ac_status=$?
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 if (exit $ac_status) && test -s "$ac_outfile"; then
11576 # The compiler can only warn and ignore the option if not recognized
11577 # So say no if there are warnings other than the usual output.
11578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11581 lt_cv_prog_compiler_rtti_exceptions=yes
11584 $RM conftest*
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11588 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11590 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11591 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11592 else
11600 lt_prog_compiler_wl_GO=
11601 lt_prog_compiler_pic_GO=
11602 lt_prog_compiler_static_GO=
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11607 if test "$GCC" = yes; then
11608 lt_prog_compiler_wl_GO='-Wl,'
11609 lt_prog_compiler_static_GO='-static'
11611 case $host_os in
11612 aix*)
11613 # All AIX code is PIC.
11614 if test "$host_cpu" = ia64; then
11615 # AIX 5 now supports IA64 processor
11616 lt_prog_compiler_static_GO='-Bstatic'
11618 lt_prog_compiler_pic_GO='-fPIC'
11621 amigaos*)
11622 case $host_cpu in
11623 powerpc)
11624 # see comment about AmigaOS4 .so support
11625 lt_prog_compiler_pic_GO='-fPIC'
11627 m68k)
11628 # FIXME: we need at least 68020 code to build shared libraries, but
11629 # adding the `-m68020' flag to GCC prevents building anything better,
11630 # like `-m68040'.
11631 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11633 esac
11636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11637 # PIC is the default for these OSes.
11640 mingw* | cygwin* | pw32* | os2* | cegcc*)
11641 # This hack is so that the source file can tell whether it is being
11642 # built for inclusion in a dll (and should export symbols for example).
11643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11644 # (--disable-auto-import) libraries
11645 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11648 darwin* | rhapsody*)
11649 # PIC is the default on this platform
11650 # Common symbols not allowed in MH_DYLIB files
11651 lt_prog_compiler_pic_GO='-fno-common'
11654 haiku*)
11655 # PIC is the default for Haiku.
11656 # The "-static" flag exists, but is broken.
11657 lt_prog_compiler_static_GO=
11660 hpux*)
11661 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11662 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11663 # sets the default TLS model and affects inlining.
11664 case $host_cpu in
11665 hppa*64*)
11666 # +Z the default
11669 lt_prog_compiler_pic_GO='-fPIC'
11671 esac
11674 interix[3-9]*)
11675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11676 # Instead, we relocate shared libraries at runtime.
11679 msdosdjgpp*)
11680 # Just because we use GCC doesn't mean we suddenly get shared libraries
11681 # on systems that don't support them.
11682 lt_prog_compiler_can_build_shared_GO=no
11683 enable_shared=no
11686 *nto* | *qnx*)
11687 # QNX uses GNU C++, but need to define -shared option too, otherwise
11688 # it will coredump.
11689 lt_prog_compiler_pic_GO='-fPIC -shared'
11692 sysv4*MP*)
11693 if test -d /usr/nec; then
11694 lt_prog_compiler_pic_GO=-Kconform_pic
11699 lt_prog_compiler_pic_GO='-fPIC'
11701 esac
11703 case $cc_basename in
11704 nvcc*) # Cuda Compiler Driver 2.2
11705 lt_prog_compiler_wl_GO='-Xlinker '
11706 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11708 esac
11709 else
11710 # PORTME Check for flag to pass linker flags through the system compiler.
11711 case $host_os in
11712 aix*)
11713 lt_prog_compiler_wl_GO='-Wl,'
11714 if test "$host_cpu" = ia64; then
11715 # AIX 5 now supports IA64 processor
11716 lt_prog_compiler_static_GO='-Bstatic'
11717 else
11718 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11722 mingw* | cygwin* | pw32* | os2* | cegcc*)
11723 # This hack is so that the source file can tell whether it is being
11724 # built for inclusion in a dll (and should export symbols for example).
11725 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11728 hpux9* | hpux10* | hpux11*)
11729 lt_prog_compiler_wl_GO='-Wl,'
11730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11731 # not for PA HP-UX.
11732 case $host_cpu in
11733 hppa*64*|ia64*)
11734 # +Z the default
11737 lt_prog_compiler_pic_GO='+Z'
11739 esac
11740 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11741 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11744 irix5* | irix6* | nonstopux*)
11745 lt_prog_compiler_wl_GO='-Wl,'
11746 # PIC (with -KPIC) is the default.
11747 lt_prog_compiler_static_GO='-non_shared'
11750 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11751 case $cc_basename in
11752 # old Intel for x86_64 which still supported -KPIC.
11753 ecc*)
11754 lt_prog_compiler_wl_GO='-Wl,'
11755 lt_prog_compiler_pic_GO='-KPIC'
11756 lt_prog_compiler_static_GO='-static'
11758 # icc used to be incompatible with GCC.
11759 # ICC 10 doesn't accept -KPIC any more.
11760 icc* | ifort*)
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='-fPIC'
11763 lt_prog_compiler_static_GO='-static'
11765 # Lahey Fortran 8.1.
11766 lf95*)
11767 lt_prog_compiler_wl_GO='-Wl,'
11768 lt_prog_compiler_pic_GO='--shared'
11769 lt_prog_compiler_static_GO='--static'
11771 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11772 # Portland Group compilers (*not* the Pentium gcc compiler,
11773 # which looks to be a dead project)
11774 lt_prog_compiler_wl_GO='-Wl,'
11775 lt_prog_compiler_pic_GO='-fpic'
11776 lt_prog_compiler_static_GO='-Bstatic'
11778 ccc*)
11779 lt_prog_compiler_wl_GO='-Wl,'
11780 # All Alpha code is PIC.
11781 lt_prog_compiler_static_GO='-non_shared'
11783 xl* | bgxl* | bgf* | mpixl*)
11784 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11785 lt_prog_compiler_wl_GO='-Wl,'
11786 lt_prog_compiler_pic_GO='-qpic'
11787 lt_prog_compiler_static_GO='-qstaticlink'
11790 case `$CC -V 2>&1 | sed 5q` in
11791 *Sun\ F* | *Sun*Fortran*)
11792 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11793 lt_prog_compiler_pic_GO='-KPIC'
11794 lt_prog_compiler_static_GO='-Bstatic'
11795 lt_prog_compiler_wl_GO=''
11797 *Sun\ C*)
11798 # Sun C 5.9
11799 lt_prog_compiler_pic_GO='-KPIC'
11800 lt_prog_compiler_static_GO='-Bstatic'
11801 lt_prog_compiler_wl_GO='-Wl,'
11803 esac
11805 esac
11808 newsos6)
11809 lt_prog_compiler_pic_GO='-KPIC'
11810 lt_prog_compiler_static_GO='-Bstatic'
11813 *nto* | *qnx*)
11814 # QNX uses GNU C++, but need to define -shared option too, otherwise
11815 # it will coredump.
11816 lt_prog_compiler_pic_GO='-fPIC -shared'
11819 osf3* | osf4* | osf5*)
11820 lt_prog_compiler_wl_GO='-Wl,'
11821 # All OSF/1 code is PIC.
11822 lt_prog_compiler_static_GO='-non_shared'
11825 rdos*)
11826 lt_prog_compiler_static_GO='-non_shared'
11829 solaris*)
11830 lt_prog_compiler_pic_GO='-KPIC'
11831 lt_prog_compiler_static_GO='-Bstatic'
11832 case $cc_basename in
11833 f77* | f90* | f95*)
11834 lt_prog_compiler_wl_GO='-Qoption ld ';;
11836 lt_prog_compiler_wl_GO='-Wl,';;
11837 esac
11840 sunos4*)
11841 lt_prog_compiler_wl_GO='-Qoption ld '
11842 lt_prog_compiler_pic_GO='-PIC'
11843 lt_prog_compiler_static_GO='-Bstatic'
11846 sysv4 | sysv4.2uw2* | sysv4.3*)
11847 lt_prog_compiler_wl_GO='-Wl,'
11848 lt_prog_compiler_pic_GO='-KPIC'
11849 lt_prog_compiler_static_GO='-Bstatic'
11852 sysv4*MP*)
11853 if test -d /usr/nec ;then
11854 lt_prog_compiler_pic_GO='-Kconform_pic'
11855 lt_prog_compiler_static_GO='-Bstatic'
11859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11860 lt_prog_compiler_wl_GO='-Wl,'
11861 lt_prog_compiler_pic_GO='-KPIC'
11862 lt_prog_compiler_static_GO='-Bstatic'
11865 unicos*)
11866 lt_prog_compiler_wl_GO='-Wl,'
11867 lt_prog_compiler_can_build_shared_GO=no
11870 uts4*)
11871 lt_prog_compiler_pic_GO='-pic'
11872 lt_prog_compiler_static_GO='-Bstatic'
11876 lt_prog_compiler_can_build_shared_GO=no
11878 esac
11881 case $host_os in
11882 # For platforms which do not support PIC, -DPIC is meaningless:
11883 *djgpp*)
11884 lt_prog_compiler_pic_GO=
11887 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11889 esac
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11891 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11896 # Check to make sure the PIC flag actually works.
11898 if test -n "$lt_prog_compiler_pic_GO"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11900 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11901 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 lt_cv_prog_compiler_pic_works_GO=no
11905 ac_outfile=conftest.$ac_objext
11906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11907 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11908 # Insert the option either (1) after the last *FLAGS variable, or
11909 # (2) before a word containing "conftest.", or (3) at the end.
11910 # Note that $ac_compile itself does not contain backslashes and begins
11911 # with a dollar sign (not a hyphen), so the echo should work correctly.
11912 # The option is referenced via a variable to avoid confusing sed.
11913 lt_compile=`echo "$ac_compile" | $SED \
11914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11916 -e 's:$: $lt_compiler_flag:'`
11917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11918 (eval "$lt_compile" 2>conftest.err)
11919 ac_status=$?
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 if (exit $ac_status) && test -s "$ac_outfile"; then
11923 # The compiler can only warn and ignore the option if not recognized
11924 # So say no if there are warnings other than the usual output.
11925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11928 lt_cv_prog_compiler_pic_works_GO=yes
11931 $RM conftest*
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11935 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11937 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11938 case $lt_prog_compiler_pic_GO in
11939 "" | " "*) ;;
11940 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11941 esac
11942 else
11943 lt_prog_compiler_pic_GO=
11944 lt_prog_compiler_can_build_shared_GO=no
11952 # Check to make sure the static flag actually works.
11954 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11957 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 lt_cv_prog_compiler_static_works_GO=no
11961 save_LDFLAGS="$LDFLAGS"
11962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11965 # The linker can only warn and ignore the option if not recognized
11966 # So say no if there are warnings
11967 if test -s conftest.err; then
11968 # Append any errors to the config.log.
11969 cat conftest.err 1>&5
11970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11972 if diff conftest.exp conftest.er2 >/dev/null; then
11973 lt_cv_prog_compiler_static_works_GO=yes
11975 else
11976 lt_cv_prog_compiler_static_works_GO=yes
11979 $RM -r conftest*
11980 LDFLAGS="$save_LDFLAGS"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11984 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11986 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11988 else
11989 lt_prog_compiler_static_GO=
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11997 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 lt_cv_prog_compiler_c_o_GO=no
12001 $RM -r conftest 2>/dev/null
12002 mkdir conftest
12003 cd conftest
12004 mkdir out
12005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12007 lt_compiler_flag="-o out/conftest2.$ac_objext"
12008 # Insert the option either (1) after the last *FLAGS variable, or
12009 # (2) before a word containing "conftest.", or (3) at the end.
12010 # Note that $ac_compile itself does not contain backslashes and begins
12011 # with a dollar sign (not a hyphen), so the echo should work correctly.
12012 lt_compile=`echo "$ac_compile" | $SED \
12013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12015 -e 's:$: $lt_compiler_flag:'`
12016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12017 (eval "$lt_compile" 2>out/conftest.err)
12018 ac_status=$?
12019 cat out/conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12022 then
12023 # The compiler can only warn and ignore the option if not recognized
12024 # So say no if there are warnings
12025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12028 lt_cv_prog_compiler_c_o_GO=yes
12031 chmod u+w . 2>&5
12032 $RM conftest*
12033 # SGI C++ compiler will create directory out/ii_files/ for
12034 # template instantiation
12035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12036 $RM out/* && rmdir out
12037 cd ..
12038 $RM -r conftest
12039 $RM conftest*
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12043 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12049 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 lt_cv_prog_compiler_c_o_GO=no
12053 $RM -r conftest 2>/dev/null
12054 mkdir conftest
12055 cd conftest
12056 mkdir out
12057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12059 lt_compiler_flag="-o out/conftest2.$ac_objext"
12060 # Insert the option either (1) after the last *FLAGS variable, or
12061 # (2) before a word containing "conftest.", or (3) at the end.
12062 # Note that $ac_compile itself does not contain backslashes and begins
12063 # with a dollar sign (not a hyphen), so the echo should work correctly.
12064 lt_compile=`echo "$ac_compile" | $SED \
12065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067 -e 's:$: $lt_compiler_flag:'`
12068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12069 (eval "$lt_compile" 2>out/conftest.err)
12070 ac_status=$?
12071 cat out/conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074 then
12075 # The compiler can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12080 lt_cv_prog_compiler_c_o_GO=yes
12083 chmod u+w . 2>&5
12084 $RM conftest*
12085 # SGI C++ compiler will create directory out/ii_files/ for
12086 # template instantiation
12087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12088 $RM out/* && rmdir out
12089 cd ..
12090 $RM -r conftest
12091 $RM conftest*
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12095 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12100 hard_links="nottested"
12101 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12102 # do not overwrite the value of need_locks provided by the user
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12104 $as_echo_n "checking if we can lock with hard links... " >&6; }
12105 hard_links=yes
12106 $RM conftest*
12107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12108 touch conftest.a
12109 ln conftest.a conftest.b 2>&5 || hard_links=no
12110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12112 $as_echo "$hard_links" >&6; }
12113 if test "$hard_links" = no; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12115 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12116 need_locks=warn
12118 else
12119 need_locks=no
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12127 runpath_var=
12128 allow_undefined_flag_GO=
12129 always_export_symbols_GO=no
12130 archive_cmds_GO=
12131 archive_expsym_cmds_GO=
12132 compiler_needs_object_GO=no
12133 enable_shared_with_static_runtimes_GO=no
12134 export_dynamic_flag_spec_GO=
12135 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12136 hardcode_automatic_GO=no
12137 hardcode_direct_GO=no
12138 hardcode_direct_absolute_GO=no
12139 hardcode_libdir_flag_spec_GO=
12140 hardcode_libdir_flag_spec_ld_GO=
12141 hardcode_libdir_separator_GO=
12142 hardcode_minus_L_GO=no
12143 hardcode_shlibpath_var_GO=unsupported
12144 inherit_rpath_GO=no
12145 link_all_deplibs_GO=unknown
12146 module_cmds_GO=
12147 module_expsym_cmds_GO=
12148 old_archive_from_new_cmds_GO=
12149 old_archive_from_expsyms_cmds_GO=
12150 thread_safe_flag_spec_GO=
12151 whole_archive_flag_spec_GO=
12152 # include_expsyms should be a list of space-separated symbols to be *always*
12153 # included in the symbol list
12154 include_expsyms_GO=
12155 # exclude_expsyms can be an extended regexp of symbols to exclude
12156 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12157 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12158 # as well as any symbol that contains `d'.
12159 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12161 # platforms (ab)use it in PIC code, but their linkers get confused if
12162 # the symbol is explicitly referenced. Since portable code cannot
12163 # rely on this symbol name, it's probably fine to never include it in
12164 # preloaded symbol tables.
12165 # Exclude shared library initialization/finalization symbols.
12166 extract_expsyms_cmds=
12168 case $host_os in
12169 cygwin* | mingw* | pw32* | cegcc*)
12170 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12171 # When not using gcc, we currently assume that we are using
12172 # Microsoft Visual C++.
12173 if test "$GCC" != yes; then
12174 with_gnu_ld=no
12177 interix*)
12178 # we just hope/assume this is gcc and not c89 (= MSVC++)
12179 with_gnu_ld=yes
12181 openbsd*)
12182 with_gnu_ld=no
12184 esac
12186 ld_shlibs_GO=yes
12188 # On some targets, GNU ld is compatible enough with the native linker
12189 # that we're better off using the native interface for both.
12190 lt_use_gnu_ld_interface=no
12191 if test "$with_gnu_ld" = yes; then
12192 case $host_os in
12193 aix*)
12194 # The AIX port of GNU ld has always aspired to compatibility
12195 # with the native linker. However, as the warning in the GNU ld
12196 # block says, versions before 2.19.5* couldn't really create working
12197 # shared libraries, regardless of the interface used.
12198 case `$LD -v 2>&1` in
12199 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12200 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12201 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12203 lt_use_gnu_ld_interface=yes
12205 esac
12208 lt_use_gnu_ld_interface=yes
12210 esac
12213 if test "$lt_use_gnu_ld_interface" = yes; then
12214 # If archive_cmds runs LD, not CC, wlarc should be empty
12215 wlarc='${wl}'
12217 # Set some defaults for GNU ld with shared library support. These
12218 # are reset later if shared libraries are not supported. Putting them
12219 # here allows them to be overridden if necessary.
12220 runpath_var=LD_RUN_PATH
12221 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12222 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12223 # ancient GNU ld didn't support --whole-archive et. al.
12224 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12225 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12226 else
12227 whole_archive_flag_spec_GO=
12229 supports_anon_versioning=no
12230 case `$LD -v 2>&1` in
12231 *GNU\ gold*) supports_anon_versioning=yes ;;
12232 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12233 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12234 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12235 *\ 2.11.*) ;; # other 2.11 versions
12236 *) supports_anon_versioning=yes ;;
12237 esac
12239 # See if GNU ld supports shared libraries.
12240 case $host_os in
12241 aix[3-9]*)
12242 # On AIX/PPC, the GNU linker is very broken
12243 if test "$host_cpu" != ia64; then
12244 ld_shlibs_GO=no
12245 cat <<_LT_EOF 1>&2
12247 *** Warning: the GNU linker, at least up to release 2.19, is reported
12248 *** to be unable to reliably create shared libraries on AIX.
12249 *** Therefore, libtool is disabling shared libraries support. If you
12250 *** really care for shared libraries, you may want to install binutils
12251 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12252 *** You will then need to restart the configuration process.
12254 _LT_EOF
12258 amigaos*)
12259 case $host_cpu in
12260 powerpc)
12261 # see comment about AmigaOS4 .so support
12262 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 archive_expsym_cmds_GO=''
12265 m68k)
12266 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)'
12267 hardcode_libdir_flag_spec_GO='-L$libdir'
12268 hardcode_minus_L_GO=yes
12270 esac
12273 beos*)
12274 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12275 allow_undefined_flag_GO=unsupported
12276 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12277 # support --undefined. This deserves some investigation. FIXME
12278 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12279 else
12280 ld_shlibs_GO=no
12284 cygwin* | mingw* | pw32* | cegcc*)
12285 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12286 # as there is no search path for DLLs.
12287 hardcode_libdir_flag_spec_GO='-L$libdir'
12288 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12289 allow_undefined_flag_GO=unsupported
12290 always_export_symbols_GO=no
12291 enable_shared_with_static_runtimes_GO=yes
12292 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12294 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12295 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12296 # If the export-symbols file already is a .def file (1st line
12297 # is EXPORTS), use it as is; otherwise, prepend...
12298 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12299 cp $export_symbols $output_objdir/$soname.def;
12300 else
12301 echo EXPORTS > $output_objdir/$soname.def;
12302 cat $export_symbols >> $output_objdir/$soname.def;
12304 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12305 else
12306 ld_shlibs_GO=no
12310 haiku*)
12311 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312 link_all_deplibs_GO=yes
12315 interix[3-9]*)
12316 hardcode_direct_GO=no
12317 hardcode_shlibpath_var_GO=no
12318 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12319 export_dynamic_flag_spec_GO='${wl}-E'
12320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12321 # Instead, shared libraries are loaded at an image base (0x10000000 by
12322 # default) and relocated if they conflict, which is a slow very memory
12323 # consuming and fragmenting process. To avoid this, we pick a random,
12324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12326 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'
12327 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'
12330 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12331 tmp_diet=no
12332 if test "$host_os" = linux-dietlibc; then
12333 case $cc_basename in
12334 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12335 esac
12337 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12338 && test "$tmp_diet" = no
12339 then
12340 tmp_addflag=
12341 tmp_sharedflag='-shared'
12342 case $cc_basename,$host_cpu in
12343 pgcc*) # Portland Group C compiler
12344 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'
12345 tmp_addflag=' $pic_flag'
12347 pgf77* | pgf90* | pgf95* | pgfortran*)
12348 # Portland Group f77 and f90 compilers
12349 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'
12350 tmp_addflag=' $pic_flag -Mnomain' ;;
12351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12352 tmp_addflag=' -i_dynamic' ;;
12353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12354 tmp_addflag=' -i_dynamic -nofor_main' ;;
12355 ifc* | ifort*) # Intel Fortran compiler
12356 tmp_addflag=' -nofor_main' ;;
12357 lf95*) # Lahey Fortran 8.1
12358 whole_archive_flag_spec_GO=
12359 tmp_sharedflag='--shared' ;;
12360 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12361 tmp_sharedflag='-qmkshrobj'
12362 tmp_addflag= ;;
12363 nvcc*) # Cuda Compiler Driver 2.2
12364 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'
12365 compiler_needs_object_GO=yes
12367 esac
12368 case `$CC -V 2>&1 | sed 5q` in
12369 *Sun\ C*) # Sun C 5.9
12370 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'
12371 compiler_needs_object_GO=yes
12372 tmp_sharedflag='-G' ;;
12373 *Sun\ F*) # Sun Fortran 8.3
12374 tmp_sharedflag='-G' ;;
12375 esac
12376 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378 if test "x$supports_anon_versioning" = xyes; then
12379 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12381 echo "local: *; };" >> $output_objdir/$libname.ver~
12382 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12385 case $cc_basename in
12386 xlf* | bgf* | bgxlf* | mpixlf*)
12387 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12388 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12389 hardcode_libdir_flag_spec_GO=
12390 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12391 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12392 if test "x$supports_anon_versioning" = xyes; then
12393 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12395 echo "local: *; };" >> $output_objdir/$libname.ver~
12396 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12399 esac
12400 else
12401 ld_shlibs_GO=no
12405 netbsd*)
12406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12407 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12408 wlarc=
12409 else
12410 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12411 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12415 solaris*)
12416 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12417 ld_shlibs_GO=no
12418 cat <<_LT_EOF 1>&2
12420 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12421 *** create shared libraries on Solaris systems. Therefore, libtool
12422 *** is disabling shared libraries support. We urge you to upgrade GNU
12423 *** binutils to release 2.9.1 or newer. Another option is to modify
12424 *** your PATH or compiler configuration so that the native linker is
12425 *** used, and then restart.
12427 _LT_EOF
12428 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12429 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431 else
12432 ld_shlibs_GO=no
12436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12437 case `$LD -v 2>&1` in
12438 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12439 ld_shlibs_GO=no
12440 cat <<_LT_EOF 1>&2
12442 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12443 *** reliably create shared libraries on SCO systems. Therefore, libtool
12444 *** is disabling shared libraries support. We urge you to upgrade GNU
12445 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12446 *** your PATH or compiler configuration so that the native linker is
12447 *** used, and then restart.
12449 _LT_EOF
12452 # For security reasons, it is highly recommended that you always
12453 # use absolute paths for naming shared libraries, and exclude the
12454 # DT_RUNPATH tag from executables and libraries. But doing so
12455 # requires that you compile everything twice, which is a pain.
12456 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12457 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12458 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460 else
12461 ld_shlibs_GO=no
12464 esac
12467 sunos4*)
12468 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12469 wlarc=
12470 hardcode_direct_GO=yes
12471 hardcode_shlibpath_var_GO=no
12475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12476 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12477 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12478 else
12479 ld_shlibs_GO=no
12482 esac
12484 if test "$ld_shlibs_GO" = no; then
12485 runpath_var=
12486 hardcode_libdir_flag_spec_GO=
12487 export_dynamic_flag_spec_GO=
12488 whole_archive_flag_spec_GO=
12490 else
12491 # PORTME fill in a description of your system's linker (not GNU ld)
12492 case $host_os in
12493 aix3*)
12494 allow_undefined_flag_GO=unsupported
12495 always_export_symbols_GO=yes
12496 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'
12497 # Note: this linker hardcodes the directories in LIBPATH if there
12498 # are no directories specified by -L.
12499 hardcode_minus_L_GO=yes
12500 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12501 # Neither direct hardcoding nor static linking is supported with a
12502 # broken collect2.
12503 hardcode_direct_GO=unsupported
12507 aix[4-9]*)
12508 if test "$host_cpu" = ia64; then
12509 # On IA64, the linker does run time linking by default, so we don't
12510 # have to do anything special.
12511 aix_use_runtimelinking=no
12512 exp_sym_flag='-Bexport'
12513 no_entry_flag=""
12514 else
12515 # If we're using GNU nm, then we don't want the "-C" option.
12516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12517 # Also, AIX nm treats weak defined symbols like other global
12518 # defined symbols, whereas GNU nm marks them as "W".
12519 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12520 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'
12521 else
12522 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'
12524 aix_use_runtimelinking=no
12526 # Test if we are trying to use run time linking or normal
12527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12528 # need to do runtime linking.
12529 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12530 for ld_flag in $LDFLAGS; do
12531 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12532 aix_use_runtimelinking=yes
12533 break
12535 done
12537 esac
12539 exp_sym_flag='-bexport'
12540 no_entry_flag='-bnoentry'
12543 # When large executables or shared objects are built, AIX ld can
12544 # have problems creating the table of contents. If linking a library
12545 # or program results in "error TOC overflow" add -mminimal-toc to
12546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12549 archive_cmds_GO=''
12550 hardcode_direct_GO=yes
12551 hardcode_direct_absolute_GO=yes
12552 hardcode_libdir_separator_GO=':'
12553 link_all_deplibs_GO=yes
12554 file_list_spec_GO='${wl}-f,'
12556 if test "$GCC" = yes; then
12557 case $host_os in aix4.[012]|aix4.[012].*)
12558 # We only want to do this on AIX 4.2 and lower, the check
12559 # below for broken collect2 doesn't work under 4.3+
12560 collect2name=`${CC} -print-prog-name=collect2`
12561 if test -f "$collect2name" &&
12562 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12563 then
12564 # We have reworked collect2
12566 else
12567 # We have old collect2
12568 hardcode_direct_GO=unsupported
12569 # It fails to find uninstalled libraries when the uninstalled
12570 # path is not listed in the libpath. Setting hardcode_minus_L
12571 # to unsupported forces relinking
12572 hardcode_minus_L_GO=yes
12573 hardcode_libdir_flag_spec_GO='-L$libdir'
12574 hardcode_libdir_separator_GO=
12577 esac
12578 shared_flag='-shared'
12579 if test "$aix_use_runtimelinking" = yes; then
12580 shared_flag="$shared_flag "'${wl}-G'
12582 else
12583 # not using gcc
12584 if test "$host_cpu" = ia64; then
12585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12586 # chokes on -Wl,-G. The following line is correct:
12587 shared_flag='-G'
12588 else
12589 if test "$aix_use_runtimelinking" = yes; then
12590 shared_flag='${wl}-G'
12591 else
12592 shared_flag='${wl}-bM:SRE'
12597 export_dynamic_flag_spec_GO='${wl}-bexpall'
12598 # It seems that -bexpall does not export symbols beginning with
12599 # underscore (_), so it is better to generate a list of symbols to export.
12600 always_export_symbols_GO=yes
12601 if test "$aix_use_runtimelinking" = yes; then
12602 # Warning - without using the other runtime loading flags (-brtl),
12603 # -berok will link without error, but may produce a broken library.
12604 allow_undefined_flag_GO='-berok'
12605 # Determine the default libpath from the value encoded in an
12606 # empty executable.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12611 main ()
12615 return 0;
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12620 lt_aix_libpath_sed='
12621 /Import File Strings/,/^$/ {
12622 /^0/ {
12623 s/^0 *\(.*\)$/\1/
12627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628 # Check for a 64-bit object if we didn't find anything.
12629 if test -z "$aix_libpath"; then
12630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12638 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"
12639 else
12640 if test "$host_cpu" = ia64; then
12641 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12642 allow_undefined_flag_GO="-z nodefs"
12643 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"
12644 else
12645 # Determine the default libpath from the value encoded in an
12646 # empty executable.
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12651 main ()
12655 return 0;
12657 _ACEOF
12658 if ac_fn_c_try_link "$LINENO"; then :
12660 lt_aix_libpath_sed='
12661 /Import File Strings/,/^$/ {
12662 /^0/ {
12663 s/^0 *\(.*\)$/\1/
12667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12668 # Check for a 64-bit object if we didn't find anything.
12669 if test -z "$aix_libpath"; then
12670 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12677 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12678 # Warning - without using the other run time loading flags,
12679 # -berok will link without error, but may produce a broken library.
12680 no_undefined_flag_GO=' ${wl}-bernotok'
12681 allow_undefined_flag_GO=' ${wl}-berok'
12682 if test "$with_gnu_ld" = yes; then
12683 # We only use this code for GNU lds that support --whole-archive.
12684 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12685 else
12686 # Exported symbols can be pulled into shared objects from archives
12687 whole_archive_flag_spec_GO='$convenience'
12689 archive_cmds_need_lc_GO=yes
12690 # This is similar to how AIX traditionally builds its shared libraries.
12691 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'
12696 amigaos*)
12697 case $host_cpu in
12698 powerpc)
12699 # see comment about AmigaOS4 .so support
12700 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 archive_expsym_cmds_GO=''
12703 m68k)
12704 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)'
12705 hardcode_libdir_flag_spec_GO='-L$libdir'
12706 hardcode_minus_L_GO=yes
12708 esac
12711 bsdi[45]*)
12712 export_dynamic_flag_spec_GO=-rdynamic
12715 cygwin* | mingw* | pw32* | cegcc*)
12716 # When not using gcc, we currently assume that we are using
12717 # Microsoft Visual C++.
12718 # hardcode_libdir_flag_spec is actually meaningless, as there is
12719 # no search path for DLLs.
12720 hardcode_libdir_flag_spec_GO=' '
12721 allow_undefined_flag_GO=unsupported
12722 # Tell ltmain to make .lib files, not .a files.
12723 libext=lib
12724 # Tell ltmain to make .dll files, not .so files.
12725 shrext_cmds=".dll"
12726 # FIXME: Setting linknames here is a bad hack.
12727 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12728 # The linker will automatically build a .lib file if we build a DLL.
12729 old_archive_from_new_cmds_GO='true'
12730 # FIXME: Should let the user specify the lib program.
12731 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12732 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12733 enable_shared_with_static_runtimes_GO=yes
12736 darwin* | rhapsody*)
12739 archive_cmds_need_lc_GO=no
12740 hardcode_direct_GO=no
12741 hardcode_automatic_GO=yes
12742 hardcode_shlibpath_var_GO=unsupported
12743 if test "$lt_cv_ld_force_load" = "yes"; then
12744 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\"`'
12745 else
12746 whole_archive_flag_spec_GO=''
12748 link_all_deplibs_GO=yes
12749 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12750 case $cc_basename in
12751 ifort*) _lt_dar_can_shared=yes ;;
12752 *) _lt_dar_can_shared=$GCC ;;
12753 esac
12754 if test "$_lt_dar_can_shared" = "yes"; then
12755 output_verbose_link_cmd=func_echo_all
12756 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}"
12757 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12758 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}"
12759 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}"
12761 else
12762 ld_shlibs_GO=no
12767 dgux*)
12768 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12769 hardcode_libdir_flag_spec_GO='-L$libdir'
12770 hardcode_shlibpath_var_GO=no
12773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12774 # support. Future versions do this automatically, but an explicit c++rt0.o
12775 # does not break anything, and helps significantly (at the cost of a little
12776 # extra space).
12777 freebsd2.2*)
12778 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12779 hardcode_libdir_flag_spec_GO='-R$libdir'
12780 hardcode_direct_GO=yes
12781 hardcode_shlibpath_var_GO=no
12784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12785 freebsd2.*)
12786 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12787 hardcode_direct_GO=yes
12788 hardcode_minus_L_GO=yes
12789 hardcode_shlibpath_var_GO=no
12792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12793 freebsd* | dragonfly*)
12794 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec_GO='-R$libdir'
12796 hardcode_direct_GO=yes
12797 hardcode_shlibpath_var_GO=no
12800 hpux9*)
12801 if test "$GCC" = yes; then
12802 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'
12803 else
12804 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'
12806 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12807 hardcode_libdir_separator_GO=:
12808 hardcode_direct_GO=yes
12810 # hardcode_minus_L: Not really in the search PATH,
12811 # but as the default location of the library.
12812 hardcode_minus_L_GO=yes
12813 export_dynamic_flag_spec_GO='${wl}-E'
12816 hpux10*)
12817 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12819 else
12820 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12822 if test "$with_gnu_ld" = no; then
12823 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12824 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12825 hardcode_libdir_separator_GO=:
12826 hardcode_direct_GO=yes
12827 hardcode_direct_absolute_GO=yes
12828 export_dynamic_flag_spec_GO='${wl}-E'
12829 # hardcode_minus_L: Not really in the search PATH,
12830 # but as the default location of the library.
12831 hardcode_minus_L_GO=yes
12835 hpux11*)
12836 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12837 case $host_cpu in
12838 hppa*64*)
12839 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12841 ia64*)
12842 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12847 esac
12848 else
12849 case $host_cpu in
12850 hppa*64*)
12851 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12853 ia64*)
12854 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12857 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12859 esac
12861 if test "$with_gnu_ld" = no; then
12862 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12863 hardcode_libdir_separator_GO=:
12865 case $host_cpu in
12866 hppa*64*|ia64*)
12867 hardcode_direct_GO=no
12868 hardcode_shlibpath_var_GO=no
12871 hardcode_direct_GO=yes
12872 hardcode_direct_absolute_GO=yes
12873 export_dynamic_flag_spec_GO='${wl}-E'
12875 # hardcode_minus_L: Not really in the search PATH,
12876 # but as the default location of the library.
12877 hardcode_minus_L_GO=yes
12879 esac
12883 irix5* | irix6* | nonstopux*)
12884 if test "$GCC" = yes; then
12885 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'
12886 # Try to use the -exported_symbol ld option, if it does not
12887 # work, assume that -exports_file does not work either and
12888 # implicitly export all symbols.
12889 save_LDFLAGS="$LDFLAGS"
12890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 int foo(void) {}
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 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'
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LDFLAGS="$save_LDFLAGS"
12902 else
12903 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'
12904 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'
12906 archive_cmds_need_lc_GO='no'
12907 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12908 hardcode_libdir_separator_GO=:
12909 inherit_rpath_GO=yes
12910 link_all_deplibs_GO=yes
12913 netbsd*)
12914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12915 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12916 else
12917 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12919 hardcode_libdir_flag_spec_GO='-R$libdir'
12920 hardcode_direct_GO=yes
12921 hardcode_shlibpath_var_GO=no
12924 newsos6)
12925 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_direct_GO=yes
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12928 hardcode_libdir_separator_GO=:
12929 hardcode_shlibpath_var_GO=no
12932 *nto* | *qnx*)
12935 openbsd*)
12936 if test -f /usr/libexec/ld.so; then
12937 hardcode_direct_GO=yes
12938 hardcode_shlibpath_var_GO=no
12939 hardcode_direct_absolute_GO=yes
12940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12941 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12942 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12943 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12944 export_dynamic_flag_spec_GO='${wl}-E'
12945 else
12946 case $host_os in
12947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12948 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12949 hardcode_libdir_flag_spec_GO='-R$libdir'
12952 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12955 esac
12957 else
12958 ld_shlibs_GO=no
12962 os2*)
12963 hardcode_libdir_flag_spec_GO='-L$libdir'
12964 hardcode_minus_L_GO=yes
12965 allow_undefined_flag_GO=unsupported
12966 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'
12967 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12970 osf3*)
12971 if test "$GCC" = yes; then
12972 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12973 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'
12974 else
12975 allow_undefined_flag_GO=' -expect_unresolved \*'
12976 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'
12978 archive_cmds_need_lc_GO='no'
12979 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12980 hardcode_libdir_separator_GO=:
12983 osf4* | osf5*) # as osf3* with the addition of -msym flag
12984 if test "$GCC" = yes; then
12985 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12986 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'
12987 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12988 else
12989 allow_undefined_flag_GO=' -expect_unresolved \*'
12990 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'
12991 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~
12992 $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'
12994 # Both c and cxx compiler support -rpath directly
12995 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12997 archive_cmds_need_lc_GO='no'
12998 hardcode_libdir_separator_GO=:
13001 solaris*)
13002 no_undefined_flag_GO=' -z defs'
13003 if test "$GCC" = yes; then
13004 wlarc='${wl}'
13005 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13006 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13008 else
13009 case `$CC -V 2>&1` in
13010 *"Compilers 5.0"*)
13011 wlarc=''
13012 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13017 wlarc='${wl}'
13018 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13019 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13022 esac
13024 hardcode_libdir_flag_spec_GO='-R$libdir'
13025 hardcode_shlibpath_var_GO=no
13026 case $host_os in
13027 solaris2.[0-5] | solaris2.[0-5].*) ;;
13029 # The compiler driver will combine and reorder linker options,
13030 # but understands `-z linker_flag'. GCC discards it without `$wl',
13031 # but is careful enough not to reorder.
13032 # Supported since Solaris 2.6 (maybe 2.5.1?)
13033 if test "$GCC" = yes; then
13034 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13035 else
13036 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13039 esac
13040 link_all_deplibs_GO=yes
13043 sunos4*)
13044 if test "x$host_vendor" = xsequent; then
13045 # Use $CC to link under sequent, because it throws in some extra .o
13046 # files that make .init and .fini sections work.
13047 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13048 else
13049 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13051 hardcode_libdir_flag_spec_GO='-L$libdir'
13052 hardcode_direct_GO=yes
13053 hardcode_minus_L_GO=yes
13054 hardcode_shlibpath_var_GO=no
13057 sysv4)
13058 case $host_vendor in
13059 sni)
13060 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_direct_GO=yes # is this really true???
13063 siemens)
13064 ## LD is ld it makes a PLAMLIB
13065 ## CC just makes a GrossModule.
13066 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13067 reload_cmds_GO='$CC -r -o $output$reload_objs'
13068 hardcode_direct_GO=no
13070 motorola)
13071 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13074 esac
13075 runpath_var='LD_RUN_PATH'
13076 hardcode_shlibpath_var_GO=no
13079 sysv4.3*)
13080 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13081 hardcode_shlibpath_var_GO=no
13082 export_dynamic_flag_spec_GO='-Bexport'
13085 sysv4*MP*)
13086 if test -d /usr/nec; then
13087 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13088 hardcode_shlibpath_var_GO=no
13089 runpath_var=LD_RUN_PATH
13090 hardcode_runpath_var=yes
13091 ld_shlibs_GO=yes
13095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13096 no_undefined_flag_GO='${wl}-z,text'
13097 archive_cmds_need_lc_GO=no
13098 hardcode_shlibpath_var_GO=no
13099 runpath_var='LD_RUN_PATH'
13101 if test "$GCC" = yes; then
13102 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 else
13105 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 sysv5* | sco3.2v5* | sco5v6*)
13111 # Note: We can NOT use -z defs as we might desire, because we do not
13112 # link with -lc, and that would cause any symbols used from libc to
13113 # always be unresolved, which means just about no library would
13114 # ever link correctly. If we're not using GNU ld we use -z text
13115 # though, which does catch some bad symbols but isn't as heavy-handed
13116 # as -z defs.
13117 no_undefined_flag_GO='${wl}-z,text'
13118 allow_undefined_flag_GO='${wl}-z,nodefs'
13119 archive_cmds_need_lc_GO=no
13120 hardcode_shlibpath_var_GO=no
13121 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13122 hardcode_libdir_separator_GO=':'
13123 link_all_deplibs_GO=yes
13124 export_dynamic_flag_spec_GO='${wl}-Bexport'
13125 runpath_var='LD_RUN_PATH'
13127 if test "$GCC" = yes; then
13128 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13129 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13130 else
13131 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13136 uts4*)
13137 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13138 hardcode_libdir_flag_spec_GO='-L$libdir'
13139 hardcode_shlibpath_var_GO=no
13143 ld_shlibs_GO=no
13145 esac
13147 if test x$host_vendor = xsni; then
13148 case $host in
13149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13150 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13152 esac
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13157 $as_echo "$ld_shlibs_GO" >&6; }
13158 test "$ld_shlibs_GO" = no && can_build_shared=no
13160 with_gnu_ld_GO=$with_gnu_ld
13168 # Do we need to explicitly link libc?
13170 case "x$archive_cmds_need_lc_GO" in
13171 x|xyes)
13172 # Assume -lc should be added
13173 archive_cmds_need_lc_GO=yes
13175 if test "$enable_shared" = yes && test "$GCC" = yes; then
13176 case $archive_cmds_GO in
13177 *'~'*)
13178 # FIXME: we may have to deal with multi-command sequences.
13180 '$CC '*)
13181 # Test whether the compiler implicitly links with -lc since on some
13182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13183 # to ld, don't add -lc before -lgcc.
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13185 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13186 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 $RM conftest*
13190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13193 (eval $ac_compile) 2>&5
13194 ac_status=$?
13195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196 test $ac_status = 0; } 2>conftest.err; then
13197 soname=conftest
13198 lib=conftest
13199 libobjs=conftest.$ac_objext
13200 deplibs=
13201 wl=$lt_prog_compiler_wl_GO
13202 pic_flag=$lt_prog_compiler_pic_GO
13203 compiler_flags=-v
13204 linker_flags=-v
13205 verstring=
13206 output_objdir=.
13207 libname=conftest
13208 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13209 allow_undefined_flag_GO=
13210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13211 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13212 ac_status=$?
13213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13214 test $ac_status = 0; }
13215 then
13216 lt_cv_archive_cmds_need_lc_GO=no
13217 else
13218 lt_cv_archive_cmds_need_lc_GO=yes
13220 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13221 else
13222 cat conftest.err 1>&5
13224 $RM conftest*
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13228 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13229 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13231 esac
13234 esac
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13301 hardcode_action_GO=
13302 if test -n "$hardcode_libdir_flag_spec_GO" ||
13303 test -n "$runpath_var_GO" ||
13304 test "X$hardcode_automatic_GO" = "Xyes" ; then
13306 # We can hardcode non-existent directories.
13307 if test "$hardcode_direct_GO" != no &&
13308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13309 # have to relink, otherwise we might link with an installed library
13310 # when we should be linking with a yet-to-be-installed one
13311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13312 test "$hardcode_minus_L_GO" != no; then
13313 # Linking always hardcodes the temporary library directory.
13314 hardcode_action_GO=relink
13315 else
13316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13317 hardcode_action_GO=immediate
13319 else
13320 # We cannot hardcode anything, or else we can only hardcode existing
13321 # directories.
13322 hardcode_action_GO=unsupported
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13325 $as_echo "$hardcode_action_GO" >&6; }
13327 if test "$hardcode_action_GO" = relink ||
13328 test "$inherit_rpath_GO" = yes; then
13329 # Fast installation is not supported
13330 enable_fast_install=no
13331 elif test "$shlibpath_overrides_runpath" = yes ||
13332 test "$enable_shared" = no; then
13333 # Fast installation is not necessary
13334 enable_fast_install=needless
13345 ac_ext=c
13346 ac_cpp='$CPP $CPPFLAGS'
13347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13352 GCC=$lt_save_GCC
13353 CC="$lt_save_CC"
13358 ac_config_commands="$ac_config_commands libtool"
13363 # Only expand once:
13369 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13372 for ac_prog in gawk mawk nawk awk
13374 # Extract the first word of "$ac_prog", so it can be a program name with args.
13375 set dummy $ac_prog; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if test "${ac_cv_prog_AWK+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 if test -n "$AWK"; then
13382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13383 else
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13391 ac_cv_prog_AWK="$ac_prog"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13401 AWK=$ac_cv_prog_AWK
13402 if test -n "$AWK"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13404 $as_echo "$AWK" >&6; }
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13411 test -n "$AWK" && break
13412 done
13415 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13418 # Check whether --enable-werror was given.
13419 if test "${enable_werror+set}" = set; then :
13420 enableval=$enable_werror;
13423 if test "x$enable_werror" != "xno"; then
13424 WERROR="-Werror"
13428 glibgo_toolexecdir=no
13429 glibgo_toolexeclibdir=no
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13432 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13433 # Check whether --enable-version-specific-runtime-libs was given.
13434 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13435 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13436 yes) version_specific_libs=yes ;;
13437 no) version_specific_libs=no ;;
13438 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13439 esac
13440 else
13441 version_specific_libs=no
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13445 $as_echo "$version_specific_libs" >&6; }
13447 # Version-specific runtime libs processing.
13448 if test $version_specific_libs = yes; then
13449 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13450 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13453 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13454 # Install a library built with a cross compiler in tooldir, not libdir.
13455 if test -n "$with_cross_host" &&
13456 test x"$with_cross_host" != x"no"; then
13457 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13458 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13459 else
13460 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13461 nover_glibgo_toolexeclibdir='${libdir}'
13463 multi_os_directory=`$GOC -print-multi-os-directory`
13464 case $multi_os_directory in
13465 .) ;; # Avoid trailing /.
13466 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13467 esac
13469 if test x"$glibgo_toolexecdir" = x"no"; then
13470 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13471 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13478 # See if the user wants to configure without libffi. Some
13479 # architectures don't support it. FIXME: We should set a default
13480 # based on the host.
13482 # Check whether --with-libffi was given.
13483 if test "${with_libffi+set}" = set; then :
13484 withval=$with_libffi; :
13485 else
13486 with_libffi=${with_libffi_default-yes}
13490 LIBFFI=
13491 LIBFFIINCS=
13492 if test "$with_libffi" != no; then
13494 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13496 LIBFFI=../libffi/libffi_convenience.la
13497 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13502 # See if the user wants to configure without libatomic. This is useful if we are
13503 # on an architecture for which libgo does not need an atomic support library and
13504 # libatomic does not support our C compiler.
13506 # Check whether --with-libatomic was given.
13507 if test "${with_libatomic+set}" = set; then :
13508 withval=$with_libatomic; :
13509 else
13510 with_libatomic=${with_libatomic_default-yes}
13514 LIBATOMIC=
13515 if test "$with_libatomic" != no; then
13516 LIBATOMIC=../libatomic/libatomic_convenience.la
13520 # Used to tell GNU make to include a file without telling automake to
13521 # include it.
13522 go_include="-include"
13525 is_darwin=no
13526 is_freebsd=no
13527 is_irix=no
13528 is_linux=no
13529 is_netbsd=no
13530 is_openbsd=no
13531 is_dragonfly=no
13532 is_rtems=no
13533 is_solaris=no
13534 GOOS=unknown
13535 case ${host} in
13536 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13537 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13538 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13539 *-*-linux*) is_linux=yes; GOOS=linux ;;
13540 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13541 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13542 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13543 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13544 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13545 esac
13546 if test $is_darwin = yes; then
13547 LIBGO_IS_DARWIN_TRUE=
13548 LIBGO_IS_DARWIN_FALSE='#'
13549 else
13550 LIBGO_IS_DARWIN_TRUE='#'
13551 LIBGO_IS_DARWIN_FALSE=
13554 if test $is_freebsd = yes; then
13555 LIBGO_IS_FREEBSD_TRUE=
13556 LIBGO_IS_FREEBSD_FALSE='#'
13557 else
13558 LIBGO_IS_FREEBSD_TRUE='#'
13559 LIBGO_IS_FREEBSD_FALSE=
13562 if test $is_irix = yes; then
13563 LIBGO_IS_IRIX_TRUE=
13564 LIBGO_IS_IRIX_FALSE='#'
13565 else
13566 LIBGO_IS_IRIX_TRUE='#'
13567 LIBGO_IS_IRIX_FALSE=
13570 if test $is_linux = yes; then
13571 LIBGO_IS_LINUX_TRUE=
13572 LIBGO_IS_LINUX_FALSE='#'
13573 else
13574 LIBGO_IS_LINUX_TRUE='#'
13575 LIBGO_IS_LINUX_FALSE=
13578 if test $is_netbsd = yes; then
13579 LIBGO_IS_NETBSD_TRUE=
13580 LIBGO_IS_NETBSD_FALSE='#'
13581 else
13582 LIBGO_IS_NETBSD_TRUE='#'
13583 LIBGO_IS_NETBSD_FALSE=
13586 if test $is_openbsd = yes; then
13587 LIBGO_IS_OPENBSD_TRUE=
13588 LIBGO_IS_OPENBSD_FALSE='#'
13589 else
13590 LIBGO_IS_OPENBSD_TRUE='#'
13591 LIBGO_IS_OPENBSD_FALSE=
13594 if test $is_dragonfly = yes; then
13595 LIBGO_IS_DRAGONFLY_TRUE=
13596 LIBGO_IS_DRAGONFLY_FALSE='#'
13597 else
13598 LIBGO_IS_DRAGONFLY_TRUE='#'
13599 LIBGO_IS_DRAGONFLY_FALSE=
13602 if test $is_rtems = yes; then
13603 LIBGO_IS_RTEMS_TRUE=
13604 LIBGO_IS_RTEMS_FALSE='#'
13605 else
13606 LIBGO_IS_RTEMS_TRUE='#'
13607 LIBGO_IS_RTEMS_FALSE=
13610 if test $is_solaris = yes; then
13611 LIBGO_IS_SOLARIS_TRUE=
13612 LIBGO_IS_SOLARIS_FALSE='#'
13613 else
13614 LIBGO_IS_SOLARIS_TRUE='#'
13615 LIBGO_IS_SOLARIS_FALSE=
13618 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13619 LIBGO_IS_BSD_TRUE=
13620 LIBGO_IS_BSD_FALSE='#'
13621 else
13622 LIBGO_IS_BSD_TRUE='#'
13623 LIBGO_IS_BSD_FALSE=
13628 USE_DEJAGNU=no
13629 case ${host} in
13630 *-*-rtems*) USE_DEJAGNU=yes ;;
13631 ${build}) ;;
13632 *) USE_DEJAGNU=yes ;;
13633 esac
13636 is_386=no
13637 is_alpha=no
13638 is_arm=no
13639 is_arm64=no
13640 is_ia64=no
13641 is_m68k=no
13642 mips_abi=unknown
13643 is_ppc=no
13644 is_ppc64=no
13645 is_ppc64le=no
13646 is_s390=no
13647 is_s390x=no
13648 is_sparc=no
13649 is_sparc64=no
13650 is_x86_64=no
13651 GOARCH=unknown
13652 case ${host} in
13653 alpha*-*-*)
13654 is_alpha=yes
13655 GOARCH=alpha
13657 aarch64-*-*)
13658 is_arm64=yes
13659 GOARCH=arm64
13661 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13662 is_arm=yes
13663 GOARCH=arm
13665 i[34567]86-*-* | x86_64-*-*)
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13669 #ifdef __x86_64__
13670 #error 64-bit
13671 #endif
13672 _ACEOF
13673 if ac_fn_c_try_compile "$LINENO"; then :
13674 is_386=yes
13675 else
13676 is_x86_64=yes
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 if test "$is_386" = "yes"; then
13680 GOARCH=386
13681 else
13682 GOARCH=amd64
13685 ia64-*-*)
13686 is_ia64=yes
13687 GOARCH=ia64
13689 m68k*-*-*)
13690 is_m68k=yes
13691 GOARCH=m68k
13693 mips*-*-*)
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 #if _MIPS_SIM != _ABIO32
13698 #error not o32
13699 #endif
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 mips_abi="o32"
13703 else
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 #if _MIPS_SIM != _ABIN32
13708 #error not n32
13709 #endif
13710 _ACEOF
13711 if ac_fn_c_try_compile "$LINENO"; then :
13712 mips_abi="n32"
13713 else
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 #if _MIPS_SIM != _ABI64
13718 #error not n64
13719 #endif
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722 mips_abi="n64"
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 #if _MIPS_SIM != _ABIO64
13728 #error not o64
13729 #endif
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732 mips_abi="o64"
13733 else
13734 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13735 mips_abi="n32"
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 case "$mips_abi" in
13745 "o32") GOARCH=mipso32 ;;
13746 "n32") GOARCH=mipsn32 ;;
13747 "n64") GOARCH=mipsn64 ;;
13748 "o64") GOARCH=mipso64 ;;
13749 esac
13751 rs6000*-*-* | powerpc*-*-*)
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13755 #ifdef _ARCH_PPC64
13756 #error 64-bit
13757 #endif
13758 _ACEOF
13759 if ac_fn_c_try_compile "$LINENO"; then :
13760 is_ppc=yes
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13765 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13766 #error 64be
13767 #endif
13768 _ACEOF
13769 if ac_fn_c_try_compile "$LINENO"; then :
13770 is_ppc64le=yes
13771 else
13772 is_ppc64=yes
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 if test "$is_ppc" = "yes"; then
13778 GOARCH=ppc
13779 elif test "$is_ppc64" = "yes"; then
13780 GOARCH=ppc64
13781 else
13782 GOARCH=ppc64le
13785 s390*-*-*)
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13789 #if defined(__s390x__)
13790 #error 64-bit
13791 #endif
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794 is_s390=yes
13795 else
13796 is_s390x=yes
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 if test "$is_s390" = "yes"; then
13800 GOARCH=s390
13801 else
13802 GOARCH=s390x
13805 sparc*-*-*)
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 #if defined(__sparcv9) || defined(__arch64__)
13810 #error 64-bit
13811 #endif
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814 is_sparc=yes
13815 else
13816 is_sparc64=yes
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 if test "$is_sparc" = "yes"; then
13820 GOARCH=sparc
13821 else
13822 GOARCH=sparc64
13825 esac
13826 if test $is_386 = yes; then
13827 LIBGO_IS_386_TRUE=
13828 LIBGO_IS_386_FALSE='#'
13829 else
13830 LIBGO_IS_386_TRUE='#'
13831 LIBGO_IS_386_FALSE=
13834 if test $is_alpha = yes; then
13835 LIBGO_IS_ALPHA_TRUE=
13836 LIBGO_IS_ALPHA_FALSE='#'
13837 else
13838 LIBGO_IS_ALPHA_TRUE='#'
13839 LIBGO_IS_ALPHA_FALSE=
13842 if test $is_arm = yes; then
13843 LIBGO_IS_ARM_TRUE=
13844 LIBGO_IS_ARM_FALSE='#'
13845 else
13846 LIBGO_IS_ARM_TRUE='#'
13847 LIBGO_IS_ARM_FALSE=
13850 if test $is_arm64 = yes; then
13851 LIBGO_IS_ARM64_TRUE=
13852 LIBGO_IS_ARM64_FALSE='#'
13853 else
13854 LIBGO_IS_ARM64_TRUE='#'
13855 LIBGO_IS_ARM64_FALSE=
13858 if test $is_ia64 = yes; then
13859 LIBGO_IS_IA64_TRUE=
13860 LIBGO_IS_IA64_FALSE='#'
13861 else
13862 LIBGO_IS_IA64_TRUE='#'
13863 LIBGO_IS_IA64_FALSE=
13866 if test $is_m68k = yes; then
13867 LIBGO_IS_M68K_TRUE=
13868 LIBGO_IS_M68K_FALSE='#'
13869 else
13870 LIBGO_IS_M68K_TRUE='#'
13871 LIBGO_IS_M68K_FALSE=
13874 if test $mips_abi != unknown; then
13875 LIBGO_IS_MIPS_TRUE=
13876 LIBGO_IS_MIPS_FALSE='#'
13877 else
13878 LIBGO_IS_MIPS_TRUE='#'
13879 LIBGO_IS_MIPS_FALSE=
13882 if test $mips_abi = o32; then
13883 LIBGO_IS_MIPSO32_TRUE=
13884 LIBGO_IS_MIPSO32_FALSE='#'
13885 else
13886 LIBGO_IS_MIPSO32_TRUE='#'
13887 LIBGO_IS_MIPSO32_FALSE=
13890 if test $mips_abi = n32; then
13891 LIBGO_IS_MIPSN32_TRUE=
13892 LIBGO_IS_MIPSN32_FALSE='#'
13893 else
13894 LIBGO_IS_MIPSN32_TRUE='#'
13895 LIBGO_IS_MIPSN32_FALSE=
13898 if test $mips_abi = n64; then
13899 LIBGO_IS_MIPSN64_TRUE=
13900 LIBGO_IS_MIPSN64_FALSE='#'
13901 else
13902 LIBGO_IS_MIPSN64_TRUE='#'
13903 LIBGO_IS_MIPSN64_FALSE=
13906 if test $mips_abi = o64; then
13907 LIBGO_IS_MIPSO64_TRUE=
13908 LIBGO_IS_MIPSO64_FALSE='#'
13909 else
13910 LIBGO_IS_MIPSO64_TRUE='#'
13911 LIBGO_IS_MIPSO64_FALSE=
13914 if test $mips_abi = n64 -o $mips_abi = o64; then
13915 LIBGO_IS_MIPS64_TRUE=
13916 LIBGO_IS_MIPS64_FALSE='#'
13917 else
13918 LIBGO_IS_MIPS64_TRUE='#'
13919 LIBGO_IS_MIPS64_FALSE=
13922 if test $is_ppc = yes; then
13923 LIBGO_IS_PPC_TRUE=
13924 LIBGO_IS_PPC_FALSE='#'
13925 else
13926 LIBGO_IS_PPC_TRUE='#'
13927 LIBGO_IS_PPC_FALSE=
13930 if test $is_ppc64 = yes; then
13931 LIBGO_IS_PPC64_TRUE=
13932 LIBGO_IS_PPC64_FALSE='#'
13933 else
13934 LIBGO_IS_PPC64_TRUE='#'
13935 LIBGO_IS_PPC64_FALSE=
13938 if test $is_ppc64le = yes; then
13939 LIBGO_IS_PPC64LE_TRUE=
13940 LIBGO_IS_PPC64LE_FALSE='#'
13941 else
13942 LIBGO_IS_PPC64LE_TRUE='#'
13943 LIBGO_IS_PPC64LE_FALSE=
13946 if test $is_s390 = yes; then
13947 LIBGO_IS_S390_TRUE=
13948 LIBGO_IS_S390_FALSE='#'
13949 else
13950 LIBGO_IS_S390_TRUE='#'
13951 LIBGO_IS_S390_FALSE=
13954 if test $is_s390x = yes; then
13955 LIBGO_IS_S390X_TRUE=
13956 LIBGO_IS_S390X_FALSE='#'
13957 else
13958 LIBGO_IS_S390X_TRUE='#'
13959 LIBGO_IS_S390X_FALSE=
13962 if test $is_sparc = yes; then
13963 LIBGO_IS_SPARC_TRUE=
13964 LIBGO_IS_SPARC_FALSE='#'
13965 else
13966 LIBGO_IS_SPARC_TRUE='#'
13967 LIBGO_IS_SPARC_FALSE=
13970 if test $is_sparc64 = yes; then
13971 LIBGO_IS_SPARC64_TRUE=
13972 LIBGO_IS_SPARC64_FALSE='#'
13973 else
13974 LIBGO_IS_SPARC64_TRUE='#'
13975 LIBGO_IS_SPARC64_FALSE=
13978 if test $is_x86_64 = yes; then
13979 LIBGO_IS_X86_64_TRUE=
13980 LIBGO_IS_X86_64_FALSE='#'
13981 else
13982 LIBGO_IS_X86_64_TRUE='#'
13983 LIBGO_IS_X86_64_FALSE=
13988 GO_LIBCALL_OS_FILE=
13989 GO_LIBCALL_OS_ARCH_FILE=
13990 GO_SYSCALL_OS_FILE=
13991 GO_SYSCALL_OS_ARCH_FILE=
13992 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13993 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13995 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13996 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13998 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13999 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14001 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14002 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14009 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14010 case "$target" in
14011 mips-sgi-irix6.5*)
14012 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14013 # msghdr in <sys/socket.h>.
14014 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14016 *-*-solaris2.1[01])
14017 # Solaris 10+ needs this so struct msghdr gets the msg_control
14018 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14019 # above doesn't work with C99.
14020 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14022 esac
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14026 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14027 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 CFLAGS_hold=$CFLAGS
14031 CFLAGS="$CFLAGS -fsplit-stack"
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 int i;
14035 _ACEOF
14036 if ac_fn_c_try_compile "$LINENO"; then :
14037 libgo_cv_c_split_stack_supported=yes
14038 else
14039 libgo_cv_c_split_stack_supported=no
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 CFLAGS=$CFLAGS_hold
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14045 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14048 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14049 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 cat > conftest1.c << EOF
14053 extern void f();
14054 int main() { f(); return 0; }
14056 cat > conftest2.c << EOF
14057 void f() {}
14059 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
14060 $CC -c $CFLAGS $CPPFLAGS conftest2.c
14061 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then
14062 libgo_cv_c_linker_split_non_split=yes
14063 else
14064 libgo_cv_c_linker_split_non_split=no
14066 rm -f conftest1.* conftest2.* conftest
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14069 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14071 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14072 SPLIT_STACK=-fsplit-stack
14074 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14076 else
14077 SPLIT_STACK=
14080 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14081 USING_SPLIT_STACK_TRUE=
14082 USING_SPLIT_STACK_FALSE='#'
14083 else
14084 USING_SPLIT_STACK_TRUE='#'
14085 USING_SPLIT_STACK_FALSE=
14089 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14090 GO_SPLIT_STACK=-fno-split-stack
14091 else
14092 GO_SPLIT_STACK=
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14097 $as_echo_n "checking whether linker supports split stack... " >&6; }
14098 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 libgo_cv_c_linker_supports_split_stack=no
14102 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14103 libgo_cv_c_linker_supports_split_stack=yes
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14107 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14108 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14110 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14115 $as_echo_n "checking whether compiler is llgo... " >&6; }
14116 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 libgo_cv_c_goc_is_llgo=no
14120 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14121 libgo_cv_c_goc_is_llgo=yes
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14125 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14126 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14127 GOC_IS_LLGO_TRUE=
14128 GOC_IS_LLGO_FALSE='#'
14129 else
14130 GOC_IS_LLGO_TRUE='#'
14131 GOC_IS_LLGO_FALSE=
14135 MATH_LIBS=
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14137 $as_echo_n "checking for sqrt in -lm... " >&6; }
14138 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lm $LIBS"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char sqrt ();
14154 main ()
14156 return sqrt ();
14158 return 0;
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_lib_m_sqrt=yes
14163 else
14164 ac_cv_lib_m_sqrt=no
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14171 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14172 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14173 MATH_LIBS=-lm
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14179 $as_echo_n "checking for socket libraries... " >&6; }
14180 if test "${libgo_cv_lib_sockets+set}" = set; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 libgo_cv_lib_sockets=
14184 libgo_check_both=no
14185 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14186 if test "x$ac_cv_func_connect" = x""yes; then :
14187 libgo_check_socket=no
14188 else
14189 libgo_check_socket=yes
14192 if test "$libgo_check_socket" = "yes"; then
14193 unset ac_cv_func_connect
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14195 $as_echo_n "checking for main in -lsocket... " >&6; }
14196 if test "${ac_cv_lib_socket_main+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-lsocket $LIBS"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14206 main ()
14208 return main ();
14210 return 0;
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 ac_cv_lib_socket_main=yes
14215 else
14216 ac_cv_lib_socket_main=no
14218 rm -f core conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14223 $as_echo "$ac_cv_lib_socket_main" >&6; }
14224 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14225 libgo_cv_lib_sockets="-lsocket"
14226 else
14227 libgo_check_both=yes
14231 if test "$libgo_check_both" = "yes"; then
14232 libgo_old_libs=$LIBS
14233 LIBS="$LIBS -lsocket -lnsl"
14234 unset ac_cv_func_accept
14235 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14236 if test "x$ac_cv_func_accept" = x""yes; then :
14237 libgo_check_nsl=no
14238 libgo_cv_lib_sockets="-lsocket -lnsl"
14241 unset ac_cv_func_accept
14242 LIBS=$libgo_old_libs
14244 unset ac_cv_func_gethostbyname
14245 libgo_old_libs="$LIBS"
14246 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14247 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14249 else
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14251 $as_echo_n "checking for main in -lnsl... " >&6; }
14252 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lnsl $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14262 main ()
14264 return main ();
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 ac_cv_lib_nsl_main=yes
14271 else
14272 ac_cv_lib_nsl_main=no
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 LIBS=$ac_check_lib_save_LIBS
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14279 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14280 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14281 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14286 unset ac_cv_func_gethostbyname
14287 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14288 if test "x$ac_cv_func_sendfile" = x""yes; then :
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14292 $as_echo_n "checking for main in -lsendfile... " >&6; }
14293 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 ac_check_lib_save_LIBS=$LIBS
14297 LIBS="-lsendfile $LIBS"
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14303 main ()
14305 return main ();
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 ac_cv_lib_sendfile_main=yes
14312 else
14313 ac_cv_lib_sendfile_main=no
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14320 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14321 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14322 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14327 LIBS=$libgo_old_libs
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14331 $as_echo "$libgo_cv_lib_sockets" >&6; }
14332 NET_LIBS="$libgo_cv_lib_sockets"
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14336 $as_echo_n "checking whether -pthread is supported... " >&6; }
14337 if test "${libgo_cv_lib_pthread+set}" = set; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 CFLAGS_hold=$CFLAGS
14341 CFLAGS="$CFLAGS -pthread"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 int i;
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 libgo_cv_lib_pthread=yes
14348 else
14349 libgo_cv_lib_pthread=no
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 CFLAGS=$CFLAGS_hold
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14355 $as_echo "$libgo_cv_lib_pthread" >&6; }
14356 PTHREAD_CFLAGS=
14357 if test "$libgo_cv_lib_pthread" = yes; then
14358 PTHREAD_CFLAGS=-pthread
14362 PTHREAD_LIBS=
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14364 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14365 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 ac_check_lib_save_LIBS=$LIBS
14369 LIBS="-lpthread $LIBS"
14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371 /* end confdefs.h. */
14373 /* Override any GCC internal prototype to avoid an error.
14374 Use char because int might match the return type of a GCC
14375 builtin and then its argument prototype would still apply. */
14376 #ifdef __cplusplus
14377 extern "C"
14378 #endif
14379 char pthread_create ();
14381 main ()
14383 return pthread_create ();
14385 return 0;
14387 _ACEOF
14388 if ac_fn_c_try_link "$LINENO"; then :
14389 ac_cv_lib_pthread_pthread_create=yes
14390 else
14391 ac_cv_lib_pthread_pthread_create=no
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_lib_save_LIBS
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14398 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14399 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14400 PTHREAD_LIBS=-lpthread
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14406 $as_echo_n "checking for library containing sched_yield... " >&6; }
14407 if test "${ac_cv_search_sched_yield+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 ac_func_search_save_LIBS=$LIBS
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14414 /* Override any GCC internal prototype to avoid an error.
14415 Use char because int might match the return type of a GCC
14416 builtin and then its argument prototype would still apply. */
14417 #ifdef __cplusplus
14418 extern "C"
14419 #endif
14420 char sched_yield ();
14422 main ()
14424 return sched_yield ();
14426 return 0;
14428 _ACEOF
14429 for ac_lib in '' rt; do
14430 if test -z "$ac_lib"; then
14431 ac_res="none required"
14432 else
14433 ac_res=-l$ac_lib
14434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14436 if ac_fn_c_try_link "$LINENO"; then :
14437 ac_cv_search_sched_yield=$ac_res
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext
14441 if test "${ac_cv_search_sched_yield+set}" = set; then :
14442 break
14444 done
14445 if test "${ac_cv_search_sched_yield+set}" = set; then :
14447 else
14448 ac_cv_search_sched_yield=no
14450 rm conftest.$ac_ext
14451 LIBS=$ac_func_search_save_LIBS
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14454 $as_echo "$ac_cv_search_sched_yield" >&6; }
14455 ac_res=$ac_cv_search_sched_yield
14456 if test "$ac_res" != no; then :
14457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14462 $as_echo_n "checking for library containing nanosleep... " >&6; }
14463 if test "${ac_cv_search_nanosleep+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 ac_func_search_save_LIBS=$LIBS
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14473 #ifdef __cplusplus
14474 extern "C"
14475 #endif
14476 char nanosleep ();
14478 main ()
14480 return nanosleep ();
14482 return 0;
14484 _ACEOF
14485 for ac_lib in '' rt; do
14486 if test -z "$ac_lib"; then
14487 ac_res="none required"
14488 else
14489 ac_res=-l$ac_lib
14490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 ac_cv_search_nanosleep=$ac_res
14495 rm -f core conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext
14497 if test "${ac_cv_search_nanosleep+set}" = set; then :
14498 break
14500 done
14501 if test "${ac_cv_search_nanosleep+set}" = set; then :
14503 else
14504 ac_cv_search_nanosleep=no
14506 rm conftest.$ac_ext
14507 LIBS=$ac_func_search_save_LIBS
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14510 $as_echo "$ac_cv_search_nanosleep" >&6; }
14511 ac_res=$ac_cv_search_nanosleep
14512 if test "$ac_res" != no; then :
14513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14518 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14519 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 ac_func_search_save_LIBS=$LIBS
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 /* Override any GCC internal prototype to avoid an error.
14527 Use char because int might match the return type of a GCC
14528 builtin and then its argument prototype would still apply. */
14529 #ifdef __cplusplus
14530 extern "C"
14531 #endif
14532 char clock_gettime ();
14534 main ()
14536 return clock_gettime ();
14538 return 0;
14540 _ACEOF
14541 for ac_lib in '' rt; do
14542 if test -z "$ac_lib"; then
14543 ac_res="none required"
14544 else
14545 ac_res=-l$ac_lib
14546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14548 if ac_fn_c_try_link "$LINENO"; then :
14549 ac_cv_search_clock_gettime=$ac_res
14551 rm -f core conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext
14553 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14554 break
14556 done
14557 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14559 else
14560 ac_cv_search_clock_gettime=no
14562 rm conftest.$ac_ext
14563 LIBS=$ac_func_search_save_LIBS
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14566 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14567 ac_res=$ac_cv_search_clock_gettime
14568 if test "$ac_res" != no; then :
14569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14575 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14576 if test "${ac_cv_c_bigendian+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 ac_cv_c_bigendian=unknown
14580 # See if we're dealing with a universal compiler.
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 #ifndef __APPLE_CC__
14584 not a universal capable compiler
14585 #endif
14586 typedef int dummy;
14588 _ACEOF
14589 if ac_fn_c_try_compile "$LINENO"; then :
14591 # Check for potential -arch flags. It is not universal unless
14592 # there are at least two -arch flags with different values.
14593 ac_arch=
14594 ac_prev=
14595 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14596 if test -n "$ac_prev"; then
14597 case $ac_word in
14598 i?86 | x86_64 | ppc | ppc64)
14599 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14600 ac_arch=$ac_word
14601 else
14602 ac_cv_c_bigendian=universal
14603 break
14606 esac
14607 ac_prev=
14608 elif test "x$ac_word" = "x-arch"; then
14609 ac_prev=arch
14611 done
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 if test $ac_cv_c_bigendian = unknown; then
14615 # See if sys/param.h defines the BYTE_ORDER macro.
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <sys/types.h>
14619 #include <sys/param.h>
14622 main ()
14624 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14625 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14626 && LITTLE_ENDIAN)
14627 bogus endian macros
14628 #endif
14631 return 0;
14633 _ACEOF
14634 if ac_fn_c_try_compile "$LINENO"; then :
14635 # It does; now see whether it defined to BIG_ENDIAN or not.
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #include <sys/param.h>
14642 main ()
14644 #if BYTE_ORDER != BIG_ENDIAN
14645 not big endian
14646 #endif
14649 return 0;
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 ac_cv_c_bigendian=yes
14654 else
14655 ac_cv_c_bigendian=no
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 if test $ac_cv_c_bigendian = unknown; then
14662 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14665 #include <limits.h>
14668 main ()
14670 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14671 bogus endian macros
14672 #endif
14675 return 0;
14677 _ACEOF
14678 if ac_fn_c_try_compile "$LINENO"; then :
14679 # It does; now see whether it defined to _BIG_ENDIAN or not.
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <limits.h>
14685 main ()
14687 #ifndef _BIG_ENDIAN
14688 not big endian
14689 #endif
14692 return 0;
14694 _ACEOF
14695 if ac_fn_c_try_compile "$LINENO"; then :
14696 ac_cv_c_bigendian=yes
14697 else
14698 ac_cv_c_bigendian=no
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 if test $ac_cv_c_bigendian = unknown; then
14705 # Compile a test program.
14706 if test "$cross_compiling" = yes; then :
14707 # Try to guess by grepping values from an object file.
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 short int ascii_mm[] =
14711 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14712 short int ascii_ii[] =
14713 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14714 int use_ascii (int i) {
14715 return ascii_mm[i] + ascii_ii[i];
14717 short int ebcdic_ii[] =
14718 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14719 short int ebcdic_mm[] =
14720 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14721 int use_ebcdic (int i) {
14722 return ebcdic_mm[i] + ebcdic_ii[i];
14724 extern int foo;
14727 main ()
14729 return use_ascii (foo) == use_ebcdic (foo);
14731 return 0;
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14736 ac_cv_c_bigendian=yes
14738 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14739 if test "$ac_cv_c_bigendian" = unknown; then
14740 ac_cv_c_bigendian=no
14741 else
14742 # finding both strings is unlikely to happen, but who knows?
14743 ac_cv_c_bigendian=unknown
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 $ac_includes_default
14753 main ()
14756 /* Are we little or big endian? From Harbison&Steele. */
14757 union
14759 long int l;
14760 char c[sizeof (long int)];
14761 } u;
14762 u.l = 1;
14763 return u.c[sizeof (long int) - 1] == 1;
14766 return 0;
14768 _ACEOF
14769 if ac_fn_c_try_run "$LINENO"; then :
14770 ac_cv_c_bigendian=no
14771 else
14772 ac_cv_c_bigendian=yes
14774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14775 conftest.$ac_objext conftest.beam conftest.$ac_ext
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14781 $as_echo "$ac_cv_c_bigendian" >&6; }
14782 case $ac_cv_c_bigendian in #(
14783 yes)
14784 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14785 ;; #(
14787 ;; #(
14788 universal)
14790 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14792 ;; #(
14794 as_fn_error "unknown endianness
14795 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14796 esac
14801 # Check whether --with-system-libunwind was given.
14802 if test "${with_system_libunwind+set}" = set; then :
14803 withval=$with_system_libunwind;
14806 # If system-libunwind was not specifically set, pick a default setting.
14807 if test x$with_system_libunwind = x; then
14808 case ${target} in
14809 ia64-*-hpux*) with_system_libunwind=yes ;;
14810 *) with_system_libunwind=no ;;
14811 esac
14813 # Based on system-libunwind and target, do we have ipinfo?
14814 if test x$with_system_libunwind = xyes; then
14815 case ${target} in
14816 ia64-*-*) have_unwind_getipinfo=no ;;
14817 *) have_unwind_getipinfo=yes ;;
14818 esac
14819 else
14820 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14822 case ${target} in
14823 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14824 *) have_unwind_getipinfo=yes ;;
14825 esac
14829 if test x$have_unwind_getipinfo = xyes; then
14831 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14836 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
14837 do :
14838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14840 eval as_val=\$$as_ac_Header
14841 if test "x$as_val" = x""yes; then :
14842 cat >>confdefs.h <<_ACEOF
14843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14844 _ACEOF
14848 done
14851 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
14852 do :
14853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14855 #include <sys/socket.h>
14856 #endif
14859 eval as_val=\$$as_ac_Header
14860 if test "x$as_val" = x""yes; then :
14861 cat >>confdefs.h <<_ACEOF
14862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14863 _ACEOF
14867 done
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14871 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14872 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 CFLAGS_hold=$CFLAGS
14876 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 #include <sys/types.h>
14881 #ifdef HAVE_LINUX_FILTER_H
14882 #include <linux/filter.h>
14883 #endif
14884 #include <ustat.h>
14886 _ACEOF
14887 if ac_fn_c_try_compile "$LINENO"; then :
14888 libgo_cv_c_ustat_h=yes
14889 else
14890 libgo_cv_c_ustat_h=no
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 CFLAGS=$CFLAGS_hold
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14896 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14897 if test $libgo_cv_c_ustat_h = yes; then
14899 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14903 if test "$ac_cv_header_sys_mman_h" = yes; then
14904 HAVE_SYS_MMAN_H_TRUE=
14905 HAVE_SYS_MMAN_H_FALSE='#'
14906 else
14907 HAVE_SYS_MMAN_H_TRUE='#'
14908 HAVE_SYS_MMAN_H_FALSE=
14912 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14913 do :
14914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14916 eval as_val=\$$as_ac_var
14917 if test "x$as_val" = x""yes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920 _ACEOF
14923 done
14925 if test "$ac_cv_func_strerror_r" = yes; then
14926 HAVE_STRERROR_R_TRUE=
14927 HAVE_STRERROR_R_FALSE='#'
14928 else
14929 HAVE_STRERROR_R_TRUE='#'
14930 HAVE_STRERROR_R_FALSE=
14933 if test "$ac_cv_func_wait4" = yes; then
14934 HAVE_WAIT4_TRUE=
14935 HAVE_WAIT4_FALSE='#'
14936 else
14937 HAVE_WAIT4_TRUE='#'
14938 HAVE_WAIT4_FALSE=
14942 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
14943 do :
14944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14946 eval as_val=\$$as_ac_var
14947 if test "x$as_val" = x""yes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14950 _ACEOF
14953 done
14955 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14956 if test "x$ac_cv_type_off_t" = x""yes; then :
14958 else
14960 cat >>confdefs.h <<_ACEOF
14961 #define off_t long int
14962 _ACEOF
14966 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14967 if test "x$ac_cv_type_loff_t" = x""yes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_LOFF_T 1
14971 _ACEOF
14977 LIBS_hold="$LIBS"
14978 LIBS="$LIBS -lm"
14979 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14980 do :
14981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14983 eval as_val=\$$as_ac_var
14984 if test "x$as_val" = x""yes; then :
14985 cat >>confdefs.h <<_ACEOF
14986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14987 _ACEOF
14990 done
14992 LIBS="$LIBS_hold"
14994 CFLAGS_hold="$CFLAGS"
14995 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14996 LIBS_hold="$LIBS"
14997 LIBS="$LIBS $PTHREAD_LIBS"
14998 for ac_func in sem_timedwait
14999 do :
15000 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15001 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_SEM_TIMEDWAIT 1
15004 _ACEOF
15007 done
15009 CFLAGS="$CFLAGS_hold"
15010 LIBS="$LIBS_hold"
15012 LIBS_hold="$LIBS"
15013 LIBS="$LIBS $MATH_LIBS"
15014 for ac_func in matherr
15015 do :
15016 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15017 if test "x$ac_cv_func_matherr" = x""yes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_MATHERR 1
15020 _ACEOF
15023 done
15025 LIBS="$LIBS_hold"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
15028 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
15029 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15035 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15036 uint32 i;
15037 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15042 else
15043 libgo_cv_func___sync_bool_compare_and_swap_4=no
15045 rm -f core conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15049 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15050 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
15052 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15057 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
15058 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15064 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15065 uint64 i;
15066 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15068 _ACEOF
15069 if ac_fn_c_try_link "$LINENO"; then :
15070 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15071 else
15072 libgo_cv_func___sync_bool_compare_and_swap_8=no
15074 rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15078 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15079 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15081 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15086 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15087 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15093 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15094 uint32 i;
15095 int main() { return __sync_fetch_and_add (&i, 1); }
15097 _ACEOF
15098 if ac_fn_c_try_link "$LINENO"; then :
15099 libgo_cv_func___sync_fetch_and_add_4=yes
15100 else
15101 libgo_cv_func___sync_fetch_and_add_4=no
15103 rm -f core conftest.err conftest.$ac_objext \
15104 conftest$ac_exeext conftest.$ac_ext
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15107 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15108 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15110 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15115 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15116 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15123 uint64 i;
15124 int main() { return __sync_add_and_fetch (&i, 1); }
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15128 libgo_cv_func___sync_add_and_fetch_8=yes
15129 else
15130 libgo_cv_func___sync_add_and_fetch_8=no
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15136 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15137 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15139 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15144 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15145 if test "${libgo_cv_c_stringops+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 CFLAGS_hold=$CFLAGS
15149 CFLAGS="$CFLAGS -minline-all-stringops"
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15152 int i;
15153 _ACEOF
15154 if ac_fn_c_try_compile "$LINENO"; then :
15155 libgo_cv_c_stringops=yes
15156 else
15157 libgo_cv_c_stringops=no
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 CFLAGS=$CFLAGS_hold
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15163 $as_echo "$libgo_cv_c_stringops" >&6; }
15164 STRINGOPS_FLAG=
15165 if test "$libgo_cv_c_stringops" = yes; then
15166 STRINGOPS_FLAG=-minline-all-stringops
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15171 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15172 if test "${libgo_cv_c_fancymath+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 CFLAGS_hold=$CFLAGS
15176 CFLAGS="$CFLAGS -mfancy-math-387"
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15179 int i;
15180 _ACEOF
15181 if ac_fn_c_try_compile "$LINENO"; then :
15182 libgo_cv_c_fancymath=yes
15183 else
15184 libgo_cv_c_fancymath=no
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 CFLAGS=$CFLAGS_hold
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15190 $as_echo "$libgo_cv_c_fancymath" >&6; }
15191 MATH_FLAG=
15192 if test "$libgo_cv_c_fancymath" = yes; then
15193 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15194 else
15195 MATH_FLAG="-ffp-contract=off"
15199 CFLAGS_hold=$CFLAGS
15200 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15201 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15202 if test "x$ac_cv_type_off64_t" = x""yes; then :
15204 cat >>confdefs.h <<_ACEOF
15205 #define HAVE_OFF64_T 1
15206 _ACEOF
15211 CFLAGS=$CFLAGS_hold
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15214 $as_echo_n "checking epoll_event size... " >&6; }
15215 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15220 else
15221 libgo_cv_c_epoll_event_size=0
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15226 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15227 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15231 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15232 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15236 #include <sys/epoll.h>"; then :
15238 else
15239 libgo_cv_c_epoll_event_fd_offset=0
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15244 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15245 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15250 #include <sys/stat.h>
15252 _ACEOF
15253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15254 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15255 have_stat_timespec=yes
15256 else
15257 have_stat_timespec=no
15259 rm -f conftest*
15261 if test $have_stat_timespec = yes; then
15262 HAVE_STAT_TIMESPEC_TRUE=
15263 HAVE_STAT_TIMESPEC_FALSE='#'
15264 else
15265 HAVE_STAT_TIMESPEC_TRUE='#'
15266 HAVE_STAT_TIMESPEC_FALSE=
15270 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15272 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15273 libgo_has_struct_exception=yes
15274 else
15275 libgo_has_struct_exception=no
15278 if test "$libgo_has_struct_exception" = "yes"; then
15280 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15285 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15286 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15289 CFLAGS_hold="$CFLAGS"
15290 CFLAGS="$PTHREAD_CFLAGS"
15291 LIBS_hold="$LIBS"
15292 LIBS="$LIBS $PTHREAD_LIBS"
15293 # The cast to long int works around a bug in the HP C Compiler
15294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15296 # This bug is HP SR number 8606223364.
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15298 $as_echo_n "checking size of void *... " >&6; }
15299 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15304 else
15305 if test "$ac_cv_type_void_p" = yes; then
15306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15308 { as_fn_set_status 77
15309 as_fn_error "cannot compute sizeof (void *)
15310 See \`config.log' for more details." "$LINENO" 5; }; }
15311 else
15312 ac_cv_sizeof_void_p=0
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15318 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15322 cat >>confdefs.h <<_ACEOF
15323 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15324 _ACEOF
15327 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15328 if test "$cross_compiling" = yes; then :
15329 case "$target:$ptr_type_size" in
15330 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15331 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15333 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15334 esac
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 #include <pthread.h>
15341 #include <stdlib.h>
15342 #include <ucontext.h>
15343 #include <unistd.h>
15345 __thread int tls;
15347 static char stack[10 * 1024 * 1024];
15348 static ucontext_t c;
15350 /* Called via makecontext/setcontext. */
15352 static void
15353 cfn (void)
15355 exit (tls);
15358 /* Called via pthread_create. */
15360 static void *
15361 tfn (void *dummy)
15363 /* The thread should still see this value after calling
15364 setcontext. */
15365 tls = 0;
15367 setcontext (&c);
15369 /* The call to setcontext should not return. */
15370 abort ();
15374 main ()
15376 pthread_t tid;
15378 /* The thread should not see this value. */
15379 tls = 1;
15381 if (getcontext (&c) < 0)
15382 abort ();
15384 c.uc_stack.ss_sp = stack;
15385 #ifdef MAKECONTEXT_STACK_TOP
15386 c.uc_stack.ss_sp += sizeof stack;
15387 #endif
15388 c.uc_stack.ss_flags = 0;
15389 c.uc_stack.ss_size = sizeof stack;
15390 c.uc_link = NULL;
15391 makecontext (&c, cfn, 0);
15393 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15394 abort ();
15396 if (pthread_join (tid, NULL) != 0)
15397 abort ();
15399 /* The thread should have called exit. */
15400 abort ();
15403 _ACEOF
15404 if ac_fn_c_try_run "$LINENO"; then :
15405 libgo_cv_lib_setcontext_clobbers_tls=no
15406 else
15407 libgo_cv_lib_setcontext_clobbers_tls=yes
15409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15410 conftest.$ac_objext conftest.beam conftest.$ac_ext
15413 CFLAGS="$CFLAGS_hold"
15414 LIBS="$LIBS_hold"
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15418 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15419 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15421 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15426 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15427 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15431 libgo_cv_ro_eh_frame=no
15432 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15433 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15434 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15435 libgo_cv_ro_eh_frame=yes
15436 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15437 | grep -v '#write' > /dev/null; then
15438 libgo_cv_ro_eh_frame=yes
15441 rm -f conftest.*
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15445 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15446 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15448 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15450 else
15452 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15457 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15458 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15459 $as_echo_n "(cached) " >&6
15460 else
15461 CFLAGS_hold=$CFLAGS
15462 CFLAGS="$CFLAGS -Qunused-arguments"
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465 int i;
15466 _ACEOF
15467 if ac_fn_c_try_compile "$LINENO"; then :
15468 libgo_cv_c_unused_arguments=yes
15469 else
15470 libgo_cv_c_unused_arguments=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 CFLAGS=$CFLAGS_hold
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15476 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15479 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15480 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15484 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15485 CFLAGS_hold=$CFLAGS
15486 if test "$libgo_cv_c_unused_arguments" = yes; then
15487 CFLAGS="$CFLAGS -Qunused-arguments"
15489 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15490 libgo_cv_as_comdat_gnu=yes
15491 else
15492 libgo_cv_as_comdat_gnu=no
15494 CFLAGS=$CFLAGS_hold
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15498 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15499 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15501 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15506 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15507 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15511 libgo_cv_as_x86_pcrel=yes
15512 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15513 CFLAGS_hold=$CFLAGS
15514 if test "$libgo_cv_c_unused_arguments" = yes; then
15515 CFLAGS="$CFLAGS -Qunused-arguments"
15517 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15518 libgo_cv_as_x86_pcrel=no
15520 CFLAGS=$CFLAGS_hold
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15524 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15525 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15527 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15532 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15533 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15537 libgo_cv_as_x86_64_unwind_section_type=yes
15538 echo '.section .eh_frame,"a",@unwind' > conftest.s
15539 CFLAGS_hold=$CFLAGS
15540 if test "$libgo_cv_c_unused_arguments" = yes; then
15541 CFLAGS="$CFLAGS -Qunused-arguments"
15543 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15544 libgo_cv_as_x86_64_unwind_section_type=no
15546 CFLAGS=$CFLAGS_hold
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15550 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15551 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15553 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15557 cat >confcache <<\_ACEOF
15558 # This file is a shell script that caches the results of configure
15559 # tests run on this system so they can be shared between configure
15560 # scripts and configure runs, see configure's option --config-cache.
15561 # It is not useful on other systems. If it contains results you don't
15562 # want to keep, you may remove or edit it.
15564 # config.status only pays attention to the cache file if you give it
15565 # the --recheck option to rerun configure.
15567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15569 # following values.
15571 _ACEOF
15573 # The following way of writing the cache mishandles newlines in values,
15574 # but we know of no workaround that is simple, portable, and efficient.
15575 # So, we kill variables containing newlines.
15576 # Ultrix sh set writes to stderr and can't be redirected directly,
15577 # and sets the high bit in the cache file unless we assign to the vars.
15579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15580 eval ac_val=\$$ac_var
15581 case $ac_val in #(
15582 *${as_nl}*)
15583 case $ac_var in #(
15584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15586 esac
15587 case $ac_var in #(
15588 _ | IFS | as_nl) ;; #(
15589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15590 *) { eval $ac_var=; unset $ac_var;} ;;
15591 esac ;;
15592 esac
15593 done
15595 (set) 2>&1 |
15596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15597 *${as_nl}ac_space=\ *)
15598 # `set' does not quote correctly, so add quotes: double-quote
15599 # substitution turns \\\\ into \\, and sed turns \\ into \.
15600 sed -n \
15601 "s/'/'\\\\''/g;
15602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15603 ;; #(
15605 # `set' quotes correctly as required by POSIX, so do not add quotes.
15606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15608 esac |
15609 sort
15611 sed '
15612 /^ac_cv_env_/b end
15613 t clear
15614 :clear
15615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15616 t end
15617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15618 :end' >>confcache
15619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15620 if test -w "$cache_file"; then
15621 test "x$cache_file" != "x/dev/null" &&
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15623 $as_echo "$as_me: updating cache $cache_file" >&6;}
15624 cat confcache >$cache_file
15625 else
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15630 rm -f confcache
15632 if test ${multilib} = yes; then
15633 multilib_arg="--enable-multilib"
15634 else
15635 multilib_arg=
15638 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15641 ac_config_commands="$ac_config_commands default"
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems. If it contains results you don't
15649 # want to keep, you may remove or edit it.
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15658 _ACEOF
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, we kill variables containing newlines.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15667 eval ac_val=\$$ac_var
15668 case $ac_val in #(
15669 *${as_nl}*)
15670 case $ac_var in #(
15671 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15672 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15673 esac
15674 case $ac_var in #(
15675 _ | IFS | as_nl) ;; #(
15676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15677 *) { eval $ac_var=; unset $ac_var;} ;;
15678 esac ;;
15679 esac
15680 done
15682 (set) 2>&1 |
15683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15684 *${as_nl}ac_space=\ *)
15685 # `set' does not quote correctly, so add quotes: double-quote
15686 # substitution turns \\\\ into \\, and sed turns \\ into \.
15687 sed -n \
15688 "s/'/'\\\\''/g;
15689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15690 ;; #(
15692 # `set' quotes correctly as required by POSIX, so do not add quotes.
15693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15695 esac |
15696 sort
15698 sed '
15699 /^ac_cv_env_/b end
15700 t clear
15701 :clear
15702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15703 t end
15704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15705 :end' >>confcache
15706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15707 if test -w "$cache_file"; then
15708 test "x$cache_file" != "x/dev/null" &&
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15710 $as_echo "$as_me: updating cache $cache_file" >&6;}
15711 cat confcache >$cache_file
15712 else
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15714 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15717 rm -f confcache
15719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15720 # Let make expand exec_prefix.
15721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15723 DEFS=-DHAVE_CONFIG_H
15725 ac_libobjs=
15726 ac_ltlibobjs=
15727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15728 # 1. Remove the extension, and $U if already installed.
15729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15732 # will be set to the directory where LIBOBJS objects are built.
15733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15735 done
15736 LIBOBJS=$ac_libobjs
15738 LTLIBOBJS=$ac_ltlibobjs
15741 if test -n "$EXEEXT"; then
15742 am__EXEEXT_TRUE=
15743 am__EXEEXT_FALSE='#'
15744 else
15745 am__EXEEXT_TRUE='#'
15746 am__EXEEXT_FALSE=
15749 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15750 as_fn_error "conditional \"AMDEP\" was never defined.
15751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15754 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15758 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15761 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15762 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15766 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15770 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15774 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15778 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15782 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15786 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15789 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15790 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15794 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15798 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15801 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15802 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15806 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15810 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15814 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15817 if test -z "${LIBGO_IS_IA64_TRUE}" && test -z "${LIBGO_IS_IA64_FALSE}"; then
15818 as_fn_error "conditional \"LIBGO_IS_IA64\" was never defined.
15819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15821 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15822 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15825 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15826 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15830 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15834 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15838 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15842 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
15846 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
15847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15850 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15854 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
15858 as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
15859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
15862 as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
15863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
15866 as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
15867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15869 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15870 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15873 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15874 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15877 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15878 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15881 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15882 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15885 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15886 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15890 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15891 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15894 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15895 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15898 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15899 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15903 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907 : ${CONFIG_STATUS=./config.status}
15908 ac_write_fail=0
15909 ac_clean_files_save=$ac_clean_files
15910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15913 as_write_fail=0
15914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15915 #! $SHELL
15916 # Generated by $as_me.
15917 # Run this file to recreate the current configuration.
15918 # Compiler output produced by configure, useful for debugging
15919 # configure, is in config.log if it exists.
15921 debug=false
15922 ac_cs_recheck=false
15923 ac_cs_silent=false
15925 SHELL=\${CONFIG_SHELL-$SHELL}
15926 export SHELL
15927 _ASEOF
15928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15929 ## -------------------- ##
15930 ## M4sh Initialization. ##
15931 ## -------------------- ##
15933 # Be more Bourne compatible
15934 DUALCASE=1; export DUALCASE # for MKS sh
15935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15936 emulate sh
15937 NULLCMD=:
15938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15939 # is contrary to our usage. Disable this feature.
15940 alias -g '${1+"$@"}'='"$@"'
15941 setopt NO_GLOB_SUBST
15942 else
15943 case `(set -o) 2>/dev/null` in #(
15944 *posix*) :
15945 set -o posix ;; #(
15946 *) :
15948 esac
15952 as_nl='
15954 export as_nl
15955 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15956 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15959 # Prefer a ksh shell builtin over an external printf program on Solaris,
15960 # but without wasting forks for bash or zsh.
15961 if test -z "$BASH_VERSION$ZSH_VERSION" \
15962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15963 as_echo='print -r --'
15964 as_echo_n='print -rn --'
15965 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15966 as_echo='printf %s\n'
15967 as_echo_n='printf %s'
15968 else
15969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15970 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15971 as_echo_n='/usr/ucb/echo -n'
15972 else
15973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15974 as_echo_n_body='eval
15975 arg=$1;
15976 case $arg in #(
15977 *"$as_nl"*)
15978 expr "X$arg" : "X\\(.*\\)$as_nl";
15979 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15980 esac;
15981 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15983 export as_echo_n_body
15984 as_echo_n='sh -c $as_echo_n_body as_echo'
15986 export as_echo_body
15987 as_echo='sh -c $as_echo_body as_echo'
15990 # The user is always right.
15991 if test "${PATH_SEPARATOR+set}" != set; then
15992 PATH_SEPARATOR=:
15993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15994 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15995 PATH_SEPARATOR=';'
16000 # IFS
16001 # We need space, tab and new line, in precisely that order. Quoting is
16002 # there to prevent editors from complaining about space-tab.
16003 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16004 # splitting by setting IFS to empty value.)
16005 IFS=" "" $as_nl"
16007 # Find who we are. Look in the path if we contain no directory separator.
16008 case $0 in #((
16009 *[\\/]* ) as_myself=$0 ;;
16010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16013 IFS=$as_save_IFS
16014 test -z "$as_dir" && as_dir=.
16015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16016 done
16017 IFS=$as_save_IFS
16020 esac
16021 # We did not find ourselves, most probably we were run as `sh COMMAND'
16022 # in which case we are not to be found in the path.
16023 if test "x$as_myself" = x; then
16024 as_myself=$0
16026 if test ! -f "$as_myself"; then
16027 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16028 exit 1
16031 # Unset variables that we do not need and which cause bugs (e.g. in
16032 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16033 # suppresses any "Segmentation fault" message there. '((' could
16034 # trigger a bug in pdksh 5.2.14.
16035 for as_var in BASH_ENV ENV MAIL MAILPATH
16036 do eval test x\${$as_var+set} = xset \
16037 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16038 done
16039 PS1='$ '
16040 PS2='> '
16041 PS4='+ '
16043 # NLS nuisances.
16044 LC_ALL=C
16045 export LC_ALL
16046 LANGUAGE=C
16047 export LANGUAGE
16049 # CDPATH.
16050 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16053 # as_fn_error ERROR [LINENO LOG_FD]
16054 # ---------------------------------
16055 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16056 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16057 # script with status $?, using 1 if that was 0.
16058 as_fn_error ()
16060 as_status=$?; test $as_status -eq 0 && as_status=1
16061 if test "$3"; then
16062 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16063 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16065 $as_echo "$as_me: error: $1" >&2
16066 as_fn_exit $as_status
16067 } # as_fn_error
16070 # as_fn_set_status STATUS
16071 # -----------------------
16072 # Set $? to STATUS, without forking.
16073 as_fn_set_status ()
16075 return $1
16076 } # as_fn_set_status
16078 # as_fn_exit STATUS
16079 # -----------------
16080 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16081 as_fn_exit ()
16083 set +e
16084 as_fn_set_status $1
16085 exit $1
16086 } # as_fn_exit
16088 # as_fn_unset VAR
16089 # ---------------
16090 # Portably unset VAR.
16091 as_fn_unset ()
16093 { eval $1=; unset $1;}
16095 as_unset=as_fn_unset
16096 # as_fn_append VAR VALUE
16097 # ----------------------
16098 # Append the text in VALUE to the end of the definition contained in VAR. Take
16099 # advantage of any shell optimizations that allow amortized linear growth over
16100 # repeated appends, instead of the typical quadratic growth present in naive
16101 # implementations.
16102 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16103 eval 'as_fn_append ()
16105 eval $1+=\$2
16107 else
16108 as_fn_append ()
16110 eval $1=\$$1\$2
16112 fi # as_fn_append
16114 # as_fn_arith ARG...
16115 # ------------------
16116 # Perform arithmetic evaluation on the ARGs, and store the result in the
16117 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16118 # must be portable across $(()) and expr.
16119 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16120 eval 'as_fn_arith ()
16122 as_val=$(( $* ))
16124 else
16125 as_fn_arith ()
16127 as_val=`expr "$@" || test $? -eq 1`
16129 fi # as_fn_arith
16132 if expr a : '\(a\)' >/dev/null 2>&1 &&
16133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16134 as_expr=expr
16135 else
16136 as_expr=false
16139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16140 as_basename=basename
16141 else
16142 as_basename=false
16145 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16146 as_dirname=dirname
16147 else
16148 as_dirname=false
16151 as_me=`$as_basename -- "$0" ||
16152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16153 X"$0" : 'X\(//\)$' \| \
16154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16155 $as_echo X/"$0" |
16156 sed '/^.*\/\([^/][^/]*\)\/*$/{
16157 s//\1/
16160 /^X\/\(\/\/\)$/{
16161 s//\1/
16164 /^X\/\(\/\).*/{
16165 s//\1/
16168 s/.*/./; q'`
16170 # Avoid depending upon Character Ranges.
16171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16174 as_cr_digits='0123456789'
16175 as_cr_alnum=$as_cr_Letters$as_cr_digits
16177 ECHO_C= ECHO_N= ECHO_T=
16178 case `echo -n x` in #(((((
16179 -n*)
16180 case `echo 'xy\c'` in
16181 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16182 xy) ECHO_C='\c';;
16183 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16184 ECHO_T=' ';;
16185 esac;;
16187 ECHO_N='-n';;
16188 esac
16190 rm -f conf$$ conf$$.exe conf$$.file
16191 if test -d conf$$.dir; then
16192 rm -f conf$$.dir/conf$$.file
16193 else
16194 rm -f conf$$.dir
16195 mkdir conf$$.dir 2>/dev/null
16197 if (echo >conf$$.file) 2>/dev/null; then
16198 if ln -s conf$$.file conf$$ 2>/dev/null; then
16199 as_ln_s='ln -s'
16200 # ... but there are two gotchas:
16201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16203 # In both cases, we have to default to `cp -p'.
16204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16205 as_ln_s='cp -p'
16206 elif ln conf$$.file conf$$ 2>/dev/null; then
16207 as_ln_s=ln
16208 else
16209 as_ln_s='cp -p'
16211 else
16212 as_ln_s='cp -p'
16214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16215 rmdir conf$$.dir 2>/dev/null
16218 # as_fn_mkdir_p
16219 # -------------
16220 # Create "$as_dir" as a directory, including parents if necessary.
16221 as_fn_mkdir_p ()
16224 case $as_dir in #(
16225 -*) as_dir=./$as_dir;;
16226 esac
16227 test -d "$as_dir" || eval $as_mkdir_p || {
16228 as_dirs=
16229 while :; do
16230 case $as_dir in #(
16231 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16232 *) as_qdir=$as_dir;;
16233 esac
16234 as_dirs="'$as_qdir' $as_dirs"
16235 as_dir=`$as_dirname -- "$as_dir" ||
16236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16237 X"$as_dir" : 'X\(//\)[^/]' \| \
16238 X"$as_dir" : 'X\(//\)$' \| \
16239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16240 $as_echo X"$as_dir" |
16241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16242 s//\1/
16245 /^X\(\/\/\)[^/].*/{
16246 s//\1/
16249 /^X\(\/\/\)$/{
16250 s//\1/
16253 /^X\(\/\).*/{
16254 s//\1/
16257 s/.*/./; q'`
16258 test -d "$as_dir" && break
16259 done
16260 test -z "$as_dirs" || eval "mkdir $as_dirs"
16261 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16264 } # as_fn_mkdir_p
16265 if mkdir -p . 2>/dev/null; then
16266 as_mkdir_p='mkdir -p "$as_dir"'
16267 else
16268 test -d ./-p && rmdir ./-p
16269 as_mkdir_p=false
16272 if test -x / >/dev/null 2>&1; then
16273 as_test_x='test -x'
16274 else
16275 if ls -dL / >/dev/null 2>&1; then
16276 as_ls_L_option=L
16277 else
16278 as_ls_L_option=
16280 as_test_x='
16281 eval sh -c '\''
16282 if test -d "$1"; then
16283 test -d "$1/.";
16284 else
16285 case $1 in #(
16286 -*)set "./$1";;
16287 esac;
16288 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16289 ???[sx]*):;;*)false;;esac;fi
16290 '\'' sh
16293 as_executable_p=$as_test_x
16295 # Sed expression to map a string onto a valid CPP name.
16296 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16298 # Sed expression to map a string onto a valid variable name.
16299 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16302 exec 6>&1
16303 ## ----------------------------------- ##
16304 ## Main body of $CONFIG_STATUS script. ##
16305 ## ----------------------------------- ##
16306 _ASEOF
16307 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16310 # Save the log message, to keep $0 and so on meaningful, and to
16311 # report actual input values of CONFIG_FILES etc. instead of their
16312 # values after options handling.
16313 ac_log="
16314 This file was extended by package-unused $as_me version-unused, which was
16315 generated by GNU Autoconf 2.64. Invocation command line was
16317 CONFIG_FILES = $CONFIG_FILES
16318 CONFIG_HEADERS = $CONFIG_HEADERS
16319 CONFIG_LINKS = $CONFIG_LINKS
16320 CONFIG_COMMANDS = $CONFIG_COMMANDS
16321 $ $0 $@
16323 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16326 _ACEOF
16328 case $ac_config_files in *"
16329 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16330 esac
16332 case $ac_config_headers in *"
16333 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16334 esac
16337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338 # Files that config.status was made for.
16339 config_files="$ac_config_files"
16340 config_headers="$ac_config_headers"
16341 config_commands="$ac_config_commands"
16343 _ACEOF
16345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16346 ac_cs_usage="\
16347 \`$as_me' instantiates files and other configuration actions
16348 from templates according to the current configuration. Unless the files
16349 and actions are specified as TAGs, all are instantiated by default.
16351 Usage: $0 [OPTION]... [TAG]...
16353 -h, --help print this help, then exit
16354 -V, --version print version number and configuration settings, then exit
16355 -q, --quiet, --silent
16356 do not print progress messages
16357 -d, --debug don't remove temporary files
16358 --recheck update $as_me by reconfiguring in the same conditions
16359 --file=FILE[:TEMPLATE]
16360 instantiate the configuration file FILE
16361 --header=FILE[:TEMPLATE]
16362 instantiate the configuration header FILE
16364 Configuration files:
16365 $config_files
16367 Configuration headers:
16368 $config_headers
16370 Configuration commands:
16371 $config_commands
16373 Report bugs to the package provider."
16375 _ACEOF
16376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377 ac_cs_version="\\
16378 package-unused config.status version-unused
16379 configured by $0, generated by GNU Autoconf 2.64,
16380 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16382 Copyright (C) 2009 Free Software Foundation, Inc.
16383 This config.status script is free software; the Free Software Foundation
16384 gives unlimited permission to copy, distribute and modify it."
16386 ac_pwd='$ac_pwd'
16387 srcdir='$srcdir'
16388 INSTALL='$INSTALL'
16389 MKDIR_P='$MKDIR_P'
16390 AWK='$AWK'
16391 test -n "\$AWK" || AWK=awk
16392 _ACEOF
16394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16395 # The default lists apply if the user does not specify any file.
16396 ac_need_defaults=:
16397 while test $# != 0
16399 case $1 in
16400 --*=*)
16401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16403 ac_shift=:
16406 ac_option=$1
16407 ac_optarg=$2
16408 ac_shift=shift
16410 esac
16412 case $ac_option in
16413 # Handling of the options.
16414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16415 ac_cs_recheck=: ;;
16416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16417 $as_echo "$ac_cs_version"; exit ;;
16418 --debug | --debu | --deb | --de | --d | -d )
16419 debug=: ;;
16420 --file | --fil | --fi | --f )
16421 $ac_shift
16422 case $ac_optarg in
16423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16424 esac
16425 as_fn_append CONFIG_FILES " '$ac_optarg'"
16426 ac_need_defaults=false;;
16427 --header | --heade | --head | --hea )
16428 $ac_shift
16429 case $ac_optarg in
16430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16431 esac
16432 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16433 ac_need_defaults=false;;
16434 --he | --h)
16435 # Conflict between --help and --header
16436 as_fn_error "ambiguous option: \`$1'
16437 Try \`$0 --help' for more information.";;
16438 --help | --hel | -h )
16439 $as_echo "$ac_cs_usage"; exit ;;
16440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16442 ac_cs_silent=: ;;
16444 # This is an error.
16445 -*) as_fn_error "unrecognized option: \`$1'
16446 Try \`$0 --help' for more information." ;;
16448 *) as_fn_append ac_config_targets " $1"
16449 ac_need_defaults=false ;;
16451 esac
16452 shift
16453 done
16455 ac_configure_extra_args=
16457 if $ac_cs_silent; then
16458 exec 6>/dev/null
16459 ac_configure_extra_args="$ac_configure_extra_args --silent"
16462 _ACEOF
16463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 if \$ac_cs_recheck; then
16465 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16466 shift
16467 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16468 CONFIG_SHELL='$SHELL'
16469 export CONFIG_SHELL
16470 exec "\$@"
16473 _ACEOF
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 exec 5>>config.log
16477 echo
16478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16479 ## Running $as_me. ##
16480 _ASBOX
16481 $as_echo "$ac_log"
16482 } >&5
16484 _ACEOF
16485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16487 # INIT-COMMANDS
16490 srcdir="$srcdir"
16491 host="$host"
16492 target="$target"
16493 with_multisubdir="$with_multisubdir"
16494 with_multisrctop="$with_multisrctop"
16495 with_target_subdir="$with_target_subdir"
16496 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16497 multi_basedir="$multi_basedir"
16498 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16499 CC="$CC"
16500 CXX="$CXX"
16501 GFORTRAN="$GFORTRAN"
16502 GCJ="$GCJ"
16503 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16506 # The HP-UX ksh and POSIX shell print the target directory to stdout
16507 # if CDPATH is set.
16508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16510 sed_quote_subst='$sed_quote_subst'
16511 double_quote_subst='$double_quote_subst'
16512 delay_variable_subst='$delay_variable_subst'
16513 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16514 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16515 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16516 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16517 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16518 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16519 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16520 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16521 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16522 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16523 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16524 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16525 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16526 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16527 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16528 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16529 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16530 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16531 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16532 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16533 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16534 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16535 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16536 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16537 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16538 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16539 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16540 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16541 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16542 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16543 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16544 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16545 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16546 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16547 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16548 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16549 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16550 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16551 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16552 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16553 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16554 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16555 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16556 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16557 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16558 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16559 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16560 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16561 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"`'
16562 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16563 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16564 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16565 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16566 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16567 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16568 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16569 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16570 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16571 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16572 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16573 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16574 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16575 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16576 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16577 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16578 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16579 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16580 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16581 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16582 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16583 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16584 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16585 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16586 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16587 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16588 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16589 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16590 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16591 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16592 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16593 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16594 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16595 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16596 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16597 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16598 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16599 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16600 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16601 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16602 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16603 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16604 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16605 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16606 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16607 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16608 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16609 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16610 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16611 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16612 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16613 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16614 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16615 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16616 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16617 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16618 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16619 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16620 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16621 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16622 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16623 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16624 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16625 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16626 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16627 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16628 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16629 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16630 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16631 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16632 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16633 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16634 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16635 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16636 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16637 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16638 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16639 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16640 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16641 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16642 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16643 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16644 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16645 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16646 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16647 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16648 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16649 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16650 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16651 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16652 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16653 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16654 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16655 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16656 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16657 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16658 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16659 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16660 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16661 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16662 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16663 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16664 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16665 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16666 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16667 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16668 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16669 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16670 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16671 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16672 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16673 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16674 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16675 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16677 LTCC='$LTCC'
16678 LTCFLAGS='$LTCFLAGS'
16679 compiler='$compiler_DEFAULT'
16681 # A function that is used when there is no print builtin or printf.
16682 func_fallback_echo ()
16684 eval 'cat <<_LTECHO_EOF
16686 _LTECHO_EOF'
16689 # Quote evaled strings.
16690 for var in SED \
16691 GREP \
16692 EGREP \
16693 FGREP \
16694 SHELL \
16695 ECHO \
16696 LD \
16697 NM \
16698 LN_S \
16699 lt_SP2NL \
16700 lt_NL2SP \
16701 reload_flag \
16702 OBJDUMP \
16703 deplibs_check_method \
16704 file_magic_cmd \
16705 AR \
16706 AR_FLAGS \
16707 STRIP \
16708 RANLIB \
16709 CC \
16710 CFLAGS \
16711 compiler \
16712 lt_cv_sys_global_symbol_pipe \
16713 lt_cv_sys_global_symbol_to_cdecl \
16714 lt_cv_sys_global_symbol_to_c_name_address \
16715 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16716 lt_prog_compiler_no_builtin_flag \
16717 lt_prog_compiler_wl \
16718 lt_prog_compiler_pic \
16719 lt_prog_compiler_static \
16720 lt_cv_prog_compiler_c_o \
16721 need_locks \
16722 DSYMUTIL \
16723 NMEDIT \
16724 LIPO \
16725 OTOOL \
16726 OTOOL64 \
16727 shrext_cmds \
16728 export_dynamic_flag_spec \
16729 whole_archive_flag_spec \
16730 compiler_needs_object \
16731 with_gnu_ld \
16732 allow_undefined_flag \
16733 no_undefined_flag \
16734 hardcode_libdir_flag_spec \
16735 hardcode_libdir_flag_spec_ld \
16736 hardcode_libdir_separator \
16737 fix_srcfile_path \
16738 exclude_expsyms \
16739 include_expsyms \
16740 file_list_spec \
16741 variables_saved_for_relink \
16742 libname_spec \
16743 library_names_spec \
16744 soname_spec \
16745 install_override_mode \
16746 finish_eval \
16747 old_striplib \
16748 striplib \
16749 LD_GO \
16750 reload_flag_GO \
16751 compiler_GO \
16752 lt_prog_compiler_no_builtin_flag_GO \
16753 lt_prog_compiler_wl_GO \
16754 lt_prog_compiler_pic_GO \
16755 lt_prog_compiler_static_GO \
16756 lt_cv_prog_compiler_c_o_GO \
16757 export_dynamic_flag_spec_GO \
16758 whole_archive_flag_spec_GO \
16759 compiler_needs_object_GO \
16760 with_gnu_ld_GO \
16761 allow_undefined_flag_GO \
16762 no_undefined_flag_GO \
16763 hardcode_libdir_flag_spec_GO \
16764 hardcode_libdir_flag_spec_ld_GO \
16765 hardcode_libdir_separator_GO \
16766 fix_srcfile_path_GO \
16767 exclude_expsyms_GO \
16768 include_expsyms_GO \
16769 file_list_spec_GO; do
16770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16771 *[\\\\\\\`\\"\\\$]*)
16772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16777 esac
16778 done
16780 # Double-quote double-evaled strings.
16781 for var in reload_cmds \
16782 old_postinstall_cmds \
16783 old_postuninstall_cmds \
16784 old_archive_cmds \
16785 extract_expsyms_cmds \
16786 old_archive_from_new_cmds \
16787 old_archive_from_expsyms_cmds \
16788 archive_cmds \
16789 archive_expsym_cmds \
16790 module_cmds \
16791 module_expsym_cmds \
16792 export_symbols_cmds \
16793 prelink_cmds \
16794 postinstall_cmds \
16795 postuninstall_cmds \
16796 finish_cmds \
16797 sys_lib_search_path_spec \
16798 sys_lib_dlsearch_path_spec \
16799 reload_cmds_GO \
16800 old_archive_cmds_GO \
16801 old_archive_from_new_cmds_GO \
16802 old_archive_from_expsyms_cmds_GO \
16803 archive_cmds_GO \
16804 archive_expsym_cmds_GO \
16805 module_cmds_GO \
16806 module_expsym_cmds_GO \
16807 export_symbols_cmds_GO \
16808 prelink_cmds_GO; do
16809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16810 *[\\\\\\\`\\"\\\$]*)
16811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16816 esac
16817 done
16819 ac_aux_dir='$ac_aux_dir'
16820 xsi_shell='$xsi_shell'
16821 lt_shell_append='$lt_shell_append'
16823 # See if we are running on zsh, and set the options which allow our
16824 # commands through without removal of \ escapes INIT.
16825 if test -n "\${ZSH_VERSION+set}" ; then
16826 setopt NO_GLOB_SUBST
16830 PACKAGE='$PACKAGE'
16831 VERSION='$VERSION'
16832 TIMESTAMP='$TIMESTAMP'
16833 RM='$RM'
16834 ofile='$ofile'
16841 # Variables needed in config.status (file generation) which aren't already
16842 # passed by autoconf.
16843 SUBDIRS="$SUBDIRS"
16846 _ACEOF
16848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 # Handling of arguments.
16851 for ac_config_target in $ac_config_targets
16853 case $ac_config_target in
16854 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16855 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16859 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16860 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16862 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16863 esac
16864 done
16867 # If the user did not use the arguments to specify the items to instantiate,
16868 # then the envvar interface is used. Set only those that are not.
16869 # We use the long form for the default assignment because of an extremely
16870 # bizarre bug on SunOS 4.1.3.
16871 if $ac_need_defaults; then
16872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16877 # Have a temporary directory for convenience. Make it in the build tree
16878 # simply because there is no reason against having it here, and in addition,
16879 # creating and moving files from /tmp can sometimes cause problems.
16880 # Hook for its removal unless debugging.
16881 # Note that there is a small window in which the directory will not be cleaned:
16882 # after its creation but before its name has been assigned to `$tmp'.
16883 $debug ||
16885 tmp=
16886 trap 'exit_status=$?
16887 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16889 trap 'as_fn_exit 1' 1 2 13 15
16891 # Create a (secure) tmp directory for tmp files.
16894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16895 test -n "$tmp" && test -d "$tmp"
16896 } ||
16898 tmp=./conf$$-$RANDOM
16899 (umask 077 && mkdir "$tmp")
16900 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16902 # Set up the scripts for CONFIG_FILES section.
16903 # No need to generate them if there are no CONFIG_FILES.
16904 # This happens for instance with `./config.status config.h'.
16905 if test -n "$CONFIG_FILES"; then
16908 ac_cr=`echo X | tr X '\015'`
16909 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16910 # But we know of no other shell where ac_cr would be empty at this
16911 # point, so we can use a bashism as a fallback.
16912 if test "x$ac_cr" = x; then
16913 eval ac_cr=\$\'\\r\'
16915 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16916 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16917 ac_cs_awk_cr='\r'
16918 else
16919 ac_cs_awk_cr=$ac_cr
16922 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16923 _ACEOF
16927 echo "cat >conf$$subs.awk <<_ACEOF" &&
16928 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16929 echo "_ACEOF"
16930 } >conf$$subs.sh ||
16931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16932 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16933 ac_delim='%!_!# '
16934 for ac_last_try in false false false false false :; do
16935 . ./conf$$subs.sh ||
16936 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16938 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16939 if test $ac_delim_n = $ac_delim_num; then
16940 break
16941 elif $ac_last_try; then
16942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16943 else
16944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16946 done
16947 rm -f conf$$subs.sh
16949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16950 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16951 _ACEOF
16952 sed -n '
16954 s/^/S["/; s/!.*/"]=/
16957 s/^[^!]*!//
16958 :repl
16959 t repl
16960 s/'"$ac_delim"'$//
16961 t delim
16964 s/\(.\{148\}\).*/\1/
16965 t more1
16966 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16969 b repl
16970 :more1
16971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16974 s/.\{148\}//
16975 t nl
16976 :delim
16978 s/\(.\{148\}\).*/\1/
16979 t more2
16980 s/["\\]/\\&/g; s/^/"/; s/$/"/
16983 :more2
16984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16987 s/.\{148\}//
16988 t delim
16989 ' <conf$$subs.awk | sed '
16990 /^[^""]/{
16992 s/\n//
16994 ' >>$CONFIG_STATUS || ac_write_fail=1
16995 rm -f conf$$subs.awk
16996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16997 _ACAWK
16998 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16999 for (key in S) S_is_set[key] = 1
17000 FS = "\a"
17004 line = $ 0
17005 nfields = split(line, field, "@")
17006 substed = 0
17007 len = length(field[1])
17008 for (i = 2; i < nfields; i++) {
17009 key = field[i]
17010 keylen = length(key)
17011 if (S_is_set[key]) {
17012 value = S[key]
17013 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17014 len += length(value) + length(field[++i])
17015 substed = 1
17016 } else
17017 len += 1 + keylen
17020 print line
17023 _ACAWK
17024 _ACEOF
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17027 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17028 else
17030 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17031 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17032 _ACEOF
17034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17036 # trailing colons and then remove the whole line if VPATH becomes empty
17037 # (actually we leave an empty line to preserve line numbers).
17038 if test "x$srcdir" = x.; then
17039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17040 s/:*\$(srcdir):*/:/
17041 s/:*\${srcdir}:*/:/
17042 s/:*@srcdir@:*/:/
17043 s/^\([^=]*=[ ]*\):*/\1/
17044 s/:*$//
17045 s/^[^=]*=[ ]*$//
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 fi # test -n "$CONFIG_FILES"
17052 # Set up the scripts for CONFIG_HEADERS section.
17053 # No need to generate them if there are no CONFIG_HEADERS.
17054 # This happens for instance with `./config.status Makefile'.
17055 if test -n "$CONFIG_HEADERS"; then
17056 cat >"$tmp/defines.awk" <<\_ACAWK ||
17057 BEGIN {
17058 _ACEOF
17060 # Transform confdefs.h into an awk script `defines.awk', embedded as
17061 # here-document in config.status, that substitutes the proper values into
17062 # config.h.in to produce config.h.
17064 # Create a delimiter string that does not exist in confdefs.h, to ease
17065 # handling of long lines.
17066 ac_delim='%!_!# '
17067 for ac_last_try in false false :; do
17068 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17069 if test -z "$ac_t"; then
17070 break
17071 elif $ac_last_try; then
17072 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17073 else
17074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17076 done
17078 # For the awk script, D is an array of macro values keyed by name,
17079 # likewise P contains macro parameters if any. Preserve backslash
17080 # newline sequences.
17082 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17083 sed -n '
17084 s/.\{148\}/&'"$ac_delim"'/g
17085 t rset
17086 :rset
17087 s/^[ ]*#[ ]*define[ ][ ]*/ /
17088 t def
17090 :def
17091 s/\\$//
17092 t bsnl
17093 s/["\\]/\\&/g
17094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17095 D["\1"]=" \3"/p
17096 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17098 :bsnl
17099 s/["\\]/\\&/g
17100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17101 D["\1"]=" \3\\\\\\n"\\/p
17102 t cont
17103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17104 t cont
17106 :cont
17108 s/.\{148\}/&'"$ac_delim"'/g
17109 t clear
17110 :clear
17111 s/\\$//
17112 t bsnlc
17113 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17115 :bsnlc
17116 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17117 b cont
17118 ' <confdefs.h | sed '
17119 s/'"$ac_delim"'/"\\\
17120 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17123 for (key in D) D_is_set[key] = 1
17124 FS = "\a"
17126 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17127 line = \$ 0
17128 split(line, arg, " ")
17129 if (arg[1] == "#") {
17130 defundef = arg[2]
17131 mac1 = arg[3]
17132 } else {
17133 defundef = substr(arg[1], 2)
17134 mac1 = arg[2]
17136 split(mac1, mac2, "(") #)
17137 macro = mac2[1]
17138 prefix = substr(line, 1, index(line, defundef) - 1)
17139 if (D_is_set[macro]) {
17140 # Preserve the white space surrounding the "#".
17141 print prefix "define", macro P[macro] D[macro]
17142 next
17143 } else {
17144 # Replace #undef with comments. This is necessary, for example,
17145 # in the case of _POSIX_SOURCE, which is predefined and required
17146 # on some systems where configure will not decide to define it.
17147 if (defundef == "undef") {
17148 print "/*", prefix defundef, macro, "*/"
17149 next
17153 { print }
17154 _ACAWK
17155 _ACEOF
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17158 fi # test -n "$CONFIG_HEADERS"
17161 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17162 shift
17163 for ac_tag
17165 case $ac_tag in
17166 :[FHLC]) ac_mode=$ac_tag; continue;;
17167 esac
17168 case $ac_mode$ac_tag in
17169 :[FHL]*:*);;
17170 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17171 :[FH]-) ac_tag=-:-;;
17172 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17173 esac
17174 ac_save_IFS=$IFS
17175 IFS=:
17176 set x $ac_tag
17177 IFS=$ac_save_IFS
17178 shift
17179 ac_file=$1
17180 shift
17182 case $ac_mode in
17183 :L) ac_source=$1;;
17184 :[FH])
17185 ac_file_inputs=
17186 for ac_f
17188 case $ac_f in
17189 -) ac_f="$tmp/stdin";;
17190 *) # Look for the file first in the build tree, then in the source tree
17191 # (if the path is not absolute). The absolute path cannot be DOS-style,
17192 # because $ac_f cannot contain `:'.
17193 test -f "$ac_f" ||
17194 case $ac_f in
17195 [\\/$]*) false;;
17196 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17197 esac ||
17198 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17199 esac
17200 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17201 as_fn_append ac_file_inputs " '$ac_f'"
17202 done
17204 # Let's still pretend it is `configure' which instantiates (i.e., don't
17205 # use $as_me), people would be surprised to read:
17206 # /* config.h. Generated by config.status. */
17207 configure_input='Generated from '`
17208 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17209 `' by configure.'
17210 if test x"$ac_file" != x-; then
17211 configure_input="$ac_file. $configure_input"
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17213 $as_echo "$as_me: creating $ac_file" >&6;}
17215 # Neutralize special characters interpreted by sed in replacement strings.
17216 case $configure_input in #(
17217 *\&* | *\|* | *\\* )
17218 ac_sed_conf_input=`$as_echo "$configure_input" |
17219 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17220 *) ac_sed_conf_input=$configure_input;;
17221 esac
17223 case $ac_tag in
17224 *:-:* | *:-) cat >"$tmp/stdin" \
17225 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17226 esac
17228 esac
17230 ac_dir=`$as_dirname -- "$ac_file" ||
17231 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17232 X"$ac_file" : 'X\(//\)[^/]' \| \
17233 X"$ac_file" : 'X\(//\)$' \| \
17234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17235 $as_echo X"$ac_file" |
17236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17237 s//\1/
17240 /^X\(\/\/\)[^/].*/{
17241 s//\1/
17244 /^X\(\/\/\)$/{
17245 s//\1/
17248 /^X\(\/\).*/{
17249 s//\1/
17252 s/.*/./; q'`
17253 as_dir="$ac_dir"; as_fn_mkdir_p
17254 ac_builddir=.
17256 case "$ac_dir" in
17257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17259 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17260 # A ".." for each directory in $ac_dir_suffix.
17261 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17262 case $ac_top_builddir_sub in
17263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17265 esac ;;
17266 esac
17267 ac_abs_top_builddir=$ac_pwd
17268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17269 # for backward compatibility:
17270 ac_top_builddir=$ac_top_build_prefix
17272 case $srcdir in
17273 .) # We are building in place.
17274 ac_srcdir=.
17275 ac_top_srcdir=$ac_top_builddir_sub
17276 ac_abs_top_srcdir=$ac_pwd ;;
17277 [\\/]* | ?:[\\/]* ) # Absolute name.
17278 ac_srcdir=$srcdir$ac_dir_suffix;
17279 ac_top_srcdir=$srcdir
17280 ac_abs_top_srcdir=$srcdir ;;
17281 *) # Relative name.
17282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17283 ac_top_srcdir=$ac_top_build_prefix$srcdir
17284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17285 esac
17286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17289 case $ac_mode in
17292 # CONFIG_FILE
17295 case $INSTALL in
17296 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17297 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17298 esac
17299 ac_MKDIR_P=$MKDIR_P
17300 case $MKDIR_P in
17301 [\\/$]* | ?:[\\/]* ) ;;
17302 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17303 esac
17304 _ACEOF
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307 # If the template does not know about datarootdir, expand it.
17308 # FIXME: This hack should be removed a few years after 2.60.
17309 ac_datarootdir_hack=; ac_datarootdir_seen=
17310 ac_sed_dataroot='
17311 /datarootdir/ {
17315 /@datadir@/p
17316 /@docdir@/p
17317 /@infodir@/p
17318 /@localedir@/p
17319 /@mandir@/p'
17320 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17321 *datarootdir*) ac_datarootdir_seen=yes;;
17322 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17324 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17325 _ACEOF
17326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17327 ac_datarootdir_hack='
17328 s&@datadir@&$datadir&g
17329 s&@docdir@&$docdir&g
17330 s&@infodir@&$infodir&g
17331 s&@localedir@&$localedir&g
17332 s&@mandir@&$mandir&g
17333 s&\\\${datarootdir}&$datarootdir&g' ;;
17334 esac
17335 _ACEOF
17337 # Neutralize VPATH when `$srcdir' = `.'.
17338 # Shell code in configure.ac might set extrasub.
17339 # FIXME: do we really want to maintain this feature?
17340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17341 ac_sed_extra="$ac_vpsub
17342 $extrasub
17343 _ACEOF
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17347 s|@configure_input@|$ac_sed_conf_input|;t t
17348 s&@top_builddir@&$ac_top_builddir_sub&;t t
17349 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17350 s&@srcdir@&$ac_srcdir&;t t
17351 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17352 s&@top_srcdir@&$ac_top_srcdir&;t t
17353 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17354 s&@builddir@&$ac_builddir&;t t
17355 s&@abs_builddir@&$ac_abs_builddir&;t t
17356 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17357 s&@INSTALL@&$ac_INSTALL&;t t
17358 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17359 $ac_datarootdir_hack
17361 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17362 || as_fn_error "could not create $ac_file" "$LINENO" 5
17364 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17365 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17366 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17368 which seems to be undefined. Please make sure it is defined." >&5
17369 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17370 which seems to be undefined. Please make sure it is defined." >&2;}
17372 rm -f "$tmp/stdin"
17373 case $ac_file in
17374 -) cat "$tmp/out" && rm -f "$tmp/out";;
17375 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17376 esac \
17377 || as_fn_error "could not create $ac_file" "$LINENO" 5
17381 # CONFIG_HEADER
17383 if test x"$ac_file" != x-; then
17385 $as_echo "/* $configure_input */" \
17386 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17387 } >"$tmp/config.h" \
17388 || as_fn_error "could not create $ac_file" "$LINENO" 5
17389 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17391 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17392 else
17393 rm -f "$ac_file"
17394 mv "$tmp/config.h" "$ac_file" \
17395 || as_fn_error "could not create $ac_file" "$LINENO" 5
17397 else
17398 $as_echo "/* $configure_input */" \
17399 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17400 || as_fn_error "could not create -" "$LINENO" 5
17402 # Compute "$ac_file"'s index in $config_headers.
17403 _am_arg="$ac_file"
17404 _am_stamp_count=1
17405 for _am_header in $config_headers :; do
17406 case $_am_header in
17407 $_am_arg | $_am_arg:* )
17408 break ;;
17410 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17411 esac
17412 done
17413 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17414 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415 X"$_am_arg" : 'X\(//\)[^/]' \| \
17416 X"$_am_arg" : 'X\(//\)$' \| \
17417 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17418 $as_echo X"$_am_arg" |
17419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17420 s//\1/
17423 /^X\(\/\/\)[^/].*/{
17424 s//\1/
17427 /^X\(\/\/\)$/{
17428 s//\1/
17431 /^X\(\/\).*/{
17432 s//\1/
17435 s/.*/./; q'`/stamp-h$_am_stamp_count
17438 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17439 $as_echo "$as_me: executing $ac_file commands" >&6;}
17441 esac
17444 case $ac_file$ac_mode in
17445 "default-1":C)
17446 # Only add multilib support code if we just rebuilt the top-level
17447 # Makefile.
17448 case " $CONFIG_FILES " in
17449 *" Makefile "*)
17450 ac_file=Makefile . ${multi_basedir}/config-ml.in
17452 esac ;;
17453 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17454 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17455 # are listed without --file. Let's play safe and only enable the eval
17456 # if we detect the quoting.
17457 case $CONFIG_FILES in
17458 *\'*) eval set x "$CONFIG_FILES" ;;
17459 *) set x $CONFIG_FILES ;;
17460 esac
17461 shift
17462 for mf
17464 # Strip MF so we end up with the name of the file.
17465 mf=`echo "$mf" | sed -e 's/:.*$//'`
17466 # Check whether this is an Automake generated Makefile or not.
17467 # We used to match only the files named `Makefile.in', but
17468 # some people rename them; so instead we look at the file content.
17469 # Grep'ing the first line is not enough: some people post-process
17470 # each Makefile.in and add a new line on top of each file to say so.
17471 # Grep'ing the whole file is not good either: AIX grep has a line
17472 # limit of 2048, but all sed's we know have understand at least 4000.
17473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17474 dirpart=`$as_dirname -- "$mf" ||
17475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17476 X"$mf" : 'X\(//\)[^/]' \| \
17477 X"$mf" : 'X\(//\)$' \| \
17478 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17479 $as_echo X"$mf" |
17480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17481 s//\1/
17484 /^X\(\/\/\)[^/].*/{
17485 s//\1/
17488 /^X\(\/\/\)$/{
17489 s//\1/
17492 /^X\(\/\).*/{
17493 s//\1/
17496 s/.*/./; q'`
17497 else
17498 continue
17500 # Extract the definition of DEPDIR, am__include, and am__quote
17501 # from the Makefile without running `make'.
17502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17503 test -z "$DEPDIR" && continue
17504 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17505 test -z "am__include" && continue
17506 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17507 # When using ansi2knr, U may be empty or an underscore; expand it
17508 U=`sed -n 's/^U = //p' < "$mf"`
17509 # Find all dependency output files, they are included files with
17510 # $(DEPDIR) in their names. We invoke sed twice because it is the
17511 # simplest approach to changing $(DEPDIR) to its actual value in the
17512 # expansion.
17513 for file in `sed -n "
17514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17516 # Make sure the directory exists.
17517 test -f "$dirpart/$file" && continue
17518 fdir=`$as_dirname -- "$file" ||
17519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17520 X"$file" : 'X\(//\)[^/]' \| \
17521 X"$file" : 'X\(//\)$' \| \
17522 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17523 $as_echo X"$file" |
17524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17525 s//\1/
17528 /^X\(\/\/\)[^/].*/{
17529 s//\1/
17532 /^X\(\/\/\)$/{
17533 s//\1/
17536 /^X\(\/\).*/{
17537 s//\1/
17540 s/.*/./; q'`
17541 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17542 # echo "creating $dirpart/$file"
17543 echo '# dummy' > "$dirpart/$file"
17544 done
17545 done
17548 "libtool":C)
17550 # See if we are running on zsh, and set the options which allow our
17551 # commands through without removal of \ escapes.
17552 if test -n "${ZSH_VERSION+set}" ; then
17553 setopt NO_GLOB_SUBST
17556 cfgfile="${ofile}T"
17557 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17558 $RM "$cfgfile"
17560 cat <<_LT_EOF >> "$cfgfile"
17561 #! $SHELL
17563 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17564 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17566 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17568 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17569 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17570 # Written by Gordon Matzigkeit, 1996
17572 # This file is part of GNU Libtool.
17574 # GNU Libtool is free software; you can redistribute it and/or
17575 # modify it under the terms of the GNU General Public License as
17576 # published by the Free Software Foundation; either version 2 of
17577 # the License, or (at your option) any later version.
17579 # As a special exception to the GNU General Public License,
17580 # if you distribute this file as part of a program or library that
17581 # is built using GNU Libtool, you may include this file under the
17582 # same distribution terms that you use for the rest of that program.
17584 # GNU Libtool is distributed in the hope that it will be useful,
17585 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17586 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17587 # GNU General Public License for more details.
17589 # You should have received a copy of the GNU General Public License
17590 # along with GNU Libtool; see the file COPYING. If not, a copy
17591 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17592 # obtained by writing to the Free Software Foundation, Inc.,
17593 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17596 # The names of the tagged configurations supported by this script.
17597 available_tags="GO "
17599 # ### BEGIN LIBTOOL CONFIG
17601 # A sed program that does not truncate output.
17602 SED=$lt_SED
17604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17605 Xsed="\$SED -e 1s/^X//"
17607 # A grep program that handles long lines.
17608 GREP=$lt_GREP
17610 # An ERE matcher.
17611 EGREP=$lt_EGREP
17613 # A literal string matcher.
17614 FGREP=$lt_FGREP
17616 # Shell to use when invoking shell scripts.
17617 SHELL=$lt_SHELL
17619 # An echo program that protects backslashes.
17620 ECHO=$lt_ECHO
17622 # Which release of libtool.m4 was used?
17623 macro_version=$macro_version
17624 macro_revision=$macro_revision
17626 # Whether or not to build shared libraries.
17627 build_libtool_libs=$enable_shared
17629 # Whether or not to build static libraries.
17630 build_old_libs=$enable_static
17632 # What type of objects to build.
17633 pic_mode=$pic_mode
17635 # Whether or not to optimize for fast installation.
17636 fast_install=$enable_fast_install
17638 # The host system.
17639 host_alias=$host_alias
17640 host=$host
17641 host_os=$host_os
17643 # The build system.
17644 build_alias=$build_alias
17645 build=$build
17646 build_os=$build_os
17648 # A BSD- or MS-compatible name lister.
17649 NM=$lt_NM
17651 # Whether we need soft or hard links.
17652 LN_S=$lt_LN_S
17654 # What is the maximum length of a command?
17655 max_cmd_len=$max_cmd_len
17657 # Object file suffix (normally "o").
17658 objext=$ac_objext
17660 # Executable file suffix (normally "").
17661 exeext=$exeext
17663 # whether the shell understands "unset".
17664 lt_unset=$lt_unset
17666 # turn spaces into newlines.
17667 SP2NL=$lt_lt_SP2NL
17669 # turn newlines into spaces.
17670 NL2SP=$lt_lt_NL2SP
17672 # An object symbol dumper.
17673 OBJDUMP=$lt_OBJDUMP
17675 # Method to check whether dependent libraries are shared objects.
17676 deplibs_check_method=$lt_deplibs_check_method
17678 # Command to use when deplibs_check_method == "file_magic".
17679 file_magic_cmd=$lt_file_magic_cmd
17681 # The archiver.
17682 AR=$lt_AR
17683 AR_FLAGS=$lt_AR_FLAGS
17685 # A symbol stripping program.
17686 STRIP=$lt_STRIP
17688 # Commands used to install an old-style archive.
17689 RANLIB=$lt_RANLIB
17690 old_postinstall_cmds=$lt_old_postinstall_cmds
17691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17693 # Whether to use a lock for old archive extraction.
17694 lock_old_archive_extraction=$lock_old_archive_extraction
17696 # A C compiler.
17697 LTCC=$lt_CC
17699 # LTCC compiler flags.
17700 LTCFLAGS=$lt_CFLAGS
17702 # Take the output of nm and produce a listing of raw symbols and C names.
17703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17705 # Transform the output of nm in a proper C declaration.
17706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17708 # Transform the output of nm in a C name address pair.
17709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17711 # Transform the output of nm in a C name address pair when lib prefix is needed.
17712 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17714 # The name of the directory that contains temporary libtool files.
17715 objdir=$objdir
17717 # Used to examine libraries when file_magic_cmd begins with "file".
17718 MAGIC_CMD=$MAGIC_CMD
17720 # Must we lock files when doing compilation?
17721 need_locks=$lt_need_locks
17723 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17724 DSYMUTIL=$lt_DSYMUTIL
17726 # Tool to change global to local symbols on Mac OS X.
17727 NMEDIT=$lt_NMEDIT
17729 # Tool to manipulate fat objects and archives on Mac OS X.
17730 LIPO=$lt_LIPO
17732 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17733 OTOOL=$lt_OTOOL
17735 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17736 OTOOL64=$lt_OTOOL64
17738 # Old archive suffix (normally "a").
17739 libext=$libext
17741 # Shared library suffix (normally ".so").
17742 shrext_cmds=$lt_shrext_cmds
17744 # The commands to extract the exported symbol list from a shared archive.
17745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17747 # Variables whose values should be saved in libtool wrapper scripts and
17748 # restored at link time.
17749 variables_saved_for_relink=$lt_variables_saved_for_relink
17751 # Do we need the "lib" prefix for modules?
17752 need_lib_prefix=$need_lib_prefix
17754 # Do we need a version for libraries?
17755 need_version=$need_version
17757 # Library versioning type.
17758 version_type=$version_type
17760 # Shared library runtime path variable.
17761 runpath_var=$runpath_var
17763 # Shared library path variable.
17764 shlibpath_var=$shlibpath_var
17766 # Is shlibpath searched before the hard-coded library search path?
17767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17769 # Format of library name prefix.
17770 libname_spec=$lt_libname_spec
17772 # List of archive names. First name is the real one, the rest are links.
17773 # The last name is the one that the linker finds with -lNAME
17774 library_names_spec=$lt_library_names_spec
17776 # The coded name of the library, if different from the real name.
17777 soname_spec=$lt_soname_spec
17779 # Permission mode override for installation of shared libraries.
17780 install_override_mode=$lt_install_override_mode
17782 # Command to use after installation of a shared archive.
17783 postinstall_cmds=$lt_postinstall_cmds
17785 # Command to use after uninstallation of a shared archive.
17786 postuninstall_cmds=$lt_postuninstall_cmds
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17791 # As "finish_cmds", except a single script fragment to be evaled but
17792 # not shown.
17793 finish_eval=$lt_finish_eval
17795 # Whether we should hardcode library paths into libraries.
17796 hardcode_into_libs=$hardcode_into_libs
17798 # Compile-time system search path for libraries.
17799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17801 # Run-time system search path for libraries.
17802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17804 # Whether dlopen is supported.
17805 dlopen_support=$enable_dlopen
17807 # Whether dlopen of programs is supported.
17808 dlopen_self=$enable_dlopen_self
17810 # Whether dlopen of statically linked programs is supported.
17811 dlopen_self_static=$enable_dlopen_self_static
17813 # Commands to strip libraries.
17814 old_striplib=$lt_old_striplib
17815 striplib=$lt_striplib
17818 # The linker used to build libraries.
17819 LD=$lt_LD
17821 # How to create reloadable object files.
17822 reload_flag=$lt_reload_flag
17823 reload_cmds=$lt_reload_cmds
17825 # Commands used to build an old-style archive.
17826 old_archive_cmds=$lt_old_archive_cmds
17828 # A language specific compiler.
17829 CC=$lt_compiler
17831 # Is the compiler the GNU compiler?
17832 with_gcc=$GCC
17834 # Compiler flag to turn off builtin functions.
17835 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17837 # How to pass a linker flag through the compiler.
17838 wl=$lt_lt_prog_compiler_wl
17840 # Additional compiler flags for building library objects.
17841 pic_flag=$lt_lt_prog_compiler_pic
17843 # Compiler flag to prevent dynamic linking.
17844 link_static_flag=$lt_lt_prog_compiler_static
17846 # Does compiler simultaneously support -c and -o options?
17847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17849 # Whether or not to add -lc for building shared libraries.
17850 build_libtool_need_lc=$archive_cmds_need_lc
17852 # Whether or not to disallow shared libs when runtime libs are static.
17853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17855 # Compiler flag to allow reflexive dlopens.
17856 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17858 # Compiler flag to generate shared objects directly from archives.
17859 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17861 # Whether the compiler copes with passing no objects directly.
17862 compiler_needs_object=$lt_compiler_needs_object
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17870 # Commands used to build a shared archive.
17871 archive_cmds=$lt_archive_cmds
17872 archive_expsym_cmds=$lt_archive_expsym_cmds
17874 # Commands used to build a loadable module if different from building
17875 # a shared archive.
17876 module_cmds=$lt_module_cmds
17877 module_expsym_cmds=$lt_module_expsym_cmds
17879 # Whether we are building with GNU ld or not.
17880 with_gnu_ld=$lt_with_gnu_ld
17882 # Flag that allows shared libraries with undefined symbols to be built.
17883 allow_undefined_flag=$lt_allow_undefined_flag
17885 # Flag that enforces no undefined symbols.
17886 no_undefined_flag=$lt_no_undefined_flag
17888 # Flag to hardcode \$libdir into a binary during linking.
17889 # This must work even if \$libdir does not exist
17890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17892 # If ld is used when linking, flag to hardcode \$libdir into a binary
17893 # during linking. This must work even if \$libdir does not exist.
17894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17896 # Whether we need a single "-rpath" flag with a separated argument.
17897 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17899 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17900 # DIR into the resulting binary.
17901 hardcode_direct=$hardcode_direct
17903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17904 # DIR into the resulting binary and the resulting library dependency is
17905 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17906 # library is relocated.
17907 hardcode_direct_absolute=$hardcode_direct_absolute
17909 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17910 # into the resulting binary.
17911 hardcode_minus_L=$hardcode_minus_L
17913 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17914 # into the resulting binary.
17915 hardcode_shlibpath_var=$hardcode_shlibpath_var
17917 # Set to "yes" if building a shared library automatically hardcodes DIR
17918 # into the library and all subsequent libraries and executables linked
17919 # against it.
17920 hardcode_automatic=$hardcode_automatic
17922 # Set to yes if linker adds runtime paths of dependent libraries
17923 # to runtime path list.
17924 inherit_rpath=$inherit_rpath
17926 # Whether libtool must link a program against all its dependency libraries.
17927 link_all_deplibs=$link_all_deplibs
17929 # Fix the shell variable \$srcfile for the compiler.
17930 fix_srcfile_path=$lt_fix_srcfile_path
17932 # Set to "yes" if exported symbols are required.
17933 always_export_symbols=$always_export_symbols
17935 # The commands to list exported symbols.
17936 export_symbols_cmds=$lt_export_symbols_cmds
17938 # Symbols that should not be listed in the preloaded symbols.
17939 exclude_expsyms=$lt_exclude_expsyms
17941 # Symbols that must always be exported.
17942 include_expsyms=$lt_include_expsyms
17944 # Commands necessary for linking programs (against libraries) with templates.
17945 prelink_cmds=$lt_prelink_cmds
17947 # Specify filename containing input files.
17948 file_list_spec=$lt_file_list_spec
17950 # How to hardcode a shared library path into an executable.
17951 hardcode_action=$hardcode_action
17953 # ### END LIBTOOL CONFIG
17955 _LT_EOF
17957 case $host_os in
17958 aix3*)
17959 cat <<\_LT_EOF >> "$cfgfile"
17960 # AIX sometimes has problems with the GCC collect2 program. For some
17961 # reason, if we set the COLLECT_NAMES environment variable, the problems
17962 # vanish in a puff of smoke.
17963 if test "X${COLLECT_NAMES+set}" != Xset; then
17964 COLLECT_NAMES=
17965 export COLLECT_NAMES
17967 _LT_EOF
17969 esac
17972 ltmain="$ac_aux_dir/ltmain.sh"
17975 # We use sed instead of cat because bash on DJGPP gets confused if
17976 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17977 # text mode, it properly converts lines to CR/LF. This bash problem
17978 # is reportedly fixed, but why not run on old versions too?
17979 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17980 || (rm -f "$cfgfile"; exit 1)
17982 case $xsi_shell in
17983 yes)
17984 cat << \_LT_EOF >> "$cfgfile"
17986 # func_dirname file append nondir_replacement
17987 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17988 # otherwise set result to NONDIR_REPLACEMENT.
17989 func_dirname ()
17991 case ${1} in
17992 */*) func_dirname_result="${1%/*}${2}" ;;
17993 * ) func_dirname_result="${3}" ;;
17994 esac
17997 # func_basename file
17998 func_basename ()
18000 func_basename_result="${1##*/}"
18003 # func_dirname_and_basename file append nondir_replacement
18004 # perform func_basename and func_dirname in a single function
18005 # call:
18006 # dirname: Compute the dirname of FILE. If nonempty,
18007 # add APPEND to the result, otherwise set result
18008 # to NONDIR_REPLACEMENT.
18009 # value returned in "$func_dirname_result"
18010 # basename: Compute filename of FILE.
18011 # value retuned in "$func_basename_result"
18012 # Implementation must be kept synchronized with func_dirname
18013 # and func_basename. For efficiency, we do not delegate to
18014 # those functions but instead duplicate the functionality here.
18015 func_dirname_and_basename ()
18017 case ${1} in
18018 */*) func_dirname_result="${1%/*}${2}" ;;
18019 * ) func_dirname_result="${3}" ;;
18020 esac
18021 func_basename_result="${1##*/}"
18024 # func_stripname prefix suffix name
18025 # strip PREFIX and SUFFIX off of NAME.
18026 # PREFIX and SUFFIX must not contain globbing or regex special
18027 # characters, hashes, percent signs, but SUFFIX may contain a leading
18028 # dot (in which case that matches only a dot).
18029 func_stripname ()
18031 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18032 # positional parameters, so assign one to ordinary parameter first.
18033 func_stripname_result=${3}
18034 func_stripname_result=${func_stripname_result#"${1}"}
18035 func_stripname_result=${func_stripname_result%"${2}"}
18038 # func_opt_split
18039 func_opt_split ()
18041 func_opt_split_opt=${1%%=*}
18042 func_opt_split_arg=${1#*=}
18045 # func_lo2o object
18046 func_lo2o ()
18048 case ${1} in
18049 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18050 *) func_lo2o_result=${1} ;;
18051 esac
18054 # func_xform libobj-or-source
18055 func_xform ()
18057 func_xform_result=${1%.*}.lo
18060 # func_arith arithmetic-term...
18061 func_arith ()
18063 func_arith_result=$(( $* ))
18066 # func_len string
18067 # STRING may not start with a hyphen.
18068 func_len ()
18070 func_len_result=${#1}
18073 _LT_EOF
18075 *) # Bourne compatible functions.
18076 cat << \_LT_EOF >> "$cfgfile"
18078 # func_dirname file append nondir_replacement
18079 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18080 # otherwise set result to NONDIR_REPLACEMENT.
18081 func_dirname ()
18083 # Extract subdirectory from the argument.
18084 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18085 if test "X$func_dirname_result" = "X${1}"; then
18086 func_dirname_result="${3}"
18087 else
18088 func_dirname_result="$func_dirname_result${2}"
18092 # func_basename file
18093 func_basename ()
18095 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18099 # func_stripname prefix suffix name
18100 # strip PREFIX and SUFFIX off of NAME.
18101 # PREFIX and SUFFIX must not contain globbing or regex special
18102 # characters, hashes, percent signs, but SUFFIX may contain a leading
18103 # dot (in which case that matches only a dot).
18104 # func_strip_suffix prefix name
18105 func_stripname ()
18107 case ${2} in
18108 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18109 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18110 esac
18113 # sed scripts:
18114 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18115 my_sed_long_arg='1s/^-[^=]*=//'
18117 # func_opt_split
18118 func_opt_split ()
18120 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18121 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18124 # func_lo2o object
18125 func_lo2o ()
18127 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18130 # func_xform libobj-or-source
18131 func_xform ()
18133 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18136 # func_arith arithmetic-term...
18137 func_arith ()
18139 func_arith_result=`expr "$@"`
18142 # func_len string
18143 # STRING may not start with a hyphen.
18144 func_len ()
18146 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18149 _LT_EOF
18150 esac
18152 case $lt_shell_append in
18153 yes)
18154 cat << \_LT_EOF >> "$cfgfile"
18156 # func_append var value
18157 # Append VALUE to the end of shell variable VAR.
18158 func_append ()
18160 eval "$1+=\$2"
18162 _LT_EOF
18165 cat << \_LT_EOF >> "$cfgfile"
18167 # func_append var value
18168 # Append VALUE to the end of shell variable VAR.
18169 func_append ()
18171 eval "$1=\$$1\$2"
18174 _LT_EOF
18176 esac
18179 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18180 || (rm -f "$cfgfile"; exit 1)
18182 mv -f "$cfgfile" "$ofile" ||
18183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18184 chmod +x "$ofile"
18187 cat <<_LT_EOF >> "$ofile"
18189 # ### BEGIN LIBTOOL TAG CONFIG: GO
18191 # The linker used to build libraries.
18192 LD=$lt_LD_GO
18194 # How to create reloadable object files.
18195 reload_flag=$lt_reload_flag_GO
18196 reload_cmds=$lt_reload_cmds_GO
18198 # Commands used to build an old-style archive.
18199 old_archive_cmds=$lt_old_archive_cmds_GO
18201 # A language specific compiler.
18202 CC=$lt_compiler_GO
18204 # Is the compiler the GNU compiler?
18205 with_gcc=$GCC_GO
18207 # Compiler flag to turn off builtin functions.
18208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18210 # How to pass a linker flag through the compiler.
18211 wl=$lt_lt_prog_compiler_wl_GO
18213 # Additional compiler flags for building library objects.
18214 pic_flag=$lt_lt_prog_compiler_pic_GO
18216 # Compiler flag to prevent dynamic linking.
18217 link_static_flag=$lt_lt_prog_compiler_static_GO
18219 # Does compiler simultaneously support -c and -o options?
18220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18222 # Whether or not to add -lc for building shared libraries.
18223 build_libtool_need_lc=$archive_cmds_need_lc_GO
18225 # Whether or not to disallow shared libs when runtime libs are static.
18226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18228 # Compiler flag to allow reflexive dlopens.
18229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18231 # Compiler flag to generate shared objects directly from archives.
18232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18234 # Whether the compiler copes with passing no objects directly.
18235 compiler_needs_object=$lt_compiler_needs_object_GO
18237 # Create an old-style archive from a shared archive.
18238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18240 # Create a temporary old-style archive to link instead of a shared archive.
18241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18243 # Commands used to build a shared archive.
18244 archive_cmds=$lt_archive_cmds_GO
18245 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18247 # Commands used to build a loadable module if different from building
18248 # a shared archive.
18249 module_cmds=$lt_module_cmds_GO
18250 module_expsym_cmds=$lt_module_expsym_cmds_GO
18252 # Whether we are building with GNU ld or not.
18253 with_gnu_ld=$lt_with_gnu_ld_GO
18255 # Flag that allows shared libraries with undefined symbols to be built.
18256 allow_undefined_flag=$lt_allow_undefined_flag_GO
18258 # Flag that enforces no undefined symbols.
18259 no_undefined_flag=$lt_no_undefined_flag_GO
18261 # Flag to hardcode \$libdir into a binary during linking.
18262 # This must work even if \$libdir does not exist
18263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18265 # If ld is used when linking, flag to hardcode \$libdir into a binary
18266 # during linking. This must work even if \$libdir does not exist.
18267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18269 # Whether we need a single "-rpath" flag with a separated argument.
18270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18273 # DIR into the resulting binary.
18274 hardcode_direct=$hardcode_direct_GO
18276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18277 # DIR into the resulting binary and the resulting library dependency is
18278 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18279 # library is relocated.
18280 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18283 # into the resulting binary.
18284 hardcode_minus_L=$hardcode_minus_L_GO
18286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18287 # into the resulting binary.
18288 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18290 # Set to "yes" if building a shared library automatically hardcodes DIR
18291 # into the library and all subsequent libraries and executables linked
18292 # against it.
18293 hardcode_automatic=$hardcode_automatic_GO
18295 # Set to yes if linker adds runtime paths of dependent libraries
18296 # to runtime path list.
18297 inherit_rpath=$inherit_rpath_GO
18299 # Whether libtool must link a program against all its dependency libraries.
18300 link_all_deplibs=$link_all_deplibs_GO
18302 # Fix the shell variable \$srcfile for the compiler.
18303 fix_srcfile_path=$lt_fix_srcfile_path_GO
18305 # Set to "yes" if exported symbols are required.
18306 always_export_symbols=$always_export_symbols_GO
18308 # The commands to list exported symbols.
18309 export_symbols_cmds=$lt_export_symbols_cmds_GO
18311 # Symbols that should not be listed in the preloaded symbols.
18312 exclude_expsyms=$lt_exclude_expsyms_GO
18314 # Symbols that must always be exported.
18315 include_expsyms=$lt_include_expsyms_GO
18317 # Commands necessary for linking programs (against libraries) with templates.
18318 prelink_cmds=$lt_prelink_cmds_GO
18320 # Specify filename containing input files.
18321 file_list_spec=$lt_file_list_spec_GO
18323 # How to hardcode a shared library path into an executable.
18324 hardcode_action=$hardcode_action_GO
18326 # ### END LIBTOOL TAG CONFIG: GO
18327 _LT_EOF
18330 "default":C) if test -n "$CONFIG_FILES"; then
18331 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18332 # that multilib installs will end up installed in the correct place.
18333 # The testsuite needs it for multilib-aware ABI baseline files.
18334 # To work around this not being passed down from config-ml.in ->
18335 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18336 # append it here. Only modify Makefiles that have just been created.
18338 # Also, get rid of this simulated-VPATH thing that automake does.
18339 cat > vpsed << \_EOF
18340 s!`test -f '$<' || echo '$(srcdir)/'`!!
18341 _EOF
18342 for i in $SUBDIRS; do
18343 case $CONFIG_FILES in
18344 *${i}/Makefile*)
18345 #echo "Adding MULTISUBDIR to $i/Makefile"
18346 sed -f vpsed $i/Makefile > tmp
18347 grep '^MULTISUBDIR =' Makefile >> tmp
18348 mv tmp $i/Makefile
18350 esac
18351 done
18352 rm vpsed
18356 esac
18357 done # for ac_tag
18360 as_fn_exit 0
18361 _ACEOF
18362 ac_clean_files=$ac_clean_files_save
18364 test $ac_write_fail = 0 ||
18365 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18368 # configure is writing to config.log, and then calls config.status.
18369 # config.status does its own redirection, appending to config.log.
18370 # Unfortunately, on DOS this fails, as config.log is still kept open
18371 # by configure, so config.status won't be able to write to it; its
18372 # output is simply discarded. So we exec the FD to /dev/null,
18373 # effectively closing config.log, so it can be properly (re)opened and
18374 # appended to by config.status. When coming back to configure, we
18375 # need to make the FD available again.
18376 if test "$no_create" != yes; then
18377 ac_cs_success=:
18378 ac_config_status_args=
18379 test "$silent" = yes &&
18380 ac_config_status_args="$ac_config_status_args --quiet"
18381 exec 5>/dev/null
18382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18383 exec 5>>config.log
18384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18385 # would make configure fail if this is the last instruction.
18386 $ac_cs_success || as_fn_exit $?
18388 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18390 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}