* fi.po: Update.
[official-gcc.git] / libgo / configure
blob2cd390859bb16ad6c7873644a2fa91d03e5a3451
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 HAVE_HWCAP_FALSE
628 HAVE_HWCAP_TRUE
629 HWCAP_LDFLAGS
630 OSCFLAGS
631 GO_SYSCALL_OS_ARCH_FILE
632 GO_SYSCALL_OS_FILE
633 GO_LIBCALL_OS_ARCH_FILE
634 GO_LIBCALL_OS_FILE
635 ALLGOARCHFAMILY
636 ALLGOARCH
637 GOARCH_MINFRAMESIZE
638 GOARCH_HUGEPAGESIZE
639 GOARCH_INT64ALIGN
640 GOARCH_PCQUANTUM
641 GOARCH_PHYSPAGESIZE
642 GOARCH_CACHELINESIZE
643 GOARCH_BIGENDIAN
644 GOARCH_FAMILY
645 GOARCH
646 USE_DEJAGNU
647 ALLGOOS
648 GOOS
649 LIBGO_IS_BSD_FALSE
650 LIBGO_IS_BSD_TRUE
651 LIBGO_IS_SOLARIS_FALSE
652 LIBGO_IS_SOLARIS_TRUE
653 LIBGO_IS_RTEMS_FALSE
654 LIBGO_IS_RTEMS_TRUE
655 LIBGO_IS_DRAGONFLY_FALSE
656 LIBGO_IS_DRAGONFLY_TRUE
657 LIBGO_IS_OPENBSD_FALSE
658 LIBGO_IS_OPENBSD_TRUE
659 LIBGO_IS_NETBSD_FALSE
660 LIBGO_IS_NETBSD_TRUE
661 LIBGO_IS_LINUX_FALSE
662 LIBGO_IS_LINUX_TRUE
663 LIBGO_IS_IRIX_FALSE
664 LIBGO_IS_IRIX_TRUE
665 LIBGO_IS_FREEBSD_FALSE
666 LIBGO_IS_FREEBSD_TRUE
667 LIBGO_IS_DARWIN_FALSE
668 LIBGO_IS_DARWIN_TRUE
669 go_include
670 LIBATOMIC
671 USE_LIBFFI_FALSE
672 USE_LIBFFI_TRUE
673 LIBFFIINCS
674 LIBFFI
675 nover_glibgo_toolexeclibdir
676 glibgo_toolexeclibdir
677 glibgo_toolexecdir
678 WERROR
679 WARN_FLAGS
680 CC_FOR_BUILD
681 enable_static
682 enable_shared
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
690 OBJDUMP
691 LN_S
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LIBTOOL
696 OBJCOPY
697 RANLIB
699 FGREP
700 EGREP
701 GREP
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 GOCFLAGS
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 libtool_VERSION
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_multilib
804 enable_dependency_tracking
805 enable_maintainer_mode
806 with_gnu_ld
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 enable_libtool_lock
812 enable_werror
813 enable_version_specific_runtime_libs
814 with_libffi
815 with_libatomic
816 with_system_libunwind
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
822 CPPFLAGS'
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
873 ac_prev=
874 ac_dashdash=
875 for ac_option
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
893 ac_dashdash=yes ;;
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
912 --config-cache | -C)
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) as_fn_error "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information."
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 esac
1230 done
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error "missing argument to $ac_option"
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287 test "$silent" = yes && exec 6>/dev/null
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error "pwd does not report name of working directory"
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1316 /^X\(\/\/\)$/{
1317 s//\1/
1320 /^X\(\/\).*/{
1321 s//\1/
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1329 else
1330 ac_srcdir_defaulted=no
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1419 cat <<\_ACEOF
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430 _ACEOF
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of package-unused version-unused:";;
1436 esac
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-multilib build many library versions (default)
1444 --disable-dependency-tracking speeds up one-time build
1445 --enable-dependency-tracking do not reject slow dependency extractors
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --enable-werror turns on -Werror [default=yes]
1454 --enable-version-specific-runtime-libs
1455 Specify that runtime libraries should be installed
1456 in a compiler-specific directory
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --without-libffi don't use libffi
1465 --without-libatomic don't use libatomic
1466 --with-system-libunwind use installed libunwind
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 GOC Go compiler command
1477 GOCFLAGS Go compiler flags
1478 CPP C preprocessor
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 package-unused configure version-unused
1547 generated by GNU Autoconf 2.64
1549 Copyright (C) 2009 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 } # ac_fn_c_check_header_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=1
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_c_try_cpp
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=$ac_status
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1752 } # ac_fn_c_try_run
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1782 #undef $2
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1799 main ()
1801 return $2 ();
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_func
1821 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824 # the include files in INCLUDES and setting the cache variable VAR
1825 # accordingly.
1826 ac_fn_c_check_header_mongrel ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 else
1839 # Is the header compilable?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841 $as_echo_n "checking $2 usability... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_header_compiler=yes
1849 else
1850 ac_header_compiler=no
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854 $as_echo "$ac_header_compiler" >&6; }
1856 # Is the header present?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858 $as_echo_n "checking $2 presence... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_cpp "$LINENO"; then :
1864 ac_header_preproc=yes
1865 else
1866 ac_header_preproc=no
1868 rm -f conftest.err conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870 $as_echo "$ac_header_preproc" >&6; }
1872 # So? What about this header?
1873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 yes:no: )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 no:yes:* )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 esac
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 eval "$3=\$ac_header_compiler"
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_check_header_mongrel
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1925 main ()
1927 if (sizeof ($2))
1928 return 0;
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 if (sizeof (($2)))
1941 return 0;
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1948 else
1949 eval "$3=yes"
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_type
1962 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963 # --------------------------------------------
1964 # Tries to find the compile-time value of EXPR in a program that includes
1965 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1966 # computed
1967 ac_fn_c_compute_int ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static int test_array [1 - 2 * !(($2) >= 0)];
1979 test_array [0] = 0
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=0 ac_mid=0
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995 test_array [0] = 0
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2003 else
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2006 ac_lo= ac_hi=
2007 break
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static int test_array [1 - 2 * !(($2) < 0)];
2021 test_array [0] = 0
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=-1 ac_mid=-1
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037 test_array [0] = 0
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2045 else
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055 else
2056 ac_lo= ac_hi=
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 # Binary search between lo and hi bounds.
2062 while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_hi=$ac_mid
2079 else
2080 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 done
2084 case $ac_lo in #((
2085 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086 '') ac_retval=1 ;;
2087 esac
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2092 static long int longval () { return $2; }
2093 static unsigned long int ulongval () { return $2; }
2094 #include <stdio.h>
2095 #include <stdlib.h>
2097 main ()
2100 FILE *f = fopen ("conftest.val", "w");
2101 if (! f)
2102 return 1;
2103 if (($2) < 0)
2105 long int i = longval ();
2106 if (i != ($2))
2107 return 1;
2108 fprintf (f, "%ld", i);
2110 else
2112 unsigned long int i = ulongval ();
2113 if (i != ($2))
2114 return 1;
2115 fprintf (f, "%lu", i);
2117 /* Do not output a trailing newline, as this causes \r\n confusion
2118 on some platforms. */
2119 return ferror (f) || fclose (f) != 0;
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_run "$LINENO"; then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127 else
2128 ac_retval=1
2130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rm -f conftest.val
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136 return $ac_retval
2138 } # ac_fn_c_compute_int
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by package-unused $as_me version-unused, which was
2144 generated by GNU Autoconf 2.64. Invocation command line was
2146 $ $0 $@
2148 _ACEOF
2149 exec 5>>config.log
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2173 _ASUNAME
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2181 done
2182 IFS=$as_save_IFS
2184 } >&5
2186 cat >&5 <<_ACEOF
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2193 _ACEOF
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2207 for ac_arg
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 case $ac_pass in
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2236 as_fn_append ac_configure_args " '$ac_arg'"
2238 esac
2239 done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2252 echo
2254 cat <<\_ASBOX
2255 ## ---------------- ##
2256 ## Cache variables. ##
2257 ## ---------------- ##
2258 _ASBOX
2259 echo
2260 # The following way of writing the cache mishandles newlines in values,
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in #(
2265 *${as_nl}*)
2266 case $ac_var in #(
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 esac
2270 case $ac_var in #(
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2274 esac ;;
2275 esac
2276 done
2277 (set) 2>&1 |
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2280 sed -n \
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 ;; #(
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2287 esac |
2288 sort
2290 echo
2292 cat <<\_ASBOX
2293 ## ----------------- ##
2294 ## Output variables. ##
2295 ## ----------------- ##
2296 _ASBOX
2297 echo
2298 for ac_var in $ac_subst_vars
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2308 if test -n "$ac_subst_files"; then
2309 cat <<\_ASBOX
2310 ## ------------------- ##
2311 ## File substitutions. ##
2312 ## ------------------- ##
2313 _ASBOX
2314 echo
2315 for ac_var in $ac_subst_files
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2326 if test -s confdefs.h; then
2327 cat <<\_ASBOX
2328 ## ----------- ##
2329 ## confdefs.h. ##
2330 ## ----------- ##
2331 _ASBOX
2332 echo
2333 cat confdefs.h
2334 echo
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2352 $as_echo "/* confdefs.h */" > confdefs.h
2354 # Predefined preprocessor variables.
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2378 _ACEOF
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 ac_site_file1=NONE
2384 ac_site_file2=NONE
2385 if test -n "$CONFIG_SITE"; then
2386 ac_site_file1=$CONFIG_SITE
2387 elif test "x$prefix" != xNONE; then
2388 ac_site_file1=$prefix/share/config.site
2389 ac_site_file2=$prefix/etc/config.site
2390 else
2391 ac_site_file1=$ac_default_prefix/share/config.site
2392 ac_site_file2=$ac_default_prefix/etc/config.site
2394 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396 test "x$ac_site_file" = xNONE && continue
2397 if test -r "$ac_site_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2401 . "$ac_site_file"
2403 done
2405 if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special
2407 # files actually), so we avoid doing that.
2408 if test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411 case $cache_file in
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2414 esac
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419 >$cache_file
2422 # Check that the precious variables saved in the cache have kept the same
2423 # value.
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in
2431 set,)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2435 ,set)
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2439 ,);;
2441 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=:
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2458 fi;;
2459 esac
2460 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then
2462 case $ac_new_val in
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;;
2465 esac
2466 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469 esac
2471 done
2472 if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 ac_config_headers="$ac_config_headers config.h"
2497 libtool_VERSION=10:0:0
2500 # Default to --enable-multilib
2501 # Check whether --enable-multilib was given.
2502 if test "${enable_multilib+set}" = set; then :
2503 enableval=$enable_multilib; case "$enableval" in
2504 yes) multilib=yes ;;
2505 no) multilib=no ;;
2506 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2507 esac
2508 else
2509 multilib=yes
2513 # We may get other options which we leave undocumented:
2514 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2515 # See config-ml.in if you want the gory details.
2517 if test "$srcdir" = "."; then
2518 if test "$with_target_subdir" != "."; then
2519 multi_basedir="$srcdir/$with_multisrctop../.."
2520 else
2521 multi_basedir="$srcdir/$with_multisrctop.."
2523 else
2524 multi_basedir="$srcdir/.."
2528 # Even if the default multilib is not a cross compilation,
2529 # it may be that some of the other multilibs are.
2530 if test $cross_compiling = no && test $multilib = yes \
2531 && test "x${with_multisubdir}" != x ; then
2532 cross_compiling=maybe
2535 ac_config_commands="$ac_config_commands default-1"
2538 ac_aux_dir=
2539 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540 for ac_t in install-sh install.sh shtool; do
2541 if test -f "$ac_dir/$ac_t"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/$ac_t -c"
2544 break 2
2546 done
2547 done
2548 if test -z "$ac_aux_dir"; then
2549 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552 # These three variables are undocumented and unsupported,
2553 # and are intended to be withdrawn in a future Autoconf release.
2554 # They can cause serious problems if a builder's source tree is in a directory
2555 # whose full name contains unusual characters.
2556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561 # Make sure we can run config.sub.
2562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2563 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2566 $as_echo_n "checking build system type... " >&6; }
2567 if test "${ac_cv_build+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_build_alias=$build_alias
2571 test "x$ac_build_alias" = x &&
2572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2573 test "x$ac_build_alias" = x &&
2574 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2576 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2580 $as_echo "$ac_cv_build" >&6; }
2581 case $ac_cv_build in
2582 *-*-*) ;;
2583 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2584 esac
2585 build=$ac_cv_build
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_build
2588 shift
2589 build_cpu=$1
2590 build_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 build_os=$*
2595 IFS=$ac_save_IFS
2596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2600 $as_echo_n "checking host system type... " >&6; }
2601 if test "${ac_cv_host+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test "x$host_alias" = x; then
2605 ac_cv_host=$ac_cv_build
2606 else
2607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2613 $as_echo "$ac_cv_host" >&6; }
2614 case $ac_cv_host in
2615 *-*-*) ;;
2616 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2617 esac
2618 host=$ac_cv_host
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_host
2621 shift
2622 host_cpu=$1
2623 host_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 host_os=$*
2628 IFS=$ac_save_IFS
2629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2633 $as_echo_n "checking target system type... " >&6; }
2634 if test "${ac_cv_target+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test "x$target_alias" = x; then
2638 ac_cv_target=$ac_cv_host
2639 else
2640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2641 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2646 $as_echo "$ac_cv_target" >&6; }
2647 case $ac_cv_target in
2648 *-*-*) ;;
2649 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2650 esac
2651 target=$ac_cv_target
2652 ac_save_IFS=$IFS; IFS='-'
2653 set x $ac_cv_target
2654 shift
2655 target_cpu=$1
2656 target_vendor=$2
2657 shift; shift
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2660 target_os=$*
2661 IFS=$ac_save_IFS
2662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2665 # The aliases save the names the user supplied, while $host etc.
2666 # will get canonicalized.
2667 test -n "$target_alias" &&
2668 test "$program_prefix$program_suffix$program_transform_name" = \
2669 NONENONEs,x,x, &&
2670 program_prefix=${target_alias}-
2672 target_alias=${target_alias-$host_alias}
2674 am__api_version='1.11'
2676 # Find a good install program. We prefer a C program (faster),
2677 # so one script is as good as another. But avoid the broken or
2678 # incompatible versions:
2679 # SysV /etc/install, /usr/sbin/install
2680 # SunOS /usr/etc/install
2681 # IRIX /sbin/install
2682 # AIX /bin/install
2683 # AmigaOS /C/install, which installs bootblocks on floppy discs
2684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687 # OS/2's system install, which has a completely different semantic
2688 # ./install, which can be erroneously created by make from ./install.sh.
2689 # Reject install programs that cannot install multiple files.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2692 if test -z "$INSTALL"; then
2693 if test "${ac_cv_path_install+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 # Account for people who put trailing slashes in PATH elements.
2702 case $as_dir/ in #((
2703 ./ | .// | /[cC]/* | \
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2706 /usr/ucb/* ) ;;
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2710 # by default.
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2722 else
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2726 mkdir conftest.dir
2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2731 then
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2737 done
2738 done
2740 esac
2742 done
2743 IFS=$as_save_IFS
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759 $as_echo "$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2770 $as_echo_n "checking whether build environment is sane... " >&6; }
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
2774 # Reject unsafe characters in $srcdir or the absolute working directory
2775 # name. Accept space and tab only in the latter.
2776 am_lf='
2778 case `pwd` in
2779 *[\\\"\#\$\&\'\`$am_lf]*)
2780 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2781 esac
2782 case $srcdir in
2783 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2784 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2785 esac
2787 # Do `set' in a subshell so we don't clobber the current shell's
2788 # arguments. Must try -L first in case configure is actually a
2789 # symlink; some systems play weird games with the mod time of symlinks
2790 # (eg FreeBSD returns the mod time of the symlink's containing
2791 # directory).
2792 if (
2793 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2794 if test "$*" = "X"; then
2795 # -L didn't work.
2796 set X `ls -t "$srcdir/configure" conftest.file`
2798 rm -f conftest.file
2799 if test "$*" != "X $srcdir/configure conftest.file" \
2800 && test "$*" != "X conftest.file $srcdir/configure"; then
2802 # If neither matched, then we have a broken ls. This can happen
2803 # if, for instance, CONFIG_SHELL is bash and it inherits a
2804 # broken ls alias from the environment. This has actually
2805 # happened. Such a system could not be considered "sane".
2806 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2807 alias in your environment" "$LINENO" 5
2810 test "$2" = conftest.file
2812 then
2813 # Ok.
2815 else
2816 as_fn_error "newly created file is older than distributed files!
2817 Check your system clock" "$LINENO" 5
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820 $as_echo "yes" >&6; }
2821 test "$program_prefix" != NONE &&
2822 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2823 # Use a double $ so make ignores it.
2824 test "$program_suffix" != NONE &&
2825 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2826 # Double any \ or $.
2827 # By default was `s,x,x', remove it if useless.
2828 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2829 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831 # expand $ac_aux_dir to an absolute path
2832 am_aux_dir=`cd $ac_aux_dir && pwd`
2834 if test x"${MISSING+set}" != xset; then
2835 case $am_aux_dir in
2836 *\ * | *\ *)
2837 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2840 esac
2842 # Use eval to expand $SHELL
2843 if eval "$MISSING --run true"; then
2844 am_missing_run="$MISSING --run "
2845 else
2846 am_missing_run=
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2848 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2851 if test x"${install_sh}" != xset; then
2852 case $am_aux_dir in
2853 *\ * | *\ *)
2854 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 install_sh="\${SHELL} $am_aux_dir/install-sh"
2857 esac
2860 # Installed binaries are usually stripped using `strip' when the user
2861 # run `make install-strip'. However `strip' might not be the right
2862 # tool to use in cross-compilation environments, therefore Automake
2863 # will honor the `STRIP' environment variable to overrule this program.
2864 if test "$cross_compiling" != no; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}strip; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_STRIP+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2893 STRIP=$ac_cv_prog_STRIP
2894 if test -n "$STRIP"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2896 $as_echo "$STRIP" >&6; }
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2904 if test -z "$ac_cv_prog_STRIP"; then
2905 ac_ct_STRIP=$STRIP
2906 # Extract the first word of "strip", so it can be a program name with args.
2907 set dummy strip; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$ac_ct_STRIP"; then
2914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_STRIP="strip"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2934 if test -n "$ac_ct_STRIP"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2936 $as_echo "$ac_ct_STRIP" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2942 if test "x$ac_ct_STRIP" = x; then
2943 STRIP=":"
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949 ac_tool_warned=yes ;;
2950 esac
2951 STRIP=$ac_ct_STRIP
2953 else
2954 STRIP="$ac_cv_prog_STRIP"
2958 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2961 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2962 if test -z "$MKDIR_P"; then
2963 if test "${ac_cv_path_mkdir+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_prog in mkdir gmkdir; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2974 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975 'mkdir (GNU coreutils) '* | \
2976 'mkdir (coreutils) '* | \
2977 'mkdir (fileutils) '4.1*)
2978 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2979 break 3;;
2980 esac
2981 done
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 if test "${ac_cv_path_mkdir+set}" = set; then
2989 MKDIR_P="$ac_cv_path_mkdir -p"
2990 else
2991 # As a last resort, use the slow shell script. Don't cache a
2992 # value for MKDIR_P within a source directory, because that will
2993 # break other packages using the cache if that directory is
2994 # removed, or if the value is a relative name.
2995 test -d ./--version && rmdir ./--version
2996 MKDIR_P="$ac_install_sh -d"
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000 $as_echo "$MKDIR_P" >&6; }
3002 mkdir_p="$MKDIR_P"
3003 case $mkdir_p in
3004 [\\/$]* | ?:[\\/]*) ;;
3005 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3006 esac
3008 for ac_prog in gawk mawk nawk awk
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_AWK+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$AWK"; then
3018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_AWK="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3037 AWK=$ac_cv_prog_AWK
3038 if test -n "$AWK"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3040 $as_echo "$AWK" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3047 test -n "$AWK" && break
3048 done
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3051 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3052 set x ${MAKE-make}
3053 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3054 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 cat >conftest.make <<\_ACEOF
3058 SHELL = /bin/sh
3059 all:
3060 @echo '@@@%%%=$(MAKE)=@@@%%%'
3061 _ACEOF
3062 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3064 *@@@%%%=?*=@@@%%%*)
3065 eval ac_cv_prog_make_${ac_make}_set=yes;;
3067 eval ac_cv_prog_make_${ac_make}_set=no;;
3068 esac
3069 rm -f conftest.make
3071 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074 SET_MAKE=
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 SET_MAKE="MAKE=${MAKE-make}"
3081 rm -rf .tst 2>/dev/null
3082 mkdir .tst 2>/dev/null
3083 if test -d .tst; then
3084 am__leading_dot=.
3085 else
3086 am__leading_dot=_
3088 rmdir .tst 2>/dev/null
3090 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3092 # is not polluted with repeated "-I."
3093 am__isrc=' -I$(srcdir)'
3094 # test to see if srcdir already configured
3095 if test -f $srcdir/config.status; then
3096 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3100 # test whether we have cygpath
3101 if test -z "$CYGPATH_W"; then
3102 if (cygpath --version) >/dev/null 2>/dev/null; then
3103 CYGPATH_W='cygpath -w'
3104 else
3105 CYGPATH_W=echo
3110 # Define the identity of the package.
3111 PACKAGE='libgo'
3112 VERSION='version-unused'
3115 # Some tools Automake needs.
3117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3131 # We need awk for the "check" target. The system "awk" is bad on
3132 # some platforms.
3133 # Always define AMTAR for backward compatibility. Yes, it's still used
3134 # in the wild :-( We should find a proper way to deprecate it ...
3135 AMTAR='$${TAR-tar}'
3137 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195 set dummy gcc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3217 IFS=$as_save_IFS
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 CC=$ac_ct_CC
3241 else
3242 CC="$ac_cv_prog_CC"
3245 if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_CC+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3268 done
3269 done
3270 IFS=$as_save_IFS
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3286 if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288 set dummy cc; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_CC+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 else
3297 ac_prog_rejected=no
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3367 done
3368 done
3369 IFS=$as_save_IFS
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3383 test -n "$CC" && break
3384 done
3386 if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$ac_ct_CC" && break
3428 done
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3446 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details." "$LINENO" 5; }
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 set X $ac_compile
3454 ac_compiler=$2
3455 for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467 ... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3470 rm -f conftest.er1 conftest.err
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 done
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3480 main ()
3484 return 0;
3486 _ACEOF
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3491 # of exeext.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493 $as_echo_n "checking for C compiler default output file name... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499 ac_rmfiles=
3500 for ac_file in $ac_files
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506 done
3507 rm -f $ac_rmfiles
3509 if { { ac_try="$ac_link_default"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3524 # Autoconf.
3525 for ac_file in $ac_files ''
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3547 break;;
3548 esac
3549 done
3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552 else
3553 ac_file=''
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 if test -z "$ac_file"; then :
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { as_fn_set_status 77
3564 as_fn_error "C compiler cannot create executables
3565 See \`config.log' for more details." "$LINENO" 5; }; }
3567 ac_exeext=$ac_cv_exeext
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 # If not cross compiling, check that we can run a simple program.
3574 if test "$cross_compiling" != yes; then
3575 if { ac_try='./$ac_file'
3576 { { case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_try") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; }; then
3586 cross_compiling=no
3587 else
3588 if test "$cross_compiling" = maybe; then
3589 cross_compiling=yes
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error "cannot run C compiled programs.
3594 If you meant to cross compile, use \`--host'.
3595 See \`config.log' for more details." "$LINENO" 5; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3603 ac_clean_files=$ac_clean_files_save
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609 $as_echo "$cross_compiling" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3612 $as_echo_n "checking for suffix of executables... " >&6; }
3613 if { { ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3626 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 # `rm'.
3628 for ac_file in conftest.exe conftest conftest.*; do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 break;;
3634 * ) break;;
3635 esac
3636 done
3637 else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error "cannot compute suffix of executables: cannot compile and link
3641 See \`config.log' for more details." "$LINENO" 5; }
3643 rm -f conftest$ac_cv_exeext
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3647 rm -f conftest.$ac_ext
3648 EXEEXT=$ac_cv_exeext
3649 ac_exeext=$EXEEXT
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3651 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if test "${ac_cv_objext+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3659 main ()
3663 return 0;
3665 _ACEOF
3666 rm -f conftest.o conftest.obj
3667 if { { ac_try="$ac_compile"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_compile") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 break;;
3684 esac
3685 done
3686 else
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error "cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details." "$LINENO" 5; }
3695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698 $as_echo "$ac_cv_objext" >&6; }
3699 OBJEXT=$ac_cv_objext
3700 ac_objext=$OBJEXT
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3702 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3710 main ()
3712 #ifndef __GNUC__
3713 choke me
3714 #endif
3717 return 0;
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_compiler_gnu=yes
3722 else
3723 ac_compiler_gnu=no
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731 if test $ac_compiler_gnu = yes; then
3732 GCC=yes
3733 else
3734 GCC=
3736 ac_test_CFLAGS=${CFLAGS+set}
3737 ac_save_CFLAGS=$CFLAGS
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if test "${ac_cv_prog_cc_g+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3745 ac_cv_prog_cc_g=no
3746 CFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_prog_cc_g=yes
3760 else
3761 CFLAGS=""
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3766 main ()
3770 return 0;
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3775 else
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3800 $as_echo "$ac_cv_prog_cc_g" >&6; }
3801 if test "$ac_test_CFLAGS" = set; then
3802 CFLAGS=$ac_save_CFLAGS
3803 elif test $ac_cv_prog_cc_g = yes; then
3804 if test "$GCC" = yes; then
3805 CFLAGS="-g -O2"
3806 else
3807 CFLAGS="-g"
3809 else
3810 if test "$GCC" = yes; then
3811 CFLAGS="-O2"
3812 else
3813 CFLAGS=
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_cv_prog_cc_c89=no
3822 ac_save_CC=$CC
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdarg.h>
3826 #include <stdio.h>
3827 #include <sys/types.h>
3828 #include <sys/stat.h>
3829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3830 struct buf { int x; };
3831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3832 static char *e (p, i)
3833 char **p;
3834 int i;
3836 return p[i];
3838 static char *f (char * (*g) (char **, int), char **p, ...)
3840 char *s;
3841 va_list v;
3842 va_start (v,p);
3843 s = g (p, va_arg (v,int));
3844 va_end (v);
3845 return s;
3848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3849 function prototypes and stuff, but not '\xHH' hex character constants.
3850 These don't provoke an error unfortunately, instead are silently treated
3851 as 'x'. The following induces an error, until -std is added to get
3852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3853 array size at least. It's necessary to write '\x00'==0 to get something
3854 that's true only with -std. */
3855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3858 inside strings and character constants. */
3859 #define FOO(x) 'x'
3860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3862 int test (int i, double x);
3863 struct s1 {int (*f) (int a);};
3864 struct s2 {int (*f) (double a);};
3865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866 int argc;
3867 char **argv;
3869 main ()
3871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3873 return 0;
3875 _ACEOF
3876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879 CC="$ac_save_CC $ac_arg"
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_c89=$ac_arg
3883 rm -f core conftest.err conftest.$ac_objext
3884 test "x$ac_cv_prog_cc_c89" != "xno" && break
3885 done
3886 rm -f conftest.$ac_ext
3887 CC=$ac_save_CC
3890 # AC_CACHE_VAL
3891 case "x$ac_cv_prog_cc_c89" in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894 $as_echo "none needed" >&6; } ;;
3895 xno)
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897 $as_echo "unsupported" >&6; } ;;
3899 CC="$CC $ac_cv_prog_cc_c89"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3902 esac
3903 if test "x$ac_cv_prog_cc_c89" != xno; then :
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 DEPDIR="${am__leading_dot}deps"
3914 ac_config_commands="$ac_config_commands depfiles"
3917 am_make=${MAKE-make}
3918 cat > confinc << 'END'
3919 am__doit:
3920 @echo this is the am__doit target
3921 .PHONY: am__doit
3923 # If we don't find an include directive, just comment out the code.
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3925 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3926 am__include="#"
3927 am__quote=
3928 _am_result=none
3929 # First try GNU make style include.
3930 echo "include confinc" > confmf
3931 # Ignore all kinds of additional output from `make'.
3932 case `$am_make -s -f confmf 2> /dev/null` in #(
3933 *the\ am__doit\ target*)
3934 am__include=include
3935 am__quote=
3936 _am_result=GNU
3938 esac
3939 # Now try BSD make style include.
3940 if test "$am__include" = "#"; then
3941 echo '.include "confinc"' > confmf
3942 case `$am_make -s -f confmf 2> /dev/null` in #(
3943 *the\ am__doit\ target*)
3944 am__include=.include
3945 am__quote="\""
3946 _am_result=BSD
3948 esac
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3953 $as_echo "$_am_result" >&6; }
3954 rm -f confinc confmf
3956 # Check whether --enable-dependency-tracking was given.
3957 if test "${enable_dependency_tracking+set}" = set; then :
3958 enableval=$enable_dependency_tracking;
3961 if test "x$enable_dependency_tracking" != xno; then
3962 am_depcomp="$ac_aux_dir/depcomp"
3963 AMDEPBACKSLASH='\'
3964 am__nodep='_no'
3966 if test "x$enable_dependency_tracking" != xno; then
3967 AMDEP_TRUE=
3968 AMDEP_FALSE='#'
3969 else
3970 AMDEP_TRUE='#'
3971 AMDEP_FALSE=
3976 depcc="$CC" am_compiler_list=
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3979 $as_echo_n "checking dependency style of $depcc... " >&6; }
3980 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984 # We make a subdir and do the tests there. Otherwise we can end up
3985 # making bogus files that we don't know about and never remove. For
3986 # instance it was reported that on HP-UX the gcc test will end up
3987 # making a dummy file named `D' -- because `-MD' means `put the output
3988 # in D'.
3989 rm -rf conftest.dir
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4007 am__universal=false
4008 case " $depcc " in #(
4009 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010 esac
4012 for depmode in $am_compiler_list; do
4013 # Setup a source with many dependencies, because some compilers
4014 # like to wrap large dependency lists on column 80 (with \), and
4015 # we should not choose a depcomp mode which is confused by this.
4017 # We need to recreate these files for each test, as the compiler may
4018 # overwrite some of them when testing with obscure command lines.
4019 # This happens at least with the AIX C compiler.
4020 : > sub/conftest.c
4021 for i in 1 2 3 4 5 6; do
4022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
4026 done
4027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030 # mode. It turns out that the SunPro C++ compiler does not properly
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
4033 am__obj=sub/conftest.${OBJEXT-o}
4034 am__minus_obj="-o $am__obj"
4035 case $depmode in
4036 gcc)
4037 # This depmode causes a compiler race in universal mode.
4038 test "$am__universal" = false || continue
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4049 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4050 # This compiler won't grok `-c -o', but also, the minuso test has
4051 # not run yet. These depmodes are late enough in the game, and
4052 # so weak that their functioning should not be impacted.
4053 am__obj=conftest.${OBJEXT-o}
4054 am__minus_obj=
4056 none) break ;;
4057 esac
4058 if depmode=$depmode \
4059 source=sub/conftest.c object=$am__obj \
4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062 >/dev/null 2>conftest.err &&
4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067 # icc doesn't choke on unknown options, it will just issue warnings
4068 # or remarks (even with -Werror). So we grep stderr for any message
4069 # that says an option was ignored or not supported.
4070 # When given -MP, icc 7.0 and 7.1 complain thusly:
4071 # icc: Command line warning: ignoring option '-M'; no argument required
4072 # The diagnosis changed in icc 8.0:
4073 # icc: Command line remark: option '-MP' not supported
4074 if (grep 'ignoring option' conftest.err ||
4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076 am_cv_CC_dependencies_compiler_type=$depmode
4077 break
4080 done
4082 cd ..
4083 rm -rf conftest.dir
4084 else
4085 am_cv_CC_dependencies_compiler_type=none
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094 test "x$enable_dependency_tracking" != xno \
4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_TRUE=
4097 am__fastdepCC_FALSE='#'
4098 else
4099 am__fastdepCC_TRUE='#'
4100 am__fastdepCC_FALSE=
4104 ac_ext=go
4105 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compile_gnu=yes
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_GOC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$GOC"; then
4117 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 GOC=$ac_cv_prog_GOC
4137 if test -n "$GOC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139 $as_echo "$GOC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4147 if test -z "$ac_cv_prog_GOC"; then
4148 ac_ct_GOC=$GOC
4149 # Extract the first word of "gccgo", so it can be a program name with args.
4150 set dummy gccgo; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$ac_ct_GOC"; then
4157 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_GOC="gccgo"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4170 done
4171 done
4172 IFS=$as_save_IFS
4176 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177 if test -n "$ac_ct_GOC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179 $as_echo "$ac_ct_GOC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4185 if test "x$ac_ct_GOC" = x; then
4186 GOC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 GOC=$ac_ct_GOC
4196 else
4197 GOC="$ac_cv_prog_GOC"
4200 if test -z "$GOC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_GOC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$GOC"; then
4210 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 GOC=$ac_cv_prog_GOC
4230 if test -n "$GOC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232 $as_echo "$GOC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4241 if test -z "$GOC"; then
4242 # Extract the first word of "gccgo", so it can be a program name with args.
4243 set dummy gccgo; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_GOC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$GOC"; then
4250 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251 else
4252 ac_prog_rejected=no
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261 ac_prog_rejected=yes
4262 continue
4264 ac_cv_prog_GOC="gccgo"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4272 if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_GOC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set GOC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4286 GOC=$ac_cv_prog_GOC
4287 if test -n "$GOC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289 $as_echo "$GOC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 { { ac_try="$ac_compiler --version >&5"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler --version >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314 ... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321 GOCFLAGS="-g -O2"
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4334 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4335 # Check whether --enable-maintainer-mode was given.
4336 if test "${enable_maintainer_mode+set}" = set; then :
4337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4338 else
4339 USE_MAINTAINER_MODE=no
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4344 if test $USE_MAINTAINER_MODE = yes; then
4345 MAINTAINER_MODE_TRUE=
4346 MAINTAINER_MODE_FALSE='#'
4347 else
4348 MAINTAINER_MODE_TRUE='#'
4349 MAINTAINER_MODE_FALSE=
4352 MAINT=$MAINTAINER_MODE_TRUE
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4357 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4358 if test "${ac_cv_path_SED+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4362 for ac_i in 1 2 3 4 5 6 7; do
4363 ac_script="$ac_script$as_nl$ac_script"
4364 done
4365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4366 { ac_script=; unset ac_script;}
4367 if test -z "$SED"; then
4368 ac_path_SED_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in sed gsed; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4379 # Check for GNU ac_path_SED and select it if it is found.
4380 # Check for GNU $ac_path_SED
4381 case `"$ac_path_SED" --version 2>&1` in
4382 *GNU*)
4383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo '' >> "conftest.nl"
4393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_SED_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_SED="$ac_path_SED"
4399 ac_path_SED_max=$ac_count
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405 esac
4407 $ac_path_SED_found && break 3
4408 done
4409 done
4410 done
4411 IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_SED"; then
4413 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4415 else
4416 ac_cv_path_SED=$SED
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4421 $as_echo "$ac_cv_path_SED" >&6; }
4422 SED="$ac_cv_path_SED"
4423 rm -f conftest.sed
4425 test -z "$SED" && SED=sed
4426 Xsed="$SED -e 1s/^X//"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if test "${ac_cv_path_GREP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491 else
4492 ac_cv_path_GREP=$GREP
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if test "${ac_cv_path_EGREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4524 *GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 esac
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553 IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 else
4558 ac_cv_path_EGREP=$EGREP
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4569 $as_echo_n "checking for fgrep... " >&6; }
4570 if test "${ac_cv_path_FGREP+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4574 then ac_cv_path_FGREP="$GREP -F"
4575 else
4576 if test -z "$FGREP"; then
4577 ac_path_FGREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in fgrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4588 # Check for GNU ac_path_FGREP and select it if it is found.
4589 # Check for GNU $ac_path_FGREP
4590 case `"$ac_path_FGREP" --version 2>&1` in
4591 *GNU*)
4592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'FGREP' >> "conftest.nl"
4602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_FGREP="$ac_path_FGREP"
4608 ac_path_FGREP_max=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4616 $ac_path_FGREP_found && break 3
4617 done
4618 done
4619 done
4620 IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_FGREP"; then
4622 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 else
4625 ac_cv_path_FGREP=$FGREP
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4631 $as_echo "$ac_cv_path_FGREP" >&6; }
4632 FGREP="$ac_cv_path_FGREP"
4635 test -z "$GREP" && GREP=grep
4653 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4658 $as_echo_n "checking how to print strings... " >&6; }
4659 # Test print first, because it will be a builtin if present.
4660 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4661 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4662 ECHO='print -r --'
4663 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4664 ECHO='printf %s\n'
4665 else
4666 # Use this function as a fallback that always works.
4667 func_fallback_echo ()
4669 eval 'cat <<_LTECHO_EOF
4671 _LTECHO_EOF'
4673 ECHO='func_fallback_echo'
4676 # func_echo_all arg...
4677 # Invoke $ECHO with all args, space-separated.
4678 func_echo_all ()
4680 $ECHO ""
4683 case "$ECHO" in
4684 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4685 $as_echo "printf" >&6; } ;;
4686 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4687 $as_echo "print -r" >&6; } ;;
4688 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4689 $as_echo "cat" >&6; } ;;
4690 esac
4707 # Check whether --with-gnu-ld was given.
4708 if test "${with_gnu_ld+set}" = set; then :
4709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4710 else
4711 with_gnu_ld=no
4714 ac_prog=ld
4715 if test "$GCC" = yes; then
4716 # Check if gcc -print-prog-name=ld gives a path.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4718 $as_echo_n "checking for ld used by $CC... " >&6; }
4719 case $host in
4720 *-*-mingw*)
4721 # gcc leaves a trailing carriage return which upsets mingw
4722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4725 esac
4726 case $ac_prog in
4727 # Accept absolute paths.
4728 [\\/]* | ?:[\\/]*)
4729 re_direlt='/[^/][^/]*/\.\./'
4730 # Canonicalize the pathname of ld
4731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4734 done
4735 test -z "$LD" && LD="$ac_prog"
4738 # If it fails, then pretend we aren't using GCC.
4739 ac_prog=ld
4742 # If it is relative, then search for the first ld in PATH.
4743 with_gnu_ld=unknown
4745 esac
4746 elif test "$with_gnu_ld" = yes; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4748 $as_echo_n "checking for GNU ld... " >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4751 $as_echo_n "checking for non-GNU ld... " >&6; }
4753 if test "${lt_cv_path_LD+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -z "$LD"; then
4757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4758 for ac_dir in $PATH; do
4759 IFS="$lt_save_ifs"
4760 test -z "$ac_dir" && ac_dir=.
4761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4762 lt_cv_path_LD="$ac_dir/$ac_prog"
4763 # Check to see if the program is GNU ld. I'd rather use --version,
4764 # but apparently some variants of GNU ld only accept -v.
4765 # Break only if it was the GNU/non-GNU ld that we prefer.
4766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4767 *GNU* | *'with BFD'*)
4768 test "$with_gnu_ld" != no && break
4771 test "$with_gnu_ld" != yes && break
4773 esac
4775 done
4776 IFS="$lt_save_ifs"
4777 else
4778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4782 LD="$lt_cv_path_LD"
4783 if test -n "$LD"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4785 $as_echo "$LD" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4790 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4793 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4797 case `$LD -v 2>&1 </dev/null` in
4798 *GNU* | *'with BFD'*)
4799 lt_cv_prog_gnu_ld=yes
4802 lt_cv_prog_gnu_ld=no
4804 esac
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4808 with_gnu_ld=$lt_cv_prog_gnu_ld
4818 if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$RANLIB"; then
4827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 RANLIB=$ac_cv_prog_RANLIB
4847 if test -n "$RANLIB"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4849 $as_echo "$RANLIB" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4857 if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860 set dummy ranlib; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887 if test -n "$ac_ct_RANLIB"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4889 $as_echo "$ac_ct_RANLIB" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4895 if test "x$ac_ct_RANLIB" = x; then
4896 RANLIB=":"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 RANLIB=$ac_ct_RANLIB
4906 else
4907 RANLIB="$ac_cv_prog_RANLIB"
4910 if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$OBJCOPY"; then
4919 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 OBJCOPY=$ac_cv_prog_OBJCOPY
4939 if test -n "$OBJCOPY"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4941 $as_echo "$OBJCOPY" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4949 if test -z "$ac_cv_prog_OBJCOPY"; then
4950 ac_ct_OBJCOPY=$OBJCOPY
4951 # Extract the first word of "objcopy", so it can be a program name with args.
4952 set dummy objcopy; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_OBJCOPY"; then
4959 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4979 if test -n "$ac_ct_OBJCOPY"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4981 $as_echo "$ac_ct_OBJCOPY" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4987 if test "x$ac_ct_OBJCOPY" = x; then
4988 OBJCOPY="missing-objcopy"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 OBJCOPY=$ac_ct_OBJCOPY
4998 else
4999 OBJCOPY="$ac_cv_prog_OBJCOPY"
5003 enable_dlopen=yes
5007 case `pwd` in
5008 *\ * | *\ *)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5011 esac
5015 macro_version='2.2.7a'
5016 macro_revision='1.3134'
5030 ltmain="$ac_aux_dir/ltmain.sh"
5032 # Backslashify metacharacters that are still active within
5033 # double-quoted strings.
5034 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5036 # Same as above, but do not quote variable references.
5037 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5039 # Sed substitution to delay expansion of an escaped shell variable in a
5040 # double_quote_subst'ed string.
5041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5043 # Sed substitution to delay expansion of an escaped single quote.
5044 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5046 # Sed substitution to avoid accidental globbing in evaled expressions
5047 no_glob_subst='s/\*/\\\*/g'
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5050 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5051 if test "${lt_cv_path_NM+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$NM"; then
5055 # Let the user override the test.
5056 lt_cv_path_NM="$NM"
5057 else
5058 lt_nm_to_check="${ac_tool_prefix}nm"
5059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5060 lt_nm_to_check="$lt_nm_to_check nm"
5062 for lt_tmp_nm in $lt_nm_to_check; do
5063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5065 IFS="$lt_save_ifs"
5066 test -z "$ac_dir" && ac_dir=.
5067 tmp_nm="$ac_dir/$lt_tmp_nm"
5068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 # Check to see if the nm accepts a BSD-compat flag.
5070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071 # nm: unknown option "B" ignored
5072 # Tru64's nm complains that /dev/null is an invalid object file
5073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5074 */dev/null* | *'Invalid file or object type'*)
5075 lt_cv_path_NM="$tmp_nm -B"
5076 break
5079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5080 */dev/null*)
5081 lt_cv_path_NM="$tmp_nm -p"
5082 break
5085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086 continue # so that we can try to find one that supports BSD flags
5088 esac
5090 esac
5092 done
5093 IFS="$lt_save_ifs"
5094 done
5095 : ${lt_cv_path_NM=no}
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099 $as_echo "$lt_cv_path_NM" >&6; }
5100 if test "$lt_cv_path_NM" != "no"; then
5101 NM="$lt_cv_path_NM"
5102 else
5103 # Didn't find any BSD compatible name lister, look for dumpbin.
5104 if test -n "$DUMPBIN"; then :
5105 # Let the user override the test.
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in dumpbin "link -dump"
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$DUMPBIN"; then
5118 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 DUMPBIN=$ac_cv_prog_DUMPBIN
5138 if test -n "$DUMPBIN"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5140 $as_echo "$DUMPBIN" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$DUMPBIN" && break
5148 done
5150 if test -z "$DUMPBIN"; then
5151 ac_ct_DUMPBIN=$DUMPBIN
5152 for ac_prog in dumpbin "link -dump"
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5182 if test -n "$ac_ct_DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5184 $as_echo "$ac_ct_DUMPBIN" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$ac_ct_DUMPBIN" && break
5192 done
5194 if test "x$ac_ct_DUMPBIN" = x; then
5195 DUMPBIN=":"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 DUMPBIN=$ac_ct_DUMPBIN
5207 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208 *COFF*)
5209 DUMPBIN="$DUMPBIN -symbols"
5212 DUMPBIN=:
5214 esac
5217 if test "$DUMPBIN" != ":"; then
5218 NM="$DUMPBIN"
5221 test -z "$NM" && NM=nm
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5229 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5230 if test "${lt_cv_nm_interface+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 lt_cv_nm_interface="BSD nm"
5234 echo "int some_variable = 0;" > conftest.$ac_ext
5235 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5236 (eval "$ac_compile" 2>conftest.err)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5240 cat conftest.err >&5
5241 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5242 cat conftest.out >&5
5243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5244 lt_cv_nm_interface="MS dumpbin"
5246 rm -f conftest*
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5249 $as_echo "$lt_cv_nm_interface" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5252 $as_echo_n "checking whether ln -s works... " >&6; }
5253 LN_S=$as_ln_s
5254 if test "$LN_S" = "ln -s"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5259 $as_echo "no, using $LN_S" >&6; }
5262 # find the maximum length of command line arguments
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5264 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5269 teststring="ABCD"
5271 case $build_os in
5272 msdosdjgpp*)
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5280 gnu*)
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5287 cygwin* | mingw* | cegcc*)
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5298 mint*)
5299 # On MiNT this can take a long time and run out of memory.
5300 lt_cv_sys_max_cmd_len=8192;
5303 amigaos*)
5304 # On AmigaOS with pdksh, this test takes hours, literally.
5305 # So we just punt and use a minimum line length of 8192.
5306 lt_cv_sys_max_cmd_len=8192;
5309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310 # This has been around since 386BSD, at least. Likely further.
5311 if test -x /sbin/sysctl; then
5312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5313 elif test -x /usr/sbin/sysctl; then
5314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5315 else
5316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5318 # And add a safety zone
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5323 interix*)
5324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5325 lt_cv_sys_max_cmd_len=196608
5328 osf*)
5329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331 # nice to cause kernel panics so lets avoid the loop below.
5332 # First set a reasonable default.
5333 lt_cv_sys_max_cmd_len=16384
5335 if test -x /sbin/sysconfig; then
5336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338 esac
5341 sco3.2v5*)
5342 lt_cv_sys_max_cmd_len=102400
5344 sysv5* | sco5v6* | sysv4.2uw2*)
5345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346 if test -n "$kargmax"; then
5347 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5348 else
5349 lt_cv_sys_max_cmd_len=32768
5353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5357 else
5358 # Make teststring a little bigger before we do anything with it.
5359 # a 1K string should be a reasonable start.
5360 for i in 1 2 3 4 5 6 7 8 ; do
5361 teststring=$teststring$teststring
5362 done
5363 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5364 # If test is not a shell built-in, we'll probably end up computing a
5365 # maximum length that is only half of the actual maximum length, but
5366 # we can't tell.
5367 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5368 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5369 test $i != 17 # 1/2 MB should be enough
5371 i=`expr $i + 1`
5372 teststring=$teststring$teststring
5373 done
5374 # Only check the string length outside the loop.
5375 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5376 teststring=
5377 # Add a significant safety factor because C++ compilers can tack on
5378 # massive amounts of additional arguments before passing them to the
5379 # linker. It appears as though 1/2 is a usable value.
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5383 esac
5387 if test -n $lt_cv_sys_max_cmd_len ; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5389 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5392 $as_echo "none" >&6; }
5394 max_cmd_len=$lt_cv_sys_max_cmd_len
5401 : ${CP="cp -f"}
5402 : ${MV="mv -f"}
5403 : ${RM="rm -f"}
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5406 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5407 # Try some XSI features
5408 xsi_shell=no
5409 ( _lt_dummy="a/b/c"
5410 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5411 = c,a/b,, \
5412 && eval 'test $(( 1 + 1 )) -eq 2 \
5413 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5414 && xsi_shell=yes
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5416 $as_echo "$xsi_shell" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5420 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5421 lt_shell_append=no
5422 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5423 >/dev/null 2>&1 \
5424 && lt_shell_append=yes
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5426 $as_echo "$lt_shell_append" >&6; }
5429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 lt_unset=unset
5431 else
5432 lt_unset=false
5439 # test EBCDIC or ASCII
5440 case `echo X|tr X '\101'` in
5441 A) # ASCII based system
5442 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5443 lt_SP2NL='tr \040 \012'
5444 lt_NL2SP='tr \015\012 \040\040'
5446 *) # EBCDIC based system
5447 lt_SP2NL='tr \100 \n'
5448 lt_NL2SP='tr \r\n \100\100'
5450 esac
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5461 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5462 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 lt_cv_ld_reload_flag='-r'
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5468 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5469 reload_flag=$lt_cv_ld_reload_flag
5470 case $reload_flag in
5471 "" | " "*) ;;
5472 *) reload_flag=" $reload_flag" ;;
5473 esac
5474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475 case $host_os in
5476 darwin*)
5477 if test "$GCC" = yes; then
5478 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5479 else
5480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5483 esac
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$OBJDUMP"; then
5502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 OBJDUMP=$ac_cv_prog_OBJDUMP
5522 if test -n "$OBJDUMP"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5524 $as_echo "$OBJDUMP" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5532 if test -z "$ac_cv_prog_OBJDUMP"; then
5533 ac_ct_OBJDUMP=$OBJDUMP
5534 # Extract the first word of "objdump", so it can be a program name with args.
5535 set dummy objdump; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5562 if test -n "$ac_ct_OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5564 $as_echo "$ac_ct_OBJDUMP" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5570 if test "x$ac_ct_OBJDUMP" = x; then
5571 OBJDUMP="false"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 OBJDUMP=$ac_ct_OBJDUMP
5581 else
5582 OBJDUMP="$ac_cv_prog_OBJDUMP"
5585 test -z "$OBJDUMP" && OBJDUMP=objdump
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 lt_cv_file_magic_cmd='$MAGIC_CMD'
5601 lt_cv_file_magic_test_file=
5602 lt_cv_deplibs_check_method='unknown'
5603 # Need to set the preceding variable on all platforms that support
5604 # interlibrary dependencies.
5605 # 'none' -- dependencies not supported.
5606 # `unknown' -- same as none, but documents that we really don't know.
5607 # 'pass_all' -- all dependencies passed with no checks.
5608 # 'test_compile' -- check by making test program.
5609 # 'file_magic [[regex]]' -- check by looking for files in library path
5610 # which responds to the $file_magic_cmd with a given extended regex.
5611 # If you have `file' or equivalent on your system and you're not sure
5612 # whether `pass_all' will *always* work, you probably want this one.
5614 case $host_os in
5615 aix[4-9]*)
5616 lt_cv_deplibs_check_method=pass_all
5619 beos*)
5620 lt_cv_deplibs_check_method=pass_all
5623 bsdi[45]*)
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625 lt_cv_file_magic_cmd='/usr/bin/file -L'
5626 lt_cv_file_magic_test_file=/shlib/libc.so
5629 cygwin*)
5630 # func_win32_libid is a shell function defined in ltmain.sh
5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632 lt_cv_file_magic_cmd='func_win32_libid'
5635 mingw* | pw32*)
5636 # Base MSYS/MinGW do not provide the 'file' command needed by
5637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638 # unless we find 'file', for example because we are cross-compiling.
5639 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5640 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5642 lt_cv_file_magic_cmd='func_win32_libid'
5643 else
5644 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5645 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 cegcc*)
5650 # use the weaker test based on 'objdump'. See mingw*.
5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5655 darwin* | rhapsody*)
5656 lt_cv_deplibs_check_method=pass_all
5659 freebsd* | dragonfly*)
5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5661 case $host_cpu in
5662 i*86 )
5663 # Not sure whether the presence of OpenBSD here was a mistake.
5664 # Let's accept both of them until this is cleared up.
5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5669 esac
5670 else
5671 lt_cv_deplibs_check_method=pass_all
5675 gnu*)
5676 lt_cv_deplibs_check_method=pass_all
5679 haiku*)
5680 lt_cv_deplibs_check_method=pass_all
5683 hpux10.20* | hpux11*)
5684 lt_cv_file_magic_cmd=/usr/bin/file
5685 case $host_cpu in
5686 ia64*)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5690 hppa*64*)
5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5698 esac
5701 interix[3-9]*)
5702 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5706 irix5* | irix6* | nonstopux*)
5707 case $LD in
5708 *-32|*"-32 ") libmagic=32-bit;;
5709 *-n32|*"-n32 ") libmagic=N32;;
5710 *-64|*"-64 ") libmagic=64-bit;;
5711 *) libmagic=never-match;;
5712 esac
5713 lt_cv_deplibs_check_method=pass_all
5716 # This must be Linux ELF.
5717 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5718 lt_cv_deplibs_check_method=pass_all
5721 netbsd*)
5722 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5724 else
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5729 newos6*)
5730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5731 lt_cv_file_magic_cmd=/usr/bin/file
5732 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5735 *nto* | *qnx*)
5736 lt_cv_deplibs_check_method=pass_all
5739 openbsd*)
5740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5742 else
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5747 osf3* | osf4* | osf5*)
5748 lt_cv_deplibs_check_method=pass_all
5751 rdos*)
5752 lt_cv_deplibs_check_method=pass_all
5755 solaris*)
5756 lt_cv_deplibs_check_method=pass_all
5759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5760 lt_cv_deplibs_check_method=pass_all
5763 sysv4 | sysv4.3*)
5764 case $host_vendor in
5765 motorola)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5767 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5769 ncr)
5770 lt_cv_deplibs_check_method=pass_all
5772 sequent)
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5776 sni)
5777 lt_cv_file_magic_cmd='/bin/file'
5778 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5779 lt_cv_file_magic_test_file=/lib/libc.so
5781 siemens)
5782 lt_cv_deplibs_check_method=pass_all
5785 lt_cv_deplibs_check_method=pass_all
5787 esac
5790 tpf*)
5791 lt_cv_deplibs_check_method=pass_all
5793 esac
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5797 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5798 file_magic_cmd=$lt_cv_file_magic_cmd
5799 deplibs_check_method=$lt_cv_deplibs_check_method
5800 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}ar; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_AR+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$AR"; then
5822 ac_cv_prog_AR="$AR" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_AR="${ac_tool_prefix}ar"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 AR=$ac_cv_prog_AR
5842 if test -n "$AR"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5844 $as_echo "$AR" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5852 if test -z "$ac_cv_prog_AR"; then
5853 ac_ct_AR=$AR
5854 # Extract the first word of "ar", so it can be a program name with args.
5855 set dummy ar; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$ac_ct_AR"; then
5862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_AR="ar"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5875 done
5876 done
5877 IFS=$as_save_IFS
5881 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5882 if test -n "$ac_ct_AR"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5884 $as_echo "$ac_ct_AR" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5890 if test "x$ac_ct_AR" = x; then
5891 AR="false"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899 AR=$ac_ct_AR
5901 else
5902 AR="$ac_cv_prog_AR"
5905 test -z "$AR" && AR=ar
5906 test -z "$AR_FLAGS" && AR_FLAGS=cru
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}strip; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_STRIP+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$STRIP"; then
5927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5949 $as_echo "$STRIP" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5957 if test -z "$ac_cv_prog_STRIP"; then
5958 ac_ct_STRIP=$STRIP
5959 # Extract the first word of "strip", so it can be a program name with args.
5960 set dummy strip; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$ac_ct_STRIP"; then
5967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_STRIP="strip"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5980 done
5981 done
5982 IFS=$as_save_IFS
5986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987 if test -n "$ac_ct_STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5989 $as_echo "$ac_ct_STRIP" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5995 if test "x$ac_ct_STRIP" = x; then
5996 STRIP=":"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004 STRIP=$ac_ct_STRIP
6006 else
6007 STRIP="$ac_cv_prog_STRIP"
6010 test -z "$STRIP" && STRIP=:
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$RANLIB"; then
6026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6039 done
6040 done
6041 IFS=$as_save_IFS
6045 RANLIB=$ac_cv_prog_RANLIB
6046 if test -n "$RANLIB"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6048 $as_echo "$RANLIB" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6056 if test -z "$ac_cv_prog_RANLIB"; then
6057 ac_ct_RANLIB=$RANLIB
6058 # Extract the first word of "ranlib", so it can be a program name with args.
6059 set dummy ranlib; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$ac_ct_RANLIB"; then
6066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_RANLIB="ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6079 done
6080 done
6081 IFS=$as_save_IFS
6085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086 if test -n "$ac_ct_RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6088 $as_echo "$ac_ct_RANLIB" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6094 if test "x$ac_ct_RANLIB" = x; then
6095 RANLIB=":"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 RANLIB=$ac_ct_RANLIB
6105 else
6106 RANLIB="$ac_cv_prog_RANLIB"
6109 test -z "$RANLIB" && RANLIB=:
6116 # Determine commands to create old-style static archives.
6117 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6118 old_postinstall_cmds='chmod 644 $oldlib'
6119 old_postuninstall_cmds=
6121 if test -n "$RANLIB"; then
6122 case $host_os in
6123 openbsd*)
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6129 esac
6130 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6133 case $host_os in
6134 darwin*)
6135 lock_old_archive_extraction=yes ;;
6137 lock_old_archive_extraction=no ;;
6138 esac
6178 # If no C compiler was specified, use CC.
6179 LTCC=${LTCC-"$CC"}
6181 # If no C compiler flags were specified, use CFLAGS.
6182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6184 # Allow CC to be a program name with arguments.
6185 compiler=$CC
6188 # Check for command to grab the raw symbol name followed by C symbol from nm.
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6190 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6191 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6195 # These are sane defaults that work on at least a few old systems.
6196 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6198 # Character class describing NM global symbol codes.
6199 symcode='[BCDEGRST]'
6201 # Regexp to match symbols that can be accessed directly from C.
6202 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6204 # Define system-specific variables.
6205 case $host_os in
6206 aix*)
6207 symcode='[BCDT]'
6209 cygwin* | mingw* | pw32* | cegcc*)
6210 symcode='[ABCDGISTW]'
6212 hpux*)
6213 if test "$host_cpu" = ia64; then
6214 symcode='[ABCDEGRST]'
6217 irix* | nonstopux*)
6218 symcode='[BCDEGRST]'
6220 osf*)
6221 symcode='[BCDEGQRST]'
6223 solaris*)
6224 symcode='[BDRT]'
6226 sco3.2v5*)
6227 symcode='[DT]'
6229 sysv4.2uw2*)
6230 symcode='[DT]'
6232 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6233 symcode='[ABDT]'
6235 sysv4)
6236 symcode='[DFNSTU]'
6238 esac
6240 # If we're using GNU nm, then use its standard symbol codes.
6241 case `$NM -V 2>&1` in
6242 *GNU* | *'with BFD'*)
6243 symcode='[ABCDGIRSTW]' ;;
6244 esac
6246 # Transform an extracted symbol line into a proper C declaration.
6247 # Some systems (esp. on ia64) link data and code symbols differently,
6248 # so use this general approach.
6249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6251 # Transform an extracted symbol line into symbol name and symbol address
6252 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6255 # Handle CRLF in mingw tool chain
6256 opt_cr=
6257 case $build_os in
6258 mingw*)
6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261 esac
6263 # Try without a prefix underscore, then with it.
6264 for ac_symprfx in "" "_"; do
6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6267 symxfrm="\\1 $ac_symprfx\\2 \\2"
6269 # Write the raw and C identifiers.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271 # Fake it for dumpbin and say T for any non-static function
6272 # and D for any global variable.
6273 # Also find C++ and __fastcall symbols from MSVC++,
6274 # which start with @ or ?.
6275 lt_cv_sys_global_symbol_pipe="$AWK '"\
6276 " {last_section=section; section=\$ 3};"\
6277 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6278 " \$ 0!~/External *\|/{next};"\
6279 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6280 " {if(hide[section]) next};"\
6281 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6282 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6283 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6284 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6285 " ' prfx=^$ac_symprfx"
6286 else
6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6290 # Check to see that the pipe works correctly.
6291 pipe_works=no
6293 rm -f conftest*
6294 cat > conftest.$ac_ext <<_LT_EOF
6295 #ifdef __cplusplus
6296 extern "C" {
6297 #endif
6298 char nm_test_var;
6299 void nm_test_func(void);
6300 void nm_test_func(void){}
6301 #ifdef __cplusplus
6303 #endif
6304 int main(){nm_test_var='a';nm_test_func();return(0);}
6305 _LT_EOF
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 # Now try to grab the symbols.
6313 nlist=conftest.nm
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; } && test -s "$nlist"; then
6319 # Try sorting and uniquifying the output.
6320 if sort "$nlist" | uniq > "$nlist"T; then
6321 mv -f "$nlist"T "$nlist"
6322 else
6323 rm -f "$nlist"T
6326 # Make sure that we snagged all the symbols we need.
6327 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329 cat <<_LT_EOF > conftest.$ac_ext
6330 #ifdef __cplusplus
6331 extern "C" {
6332 #endif
6334 _LT_EOF
6335 # Now generate the symbol file.
6336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6338 cat <<_LT_EOF >> conftest.$ac_ext
6340 /* The mapping between symbol names and symbols. */
6341 const struct {
6342 const char *name;
6343 void *address;
6345 lt__PROGRAM__LTX_preloaded_symbols[] =
6347 { "@PROGRAM@", (void *) 0 },
6348 _LT_EOF
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350 cat <<\_LT_EOF >> conftest.$ac_ext
6351 {0, (void *) 0}
6354 /* This works around a problem in FreeBSD linker */
6355 #ifdef FREEBSD_WORKAROUND
6356 static const void *lt_preloaded_setup() {
6357 return lt__PROGRAM__LTX_preloaded_symbols;
6359 #endif
6361 #ifdef __cplusplus
6363 #endif
6364 _LT_EOF
6365 # Now try linking the two files.
6366 mv conftest.$ac_objext conftstm.$ac_objext
6367 lt_save_LIBS="$LIBS"
6368 lt_save_CFLAGS="$CFLAGS"
6369 LIBS="conftstm.$ac_objext"
6370 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6376 pipe_works=yes
6378 LIBS="$lt_save_LIBS"
6379 CFLAGS="$lt_save_CFLAGS"
6380 else
6381 echo "cannot find nm_test_func in $nlist" >&5
6383 else
6384 echo "cannot find nm_test_var in $nlist" >&5
6386 else
6387 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389 else
6390 echo "$progname: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 rm -rf conftest* conftst*
6395 # Do not use the global_symbol_pipe unless it works.
6396 if test "$pipe_works" = yes; then
6397 break
6398 else
6399 lt_cv_sys_global_symbol_pipe=
6401 done
6405 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406 lt_cv_sys_global_symbol_to_cdecl=
6408 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410 $as_echo "failed" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413 $as_echo "ok" >&6; }
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then :
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445 # Some flags need to be propagated to the compiler or linker for good
6446 # libtool support.
6447 case $host in
6448 ia64-*-hpux*)
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *ELF-32*)
6458 HPUX_IA64_MODE="32"
6460 *ELF-64*)
6461 HPUX_IA64_MODE="64"
6463 esac
6465 rm -rf conftest*
6467 *-*-irix6*)
6468 # Find out which ABI we are using.
6469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 LD="${LD-ld} -melf32bsmip"
6480 *N32*)
6481 LD="${LD-ld} -melf32bmipn32"
6483 *64-bit*)
6484 LD="${LD-ld} -melf64bmip"
6486 esac
6487 else
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -32"
6492 *N32*)
6493 LD="${LD-ld} -n32"
6495 *64-bit*)
6496 LD="${LD-ld} -64"
6498 esac
6501 rm -rf conftest*
6504 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6505 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.o` in
6514 *32-bit*)
6515 case $host in
6516 x86_64-*kfreebsd*-gnu)
6517 LD="${LD-ld} -m elf_i386_fbsd"
6519 x86_64-*linux*)
6520 case `/usr/bin/file conftest.o` in
6521 *x86-64*)
6522 LD="${LD-ld} -m elf32_x86_64"
6525 LD="${LD-ld} -m elf_i386"
6527 esac
6529 powerpc64le-*linux*)
6530 LD="${LD-ld} -m elf32lppclinux"
6532 powerpc64-*linux*)
6533 LD="${LD-ld} -m elf32ppclinux"
6535 s390x-*linux*)
6536 LD="${LD-ld} -m elf_s390"
6538 sparc64-*linux*)
6539 LD="${LD-ld} -m elf32_sparc"
6541 esac
6543 *64-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_x86_64_fbsd"
6548 x86_64-*linux*)
6549 LD="${LD-ld} -m elf_x86_64"
6551 powerpcle-*linux*)
6552 LD="${LD-ld} -m elf64lppc"
6554 powerpc-*linux*)
6555 LD="${LD-ld} -m elf64ppc"
6557 s390*-*linux*|s390*-*tpf*)
6558 LD="${LD-ld} -m elf64_s390"
6560 sparc*-*linux*)
6561 LD="${LD-ld} -m elf64_sparc"
6563 esac
6565 esac
6567 rm -rf conftest*
6570 *-*-sco3.2v5*)
6571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6572 SAVE_CFLAGS="$CFLAGS"
6573 CFLAGS="$CFLAGS -belf"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6575 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6576 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 ac_ext=c
6580 ac_cpp='$CPP $CPPFLAGS'
6581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6589 main ()
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 lt_cv_cc_needs_belf=yes
6598 else
6599 lt_cv_cc_needs_belf=no
6601 rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
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
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6611 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6612 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6613 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6614 CFLAGS="$SAVE_CFLAGS"
6617 sparc*-*solaris*)
6618 # Find out which ABI we are using.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.o` in
6626 *64-bit*)
6627 case $lt_cv_prog_gnu_ld in
6628 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6631 LD="${LD-ld} -64"
6634 esac
6636 esac
6638 rm -rf conftest*
6640 esac
6642 need_locks="$enable_libtool_lock"
6645 case $host_os in
6646 rhapsody* | darwin*)
6647 if test -n "$ac_tool_prefix"; then
6648 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6649 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$DSYMUTIL"; then
6656 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6669 done
6670 done
6671 IFS=$as_save_IFS
6675 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6676 if test -n "$DSYMUTIL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6678 $as_echo "$DSYMUTIL" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6686 if test -z "$ac_cv_prog_DSYMUTIL"; then
6687 ac_ct_DSYMUTIL=$DSYMUTIL
6688 # Extract the first word of "dsymutil", so it can be a program name with args.
6689 set dummy dsymutil; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$ac_ct_DSYMUTIL"; then
6696 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6716 if test -n "$ac_ct_DSYMUTIL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6718 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6724 if test "x$ac_ct_DSYMUTIL" = x; then
6725 DSYMUTIL=":"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728 yes:)
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731 ac_tool_warned=yes ;;
6732 esac
6733 DSYMUTIL=$ac_ct_DSYMUTIL
6735 else
6736 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$NMEDIT"; then
6748 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 NMEDIT=$ac_cv_prog_NMEDIT
6768 if test -n "$NMEDIT"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6770 $as_echo "$NMEDIT" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_NMEDIT"; then
6779 ac_ct_NMEDIT=$NMEDIT
6780 # Extract the first word of "nmedit", so it can be a program name with args.
6781 set dummy nmedit; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$ac_ct_NMEDIT"; then
6788 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6801 done
6802 done
6803 IFS=$as_save_IFS
6807 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6808 if test -n "$ac_ct_NMEDIT"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6810 $as_echo "$ac_ct_NMEDIT" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_NMEDIT" = x; then
6817 NMEDIT=":"
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825 NMEDIT=$ac_ct_NMEDIT
6827 else
6828 NMEDIT="$ac_cv_prog_NMEDIT"
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_LIPO+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$LIPO"; then
6840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6859 LIPO=$ac_cv_prog_LIPO
6860 if test -n "$LIPO"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6862 $as_echo "$LIPO" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6870 if test -z "$ac_cv_prog_LIPO"; then
6871 ac_ct_LIPO=$LIPO
6872 # Extract the first word of "lipo", so it can be a program name with args.
6873 set dummy lipo; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_LIPO"; then
6880 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_ac_ct_LIPO="lipo"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6893 done
6894 done
6895 IFS=$as_save_IFS
6899 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6900 if test -n "$ac_ct_LIPO"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6902 $as_echo "$ac_ct_LIPO" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 if test "x$ac_ct_LIPO" = x; then
6909 LIPO=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 LIPO=$ac_ct_LIPO
6919 else
6920 LIPO="$ac_cv_prog_LIPO"
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}otool; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$OTOOL"; then
6932 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 OTOOL=$ac_cv_prog_OTOOL
6952 if test -n "$OTOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6954 $as_echo "$OTOOL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6962 if test -z "$ac_cv_prog_OTOOL"; then
6963 ac_ct_OTOOL=$OTOOL
6964 # Extract the first word of "otool", so it can be a program name with args.
6965 set dummy otool; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_OTOOL"; then
6972 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_OTOOL="otool"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6991 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6992 if test -n "$ac_ct_OTOOL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6994 $as_echo "$ac_ct_OTOOL" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7000 if test "x$ac_ct_OTOOL" = x; then
7001 OTOOL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 OTOOL=$ac_ct_OTOOL
7011 else
7012 OTOOL="$ac_cv_prog_OTOOL"
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$OTOOL64"; then
7024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7037 done
7038 done
7039 IFS=$as_save_IFS
7043 OTOOL64=$ac_cv_prog_OTOOL64
7044 if test -n "$OTOOL64"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7046 $as_echo "$OTOOL64" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7054 if test -z "$ac_cv_prog_OTOOL64"; then
7055 ac_ct_OTOOL64=$OTOOL64
7056 # Extract the first word of "otool64", so it can be a program name with args.
7057 set dummy otool64; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_OTOOL64"; then
7064 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_OTOOL64="otool64"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7077 done
7078 done
7079 IFS=$as_save_IFS
7083 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7084 if test -n "$ac_ct_OTOOL64"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7086 $as_echo "$ac_ct_OTOOL64" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7092 if test "x$ac_ct_OTOOL64" = x; then
7093 OTOOL64=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 OTOOL64=$ac_ct_OTOOL64
7103 else
7104 OTOOL64="$ac_cv_prog_OTOOL64"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7134 $as_echo_n "checking for -single_module linker flag... " >&6; }
7135 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 lt_cv_apple_cc_single_mod=no
7139 if test -z "${LT_MULTI_MODULE}"; then
7140 # By default we will add the -single_module flag. You can override
7141 # by either setting the environment variable LT_MULTI_MODULE
7142 # non-empty at configure time, or by adding -multi_module to the
7143 # link flags.
7144 rm -rf libconftest.dylib*
7145 echo "int foo(void){return 1;}" > conftest.c
7146 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7147 -dynamiclib -Wl,-single_module conftest.c" >&5
7148 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7150 _lt_result=$?
7151 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7152 lt_cv_apple_cc_single_mod=yes
7153 else
7154 cat conftest.err >&5
7156 rm -rf libconftest.dylib*
7157 rm -f conftest.*
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7161 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7163 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7164 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 lt_cv_ld_exported_symbols_list=no
7168 save_LDFLAGS=$LDFLAGS
7169 echo "_main" > conftest.sym
7170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7175 main ()
7179 return 0;
7181 _ACEOF
7182 if ac_fn_c_try_link "$LINENO"; then :
7183 lt_cv_ld_exported_symbols_list=yes
7184 else
7185 lt_cv_ld_exported_symbols_list=no
7187 rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 LDFLAGS="$save_LDFLAGS"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7193 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7195 $as_echo_n "checking for -force_load linker flag... " >&6; }
7196 if test "${lt_cv_ld_force_load+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_ld_force_load=no
7200 cat > conftest.c << _LT_EOF
7201 int forced_loaded() { return 2;}
7202 _LT_EOF
7203 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7205 echo "$AR cru libconftest.a conftest.o" >&5
7206 $AR cru libconftest.a conftest.o 2>&5
7207 cat > conftest.c << _LT_EOF
7208 int main() { return 0;}
7209 _LT_EOF
7210 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7211 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7212 _lt_result=$?
7213 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7214 lt_cv_ld_force_load=yes
7215 else
7216 cat conftest.err >&5
7218 rm -f conftest.err libconftest.a conftest conftest.c
7219 rm -rf conftest.dSYM
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7223 $as_echo "$lt_cv_ld_force_load" >&6; }
7224 case $host_os in
7225 rhapsody* | darwin1.[012])
7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7227 darwin1.*)
7228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229 darwin*) # darwin 5.x on
7230 # if running on 10.5 or later, the deployment target defaults
7231 # to the OS version, if on x86, and 10.4, the deployment
7232 # target defaults to 10.4. Don't you love it?
7233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 10.[012][,.]*)
7237 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7238 10.*)
7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7240 esac
7242 esac
7243 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7244 _lt_dar_single_mod='$single_module'
7246 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7247 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7248 else
7249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7251 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7252 _lt_dsymutil='~$DSYMUTIL $lib || :'
7253 else
7254 _lt_dsymutil=
7257 esac
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7265 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7266 # On Suns, sometimes $CPP names a directory.
7267 if test -n "$CPP" && test -d "$CPP"; then
7268 CPP=
7270 if test -z "$CPP"; then
7271 if test "${ac_cv_prog_CPP+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 # Double quotes because CPP needs to be expanded
7275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7277 ac_preproc_ok=false
7278 for ac_c_preproc_warn_flag in '' yes
7280 # Use a header file that comes with gcc, so configuring glibc
7281 # with a fresh cross-compiler works.
7282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 # <limits.h> exists even on freestanding compilers.
7284 # On the NeXT, cc -E runs the code through the compiler's parser,
7285 # not just through cpp. "Syntax error" is here to catch this case.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #ifdef __STDC__
7289 # include <limits.h>
7290 #else
7291 # include <assert.h>
7292 #endif
7293 Syntax error
7294 _ACEOF
7295 if ac_fn_c_try_cpp "$LINENO"; then :
7297 else
7298 # Broken: fails on valid input.
7299 continue
7301 rm -f conftest.err conftest.$ac_ext
7303 # OK, works on sane cases. Now check whether nonexistent headers
7304 # can be detected and how.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 #include <ac_nonexistent.h>
7308 _ACEOF
7309 if ac_fn_c_try_cpp "$LINENO"; then :
7310 # Broken: success on invalid input.
7311 continue
7312 else
7313 # Passes both tests.
7314 ac_preproc_ok=:
7315 break
7317 rm -f conftest.err conftest.$ac_ext
7319 done
7320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7321 rm -f conftest.err conftest.$ac_ext
7322 if $ac_preproc_ok; then :
7323 break
7326 done
7327 ac_cv_prog_CPP=$CPP
7330 CPP=$ac_cv_prog_CPP
7331 else
7332 ac_cv_prog_CPP=$CPP
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7335 $as_echo "$CPP" >&6; }
7336 ac_preproc_ok=false
7337 for ac_c_preproc_warn_flag in '' yes
7339 # Use a header file that comes with gcc, so configuring glibc
7340 # with a fresh cross-compiler works.
7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342 # <limits.h> exists even on freestanding compilers.
7343 # On the NeXT, cc -E runs the code through the compiler's parser,
7344 # not just through cpp. "Syntax error" is here to catch this case.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #ifdef __STDC__
7348 # include <limits.h>
7349 #else
7350 # include <assert.h>
7351 #endif
7352 Syntax error
7353 _ACEOF
7354 if ac_fn_c_try_cpp "$LINENO"; then :
7356 else
7357 # Broken: fails on valid input.
7358 continue
7360 rm -f conftest.err conftest.$ac_ext
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if ac_fn_c_try_cpp "$LINENO"; then :
7369 # Broken: success on invalid input.
7370 continue
7371 else
7372 # Passes both tests.
7373 ac_preproc_ok=:
7374 break
7376 rm -f conftest.err conftest.$ac_ext
7378 done
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then :
7383 else
7384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7386 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7387 See \`config.log' for more details." "$LINENO" 5; }
7390 ac_ext=c
7391 ac_cpp='$CPP $CPPFLAGS'
7392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7398 $as_echo_n "checking for ANSI C header files... " >&6; }
7399 if test "${ac_cv_header_stdc+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <stdlib.h>
7405 #include <stdarg.h>
7406 #include <string.h>
7407 #include <float.h>
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 ac_cv_header_stdc=yes
7419 else
7420 ac_cv_header_stdc=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 if test $ac_cv_header_stdc = yes; then
7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 #include <string.h>
7430 _ACEOF
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "memchr" >/dev/null 2>&1; then :
7434 else
7435 ac_cv_header_stdc=no
7437 rm -f conftest*
7441 if test $ac_cv_header_stdc = yes; then
7442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <stdlib.h>
7447 _ACEOF
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "free" >/dev/null 2>&1; then :
7451 else
7452 ac_cv_header_stdc=no
7454 rm -f conftest*
7458 if test $ac_cv_header_stdc = yes; then
7459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7460 if test "$cross_compiling" = yes; then :
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <ctype.h>
7466 #include <stdlib.h>
7467 #if ((' ' & 0x0FF) == 0x020)
7468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7470 #else
7471 # define ISLOWER(c) \
7472 (('a' <= (c) && (c) <= 'i') \
7473 || ('j' <= (c) && (c) <= 'r') \
7474 || ('s' <= (c) && (c) <= 'z'))
7475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7476 #endif
7478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7480 main ()
7482 int i;
7483 for (i = 0; i < 256; i++)
7484 if (XOR (islower (i), ISLOWER (i))
7485 || toupper (i) != TOUPPER (i))
7486 return 2;
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_run "$LINENO"; then :
7492 else
7493 ac_cv_header_stdc=no
7495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7496 conftest.$ac_objext conftest.beam conftest.$ac_ext
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7502 $as_echo "$ac_cv_header_stdc" >&6; }
7503 if test $ac_cv_header_stdc = yes; then
7505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7510 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7511 inttypes.h stdint.h unistd.h
7512 do :
7513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7516 eval as_val=\$$as_ac_Header
7517 if test "x$as_val" = x""yes; then :
7518 cat >>confdefs.h <<_ACEOF
7519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520 _ACEOF
7524 done
7527 for ac_header in dlfcn.h
7528 do :
7529 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7531 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7532 cat >>confdefs.h <<_ACEOF
7533 #define HAVE_DLFCN_H 1
7534 _ACEOF
7538 done
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_GOC+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$GOC"; then
7549 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7564 IFS=$as_save_IFS
7568 GOC=$ac_cv_prog_GOC
7569 if test -n "$GOC"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7571 $as_echo "$GOC" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7579 if test -z "$ac_cv_prog_GOC"; then
7580 ac_ct_GOC=$GOC
7581 # Extract the first word of "gccgo", so it can be a program name with args.
7582 set dummy gccgo; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_GOC"; then
7589 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_ac_ct_GOC="gccgo"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7609 if test -n "$ac_ct_GOC"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7611 $as_echo "$ac_ct_GOC" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7617 if test "x$ac_ct_GOC" = x; then
7618 GOC=""
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 GOC=$ac_ct_GOC
7628 else
7629 GOC="$ac_cv_prog_GOC"
7637 # Set options
7642 enable_win32_dll=no
7645 # Check whether --enable-shared was given.
7646 if test "${enable_shared+set}" = set; then :
7647 enableval=$enable_shared; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_shared=yes ;;
7650 no) enable_shared=no ;;
7652 enable_shared=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_shared=yes
7660 done
7661 IFS="$lt_save_ifs"
7663 esac
7664 else
7665 enable_shared=yes
7676 # Check whether --enable-static was given.
7677 if test "${enable_static+set}" = set; then :
7678 enableval=$enable_static; p=${PACKAGE-default}
7679 case $enableval in
7680 yes) enable_static=yes ;;
7681 no) enable_static=no ;;
7683 enable_static=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7687 IFS="$lt_save_ifs"
7688 if test "X$pkg" = "X$p"; then
7689 enable_static=yes
7691 done
7692 IFS="$lt_save_ifs"
7694 esac
7695 else
7696 enable_static=yes
7708 # Check whether --with-pic was given.
7709 if test "${with_pic+set}" = set; then :
7710 withval=$with_pic; pic_mode="$withval"
7711 else
7712 pic_mode=default
7716 test -z "$pic_mode" && pic_mode=default
7724 # Check whether --enable-fast-install was given.
7725 if test "${enable_fast_install+set}" = set; then :
7726 enableval=$enable_fast_install; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_fast_install=yes ;;
7729 no) enable_fast_install=no ;;
7731 enable_fast_install=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7735 IFS="$lt_save_ifs"
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install=yes
7739 done
7740 IFS="$lt_save_ifs"
7742 esac
7743 else
7744 enable_fast_install=yes
7757 # This can be used to rebuild libtool when needed
7758 LIBTOOL_DEPS="$ltmain"
7760 # Always use our own libtool.
7761 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788 test -z "$LN_S" && LN_S="ln -s"
7803 if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808 $as_echo_n "checking for objdir... " >&6; }
7809 if test "${lt_cv_objdir+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f .libs 2>/dev/null
7813 mkdir .libs 2>/dev/null
7814 if test -d .libs; then
7815 lt_cv_objdir=.libs
7816 else
7817 # MS-DOS does not allow filenames that begin with a dot.
7818 lt_cv_objdir=_libs
7820 rmdir .libs 2>/dev/null
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823 $as_echo "$lt_cv_objdir" >&6; }
7824 objdir=$lt_cv_objdir
7830 cat >>confdefs.h <<_ACEOF
7831 #define LT_OBJDIR "$lt_cv_objdir/"
7832 _ACEOF
7837 case $host_os in
7838 aix3*)
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset; then
7843 COLLECT_NAMES=
7844 export COLLECT_NAMES
7847 esac
7849 # Global variables:
7850 ofile=libtool
7851 can_build_shared=yes
7853 # All known linkers require a `.a' archive for static linking (except MSVC,
7854 # which needs '.lib').
7855 libext=a
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7859 old_CC="$CC"
7860 old_CFLAGS="$CFLAGS"
7862 # Set sane defaults for various variables
7863 test -z "$CC" && CC=cc
7864 test -z "$LTCC" && LTCC=$CC
7865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866 test -z "$LD" && LD=ld
7867 test -z "$ac_objext" && ac_objext=o
7869 for cc_temp in $compiler""; do
7870 case $cc_temp in
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873 \-*) ;;
7874 *) break;;
7875 esac
7876 done
7877 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 # Only perform the check for file, if the check method requires it
7881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882 case $deplibs_check_method in
7883 file_magic*)
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $MAGIC_CMD in
7891 [\\/*] | ?:[\\/]*)
7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 lt_save_MAGIC_CMD="$MAGIC_CMD"
7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir in $ac_dummy; do
7899 IFS="$lt_save_ifs"
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7905 "file_magic "*)
7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909 $EGREP "$file_magic_regex" > /dev/null; then
7911 else
7912 cat <<_LT_EOF 1>&2
7914 *** Warning: the command libtool uses to detect shared libraries,
7915 *** $file_magic_cmd, produces output that libtool cannot recognize.
7916 *** The result is that libtool may fail to recognize shared libraries
7917 *** as such. This will affect the creation of libtool libraries that
7918 *** depend on shared libraries, but programs linked with such libtool
7919 *** libraries will work regardless of this problem. Nevertheless, you
7920 *** may want to report the problem to your system manager and/or to
7921 *** bug-libtool@gnu.org
7923 _LT_EOF
7924 fi ;;
7925 esac
7927 break
7929 done
7930 IFS="$lt_save_ifs"
7931 MAGIC_CMD="$lt_save_MAGIC_CMD"
7933 esac
7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937 if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939 $as_echo "$MAGIC_CMD" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7949 if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952 $as_echo_n "checking for file... " >&6; }
7953 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 case $MAGIC_CMD in
7957 [\\/*] | ?:[\\/]*)
7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 lt_save_MAGIC_CMD="$MAGIC_CMD"
7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir in $ac_dummy; do
7965 IFS="$lt_save_ifs"
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7971 "file_magic "*)
7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975 $EGREP "$file_magic_regex" > /dev/null; then
7977 else
7978 cat <<_LT_EOF 1>&2
7980 *** Warning: the command libtool uses to detect shared libraries,
7981 *** $file_magic_cmd, produces output that libtool cannot recognize.
7982 *** The result is that libtool may fail to recognize shared libraries
7983 *** as such. This will affect the creation of libtool libraries that
7984 *** depend on shared libraries, but programs linked with such libtool
7985 *** libraries will work regardless of this problem. Nevertheless, you
7986 *** may want to report the problem to your system manager and/or to
7987 *** bug-libtool@gnu.org
7989 _LT_EOF
7990 fi ;;
7991 esac
7993 break
7995 done
7996 IFS="$lt_save_ifs"
7997 MAGIC_CMD="$lt_save_MAGIC_CMD"
7999 esac
8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003 if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005 $as_echo "$MAGIC_CMD" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8012 else
8013 MAGIC_CMD=:
8019 esac
8021 # Use C for the default configuration in the libtool script
8023 lt_save_CC="$CC"
8024 ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # Source file extension for C test sources.
8032 ac_ext=c
8034 # Object file extension for compiled C test sources.
8035 objext=o
8036 objext=$objext
8038 # Code to be used in simple compile tests
8039 lt_simple_compile_test_code="int some_variable = 0;"
8041 # Code to be used in simple link tests
8042 lt_simple_link_test_code='int main(){return(0);}'
8050 # If no C compiler was specified, use CC.
8051 LTCC=${LTCC-"$CC"}
8053 # If no C compiler flags were specified, use CFLAGS.
8054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056 # Allow CC to be a program name with arguments.
8057 compiler=$CC
8059 # Save the default compiler, since it gets overwritten when the other
8060 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061 compiler_DEFAULT=$CC
8063 # save warnings/boilerplate of simple test code
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_compiler_boilerplate=`cat conftest.err`
8068 $RM conftest*
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_linker_boilerplate=`cat conftest.err`
8074 $RM -r conftest*
8077 ## CAVEAT EMPTOR:
8078 ## There is no encapsulation within the following macros, do not change
8079 ## the running order or otherwise move them around unless you know exactly
8080 ## what you are doing...
8081 if test -n "$compiler"; then
8083 lt_prog_compiler_no_builtin_flag=
8085 if test "$GCC" = yes; then
8086 case $cc_basename in
8087 nvcc*)
8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091 esac
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 lt_cv_prog_compiler_rtti_exceptions=no
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-fno-rtti -fno-exceptions"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err)
8113 ac_status=$?
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_rtti_exceptions=yes
8125 $RM conftest*
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133 else
8144 lt_prog_compiler_wl=
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_static=
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_static='-static'
8155 case $host_os in
8156 aix*)
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_pic='-fPIC'
8165 amigaos*)
8166 case $host_cpu in
8167 powerpc)
8168 # see comment about AmigaOS4 .so support
8169 lt_prog_compiler_pic='-fPIC'
8171 m68k)
8172 # FIXME: we need at least 68020 code to build shared libraries, but
8173 # adding the `-m68020' flag to GCC prevents building anything better,
8174 # like `-m68040'.
8175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8177 esac
8180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8181 # PIC is the default for these OSes.
8184 mingw* | cygwin* | pw32* | os2* | cegcc*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188 # (--disable-auto-import) libraries
8189 lt_prog_compiler_pic='-DDLL_EXPORT'
8192 darwin* | rhapsody*)
8193 # PIC is the default on this platform
8194 # Common symbols not allowed in MH_DYLIB files
8195 lt_prog_compiler_pic='-fno-common'
8198 haiku*)
8199 # PIC is the default for Haiku.
8200 # The "-static" flag exists, but is broken.
8201 lt_prog_compiler_static=
8204 hpux*)
8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8207 # sets the default TLS model and affects inlining.
8208 case $host_cpu in
8209 hppa*64*)
8210 # +Z the default
8213 lt_prog_compiler_pic='-fPIC'
8215 esac
8218 interix[3-9]*)
8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220 # Instead, we relocate shared libraries at runtime.
8223 msdosdjgpp*)
8224 # Just because we use GCC doesn't mean we suddenly get shared libraries
8225 # on systems that don't support them.
8226 lt_prog_compiler_can_build_shared=no
8227 enable_shared=no
8230 *nto* | *qnx*)
8231 # QNX uses GNU C++, but need to define -shared option too, otherwise
8232 # it will coredump.
8233 lt_prog_compiler_pic='-fPIC -shared'
8236 sysv4*MP*)
8237 if test -d /usr/nec; then
8238 lt_prog_compiler_pic=-Kconform_pic
8243 lt_prog_compiler_pic='-fPIC'
8245 esac
8247 case $cc_basename in
8248 nvcc*) # Cuda Compiler Driver 2.2
8249 lt_prog_compiler_wl='-Xlinker '
8250 lt_prog_compiler_pic='-Xcompiler -fPIC'
8252 esac
8253 else
8254 # PORTME Check for flag to pass linker flags through the system compiler.
8255 case $host_os in
8256 aix*)
8257 lt_prog_compiler_wl='-Wl,'
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8261 else
8262 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8266 mingw* | cygwin* | pw32* | os2* | cegcc*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8272 hpux9* | hpux10* | hpux11*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275 # not for PA HP-UX.
8276 case $host_cpu in
8277 hppa*64*|ia64*)
8278 # +Z the default
8281 lt_prog_compiler_pic='+Z'
8283 esac
8284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285 lt_prog_compiler_static='${wl}-a ${wl}archive'
8288 irix5* | irix6* | nonstopux*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC (with -KPIC) is the default.
8291 lt_prog_compiler_static='-non_shared'
8294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8295 case $cc_basename in
8296 # old Intel for x86_64 which still supported -KPIC.
8297 ecc*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-static'
8302 # icc used to be incompatible with GCC.
8303 # ICC 10 doesn't accept -KPIC any more.
8304 icc* | ifort*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-fPIC'
8307 lt_prog_compiler_static='-static'
8309 # Lahey Fortran 8.1.
8310 lf95*)
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='--shared'
8313 lt_prog_compiler_static='--static'
8315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8316 # Portland Group compilers (*not* the Pentium gcc compiler,
8317 # which looks to be a dead project)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-fpic'
8320 lt_prog_compiler_static='-Bstatic'
8322 ccc*)
8323 lt_prog_compiler_wl='-Wl,'
8324 # All Alpha code is PIC.
8325 lt_prog_compiler_static='-non_shared'
8327 xl* | bgxl* | bgf* | mpixl*)
8328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-qpic'
8331 lt_prog_compiler_static='-qstaticlink'
8334 case `$CC -V 2>&1 | sed 5q` in
8335 *Sun\ F* | *Sun*Fortran*)
8336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl=''
8341 *Sun\ C*)
8342 # Sun C 5.9
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 lt_prog_compiler_wl='-Wl,'
8347 esac
8349 esac
8352 newsos6)
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8357 *nto* | *qnx*)
8358 # QNX uses GNU C++, but need to define -shared option too, otherwise
8359 # it will coredump.
8360 lt_prog_compiler_pic='-fPIC -shared'
8363 osf3* | osf4* | osf5*)
8364 lt_prog_compiler_wl='-Wl,'
8365 # All OSF/1 code is PIC.
8366 lt_prog_compiler_static='-non_shared'
8369 rdos*)
8370 lt_prog_compiler_static='-non_shared'
8373 solaris*)
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 case $cc_basename in
8377 f77* | f90* | f95*)
8378 lt_prog_compiler_wl='-Qoption ld ';;
8380 lt_prog_compiler_wl='-Wl,';;
8381 esac
8384 sunos4*)
8385 lt_prog_compiler_wl='-Qoption ld '
8386 lt_prog_compiler_pic='-PIC'
8387 lt_prog_compiler_static='-Bstatic'
8390 sysv4 | sysv4.2uw2* | sysv4.3*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8396 sysv4*MP*)
8397 if test -d /usr/nec ;then
8398 lt_prog_compiler_pic='-Kconform_pic'
8399 lt_prog_compiler_static='-Bstatic'
8403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8409 unicos*)
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_can_build_shared=no
8414 uts4*)
8415 lt_prog_compiler_pic='-pic'
8416 lt_prog_compiler_static='-Bstatic'
8420 lt_prog_compiler_can_build_shared=no
8422 esac
8425 case $host_os in
8426 # For platforms which do not support PIC, -DPIC is meaningless:
8427 *djgpp*)
8428 lt_prog_compiler_pic=
8431 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433 esac
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8435 $as_echo "$lt_prog_compiler_pic" >&6; }
8443 # Check to make sure the PIC flag actually works.
8445 if test -n "$lt_prog_compiler_pic"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8447 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8448 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 lt_cv_prog_compiler_pic_works=no
8452 ac_outfile=conftest.$ac_objext
8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8455 # Insert the option either (1) after the last *FLAGS variable, or
8456 # (2) before a word containing "conftest.", or (3) at the end.
8457 # Note that $ac_compile itself does not contain backslashes and begins
8458 # with a dollar sign (not a hyphen), so the echo should work correctly.
8459 # The option is referenced via a variable to avoid confusing sed.
8460 lt_compile=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>conftest.err)
8466 ac_status=$?
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s "$ac_outfile"; then
8470 # The compiler can only warn and ignore the option if not recognized
8471 # So say no if there are warnings other than the usual output.
8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_pic_works=yes
8478 $RM conftest*
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8482 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8484 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8485 case $lt_prog_compiler_pic in
8486 "" | " "*) ;;
8487 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8488 esac
8489 else
8490 lt_prog_compiler_pic=
8491 lt_prog_compiler_can_build_shared=no
8502 # Check to make sure the static flag actually works.
8504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 lt_cv_prog_compiler_static_works=no
8511 save_LDFLAGS="$LDFLAGS"
8512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err; then
8518 # Append any errors to the config.log.
8519 cat conftest.err 1>&5
8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_static_works=yes
8525 else
8526 lt_cv_prog_compiler_static_works=yes
8529 $RM -r conftest*
8530 LDFLAGS="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8536 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8538 else
8539 lt_prog_compiler_static=
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 lt_cv_prog_compiler_c_o=no
8554 $RM -r conftest 2>/dev/null
8555 mkdir conftest
8556 cd conftest
8557 mkdir out
8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560 lt_compiler_flag="-o out/conftest2.$ac_objext"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 lt_compile=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>out/conftest.err)
8571 ac_status=$?
8572 cat out/conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575 then
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_c_o=yes
8584 chmod u+w . 2>&5
8585 $RM conftest*
8586 # SGI C++ compiler will create directory out/ii_files/ for
8587 # template instantiation
8588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589 $RM out/* && rmdir out
8590 cd ..
8591 $RM -r conftest
8592 $RM conftest*
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 lt_cv_prog_compiler_c_o=no
8609 $RM -r conftest 2>/dev/null
8610 mkdir conftest
8611 cd conftest
8612 mkdir out
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615 lt_compiler_flag="-o out/conftest2.$ac_objext"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>out/conftest.err)
8626 ac_status=$?
8627 cat out/conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8630 then
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings
8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_c_o=yes
8639 chmod u+w . 2>&5
8640 $RM conftest*
8641 # SGI C++ compiler will create directory out/ii_files/ for
8642 # template instantiation
8643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8644 $RM out/* && rmdir out
8645 cd ..
8646 $RM -r conftest
8647 $RM conftest*
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8656 hard_links="nottested"
8657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8658 # do not overwrite the value of need_locks provided by the user
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660 $as_echo_n "checking if we can lock with hard links... " >&6; }
8661 hard_links=yes
8662 $RM conftest*
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 touch conftest.a
8665 ln conftest.a conftest.b 2>&5 || hard_links=no
8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668 $as_echo "$hard_links" >&6; }
8669 if test "$hard_links" = no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8672 need_locks=warn
8674 else
8675 need_locks=no
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8686 runpath_var=
8687 allow_undefined_flag=
8688 always_export_symbols=no
8689 archive_cmds=
8690 archive_expsym_cmds=
8691 compiler_needs_object=no
8692 enable_shared_with_static_runtimes=no
8693 export_dynamic_flag_spec=
8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695 hardcode_automatic=no
8696 hardcode_direct=no
8697 hardcode_direct_absolute=no
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld=
8700 hardcode_libdir_separator=
8701 hardcode_minus_L=no
8702 hardcode_shlibpath_var=unsupported
8703 inherit_rpath=no
8704 link_all_deplibs=unknown
8705 module_cmds=
8706 module_expsym_cmds=
8707 old_archive_from_new_cmds=
8708 old_archive_from_expsyms_cmds=
8709 thread_safe_flag_spec=
8710 whole_archive_flag_spec=
8711 # include_expsyms should be a list of space-separated symbols to be *always*
8712 # included in the symbol list
8713 include_expsyms=
8714 # exclude_expsyms can be an extended regexp of symbols to exclude
8715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8717 # as well as any symbol that contains `d'.
8718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8720 # platforms (ab)use it in PIC code, but their linkers get confused if
8721 # the symbol is explicitly referenced. Since portable code cannot
8722 # rely on this symbol name, it's probably fine to never include it in
8723 # preloaded symbol tables.
8724 # Exclude shared library initialization/finalization symbols.
8725 extract_expsyms_cmds=
8727 case $host_os in
8728 cygwin* | mingw* | pw32* | cegcc*)
8729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8730 # When not using gcc, we currently assume that we are using
8731 # Microsoft Visual C++.
8732 if test "$GCC" != yes; then
8733 with_gnu_ld=no
8736 interix*)
8737 # we just hope/assume this is gcc and not c89 (= MSVC++)
8738 with_gnu_ld=yes
8740 openbsd*)
8741 with_gnu_ld=no
8743 esac
8745 ld_shlibs=yes
8747 # On some targets, GNU ld is compatible enough with the native linker
8748 # that we're better off using the native interface for both.
8749 lt_use_gnu_ld_interface=no
8750 if test "$with_gnu_ld" = yes; then
8751 case $host_os in
8752 aix*)
8753 # The AIX port of GNU ld has always aspired to compatibility
8754 # with the native linker. However, as the warning in the GNU ld
8755 # block says, versions before 2.19.5* couldn't really create working
8756 # shared libraries, regardless of the interface used.
8757 case `$LD -v 2>&1` in
8758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8760 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8762 lt_use_gnu_ld_interface=yes
8764 esac
8767 lt_use_gnu_ld_interface=yes
8769 esac
8772 if test "$lt_use_gnu_ld_interface" = yes; then
8773 # If archive_cmds runs LD, not CC, wlarc should be empty
8774 wlarc='${wl}'
8776 # Set some defaults for GNU ld with shared library support. These
8777 # are reset later if shared libraries are not supported. Putting them
8778 # here allows them to be overridden if necessary.
8779 runpath_var=LD_RUN_PATH
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 export_dynamic_flag_spec='${wl}--export-dynamic'
8782 # ancient GNU ld didn't support --whole-archive et. al.
8783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8785 else
8786 whole_archive_flag_spec=
8788 supports_anon_versioning=no
8789 case `$LD -v 2>&1` in
8790 *GNU\ gold*) supports_anon_versioning=yes ;;
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8794 *\ 2.11.*) ;; # other 2.11 versions
8795 *) supports_anon_versioning=yes ;;
8796 esac
8798 # See if GNU ld supports shared libraries.
8799 case $host_os in
8800 aix[3-9]*)
8801 # On AIX/PPC, the GNU linker is very broken
8802 if test "$host_cpu" != ia64; then
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
8806 *** Warning: the GNU linker, at least up to release 2.19, is reported
8807 *** to be unable to reliably create shared libraries on AIX.
8808 *** Therefore, libtool is disabling shared libraries support. If you
8809 *** really care for shared libraries, you may want to install binutils
8810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8811 *** You will then need to restart the configuration process.
8813 _LT_EOF
8817 amigaos*)
8818 case $host_cpu in
8819 powerpc)
8820 # see comment about AmigaOS4 .so support
8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822 archive_expsym_cmds=''
8824 m68k)
8825 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)'
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_minus_L=yes
8829 esac
8832 beos*)
8833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834 allow_undefined_flag=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 else
8839 ld_shlibs=no
8843 cygwin* | mingw* | pw32* | cegcc*)
8844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 export_dynamic_flag_spec='${wl}--export-all-symbols'
8848 allow_undefined_flag=unsupported
8849 always_export_symbols=no
8850 enable_shared_with_static_runtimes=yes
8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8859 else
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 else
8865 ld_shlibs=no
8869 haiku*)
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs=yes
8874 interix[3-9]*)
8875 hardcode_direct=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 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'
8889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890 tmp_diet=no
8891 if test "$host_os" = linux-dietlibc; then
8892 case $cc_basename in
8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8894 esac
8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897 && test "$tmp_diet" = no
8898 then
8899 tmp_addflag=
8900 tmp_sharedflag='-shared'
8901 case $cc_basename,$host_cpu in
8902 pgcc*) # Portland Group C compiler
8903 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'
8904 tmp_addflag=' $pic_flag'
8906 pgf77* | pgf90* | pgf95* | pgfortran*)
8907 # Portland Group f77 and f90 compilers
8908 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'
8909 tmp_addflag=' $pic_flag -Mnomain' ;;
8910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8911 tmp_addflag=' -i_dynamic' ;;
8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8913 tmp_addflag=' -i_dynamic -nofor_main' ;;
8914 ifc* | ifort*) # Intel Fortran compiler
8915 tmp_addflag=' -nofor_main' ;;
8916 lf95*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec=
8918 tmp_sharedflag='--shared' ;;
8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag='-qmkshrobj'
8921 tmp_addflag= ;;
8922 nvcc*) # Cuda Compiler Driver 2.2
8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924 compiler_needs_object=yes
8926 esac
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C*) # Sun C 5.9
8929 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'
8930 compiler_needs_object=yes
8931 tmp_sharedflag='-G' ;;
8932 *Sun\ F*) # Sun Fortran 8.3
8933 tmp_sharedflag='-G' ;;
8934 esac
8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937 if test "x$supports_anon_versioning" = xyes; then
8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8944 case $cc_basename in
8945 xlf* | bgf* | bgxlf* | mpixlf*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec=
8949 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8958 esac
8959 else
8960 ld_shlibs=no
8964 netbsd*)
8965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8967 wlarc=
8968 else
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8974 solaris*)
8975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8976 ld_shlibs=no
8977 cat <<_LT_EOF 1>&2
8979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980 *** create shared libraries on Solaris systems. Therefore, libtool
8981 *** is disabling shared libraries support. We urge you to upgrade GNU
8982 *** binutils to release 2.9.1 or newer. Another option is to modify
8983 *** your PATH or compiler configuration so that the native linker is
8984 *** used, and then restart.
8986 _LT_EOF
8987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 else
8991 ld_shlibs=no
8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996 case `$LD -v 2>&1` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
9001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002 *** reliably create shared libraries on SCO systems. Therefore, libtool
9003 *** is disabling shared libraries support. We urge you to upgrade GNU
9004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9008 _LT_EOF
9011 # For security reasons, it is highly recommended that you always
9012 # use absolute paths for naming shared libraries, and exclude the
9013 # DT_RUNPATH tag from executables and libraries. But doing so
9014 # requires that you compile everything twice, which is a pain.
9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 else
9020 ld_shlibs=no
9023 esac
9026 sunos4*)
9027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 wlarc=
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 else
9038 ld_shlibs=no
9041 esac
9043 if test "$ld_shlibs" = no; then
9044 runpath_var=
9045 hardcode_libdir_flag_spec=
9046 export_dynamic_flag_spec=
9047 whole_archive_flag_spec=
9049 else
9050 # PORTME fill in a description of your system's linker (not GNU ld)
9051 case $host_os in
9052 aix3*)
9053 allow_undefined_flag=unsupported
9054 always_export_symbols=yes
9055 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'
9056 # Note: this linker hardcodes the directories in LIBPATH if there
9057 # are no directories specified by -L.
9058 hardcode_minus_L=yes
9059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9060 # Neither direct hardcoding nor static linking is supported with a
9061 # broken collect2.
9062 hardcode_direct=unsupported
9066 aix[4-9]*)
9067 if test "$host_cpu" = ia64; then
9068 # On IA64, the linker does run time linking by default, so we don't
9069 # have to do anything special.
9070 aix_use_runtimelinking=no
9071 exp_sym_flag='-Bexport'
9072 no_entry_flag=""
9073 else
9074 # If we're using GNU nm, then we don't want the "-C" option.
9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9076 # Also, AIX nm treats weak defined symbols like other global
9077 # defined symbols, whereas GNU nm marks them as "W".
9078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9079 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'
9080 else
9081 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'
9083 aix_use_runtimelinking=no
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
9088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9089 for ld_flag in $LDFLAGS; do
9090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9091 aix_use_runtimelinking=yes
9092 break
9094 done
9096 esac
9098 exp_sym_flag='-bexport'
9099 no_entry_flag='-bnoentry'
9102 # When large executables or shared objects are built, AIX ld can
9103 # have problems creating the table of contents. If linking a library
9104 # or program results in "error TOC overflow" add -mminimal-toc to
9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9108 archive_cmds=''
9109 hardcode_direct=yes
9110 hardcode_direct_absolute=yes
9111 hardcode_libdir_separator=':'
9112 link_all_deplibs=yes
9113 file_list_spec='${wl}-f,'
9115 if test "$GCC" = yes; then
9116 case $host_os in aix4.[012]|aix4.[012].*)
9117 # We only want to do this on AIX 4.2 and lower, the check
9118 # below for broken collect2 doesn't work under 4.3+
9119 collect2name=`${CC} -print-prog-name=collect2`
9120 if test -f "$collect2name" &&
9121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9122 then
9123 # We have reworked collect2
9125 else
9126 # We have old collect2
9127 hardcode_direct=unsupported
9128 # It fails to find uninstalled libraries when the uninstalled
9129 # path is not listed in the libpath. Setting hardcode_minus_L
9130 # to unsupported forces relinking
9131 hardcode_minus_L=yes
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_libdir_separator=
9136 esac
9137 shared_flag='-shared'
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag="$shared_flag "'${wl}-G'
9141 else
9142 # not using gcc
9143 if test "$host_cpu" = ia64; then
9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
9146 shared_flag='-G'
9147 else
9148 if test "$aix_use_runtimelinking" = yes; then
9149 shared_flag='${wl}-G'
9150 else
9151 shared_flag='${wl}-bM:SRE'
9156 export_dynamic_flag_spec='${wl}-bexpall'
9157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag='-berok'
9164 # Determine the default libpath from the value encoded in an
9165 # empty executable.
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9170 main ()
9174 return 0;
9176 _ACEOF
9177 if ac_fn_c_try_link "$LINENO"; then :
9179 lt_aix_libpath_sed='
9180 /Import File Strings/,/^$/ {
9181 /^0/ {
9182 s/^0 *\(.*\)$/\1/
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 # Check for a 64-bit object if we didn't find anything.
9188 if test -z "$aix_libpath"; then
9189 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 rm -f core conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 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"
9198 else
9199 if test "$host_cpu" = ia64; then
9200 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9201 allow_undefined_flag="-z nodefs"
9202 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"
9203 else
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 main ()
9214 return 0;
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9219 lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\(.*\)$/\1/
9226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$aix_libpath"; then
9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 # Warning - without using the other run time loading flags,
9238 # -berok will link without error, but may produce a broken library.
9239 no_undefined_flag=' ${wl}-bernotok'
9240 allow_undefined_flag=' ${wl}-berok'
9241 if test "$with_gnu_ld" = yes; then
9242 # We only use this code for GNU lds that support --whole-archive.
9243 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9244 else
9245 # Exported symbols can be pulled into shared objects from archives
9246 whole_archive_flag_spec='$convenience'
9248 archive_cmds_need_lc=yes
9249 # This is similar to how AIX traditionally builds its shared libraries.
9250 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'
9255 amigaos*)
9256 case $host_cpu in
9257 powerpc)
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9262 m68k)
9263 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)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9267 esac
9270 bsdi[45]*)
9271 export_dynamic_flag_spec=-rdynamic
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 # Tell ltmain to make .lib files, not .a files.
9282 libext=lib
9283 # Tell ltmain to make .dll files, not .so files.
9284 shrext_cmds=".dll"
9285 # FIXME: Setting linknames here is a bad hack.
9286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9287 # The linker will automatically build a .lib file if we build a DLL.
9288 old_archive_from_new_cmds='true'
9289 # FIXME: Should let the user specify the lib program.
9290 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9291 fix_srcfile_path='`cygpath -w "$srcfile"`'
9292 enable_shared_with_static_runtimes=yes
9295 darwin* | rhapsody*)
9298 archive_cmds_need_lc=no
9299 hardcode_direct=no
9300 hardcode_automatic=yes
9301 hardcode_shlibpath_var=unsupported
9302 if test "$lt_cv_ld_force_load" = "yes"; then
9303 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\"`'
9304 else
9305 whole_archive_flag_spec=''
9307 link_all_deplibs=yes
9308 allow_undefined_flag="$_lt_dar_allow_undefined"
9309 case $cc_basename in
9310 ifort*) _lt_dar_can_shared=yes ;;
9311 *) _lt_dar_can_shared=$GCC ;;
9312 esac
9313 if test "$_lt_dar_can_shared" = "yes"; then
9314 output_verbose_link_cmd=func_echo_all
9315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317 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}"
9318 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}"
9320 else
9321 ld_shlibs=no
9326 dgux*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_shlibpath_var=no
9332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9333 # support. Future versions do this automatically, but an explicit c++rt0.o
9334 # does not break anything, and helps significantly (at the cost of a little
9335 # extra space).
9336 freebsd2.2*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9338 hardcode_libdir_flag_spec='-R$libdir'
9339 hardcode_direct=yes
9340 hardcode_shlibpath_var=no
9343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9344 freebsd2.*)
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_direct=yes
9347 hardcode_minus_L=yes
9348 hardcode_shlibpath_var=no
9351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9352 freebsd* | dragonfly*)
9353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='-R$libdir'
9355 hardcode_direct=yes
9356 hardcode_shlibpath_var=no
9359 hpux9*)
9360 if test "$GCC" = yes; then
9361 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'
9362 else
9363 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'
9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9366 hardcode_libdir_separator=:
9367 hardcode_direct=yes
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 export_dynamic_flag_spec='${wl}-E'
9375 hpux10*)
9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9381 if test "$with_gnu_ld" = no; then
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_flag_spec_ld='+b $libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 export_dynamic_flag_spec='${wl}-E'
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L=yes
9394 hpux11*)
9395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9396 case $host_cpu in
9397 hppa*64*)
9398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 ia64*)
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406 esac
9407 else
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 ia64*)
9413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9417 # Older versions of the 11.00 compiler do not understand -b yet
9418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9420 $as_echo_n "checking if $CC understands -b... " >&6; }
9421 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_prog_compiler__b=no
9425 save_LDFLAGS="$LDFLAGS"
9426 LDFLAGS="$LDFLAGS -b"
9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err; then
9432 # Append any errors to the config.log.
9433 cat conftest.err 1>&5
9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler__b=yes
9439 else
9440 lt_cv_prog_compiler__b=yes
9443 $RM -r conftest*
9444 LDFLAGS="$save_LDFLAGS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9450 if test x"$lt_cv_prog_compiler__b" = xyes; then
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457 esac
9459 if test "$with_gnu_ld" = no; then
9460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9461 hardcode_libdir_separator=:
9463 case $host_cpu in
9464 hppa*64*|ia64*)
9465 hardcode_direct=no
9466 hardcode_shlibpath_var=no
9469 hardcode_direct=yes
9470 hardcode_direct_absolute=yes
9471 export_dynamic_flag_spec='${wl}-E'
9473 # hardcode_minus_L: Not really in the search PATH,
9474 # but as the default location of the library.
9475 hardcode_minus_L=yes
9477 esac
9481 irix5* | irix6* | nonstopux*)
9482 if test "$GCC" = yes; then
9483 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'
9484 # Try to use the -exported_symbol ld option, if it does not
9485 # work, assume that -exports_file does not work either and
9486 # implicitly export all symbols.
9487 save_LDFLAGS="$LDFLAGS"
9488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 int foo(void) {}
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494 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'
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LDFLAGS="$save_LDFLAGS"
9500 else
9501 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'
9502 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'
9504 archive_cmds_need_lc='no'
9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 inherit_rpath=yes
9508 link_all_deplibs=yes
9511 netbsd*)
9512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9514 else
9515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9517 hardcode_libdir_flag_spec='-R$libdir'
9518 hardcode_direct=yes
9519 hardcode_shlibpath_var=no
9522 newsos6)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator=:
9527 hardcode_shlibpath_var=no
9530 *nto* | *qnx*)
9533 openbsd*)
9534 if test -f /usr/libexec/ld.so; then
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 hardcode_direct_absolute=yes
9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542 export_dynamic_flag_spec='${wl}-E'
9543 else
9544 case $host_os in
9545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_libdir_flag_spec='-R$libdir'
9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9553 esac
9555 else
9556 ld_shlibs=no
9560 os2*)
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 allow_undefined_flag=unsupported
9564 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'
9565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9568 osf3*)
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 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'
9572 else
9573 allow_undefined_flag=' -expect_unresolved \*'
9574 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'
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator=:
9581 osf4* | osf5*) # as osf3* with the addition of -msym flag
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 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'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 else
9587 allow_undefined_flag=' -expect_unresolved \*'
9588 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'
9589 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~
9590 $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'
9592 # Both c and cxx compiler support -rpath directly
9593 hardcode_libdir_flag_spec='-rpath $libdir'
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_separator=:
9599 solaris*)
9600 no_undefined_flag=' -z defs'
9601 if test "$GCC" = yes; then
9602 wlarc='${wl}'
9603 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 else
9607 case `$CC -V 2>&1` in
9608 *"Compilers 5.0"*)
9609 wlarc=''
9610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9615 wlarc='${wl}'
9616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9620 esac
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_shlibpath_var=no
9624 case $host_os in
9625 solaris2.[0-5] | solaris2.[0-5].*) ;;
9627 # The compiler driver will combine and reorder linker options,
9628 # but understands `-z linker_flag'. GCC discards it without `$wl',
9629 # but is careful enough not to reorder.
9630 # Supported since Solaris 2.6 (maybe 2.5.1?)
9631 if test "$GCC" = yes; then
9632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9633 else
9634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9637 esac
9638 link_all_deplibs=yes
9641 sunos4*)
9642 if test "x$host_vendor" = xsequent; then
9643 # Use $CC to link under sequent, because it throws in some extra .o
9644 # files that make .init and .fini sections work.
9645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_direct=yes
9651 hardcode_minus_L=yes
9652 hardcode_shlibpath_var=no
9655 sysv4)
9656 case $host_vendor in
9657 sni)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=yes # is this really true???
9661 siemens)
9662 ## LD is ld it makes a PLAMLIB
9663 ## CC just makes a GrossModule.
9664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665 reload_cmds='$CC -r -o $output$reload_objs'
9666 hardcode_direct=no
9668 motorola)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9672 esac
9673 runpath_var='LD_RUN_PATH'
9674 hardcode_shlibpath_var=no
9677 sysv4.3*)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 export_dynamic_flag_spec='-Bexport'
9683 sysv4*MP*)
9684 if test -d /usr/nec; then
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var=no
9687 runpath_var=LD_RUN_PATH
9688 hardcode_runpath_var=yes
9689 ld_shlibs=yes
9693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9694 no_undefined_flag='${wl}-z,text'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 runpath_var='LD_RUN_PATH'
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 sysv5* | sco3.2v5* | sco5v6*)
9709 # Note: We can NOT use -z defs as we might desire, because we do not
9710 # link with -lc, and that would cause any symbols used from libc to
9711 # always be unresolved, which means just about no library would
9712 # ever link correctly. If we're not using GNU ld we use -z text
9713 # though, which does catch some bad symbols but isn't as heavy-handed
9714 # as -z defs.
9715 no_undefined_flag='${wl}-z,text'
9716 allow_undefined_flag='${wl}-z,nodefs'
9717 archive_cmds_need_lc=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 export_dynamic_flag_spec='${wl}-Bexport'
9723 runpath_var='LD_RUN_PATH'
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 uts4*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9741 ld_shlibs=no
9743 esac
9745 if test x$host_vendor = xsni; then
9746 case $host in
9747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9748 export_dynamic_flag_spec='${wl}-Blargedynsym'
9750 esac
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755 $as_echo "$ld_shlibs" >&6; }
9756 test "$ld_shlibs" = no && can_build_shared=no
9758 with_gnu_ld=$with_gnu_ld
9775 # Do we need to explicitly link libc?
9777 case "x$archive_cmds_need_lc" in
9778 x|xyes)
9779 # Assume -lc should be added
9780 archive_cmds_need_lc=yes
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9784 *'~'*)
9785 # FIXME: we may have to deal with multi-command sequences.
9787 '$CC '*)
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9793 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 $RM conftest*
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; } 2>conftest.err; then
9804 soname=conftest
9805 lib=conftest
9806 libobjs=conftest.$ac_objext
9807 deplibs=
9808 wl=$lt_prog_compiler_wl
9809 pic_flag=$lt_prog_compiler_pic
9810 compiler_flags=-v
9811 linker_flags=-v
9812 verstring=
9813 output_objdir=.
9814 libname=conftest
9815 lt_save_allow_undefined_flag=$allow_undefined_flag
9816 allow_undefined_flag=
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9818 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; }
9822 then
9823 lt_cv_archive_cmds_need_lc=no
9824 else
9825 lt_cv_archive_cmds_need_lc=yes
9827 allow_undefined_flag=$lt_save_allow_undefined_flag
9828 else
9829 cat conftest.err 1>&5
9831 $RM conftest*
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9835 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9836 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9838 esac
9841 esac
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10002 if test "$GCC" = yes; then
10003 case $host_os in
10004 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10005 *) lt_awk_arg="/^libraries:/" ;;
10006 esac
10007 case $host_os in
10008 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10009 *) lt_sed_strip_eq="s,=/,/,g" ;;
10010 esac
10011 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10012 case $lt_search_path_spec in
10013 *\;*)
10014 # if the path contains ";" then we assume it to be the separator
10015 # otherwise default to the standard path separator (i.e. ":") - it is
10016 # assumed that no part of a normal pathname contains ";" but that should
10017 # okay in the real world where ";" in dirpaths is itself problematic.
10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10023 esac
10024 # Ok, now we have the path, separated by spaces, we can step through it
10025 # and add multilib dir if necessary.
10026 lt_tmp_lt_search_path_spec=
10027 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10028 for lt_sys_path in $lt_search_path_spec; do
10029 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10031 else
10032 test -d "$lt_sys_path" && \
10033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10035 done
10036 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10037 BEGIN {RS=" "; FS="/|\n";} {
10038 lt_foo="";
10039 lt_count=0;
10040 for (lt_i = NF; lt_i > 0; lt_i--) {
10041 if ($lt_i != "" && $lt_i != ".") {
10042 if ($lt_i == "..") {
10043 lt_count++;
10044 } else {
10045 if (lt_count == 0) {
10046 lt_foo="/" $lt_i lt_foo;
10047 } else {
10048 lt_count--;
10053 if (lt_foo != "") { lt_freq[lt_foo]++; }
10054 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10056 # AWK program above erroneously prepends '/' to C:/dos/paths
10057 # for these hosts.
10058 case $host_os in
10059 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10060 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10061 esac
10062 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10063 else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10066 library_names_spec=
10067 libname_spec='lib$name'
10068 soname_spec=
10069 shrext_cmds=".so"
10070 postinstall_cmds=
10071 postuninstall_cmds=
10072 finish_cmds=
10073 finish_eval=
10074 shlibpath_var=
10075 shlibpath_overrides_runpath=unknown
10076 version_type=none
10077 dynamic_linker="$host_os ld.so"
10078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079 need_lib_prefix=unknown
10080 hardcode_into_libs=no
10082 # when you set need_version to no, make sure it does not cause -set_version
10083 # flags to be left without arguments
10084 need_version=unknown
10086 case $host_os in
10087 aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10096 aix[4-9]*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10117 else
10118 can_build_shared=no
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LIBPATH
10140 amigaos*)
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 m68k)
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 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'
10152 esac
10155 beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10161 bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10175 cygwin* | mingw* | pw32* | cegcc*)
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10206 mingw* | cegcc*)
10207 # MinGW DLLs use traditional 'lib' prefix
10208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 pw32*)
10211 # pw32 DLLs use 'pw' prefix rather than 'lib'
10212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214 esac
10218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10220 esac
10221 dynamic_linker='Win32 ld.exe'
10222 # FIXME: first we should search . and the directory the executable is in
10223 shlibpath_var=PATH
10226 darwin* | rhapsody*)
10227 dynamic_linker="$host_os dyld"
10228 version_type=darwin
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10232 soname_spec='${libname}${release}${major}$shared_ext'
10233 shlibpath_overrides_runpath=yes
10234 shlibpath_var=DYLD_LIBRARY_PATH
10235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10241 dgux*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10250 freebsd* | dragonfly*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr/bin/objformat; then
10254 objformat=`/usr/bin/objformat`
10255 else
10256 case $host_os in
10257 freebsd[23].*) objformat=aout ;;
10258 *) objformat=elf ;;
10259 esac
10261 version_type=freebsd-$objformat
10262 case $version_type in
10263 freebsd-elf*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265 need_version=no
10266 need_lib_prefix=no
10268 freebsd-*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10270 need_version=yes
10272 esac
10273 shlibpath_var=LD_LIBRARY_PATH
10274 case $host_os in
10275 freebsd2.*)
10276 shlibpath_overrides_runpath=yes
10278 freebsd3.[01]* | freebsdelf3.[01]*)
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10287 *) # from 4.6 on, and DragonFly
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10291 esac
10294 gnu*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 hardcode_into_libs=yes
10304 haiku*)
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 dynamic_linker="$host_os runtime_loader"
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10314 hardcode_into_libs=yes
10317 hpux9* | hpux10* | hpux11*)
10318 # Give a soname corresponding to the major version so that dld.sl refuses to
10319 # link against other versions.
10320 version_type=sunos
10321 need_lib_prefix=no
10322 need_version=no
10323 case $host_cpu in
10324 ia64*)
10325 shrext_cmds='.so'
10326 hardcode_into_libs=yes
10327 dynamic_linker="$host_os dld.so"
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 if test "X$HPUX_IA64_MODE" = X32; then
10333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10334 else
10335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339 hppa*64*)
10340 shrext_cmds='.sl'
10341 hardcode_into_libs=yes
10342 dynamic_linker="$host_os dld.sl"
10343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 shrext_cmds='.sl'
10352 dynamic_linker="$host_os dld.sl"
10353 shlibpath_var=SHLIB_PATH
10354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10358 esac
10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10360 postinstall_cmds='chmod 555 $lib'
10361 # or fails outright, so override atomically:
10362 install_override_mode=555
10365 interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10377 irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10419 # This must be Linux ELF.
10420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10430 # Some binutils ld are patched to set DT_RUNPATH
10431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 lt_cv_shlibpath_overrides_runpath=no
10435 save_LDFLAGS=$LDFLAGS
10436 save_libdir=$libdir
10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10443 main ()
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10452 lt_cv_shlibpath_overrides_runpath=yes
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS=$save_LDFLAGS
10458 libdir=$save_libdir
10462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10464 # This implies no fast_install, which is unacceptable.
10465 # Some rework will be needed to allow for fast_install
10466 # before this can be enabled.
10467 hardcode_into_libs=yes
10469 # Append ld.so.conf contents to the search path
10470 if test -f /etc/ld.so.conf; then
10471 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' ' '`
10472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10475 # We used to test for /lib/ld.so.1 and disable shared libraries on
10476 # powerpc, because MkLinux only supported shared libraries with the
10477 # GNU dynamic linker. Since this was broken with cross compilers,
10478 # most powerpc-linux boxes support dynamic linking these days and
10479 # people can always --disable-shared, the test was removed, and we
10480 # assume the GNU/Linux dynamic linker is in use.
10481 dynamic_linker='GNU/Linux ld.so'
10484 netbsd*)
10485 version_type=sunos
10486 need_lib_prefix=no
10487 need_version=no
10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10491 dynamic_linker='NetBSD (a.out) ld.so'
10492 else
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 dynamic_linker='NetBSD ld.elf_so'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10502 newsos6)
10503 version_type=linux
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath=yes
10509 *nto* | *qnx*)
10510 version_type=qnx
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10518 dynamic_linker='ldqnx.so'
10521 openbsd*)
10522 version_type=sunos
10523 sys_lib_dlsearch_path_spec="/usr/lib"
10524 need_lib_prefix=no
10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10526 case $host_os in
10527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10528 *) need_version=no ;;
10529 esac
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10534 case $host_os in
10535 openbsd2.[89] | openbsd2.[89].*)
10536 shlibpath_overrides_runpath=no
10539 shlibpath_overrides_runpath=yes
10541 esac
10542 else
10543 shlibpath_overrides_runpath=yes
10547 os2*)
10548 libname_spec='$name'
10549 shrext_cmds=".dll"
10550 need_lib_prefix=no
10551 library_names_spec='$libname${shared_ext} $libname.a'
10552 dynamic_linker='OS/2 ld.exe'
10553 shlibpath_var=LIBPATH
10556 osf3* | osf4* | osf5*)
10557 version_type=osf
10558 need_lib_prefix=no
10559 need_version=no
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10567 rdos*)
10568 dynamic_linker=no
10571 solaris*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 # ldd complains unless libraries are executable
10581 postinstall_cmds='chmod +x $lib'
10584 sunos4*)
10585 version_type=sunos
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10590 if test "$with_gnu_ld" = yes; then
10591 need_lib_prefix=no
10593 need_version=yes
10596 sysv4 | sysv4.3*)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 case $host_vendor in
10602 sni)
10603 shlibpath_overrides_runpath=no
10604 need_lib_prefix=no
10605 runpath_var=LD_RUN_PATH
10607 siemens)
10608 need_lib_prefix=no
10610 motorola)
10611 need_lib_prefix=no
10612 need_version=no
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10616 esac
10619 sysv4*MP*)
10620 if test -d /usr/nec ;then
10621 version_type=linux
10622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10623 soname_spec='$libname${shared_ext}.$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629 version_type=freebsd-elf
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 hardcode_into_libs=yes
10637 if test "$with_gnu_ld" = yes; then
10638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10639 else
10640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10641 case $host_os in
10642 sco3.2v5*)
10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10645 esac
10647 sys_lib_dlsearch_path_spec='/usr/lib'
10650 tpf*)
10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10661 uts4*)
10662 version_type=linux
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10669 dynamic_linker=no
10671 esac
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10673 $as_echo "$dynamic_linker" >&6; }
10674 test "$dynamic_linker" = no && can_build_shared=no
10676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10677 if test "$GCC" = yes; then
10678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10781 hardcode_action=
10782 if test -n "$hardcode_libdir_flag_spec" ||
10783 test -n "$runpath_var" ||
10784 test "X$hardcode_automatic" = "Xyes" ; then
10786 # We can hardcode non-existent directories.
10787 if test "$hardcode_direct" != no &&
10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10789 # have to relink, otherwise we might link with an installed library
10790 # when we should be linking with a yet-to-be-installed one
10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10792 test "$hardcode_minus_L" != no; then
10793 # Linking always hardcodes the temporary library directory.
10794 hardcode_action=relink
10795 else
10796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10797 hardcode_action=immediate
10799 else
10800 # We cannot hardcode anything, or else we can only hardcode existing
10801 # directories.
10802 hardcode_action=unsupported
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10805 $as_echo "$hardcode_action" >&6; }
10807 if test "$hardcode_action" = relink ||
10808 test "$inherit_rpath" = yes; then
10809 # Fast installation is not supported
10810 enable_fast_install=no
10811 elif test "$shlibpath_overrides_runpath" = yes ||
10812 test "$enable_shared" = no; then
10813 # Fast installation is not necessary
10814 enable_fast_install=needless
10822 if test "x$enable_dlopen" != xyes; then
10823 enable_dlopen=unknown
10824 enable_dlopen_self=unknown
10825 enable_dlopen_self_static=unknown
10826 else
10827 lt_cv_dlopen=no
10828 lt_cv_dlopen_libs=
10830 case $host_os in
10831 beos*)
10832 lt_cv_dlopen="load_add_on"
10833 lt_cv_dlopen_libs=
10834 lt_cv_dlopen_self=yes
10837 mingw* | pw32* | cegcc*)
10838 lt_cv_dlopen="LoadLibrary"
10839 lt_cv_dlopen_libs=
10842 cygwin*)
10843 lt_cv_dlopen="dlopen"
10844 lt_cv_dlopen_libs=
10847 darwin*)
10848 # if libdl is installed we need to link against it
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldl $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10867 main ()
10869 return dlopen ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dl_dlopen=yes
10876 else
10877 ac_cv_lib_dl_dlopen=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887 else
10889 lt_cv_dlopen="dyld"
10890 lt_cv_dlopen_libs=
10891 lt_cv_dlopen_self=yes
10898 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10899 if test "x$ac_cv_func_shl_load" = x""yes; then :
10900 lt_cv_dlopen="shl_load"
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldld $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char shl_load ();
10920 main ()
10922 return shl_load ();
10924 return 0;
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dld_shl_load=yes
10929 else
10930 ac_cv_lib_dld_shl_load=no
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10937 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10938 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10940 else
10941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10942 if test "x$ac_cv_func_dlopen" = x""yes; then :
10943 lt_cv_dlopen="dlopen"
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldl $LIBS"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dlopen ();
10963 main ()
10965 return dlopen ();
10967 return 0;
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_dl_dlopen=yes
10972 else
10973 ac_cv_lib_dl_dlopen=no
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LIBS=$ac_check_lib_save_LIBS
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10981 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10985 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsvld $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11002 main ()
11004 return dlopen ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_svld_dlopen=yes
11011 else
11012 ac_cv_lib_svld_dlopen=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11019 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11020 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11024 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11025 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-ldld $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dld_link ();
11041 main ()
11043 return dld_link ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_dld_dld_link=yes
11050 else
11051 ac_cv_lib_dld_dld_link=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11058 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11059 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11079 esac
11081 if test "x$lt_cv_dlopen" != xno; then
11082 enable_dlopen=yes
11083 else
11084 enable_dlopen=no
11087 case $lt_cv_dlopen in
11088 dlopen)
11089 save_CPPFLAGS="$CPPFLAGS"
11090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11092 save_LDFLAGS="$LDFLAGS"
11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11095 save_LIBS="$LIBS"
11096 LIBS="$lt_cv_dlopen_libs $LIBS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11099 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11100 if test "${lt_cv_dlopen_self+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test "$cross_compiling" = yes; then :
11104 lt_cv_dlopen_self=cross
11105 else
11106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11107 lt_status=$lt_dlunknown
11108 cat > conftest.$ac_ext <<_LT_EOF
11109 #line 11109 "configure"
11110 #include "confdefs.h"
11112 #if HAVE_DLFCN_H
11113 #include <dlfcn.h>
11114 #endif
11116 #include <stdio.h>
11118 #ifdef RTLD_GLOBAL
11119 # define LT_DLGLOBAL RTLD_GLOBAL
11120 #else
11121 # ifdef DL_GLOBAL
11122 # define LT_DLGLOBAL DL_GLOBAL
11123 # else
11124 # define LT_DLGLOBAL 0
11125 # endif
11126 #endif
11128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11129 find out it does not work in some platform. */
11130 #ifndef LT_DLLAZY_OR_NOW
11131 # ifdef RTLD_LAZY
11132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11133 # else
11134 # ifdef DL_LAZY
11135 # define LT_DLLAZY_OR_NOW DL_LAZY
11136 # else
11137 # ifdef RTLD_NOW
11138 # define LT_DLLAZY_OR_NOW RTLD_NOW
11139 # else
11140 # ifdef DL_NOW
11141 # define LT_DLLAZY_OR_NOW DL_NOW
11142 # else
11143 # define LT_DLLAZY_OR_NOW 0
11144 # endif
11145 # endif
11146 # endif
11147 # endif
11148 #endif
11150 /* When -fvisbility=hidden is used, assume the code has been annotated
11151 correspondingly for the symbols needed. */
11152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11153 void fnord () __attribute__((visibility("default")));
11154 #endif
11156 void fnord () { int i=42; }
11157 int main ()
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
11162 if (self)
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11165 else
11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 else puts (dlerror ());
11170 /* dlclose (self); */
11172 else
11173 puts (dlerror ());
11175 return status;
11177 _LT_EOF
11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11179 (eval $ac_link) 2>&5
11180 ac_status=$?
11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11183 (./conftest; exit; ) >&5 2>/dev/null
11184 lt_status=$?
11185 case x$lt_status in
11186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11189 esac
11190 else :
11191 # compilation failed
11192 lt_cv_dlopen_self=no
11195 rm -fr conftest*
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11200 $as_echo "$lt_cv_dlopen_self" >&6; }
11202 if test "x$lt_cv_dlopen_self" = xyes; then
11203 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11205 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11206 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test "$cross_compiling" = yes; then :
11210 lt_cv_dlopen_self_static=cross
11211 else
11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11213 lt_status=$lt_dlunknown
11214 cat > conftest.$ac_ext <<_LT_EOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11218 #if HAVE_DLFCN_H
11219 #include <dlfcn.h>
11220 #endif
11222 #include <stdio.h>
11224 #ifdef RTLD_GLOBAL
11225 # define LT_DLGLOBAL RTLD_GLOBAL
11226 #else
11227 # ifdef DL_GLOBAL
11228 # define LT_DLGLOBAL DL_GLOBAL
11229 # else
11230 # define LT_DLGLOBAL 0
11231 # endif
11232 #endif
11234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11235 find out it does not work in some platform. */
11236 #ifndef LT_DLLAZY_OR_NOW
11237 # ifdef RTLD_LAZY
11238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11239 # else
11240 # ifdef DL_LAZY
11241 # define LT_DLLAZY_OR_NOW DL_LAZY
11242 # else
11243 # ifdef RTLD_NOW
11244 # define LT_DLLAZY_OR_NOW RTLD_NOW
11245 # else
11246 # ifdef DL_NOW
11247 # define LT_DLLAZY_OR_NOW DL_NOW
11248 # else
11249 # define LT_DLLAZY_OR_NOW 0
11250 # endif
11251 # endif
11252 # endif
11253 # endif
11254 #endif
11256 /* When -fvisbility=hidden is used, assume the code has been annotated
11257 correspondingly for the symbols needed. */
11258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11259 void fnord () __attribute__((visibility("default")));
11260 #endif
11262 void fnord () { int i=42; }
11263 int main ()
11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11266 int status = $lt_dlunknown;
11268 if (self)
11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11271 else
11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11274 else puts (dlerror ());
11276 /* dlclose (self); */
11278 else
11279 puts (dlerror ());
11281 return status;
11283 _LT_EOF
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self_static=no
11301 rm -fr conftest*
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 CPPFLAGS="$save_CPPFLAGS"
11310 LDFLAGS="$save_LDFLAGS"
11311 LIBS="$save_LIBS"
11313 esac
11315 case $lt_cv_dlopen_self in
11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self=unknown ;;
11318 esac
11320 case $lt_cv_dlopen_self_static in
11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static=unknown ;;
11323 esac
11342 striplib=
11343 old_striplib=
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350 $as_echo "yes" >&6; }
11351 else
11352 # FIXME - insert some real tests, host_os isn't really good enough
11353 case $host_os in
11354 darwin*)
11355 if test -n "$STRIP" ; then
11356 striplib="$STRIP -x"
11357 old_striplib="$STRIP -S"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11369 esac
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11387 $as_echo "$can_build_shared" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11390 $as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared=no
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11395 case $host_os in
11396 aix3*)
11397 test "$enable_shared" = yes && enable_static=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds='$RANLIB $lib'
11404 aix[4-9]*)
11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11406 test "$enable_shared" = yes && enable_static=no
11409 esac
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11411 $as_echo "$enable_shared" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11414 $as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static=yes
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11418 $as_echo "$enable_static" >&6; }
11424 ac_ext=c
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430 CC="$lt_save_CC"
11444 # Source file extension for Go test sources.
11445 ac_ext=go
11447 # Object file extension for compiled Go test sources.
11448 objext=o
11449 objext_GO=$objext
11451 # Code to be used in simple compile tests
11452 lt_simple_compile_test_code="package main; func main() { }"
11454 # Code to be used in simple link tests
11455 lt_simple_link_test_code='package main; func main() { }'
11457 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11464 # If no C compiler was specified, use CC.
11465 LTCC=${LTCC-"$CC"}
11467 # If no C compiler flags were specified, use CFLAGS.
11468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11470 # Allow CC to be a program name with arguments.
11471 compiler=$CC
11474 # save warnings/boilerplate of simple test code
11475 ac_outfile=conftest.$ac_objext
11476 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11477 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478 _lt_compiler_boilerplate=`cat conftest.err`
11479 $RM conftest*
11481 ac_outfile=conftest.$ac_objext
11482 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11483 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11484 _lt_linker_boilerplate=`cat conftest.err`
11485 $RM -r conftest*
11488 # Allow CC to be a program name with arguments.
11489 lt_save_CC="$CC"
11490 lt_save_GCC="$GCC"
11491 GCC=yes
11492 CC=${GOC-"gccgo"}
11493 compiler=$CC
11494 compiler_GO=$CC
11495 LD_GO="$LD"
11496 for cc_temp in $compiler""; do
11497 case $cc_temp in
11498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11500 \-*) ;;
11501 *) break;;
11502 esac
11503 done
11504 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11507 # Go did not exist at the time GCC didn't implicitly link libc in.
11508 archive_cmds_need_lc_GO=no
11510 old_archive_cmds_GO=$old_archive_cmds
11512 ## CAVEAT EMPTOR:
11513 ## There is no encapsulation within the following macros, do not change
11514 ## the running order or otherwise move them around unless you know exactly
11515 ## what you are doing...
11516 if test -n "$compiler"; then
11518 lt_prog_compiler_no_builtin_flag_GO=
11520 if test "$GCC" = yes; then
11521 case $cc_basename in
11522 nvcc*)
11523 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11525 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11526 esac
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11529 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 lt_cv_prog_compiler_rtti_exceptions=no
11534 ac_outfile=conftest.$ac_objext
11535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11536 lt_compiler_flag="-fno-rtti -fno-exceptions"
11537 # Insert the option either (1) after the last *FLAGS variable, or
11538 # (2) before a word containing "conftest.", or (3) at the end.
11539 # Note that $ac_compile itself does not contain backslashes and begins
11540 # with a dollar sign (not a hyphen), so the echo should work correctly.
11541 # The option is referenced via a variable to avoid confusing sed.
11542 lt_compile=`echo "$ac_compile" | $SED \
11543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11545 -e 's:$: $lt_compiler_flag:'`
11546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11547 (eval "$lt_compile" 2>conftest.err)
11548 ac_status=$?
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 if (exit $ac_status) && test -s "$ac_outfile"; then
11552 # The compiler can only warn and ignore the option if not recognized
11553 # So say no if there are warnings other than the usual output.
11554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11557 lt_cv_prog_compiler_rtti_exceptions=yes
11560 $RM conftest*
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11564 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11567 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11568 else
11576 lt_prog_compiler_wl_GO=
11577 lt_prog_compiler_pic_GO=
11578 lt_prog_compiler_static_GO=
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11583 if test "$GCC" = yes; then
11584 lt_prog_compiler_wl_GO='-Wl,'
11585 lt_prog_compiler_static_GO='-static'
11587 case $host_os in
11588 aix*)
11589 # All AIX code is PIC.
11590 if test "$host_cpu" = ia64; then
11591 # AIX 5 now supports IA64 processor
11592 lt_prog_compiler_static_GO='-Bstatic'
11594 lt_prog_compiler_pic_GO='-fPIC'
11597 amigaos*)
11598 case $host_cpu in
11599 powerpc)
11600 # see comment about AmigaOS4 .so support
11601 lt_prog_compiler_pic_GO='-fPIC'
11603 m68k)
11604 # FIXME: we need at least 68020 code to build shared libraries, but
11605 # adding the `-m68020' flag to GCC prevents building anything better,
11606 # like `-m68040'.
11607 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11609 esac
11612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11613 # PIC is the default for these OSes.
11616 mingw* | cygwin* | pw32* | os2* | cegcc*)
11617 # This hack is so that the source file can tell whether it is being
11618 # built for inclusion in a dll (and should export symbols for example).
11619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11620 # (--disable-auto-import) libraries
11621 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11624 darwin* | rhapsody*)
11625 # PIC is the default on this platform
11626 # Common symbols not allowed in MH_DYLIB files
11627 lt_prog_compiler_pic_GO='-fno-common'
11630 haiku*)
11631 # PIC is the default for Haiku.
11632 # The "-static" flag exists, but is broken.
11633 lt_prog_compiler_static_GO=
11636 hpux*)
11637 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11638 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11639 # sets the default TLS model and affects inlining.
11640 case $host_cpu in
11641 hppa*64*)
11642 # +Z the default
11645 lt_prog_compiler_pic_GO='-fPIC'
11647 esac
11650 interix[3-9]*)
11651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11652 # Instead, we relocate shared libraries at runtime.
11655 msdosdjgpp*)
11656 # Just because we use GCC doesn't mean we suddenly get shared libraries
11657 # on systems that don't support them.
11658 lt_prog_compiler_can_build_shared_GO=no
11659 enable_shared=no
11662 *nto* | *qnx*)
11663 # QNX uses GNU C++, but need to define -shared option too, otherwise
11664 # it will coredump.
11665 lt_prog_compiler_pic_GO='-fPIC -shared'
11668 sysv4*MP*)
11669 if test -d /usr/nec; then
11670 lt_prog_compiler_pic_GO=-Kconform_pic
11675 lt_prog_compiler_pic_GO='-fPIC'
11677 esac
11679 case $cc_basename in
11680 nvcc*) # Cuda Compiler Driver 2.2
11681 lt_prog_compiler_wl_GO='-Xlinker '
11682 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11684 esac
11685 else
11686 # PORTME Check for flag to pass linker flags through the system compiler.
11687 case $host_os in
11688 aix*)
11689 lt_prog_compiler_wl_GO='-Wl,'
11690 if test "$host_cpu" = ia64; then
11691 # AIX 5 now supports IA64 processor
11692 lt_prog_compiler_static_GO='-Bstatic'
11693 else
11694 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11698 mingw* | cygwin* | pw32* | os2* | cegcc*)
11699 # This hack is so that the source file can tell whether it is being
11700 # built for inclusion in a dll (and should export symbols for example).
11701 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11704 hpux9* | hpux10* | hpux11*)
11705 lt_prog_compiler_wl_GO='-Wl,'
11706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11707 # not for PA HP-UX.
11708 case $host_cpu in
11709 hppa*64*|ia64*)
11710 # +Z the default
11713 lt_prog_compiler_pic_GO='+Z'
11715 esac
11716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11717 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11720 irix5* | irix6* | nonstopux*)
11721 lt_prog_compiler_wl_GO='-Wl,'
11722 # PIC (with -KPIC) is the default.
11723 lt_prog_compiler_static_GO='-non_shared'
11726 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11727 case $cc_basename in
11728 # old Intel for x86_64 which still supported -KPIC.
11729 ecc*)
11730 lt_prog_compiler_wl_GO='-Wl,'
11731 lt_prog_compiler_pic_GO='-KPIC'
11732 lt_prog_compiler_static_GO='-static'
11734 # icc used to be incompatible with GCC.
11735 # ICC 10 doesn't accept -KPIC any more.
11736 icc* | ifort*)
11737 lt_prog_compiler_wl_GO='-Wl,'
11738 lt_prog_compiler_pic_GO='-fPIC'
11739 lt_prog_compiler_static_GO='-static'
11741 # Lahey Fortran 8.1.
11742 lf95*)
11743 lt_prog_compiler_wl_GO='-Wl,'
11744 lt_prog_compiler_pic_GO='--shared'
11745 lt_prog_compiler_static_GO='--static'
11747 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11748 # Portland Group compilers (*not* the Pentium gcc compiler,
11749 # which looks to be a dead project)
11750 lt_prog_compiler_wl_GO='-Wl,'
11751 lt_prog_compiler_pic_GO='-fpic'
11752 lt_prog_compiler_static_GO='-Bstatic'
11754 ccc*)
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 # All Alpha code is PIC.
11757 lt_prog_compiler_static_GO='-non_shared'
11759 xl* | bgxl* | bgf* | mpixl*)
11760 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='-qpic'
11763 lt_prog_compiler_static_GO='-qstaticlink'
11766 case `$CC -V 2>&1 | sed 5q` in
11767 *Sun\ F* | *Sun*Fortran*)
11768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11769 lt_prog_compiler_pic_GO='-KPIC'
11770 lt_prog_compiler_static_GO='-Bstatic'
11771 lt_prog_compiler_wl_GO=''
11773 *Sun\ C*)
11774 # Sun C 5.9
11775 lt_prog_compiler_pic_GO='-KPIC'
11776 lt_prog_compiler_static_GO='-Bstatic'
11777 lt_prog_compiler_wl_GO='-Wl,'
11779 esac
11781 esac
11784 newsos6)
11785 lt_prog_compiler_pic_GO='-KPIC'
11786 lt_prog_compiler_static_GO='-Bstatic'
11789 *nto* | *qnx*)
11790 # QNX uses GNU C++, but need to define -shared option too, otherwise
11791 # it will coredump.
11792 lt_prog_compiler_pic_GO='-fPIC -shared'
11795 osf3* | osf4* | osf5*)
11796 lt_prog_compiler_wl_GO='-Wl,'
11797 # All OSF/1 code is PIC.
11798 lt_prog_compiler_static_GO='-non_shared'
11801 rdos*)
11802 lt_prog_compiler_static_GO='-non_shared'
11805 solaris*)
11806 lt_prog_compiler_pic_GO='-KPIC'
11807 lt_prog_compiler_static_GO='-Bstatic'
11808 case $cc_basename in
11809 f77* | f90* | f95*)
11810 lt_prog_compiler_wl_GO='-Qoption ld ';;
11812 lt_prog_compiler_wl_GO='-Wl,';;
11813 esac
11816 sunos4*)
11817 lt_prog_compiler_wl_GO='-Qoption ld '
11818 lt_prog_compiler_pic_GO='-PIC'
11819 lt_prog_compiler_static_GO='-Bstatic'
11822 sysv4 | sysv4.2uw2* | sysv4.3*)
11823 lt_prog_compiler_wl_GO='-Wl,'
11824 lt_prog_compiler_pic_GO='-KPIC'
11825 lt_prog_compiler_static_GO='-Bstatic'
11828 sysv4*MP*)
11829 if test -d /usr/nec ;then
11830 lt_prog_compiler_pic_GO='-Kconform_pic'
11831 lt_prog_compiler_static_GO='-Bstatic'
11835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11836 lt_prog_compiler_wl_GO='-Wl,'
11837 lt_prog_compiler_pic_GO='-KPIC'
11838 lt_prog_compiler_static_GO='-Bstatic'
11841 unicos*)
11842 lt_prog_compiler_wl_GO='-Wl,'
11843 lt_prog_compiler_can_build_shared_GO=no
11846 uts4*)
11847 lt_prog_compiler_pic_GO='-pic'
11848 lt_prog_compiler_static_GO='-Bstatic'
11852 lt_prog_compiler_can_build_shared_GO=no
11854 esac
11857 case $host_os in
11858 # For platforms which do not support PIC, -DPIC is meaningless:
11859 *djgpp*)
11860 lt_prog_compiler_pic_GO=
11863 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11865 esac
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11867 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11872 # Check to make sure the PIC flag actually works.
11874 if test -n "$lt_prog_compiler_pic_GO"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11876 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11877 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 lt_cv_prog_compiler_pic_works_GO=no
11881 ac_outfile=conftest.$ac_objext
11882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11883 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11884 # Insert the option either (1) after the last *FLAGS variable, or
11885 # (2) before a word containing "conftest.", or (3) at the end.
11886 # Note that $ac_compile itself does not contain backslashes and begins
11887 # with a dollar sign (not a hyphen), so the echo should work correctly.
11888 # The option is referenced via a variable to avoid confusing sed.
11889 lt_compile=`echo "$ac_compile" | $SED \
11890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11892 -e 's:$: $lt_compiler_flag:'`
11893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11894 (eval "$lt_compile" 2>conftest.err)
11895 ac_status=$?
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 if (exit $ac_status) && test -s "$ac_outfile"; then
11899 # The compiler can only warn and ignore the option if not recognized
11900 # So say no if there are warnings other than the usual output.
11901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11903 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11904 lt_cv_prog_compiler_pic_works_GO=yes
11907 $RM conftest*
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11911 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11913 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11914 case $lt_prog_compiler_pic_GO in
11915 "" | " "*) ;;
11916 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11917 esac
11918 else
11919 lt_prog_compiler_pic_GO=
11920 lt_prog_compiler_can_build_shared_GO=no
11928 # Check to make sure the static flag actually works.
11930 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11933 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 lt_cv_prog_compiler_static_works_GO=no
11937 save_LDFLAGS="$LDFLAGS"
11938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11941 # The linker can only warn and ignore the option if not recognized
11942 # So say no if there are warnings
11943 if test -s conftest.err; then
11944 # Append any errors to the config.log.
11945 cat conftest.err 1>&5
11946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11948 if diff conftest.exp conftest.er2 >/dev/null; then
11949 lt_cv_prog_compiler_static_works_GO=yes
11951 else
11952 lt_cv_prog_compiler_static_works_GO=yes
11955 $RM -r conftest*
11956 LDFLAGS="$save_LDFLAGS"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11960 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11962 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11964 else
11965 lt_prog_compiler_static_GO=
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11973 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 lt_cv_prog_compiler_c_o_GO=no
11977 $RM -r conftest 2>/dev/null
11978 mkdir conftest
11979 cd conftest
11980 mkdir out
11981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11983 lt_compiler_flag="-o out/conftest2.$ac_objext"
11984 # Insert the option either (1) after the last *FLAGS variable, or
11985 # (2) before a word containing "conftest.", or (3) at the end.
11986 # Note that $ac_compile itself does not contain backslashes and begins
11987 # with a dollar sign (not a hyphen), so the echo should work correctly.
11988 lt_compile=`echo "$ac_compile" | $SED \
11989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11991 -e 's:$: $lt_compiler_flag:'`
11992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11993 (eval "$lt_compile" 2>out/conftest.err)
11994 ac_status=$?
11995 cat out/conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11998 then
11999 # The compiler can only warn and ignore the option if not recognized
12000 # So say no if there are warnings
12001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12004 lt_cv_prog_compiler_c_o_GO=yes
12007 chmod u+w . 2>&5
12008 $RM conftest*
12009 # SGI C++ compiler will create directory out/ii_files/ for
12010 # template instantiation
12011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12012 $RM out/* && rmdir out
12013 cd ..
12014 $RM -r conftest
12015 $RM conftest*
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12019 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12025 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 lt_cv_prog_compiler_c_o_GO=no
12029 $RM -r conftest 2>/dev/null
12030 mkdir conftest
12031 cd conftest
12032 mkdir out
12033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12035 lt_compiler_flag="-o out/conftest2.$ac_objext"
12036 # Insert the option either (1) after the last *FLAGS variable, or
12037 # (2) before a word containing "conftest.", or (3) at the end.
12038 # Note that $ac_compile itself does not contain backslashes and begins
12039 # with a dollar sign (not a hyphen), so the echo should work correctly.
12040 lt_compile=`echo "$ac_compile" | $SED \
12041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12043 -e 's:$: $lt_compiler_flag:'`
12044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12045 (eval "$lt_compile" 2>out/conftest.err)
12046 ac_status=$?
12047 cat out/conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12050 then
12051 # The compiler can only warn and ignore the option if not recognized
12052 # So say no if there are warnings
12053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12056 lt_cv_prog_compiler_c_o_GO=yes
12059 chmod u+w . 2>&5
12060 $RM conftest*
12061 # SGI C++ compiler will create directory out/ii_files/ for
12062 # template instantiation
12063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12064 $RM out/* && rmdir out
12065 cd ..
12066 $RM -r conftest
12067 $RM conftest*
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12071 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12076 hard_links="nottested"
12077 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12078 # do not overwrite the value of need_locks provided by the user
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12080 $as_echo_n "checking if we can lock with hard links... " >&6; }
12081 hard_links=yes
12082 $RM conftest*
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 touch conftest.a
12085 ln conftest.a conftest.b 2>&5 || hard_links=no
12086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12088 $as_echo "$hard_links" >&6; }
12089 if test "$hard_links" = no; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12091 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12092 need_locks=warn
12094 else
12095 need_locks=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12103 runpath_var=
12104 allow_undefined_flag_GO=
12105 always_export_symbols_GO=no
12106 archive_cmds_GO=
12107 archive_expsym_cmds_GO=
12108 compiler_needs_object_GO=no
12109 enable_shared_with_static_runtimes_GO=no
12110 export_dynamic_flag_spec_GO=
12111 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112 hardcode_automatic_GO=no
12113 hardcode_direct_GO=no
12114 hardcode_direct_absolute_GO=no
12115 hardcode_libdir_flag_spec_GO=
12116 hardcode_libdir_flag_spec_ld_GO=
12117 hardcode_libdir_separator_GO=
12118 hardcode_minus_L_GO=no
12119 hardcode_shlibpath_var_GO=unsupported
12120 inherit_rpath_GO=no
12121 link_all_deplibs_GO=unknown
12122 module_cmds_GO=
12123 module_expsym_cmds_GO=
12124 old_archive_from_new_cmds_GO=
12125 old_archive_from_expsyms_cmds_GO=
12126 thread_safe_flag_spec_GO=
12127 whole_archive_flag_spec_GO=
12128 # include_expsyms should be a list of space-separated symbols to be *always*
12129 # included in the symbol list
12130 include_expsyms_GO=
12131 # exclude_expsyms can be an extended regexp of symbols to exclude
12132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12134 # as well as any symbol that contains `d'.
12135 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12137 # platforms (ab)use it in PIC code, but their linkers get confused if
12138 # the symbol is explicitly referenced. Since portable code cannot
12139 # rely on this symbol name, it's probably fine to never include it in
12140 # preloaded symbol tables.
12141 # Exclude shared library initialization/finalization symbols.
12142 extract_expsyms_cmds=
12144 case $host_os in
12145 cygwin* | mingw* | pw32* | cegcc*)
12146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12147 # When not using gcc, we currently assume that we are using
12148 # Microsoft Visual C++.
12149 if test "$GCC" != yes; then
12150 with_gnu_ld=no
12153 interix*)
12154 # we just hope/assume this is gcc and not c89 (= MSVC++)
12155 with_gnu_ld=yes
12157 openbsd*)
12158 with_gnu_ld=no
12160 esac
12162 ld_shlibs_GO=yes
12164 # On some targets, GNU ld is compatible enough with the native linker
12165 # that we're better off using the native interface for both.
12166 lt_use_gnu_ld_interface=no
12167 if test "$with_gnu_ld" = yes; then
12168 case $host_os in
12169 aix*)
12170 # The AIX port of GNU ld has always aspired to compatibility
12171 # with the native linker. However, as the warning in the GNU ld
12172 # block says, versions before 2.19.5* couldn't really create working
12173 # shared libraries, regardless of the interface used.
12174 case `$LD -v 2>&1` in
12175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12179 lt_use_gnu_ld_interface=yes
12181 esac
12184 lt_use_gnu_ld_interface=yes
12186 esac
12189 if test "$lt_use_gnu_ld_interface" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12191 wlarc='${wl}'
12193 # Set some defaults for GNU ld with shared library support. These
12194 # are reset later if shared libraries are not supported. Putting them
12195 # here allows them to be overridden if necessary.
12196 runpath_var=LD_RUN_PATH
12197 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12198 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12199 # ancient GNU ld didn't support --whole-archive et. al.
12200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12201 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202 else
12203 whole_archive_flag_spec_GO=
12205 supports_anon_versioning=no
12206 case `$LD -v 2>&1` in
12207 *GNU\ gold*) supports_anon_versioning=yes ;;
12208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12211 *\ 2.11.*) ;; # other 2.11 versions
12212 *) supports_anon_versioning=yes ;;
12213 esac
12215 # See if GNU ld supports shared libraries.
12216 case $host_os in
12217 aix[3-9]*)
12218 # On AIX/PPC, the GNU linker is very broken
12219 if test "$host_cpu" != ia64; then
12220 ld_shlibs_GO=no
12221 cat <<_LT_EOF 1>&2
12223 *** Warning: the GNU linker, at least up to release 2.19, is reported
12224 *** to be unable to reliably create shared libraries on AIX.
12225 *** Therefore, libtool is disabling shared libraries support. If you
12226 *** really care for shared libraries, you may want to install binutils
12227 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12228 *** You will then need to restart the configuration process.
12230 _LT_EOF
12234 amigaos*)
12235 case $host_cpu in
12236 powerpc)
12237 # see comment about AmigaOS4 .so support
12238 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds_GO=''
12241 m68k)
12242 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)'
12243 hardcode_libdir_flag_spec_GO='-L$libdir'
12244 hardcode_minus_L_GO=yes
12246 esac
12249 beos*)
12250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12251 allow_undefined_flag_GO=unsupported
12252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12253 # support --undefined. This deserves some investigation. FIXME
12254 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255 else
12256 ld_shlibs_GO=no
12260 cygwin* | mingw* | pw32* | cegcc*)
12261 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12262 # as there is no search path for DLLs.
12263 hardcode_libdir_flag_spec_GO='-L$libdir'
12264 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12265 allow_undefined_flag_GO=unsupported
12266 always_export_symbols_GO=no
12267 enable_shared_with_static_runtimes_GO=yes
12268 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12270 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12271 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12272 # If the export-symbols file already is a .def file (1st line
12273 # is EXPORTS), use it as is; otherwise, prepend...
12274 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12275 cp $export_symbols $output_objdir/$soname.def;
12276 else
12277 echo EXPORTS > $output_objdir/$soname.def;
12278 cat $export_symbols >> $output_objdir/$soname.def;
12280 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12281 else
12282 ld_shlibs_GO=no
12286 haiku*)
12287 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12288 link_all_deplibs_GO=yes
12291 interix[3-9]*)
12292 hardcode_direct_GO=no
12293 hardcode_shlibpath_var_GO=no
12294 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12295 export_dynamic_flag_spec_GO='${wl}-E'
12296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12297 # Instead, shared libraries are loaded at an image base (0x10000000 by
12298 # default) and relocated if they conflict, which is a slow very memory
12299 # consuming and fragmenting process. To avoid this, we pick a random,
12300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12302 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'
12303 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'
12306 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12307 tmp_diet=no
12308 if test "$host_os" = linux-dietlibc; then
12309 case $cc_basename in
12310 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12311 esac
12313 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12314 && test "$tmp_diet" = no
12315 then
12316 tmp_addflag=
12317 tmp_sharedflag='-shared'
12318 case $cc_basename,$host_cpu in
12319 pgcc*) # Portland Group C compiler
12320 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'
12321 tmp_addflag=' $pic_flag'
12323 pgf77* | pgf90* | pgf95* | pgfortran*)
12324 # Portland Group f77 and f90 compilers
12325 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'
12326 tmp_addflag=' $pic_flag -Mnomain' ;;
12327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12328 tmp_addflag=' -i_dynamic' ;;
12329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12330 tmp_addflag=' -i_dynamic -nofor_main' ;;
12331 ifc* | ifort*) # Intel Fortran compiler
12332 tmp_addflag=' -nofor_main' ;;
12333 lf95*) # Lahey Fortran 8.1
12334 whole_archive_flag_spec_GO=
12335 tmp_sharedflag='--shared' ;;
12336 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12337 tmp_sharedflag='-qmkshrobj'
12338 tmp_addflag= ;;
12339 nvcc*) # Cuda Compiler Driver 2.2
12340 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12341 compiler_needs_object_GO=yes
12343 esac
12344 case `$CC -V 2>&1 | sed 5q` in
12345 *Sun\ C*) # Sun C 5.9
12346 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'
12347 compiler_needs_object_GO=yes
12348 tmp_sharedflag='-G' ;;
12349 *Sun\ F*) # Sun Fortran 8.3
12350 tmp_sharedflag='-G' ;;
12351 esac
12352 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12354 if test "x$supports_anon_versioning" = xyes; then
12355 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12357 echo "local: *; };" >> $output_objdir/$libname.ver~
12358 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12361 case $cc_basename in
12362 xlf* | bgf* | bgxlf* | mpixlf*)
12363 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12364 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12365 hardcode_libdir_flag_spec_GO=
12366 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12367 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12368 if test "x$supports_anon_versioning" = xyes; then
12369 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12371 echo "local: *; };" >> $output_objdir/$libname.ver~
12372 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12375 esac
12376 else
12377 ld_shlibs_GO=no
12381 netbsd*)
12382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12383 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12384 wlarc=
12385 else
12386 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12387 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12391 solaris*)
12392 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12393 ld_shlibs_GO=no
12394 cat <<_LT_EOF 1>&2
12396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12397 *** create shared libraries on Solaris systems. Therefore, libtool
12398 *** is disabling shared libraries support. We urge you to upgrade GNU
12399 *** binutils to release 2.9.1 or newer. Another option is to modify
12400 *** your PATH or compiler configuration so that the native linker is
12401 *** used, and then restart.
12403 _LT_EOF
12404 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12405 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12407 else
12408 ld_shlibs_GO=no
12412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12413 case `$LD -v 2>&1` in
12414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12415 ld_shlibs_GO=no
12416 cat <<_LT_EOF 1>&2
12418 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12419 *** reliably create shared libraries on SCO systems. Therefore, libtool
12420 *** is disabling shared libraries support. We urge you to upgrade GNU
12421 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12422 *** your PATH or compiler configuration so that the native linker is
12423 *** used, and then restart.
12425 _LT_EOF
12428 # For security reasons, it is highly recommended that you always
12429 # use absolute paths for naming shared libraries, and exclude the
12430 # DT_RUNPATH tag from executables and libraries. But doing so
12431 # requires that you compile everything twice, which is a pain.
12432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12433 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12434 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12435 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12436 else
12437 ld_shlibs_GO=no
12440 esac
12443 sunos4*)
12444 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12445 wlarc=
12446 hardcode_direct_GO=yes
12447 hardcode_shlibpath_var_GO=no
12451 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12452 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12453 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12454 else
12455 ld_shlibs_GO=no
12458 esac
12460 if test "$ld_shlibs_GO" = no; then
12461 runpath_var=
12462 hardcode_libdir_flag_spec_GO=
12463 export_dynamic_flag_spec_GO=
12464 whole_archive_flag_spec_GO=
12466 else
12467 # PORTME fill in a description of your system's linker (not GNU ld)
12468 case $host_os in
12469 aix3*)
12470 allow_undefined_flag_GO=unsupported
12471 always_export_symbols_GO=yes
12472 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'
12473 # Note: this linker hardcodes the directories in LIBPATH if there
12474 # are no directories specified by -L.
12475 hardcode_minus_L_GO=yes
12476 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12477 # Neither direct hardcoding nor static linking is supported with a
12478 # broken collect2.
12479 hardcode_direct_GO=unsupported
12483 aix[4-9]*)
12484 if test "$host_cpu" = ia64; then
12485 # On IA64, the linker does run time linking by default, so we don't
12486 # have to do anything special.
12487 aix_use_runtimelinking=no
12488 exp_sym_flag='-Bexport'
12489 no_entry_flag=""
12490 else
12491 # If we're using GNU nm, then we don't want the "-C" option.
12492 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12493 # Also, AIX nm treats weak defined symbols like other global
12494 # defined symbols, whereas GNU nm marks them as "W".
12495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12496 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'
12497 else
12498 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'
12500 aix_use_runtimelinking=no
12502 # Test if we are trying to use run time linking or normal
12503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12504 # need to do runtime linking.
12505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12506 for ld_flag in $LDFLAGS; do
12507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12508 aix_use_runtimelinking=yes
12509 break
12511 done
12513 esac
12515 exp_sym_flag='-bexport'
12516 no_entry_flag='-bnoentry'
12519 # When large executables or shared objects are built, AIX ld can
12520 # have problems creating the table of contents. If linking a library
12521 # or program results in "error TOC overflow" add -mminimal-toc to
12522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12525 archive_cmds_GO=''
12526 hardcode_direct_GO=yes
12527 hardcode_direct_absolute_GO=yes
12528 hardcode_libdir_separator_GO=':'
12529 link_all_deplibs_GO=yes
12530 file_list_spec_GO='${wl}-f,'
12532 if test "$GCC" = yes; then
12533 case $host_os in aix4.[012]|aix4.[012].*)
12534 # We only want to do this on AIX 4.2 and lower, the check
12535 # below for broken collect2 doesn't work under 4.3+
12536 collect2name=`${CC} -print-prog-name=collect2`
12537 if test -f "$collect2name" &&
12538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12539 then
12540 # We have reworked collect2
12542 else
12543 # We have old collect2
12544 hardcode_direct_GO=unsupported
12545 # It fails to find uninstalled libraries when the uninstalled
12546 # path is not listed in the libpath. Setting hardcode_minus_L
12547 # to unsupported forces relinking
12548 hardcode_minus_L_GO=yes
12549 hardcode_libdir_flag_spec_GO='-L$libdir'
12550 hardcode_libdir_separator_GO=
12553 esac
12554 shared_flag='-shared'
12555 if test "$aix_use_runtimelinking" = yes; then
12556 shared_flag="$shared_flag "'${wl}-G'
12558 else
12559 # not using gcc
12560 if test "$host_cpu" = ia64; then
12561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12562 # chokes on -Wl,-G. The following line is correct:
12563 shared_flag='-G'
12564 else
12565 if test "$aix_use_runtimelinking" = yes; then
12566 shared_flag='${wl}-G'
12567 else
12568 shared_flag='${wl}-bM:SRE'
12573 export_dynamic_flag_spec_GO='${wl}-bexpall'
12574 # It seems that -bexpall does not export symbols beginning with
12575 # underscore (_), so it is better to generate a list of symbols to export.
12576 always_export_symbols_GO=yes
12577 if test "$aix_use_runtimelinking" = yes; then
12578 # Warning - without using the other runtime loading flags (-brtl),
12579 # -berok will link without error, but may produce a broken library.
12580 allow_undefined_flag_GO='-berok'
12581 # Determine the default libpath from the value encoded in an
12582 # empty executable.
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12587 main ()
12591 return 0;
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12596 lt_aix_libpath_sed='
12597 /Import File Strings/,/^$/ {
12598 /^0/ {
12599 s/^0 *\(.*\)$/\1/
12603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604 # Check for a 64-bit object if we didn't find anything.
12605 if test -z "$aix_libpath"; then
12606 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12613 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12614 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"
12615 else
12616 if test "$host_cpu" = ia64; then
12617 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12618 allow_undefined_flag_GO="-z nodefs"
12619 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"
12620 else
12621 # Determine the default libpath from the value encoded in an
12622 # empty executable.
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12627 main ()
12631 return 0;
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12636 lt_aix_libpath_sed='
12637 /Import File Strings/,/^$/ {
12638 /^0/ {
12639 s/^0 *\(.*\)$/\1/
12643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644 # Check for a 64-bit object if we didn't find anything.
12645 if test -z "$aix_libpath"; then
12646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12653 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12654 # Warning - without using the other run time loading flags,
12655 # -berok will link without error, but may produce a broken library.
12656 no_undefined_flag_GO=' ${wl}-bernotok'
12657 allow_undefined_flag_GO=' ${wl}-berok'
12658 if test "$with_gnu_ld" = yes; then
12659 # We only use this code for GNU lds that support --whole-archive.
12660 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12661 else
12662 # Exported symbols can be pulled into shared objects from archives
12663 whole_archive_flag_spec_GO='$convenience'
12665 archive_cmds_need_lc_GO=yes
12666 # This is similar to how AIX traditionally builds its shared libraries.
12667 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'
12672 amigaos*)
12673 case $host_cpu in
12674 powerpc)
12675 # see comment about AmigaOS4 .so support
12676 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 archive_expsym_cmds_GO=''
12679 m68k)
12680 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)'
12681 hardcode_libdir_flag_spec_GO='-L$libdir'
12682 hardcode_minus_L_GO=yes
12684 esac
12687 bsdi[45]*)
12688 export_dynamic_flag_spec_GO=-rdynamic
12691 cygwin* | mingw* | pw32* | cegcc*)
12692 # When not using gcc, we currently assume that we are using
12693 # Microsoft Visual C++.
12694 # hardcode_libdir_flag_spec is actually meaningless, as there is
12695 # no search path for DLLs.
12696 hardcode_libdir_flag_spec_GO=' '
12697 allow_undefined_flag_GO=unsupported
12698 # Tell ltmain to make .lib files, not .a files.
12699 libext=lib
12700 # Tell ltmain to make .dll files, not .so files.
12701 shrext_cmds=".dll"
12702 # FIXME: Setting linknames here is a bad hack.
12703 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12704 # The linker will automatically build a .lib file if we build a DLL.
12705 old_archive_from_new_cmds_GO='true'
12706 # FIXME: Should let the user specify the lib program.
12707 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12708 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12709 enable_shared_with_static_runtimes_GO=yes
12712 darwin* | rhapsody*)
12715 archive_cmds_need_lc_GO=no
12716 hardcode_direct_GO=no
12717 hardcode_automatic_GO=yes
12718 hardcode_shlibpath_var_GO=unsupported
12719 if test "$lt_cv_ld_force_load" = "yes"; then
12720 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\"`'
12721 else
12722 whole_archive_flag_spec_GO=''
12724 link_all_deplibs_GO=yes
12725 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12726 case $cc_basename in
12727 ifort*) _lt_dar_can_shared=yes ;;
12728 *) _lt_dar_can_shared=$GCC ;;
12729 esac
12730 if test "$_lt_dar_can_shared" = "yes"; then
12731 output_verbose_link_cmd=func_echo_all
12732 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}"
12733 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12734 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}"
12735 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}"
12737 else
12738 ld_shlibs_GO=no
12743 dgux*)
12744 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12745 hardcode_libdir_flag_spec_GO='-L$libdir'
12746 hardcode_shlibpath_var_GO=no
12749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12750 # support. Future versions do this automatically, but an explicit c++rt0.o
12751 # does not break anything, and helps significantly (at the cost of a little
12752 # extra space).
12753 freebsd2.2*)
12754 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12755 hardcode_libdir_flag_spec_GO='-R$libdir'
12756 hardcode_direct_GO=yes
12757 hardcode_shlibpath_var_GO=no
12760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12761 freebsd2.*)
12762 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_GO=yes
12764 hardcode_minus_L_GO=yes
12765 hardcode_shlibpath_var_GO=no
12768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12769 freebsd* | dragonfly*)
12770 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12771 hardcode_libdir_flag_spec_GO='-R$libdir'
12772 hardcode_direct_GO=yes
12773 hardcode_shlibpath_var_GO=no
12776 hpux9*)
12777 if test "$GCC" = yes; then
12778 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'
12779 else
12780 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'
12782 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12783 hardcode_libdir_separator_GO=:
12784 hardcode_direct_GO=yes
12786 # hardcode_minus_L: Not really in the search PATH,
12787 # but as the default location of the library.
12788 hardcode_minus_L_GO=yes
12789 export_dynamic_flag_spec_GO='${wl}-E'
12792 hpux10*)
12793 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12794 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12795 else
12796 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12798 if test "$with_gnu_ld" = no; then
12799 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12800 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12801 hardcode_libdir_separator_GO=:
12802 hardcode_direct_GO=yes
12803 hardcode_direct_absolute_GO=yes
12804 export_dynamic_flag_spec_GO='${wl}-E'
12805 # hardcode_minus_L: Not really in the search PATH,
12806 # but as the default location of the library.
12807 hardcode_minus_L_GO=yes
12811 hpux11*)
12812 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12813 case $host_cpu in
12814 hppa*64*)
12815 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12817 ia64*)
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12821 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12823 esac
12824 else
12825 case $host_cpu in
12826 hppa*64*)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 ia64*)
12830 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12833 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12835 esac
12837 if test "$with_gnu_ld" = no; then
12838 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12839 hardcode_libdir_separator_GO=:
12841 case $host_cpu in
12842 hppa*64*|ia64*)
12843 hardcode_direct_GO=no
12844 hardcode_shlibpath_var_GO=no
12847 hardcode_direct_GO=yes
12848 hardcode_direct_absolute_GO=yes
12849 export_dynamic_flag_spec_GO='${wl}-E'
12851 # hardcode_minus_L: Not really in the search PATH,
12852 # but as the default location of the library.
12853 hardcode_minus_L_GO=yes
12855 esac
12859 irix5* | irix6* | nonstopux*)
12860 if test "$GCC" = yes; then
12861 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'
12862 # Try to use the -exported_symbol ld option, if it does not
12863 # work, assume that -exports_file does not work either and
12864 # implicitly export all symbols.
12865 save_LDFLAGS="$LDFLAGS"
12866 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 int foo(void) {}
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 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'
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LDFLAGS="$save_LDFLAGS"
12878 else
12879 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'
12880 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'
12882 archive_cmds_need_lc_GO='no'
12883 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12884 hardcode_libdir_separator_GO=:
12885 inherit_rpath_GO=yes
12886 link_all_deplibs_GO=yes
12889 netbsd*)
12890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12891 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12892 else
12893 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12895 hardcode_libdir_flag_spec_GO='-R$libdir'
12896 hardcode_direct_GO=yes
12897 hardcode_shlibpath_var_GO=no
12900 newsos6)
12901 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902 hardcode_direct_GO=yes
12903 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12904 hardcode_libdir_separator_GO=:
12905 hardcode_shlibpath_var_GO=no
12908 *nto* | *qnx*)
12911 openbsd*)
12912 if test -f /usr/libexec/ld.so; then
12913 hardcode_direct_GO=yes
12914 hardcode_shlibpath_var_GO=no
12915 hardcode_direct_absolute_GO=yes
12916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12917 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12918 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12919 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12920 export_dynamic_flag_spec_GO='${wl}-E'
12921 else
12922 case $host_os in
12923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12924 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_libdir_flag_spec_GO='-R$libdir'
12928 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12929 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12931 esac
12933 else
12934 ld_shlibs_GO=no
12938 os2*)
12939 hardcode_libdir_flag_spec_GO='-L$libdir'
12940 hardcode_minus_L_GO=yes
12941 allow_undefined_flag_GO=unsupported
12942 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'
12943 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12946 osf3*)
12947 if test "$GCC" = yes; then
12948 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12949 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'
12950 else
12951 allow_undefined_flag_GO=' -expect_unresolved \*'
12952 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'
12954 archive_cmds_need_lc_GO='no'
12955 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12956 hardcode_libdir_separator_GO=:
12959 osf4* | osf5*) # as osf3* with the addition of -msym flag
12960 if test "$GCC" = yes; then
12961 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12962 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'
12963 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12964 else
12965 allow_undefined_flag_GO=' -expect_unresolved \*'
12966 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'
12967 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~
12968 $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'
12970 # Both c and cxx compiler support -rpath directly
12971 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12973 archive_cmds_need_lc_GO='no'
12974 hardcode_libdir_separator_GO=:
12977 solaris*)
12978 no_undefined_flag_GO=' -z defs'
12979 if test "$GCC" = yes; then
12980 wlarc='${wl}'
12981 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12982 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12983 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12984 else
12985 case `$CC -V 2>&1` in
12986 *"Compilers 5.0"*)
12987 wlarc=''
12988 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12989 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12993 wlarc='${wl}'
12994 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12996 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12998 esac
13000 hardcode_libdir_flag_spec_GO='-R$libdir'
13001 hardcode_shlibpath_var_GO=no
13002 case $host_os in
13003 solaris2.[0-5] | solaris2.[0-5].*) ;;
13005 # The compiler driver will combine and reorder linker options,
13006 # but understands `-z linker_flag'. GCC discards it without `$wl',
13007 # but is careful enough not to reorder.
13008 # Supported since Solaris 2.6 (maybe 2.5.1?)
13009 if test "$GCC" = yes; then
13010 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13011 else
13012 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13015 esac
13016 link_all_deplibs_GO=yes
13019 sunos4*)
13020 if test "x$host_vendor" = xsequent; then
13021 # Use $CC to link under sequent, because it throws in some extra .o
13022 # files that make .init and .fini sections work.
13023 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024 else
13025 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_libdir_flag_spec_GO='-L$libdir'
13028 hardcode_direct_GO=yes
13029 hardcode_minus_L_GO=yes
13030 hardcode_shlibpath_var_GO=no
13033 sysv4)
13034 case $host_vendor in
13035 sni)
13036 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_direct_GO=yes # is this really true???
13039 siemens)
13040 ## LD is ld it makes a PLAMLIB
13041 ## CC just makes a GrossModule.
13042 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043 reload_cmds_GO='$CC -r -o $output$reload_objs'
13044 hardcode_direct_GO=no
13046 motorola)
13047 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13050 esac
13051 runpath_var='LD_RUN_PATH'
13052 hardcode_shlibpath_var_GO=no
13055 sysv4.3*)
13056 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_shlibpath_var_GO=no
13058 export_dynamic_flag_spec_GO='-Bexport'
13061 sysv4*MP*)
13062 if test -d /usr/nec; then
13063 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_shlibpath_var_GO=no
13065 runpath_var=LD_RUN_PATH
13066 hardcode_runpath_var=yes
13067 ld_shlibs_GO=yes
13071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13072 no_undefined_flag_GO='${wl}-z,text'
13073 archive_cmds_need_lc_GO=no
13074 hardcode_shlibpath_var_GO=no
13075 runpath_var='LD_RUN_PATH'
13077 if test "$GCC" = yes; then
13078 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 else
13081 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086 sysv5* | sco3.2v5* | sco5v6*)
13087 # Note: We can NOT use -z defs as we might desire, because we do not
13088 # link with -lc, and that would cause any symbols used from libc to
13089 # always be unresolved, which means just about no library would
13090 # ever link correctly. If we're not using GNU ld we use -z text
13091 # though, which does catch some bad symbols but isn't as heavy-handed
13092 # as -z defs.
13093 no_undefined_flag_GO='${wl}-z,text'
13094 allow_undefined_flag_GO='${wl}-z,nodefs'
13095 archive_cmds_need_lc_GO=no
13096 hardcode_shlibpath_var_GO=no
13097 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13098 hardcode_libdir_separator_GO=':'
13099 link_all_deplibs_GO=yes
13100 export_dynamic_flag_spec_GO='${wl}-Bexport'
13101 runpath_var='LD_RUN_PATH'
13103 if test "$GCC" = yes; then
13104 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 else
13107 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13112 uts4*)
13113 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13114 hardcode_libdir_flag_spec_GO='-L$libdir'
13115 hardcode_shlibpath_var_GO=no
13119 ld_shlibs_GO=no
13121 esac
13123 if test x$host_vendor = xsni; then
13124 case $host in
13125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13126 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13128 esac
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13133 $as_echo "$ld_shlibs_GO" >&6; }
13134 test "$ld_shlibs_GO" = no && can_build_shared=no
13136 with_gnu_ld_GO=$with_gnu_ld
13144 # Do we need to explicitly link libc?
13146 case "x$archive_cmds_need_lc_GO" in
13147 x|xyes)
13148 # Assume -lc should be added
13149 archive_cmds_need_lc_GO=yes
13151 if test "$enable_shared" = yes && test "$GCC" = yes; then
13152 case $archive_cmds_GO in
13153 *'~'*)
13154 # FIXME: we may have to deal with multi-command sequences.
13156 '$CC '*)
13157 # Test whether the compiler implicitly links with -lc since on some
13158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13159 # to ld, don't add -lc before -lgcc.
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13161 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13162 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 $RM conftest*
13166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; } 2>conftest.err; then
13173 soname=conftest
13174 lib=conftest
13175 libobjs=conftest.$ac_objext
13176 deplibs=
13177 wl=$lt_prog_compiler_wl_GO
13178 pic_flag=$lt_prog_compiler_pic_GO
13179 compiler_flags=-v
13180 linker_flags=-v
13181 verstring=
13182 output_objdir=.
13183 libname=conftest
13184 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13185 allow_undefined_flag_GO=
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13187 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; }
13191 then
13192 lt_cv_archive_cmds_need_lc_GO=no
13193 else
13194 lt_cv_archive_cmds_need_lc_GO=yes
13196 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13197 else
13198 cat conftest.err 1>&5
13200 $RM conftest*
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13204 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13205 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13207 esac
13210 esac
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13276 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13277 hardcode_action_GO=
13278 if test -n "$hardcode_libdir_flag_spec_GO" ||
13279 test -n "$runpath_var_GO" ||
13280 test "X$hardcode_automatic_GO" = "Xyes" ; then
13282 # We can hardcode non-existent directories.
13283 if test "$hardcode_direct_GO" != no &&
13284 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13285 # have to relink, otherwise we might link with an installed library
13286 # when we should be linking with a yet-to-be-installed one
13287 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13288 test "$hardcode_minus_L_GO" != no; then
13289 # Linking always hardcodes the temporary library directory.
13290 hardcode_action_GO=relink
13291 else
13292 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13293 hardcode_action_GO=immediate
13295 else
13296 # We cannot hardcode anything, or else we can only hardcode existing
13297 # directories.
13298 hardcode_action_GO=unsupported
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13301 $as_echo "$hardcode_action_GO" >&6; }
13303 if test "$hardcode_action_GO" = relink ||
13304 test "$inherit_rpath_GO" = yes; then
13305 # Fast installation is not supported
13306 enable_fast_install=no
13307 elif test "$shlibpath_overrides_runpath" = yes ||
13308 test "$enable_shared" = no; then
13309 # Fast installation is not necessary
13310 enable_fast_install=needless
13321 ac_ext=c
13322 ac_cpp='$CPP $CPPFLAGS'
13323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13328 GCC=$lt_save_GCC
13329 CC="$lt_save_CC"
13334 ac_config_commands="$ac_config_commands libtool"
13339 # Only expand once:
13345 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13348 for ac_prog in gawk mawk nawk awk
13350 # Extract the first word of "$ac_prog", so it can be a program name with args.
13351 set dummy $ac_prog; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if test "${ac_cv_prog_AWK+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test -n "$AWK"; then
13358 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367 ac_cv_prog_AWK="$ac_prog"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13371 done
13372 done
13373 IFS=$as_save_IFS
13377 AWK=$ac_cv_prog_AWK
13378 if test -n "$AWK"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13380 $as_echo "$AWK" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13387 test -n "$AWK" && break
13388 done
13391 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13394 # Check whether --enable-werror was given.
13395 if test "${enable_werror+set}" = set; then :
13396 enableval=$enable_werror;
13399 if test "x$enable_werror" != "xno"; then
13400 WERROR="-Werror"
13404 glibgo_toolexecdir=no
13405 glibgo_toolexeclibdir=no
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13408 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13409 # Check whether --enable-version-specific-runtime-libs was given.
13410 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13411 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13412 yes) version_specific_libs=yes ;;
13413 no) version_specific_libs=no ;;
13414 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13415 esac
13416 else
13417 version_specific_libs=no
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13421 $as_echo "$version_specific_libs" >&6; }
13423 # Version-specific runtime libs processing.
13424 if test $version_specific_libs = yes; then
13425 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13426 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13429 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13430 # Install a library built with a cross compiler in tooldir, not libdir.
13431 if test -n "$with_cross_host" &&
13432 test x"$with_cross_host" != x"no"; then
13433 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13434 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13435 else
13436 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13437 nover_glibgo_toolexeclibdir='${libdir}'
13439 multi_os_directory=`$GOC -print-multi-os-directory`
13440 case $multi_os_directory in
13441 .) ;; # Avoid trailing /.
13442 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13443 esac
13445 if test x"$glibgo_toolexecdir" = x"no"; then
13446 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13447 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13454 # See if the user wants to configure without libffi. Some
13455 # architectures don't support it. FIXME: We should set a default
13456 # based on the host.
13458 # Check whether --with-libffi was given.
13459 if test "${with_libffi+set}" = set; then :
13460 withval=$with_libffi; :
13461 else
13462 with_libffi=${with_libffi_default-yes}
13466 LIBFFI=
13467 LIBFFIINCS=
13468 if test "$with_libffi" != no; then
13470 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13472 LIBFFI=../libffi/libffi_convenience.la
13473 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13477 if test "$with_liffi" != "no"; then
13478 USE_LIBFFI_TRUE=
13479 USE_LIBFFI_FALSE='#'
13480 else
13481 USE_LIBFFI_TRUE='#'
13482 USE_LIBFFI_FALSE=
13486 # See if the user wants to configure without libatomic. This is useful if we are
13487 # on an architecture for which libgo does not need an atomic support library and
13488 # libatomic does not support our C compiler.
13490 # Check whether --with-libatomic was given.
13491 if test "${with_libatomic+set}" = set; then :
13492 withval=$with_libatomic; :
13493 else
13494 with_libatomic=${with_libatomic_default-yes}
13498 LIBATOMIC=
13499 if test "$with_libatomic" != no; then
13500 LIBATOMIC=../libatomic/libatomic_convenience.la
13504 # Used to tell GNU make to include a file without telling automake to
13505 # include it.
13506 go_include="-include"
13509 # All known GOOS values. This is the union of all operating systems
13510 # supported by the gofrontend and all operating systems supported by
13511 # the gc toolchain.
13512 ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13514 is_darwin=no
13515 is_freebsd=no
13516 is_irix=no
13517 is_linux=no
13518 is_netbsd=no
13519 is_openbsd=no
13520 is_dragonfly=no
13521 is_rtems=no
13522 is_solaris=no
13523 GOOS=unknown
13524 case ${host} in
13525 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13526 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13527 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13528 *-*-linux*) is_linux=yes; GOOS=linux ;;
13529 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13530 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13531 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13532 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13533 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13534 esac
13535 if test $is_darwin = yes; then
13536 LIBGO_IS_DARWIN_TRUE=
13537 LIBGO_IS_DARWIN_FALSE='#'
13538 else
13539 LIBGO_IS_DARWIN_TRUE='#'
13540 LIBGO_IS_DARWIN_FALSE=
13543 if test $is_freebsd = yes; then
13544 LIBGO_IS_FREEBSD_TRUE=
13545 LIBGO_IS_FREEBSD_FALSE='#'
13546 else
13547 LIBGO_IS_FREEBSD_TRUE='#'
13548 LIBGO_IS_FREEBSD_FALSE=
13551 if test $is_irix = yes; then
13552 LIBGO_IS_IRIX_TRUE=
13553 LIBGO_IS_IRIX_FALSE='#'
13554 else
13555 LIBGO_IS_IRIX_TRUE='#'
13556 LIBGO_IS_IRIX_FALSE=
13559 if test $is_linux = yes; then
13560 LIBGO_IS_LINUX_TRUE=
13561 LIBGO_IS_LINUX_FALSE='#'
13562 else
13563 LIBGO_IS_LINUX_TRUE='#'
13564 LIBGO_IS_LINUX_FALSE=
13567 if test $is_netbsd = yes; then
13568 LIBGO_IS_NETBSD_TRUE=
13569 LIBGO_IS_NETBSD_FALSE='#'
13570 else
13571 LIBGO_IS_NETBSD_TRUE='#'
13572 LIBGO_IS_NETBSD_FALSE=
13575 if test $is_openbsd = yes; then
13576 LIBGO_IS_OPENBSD_TRUE=
13577 LIBGO_IS_OPENBSD_FALSE='#'
13578 else
13579 LIBGO_IS_OPENBSD_TRUE='#'
13580 LIBGO_IS_OPENBSD_FALSE=
13583 if test $is_dragonfly = yes; then
13584 LIBGO_IS_DRAGONFLY_TRUE=
13585 LIBGO_IS_DRAGONFLY_FALSE='#'
13586 else
13587 LIBGO_IS_DRAGONFLY_TRUE='#'
13588 LIBGO_IS_DRAGONFLY_FALSE=
13591 if test $is_rtems = yes; then
13592 LIBGO_IS_RTEMS_TRUE=
13593 LIBGO_IS_RTEMS_FALSE='#'
13594 else
13595 LIBGO_IS_RTEMS_TRUE='#'
13596 LIBGO_IS_RTEMS_FALSE=
13599 if test $is_solaris = yes; then
13600 LIBGO_IS_SOLARIS_TRUE=
13601 LIBGO_IS_SOLARIS_FALSE='#'
13602 else
13603 LIBGO_IS_SOLARIS_TRUE='#'
13604 LIBGO_IS_SOLARIS_FALSE=
13607 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13608 LIBGO_IS_BSD_TRUE=
13609 LIBGO_IS_BSD_FALSE='#'
13610 else
13611 LIBGO_IS_BSD_TRUE='#'
13612 LIBGO_IS_BSD_FALSE=
13618 USE_DEJAGNU=no
13619 case ${host} in
13620 *-*-rtems*) USE_DEJAGNU=yes ;;
13621 ${build}) ;;
13622 *) USE_DEJAGNU=yes ;;
13623 esac
13626 # All known GOARCH values. This is the union of all architectures
13627 # supported by the gofrontend and all architectures supported by the
13628 # gc toolchain.
13629 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13630 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13632 # All known GOARCH_FAMILY values.
13633 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13635 GOARCH=unknown
13636 GOARCH_FAMILY=unknown
13637 GOARCH_BIGENDIAN=0
13638 GOARCH_CACHELINESIZE=64
13639 GOARCH_PHYSPAGESIZE=4096
13640 GOARCH_PCQUANTUM=1
13641 GOARCH_INT64ALIGN=8
13642 GOARCH_HUGEPAGESIZE=0
13643 GOARCH_MINFRAMESIZE=0
13644 case ${host} in
13645 alpha*-*-*)
13646 GOARCH=alpha
13647 GOARCH_FAMILY=ALPHA
13648 GOARCH_PHYSPAGESIZE=8192
13649 GOARCH_PCQUANTUM=4
13651 aarch64-*-*)
13652 GOARCH=arm64
13653 GOARCH_FAMILY=ARM64
13654 GOARCH_CACHELINESIZE=32
13655 GOARCH_PHYSPAGESIZE=65536
13656 GOARCH_PCQUANTUM=4
13657 GOARCH_MINFRAMESIZE=8
13659 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13660 GOARCH=arm
13661 GOARCH_FAMILY=ARM
13662 GOARCH_CACHELINESIZE=32
13663 GOARCH_PCQUANTUM=4
13664 GOARCH_MINFRAMESIZE=4
13666 i[34567]86-*-* | x86_64-*-*)
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13670 #ifdef __x86_64__
13671 #error 64-bit
13672 #endif
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675 GOARCH=386
13676 GOARCH_FAMILY=I386
13677 GOARCH_INT64ALIGN=4
13678 GOARCH_HUGEPAGESIZE="1 << 21"
13680 else
13681 GOARCH=amd64
13682 GOARCH_FAMILY=AMD64
13683 GOARCH_HUGEPAGESIZE="1 << 21"
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 ia64-*-*)
13689 GOARCH=ia64
13690 GOARCH_FAMILY=IA64
13691 GOARCH_CACHELINESIZE=16384
13692 GOARCH_PHYSPAGESIZE=65536
13694 m68k*-*-*)
13695 GOARCH=m68k
13696 GOARCH_FAMILY=M68K
13697 GOARCH_BIGENDIAN=1
13698 GOARCH_CACHELINESIZE=16
13699 GOARCH_PCQUANTUM=4
13700 GOARCH_INT64ALIGN=2
13702 mips*-*-*)
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13706 #if _MIPS_SIM != _ABIO32
13707 #error not o32
13708 #endif
13709 _ACEOF
13710 if ac_fn_c_try_compile "$LINENO"; then :
13711 mips_abi="o32"
13712 else
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13716 #if _MIPS_SIM != _ABIN32
13717 #error not n32
13718 #endif
13719 _ACEOF
13720 if ac_fn_c_try_compile "$LINENO"; then :
13721 mips_abi="n32"
13722 else
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 #if _MIPS_SIM != _ABI64
13727 #error not n64
13728 #endif
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 mips_abi="n64"
13732 else
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13736 #if _MIPS_SIM != _ABIO64
13737 #error not o64
13738 #endif
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 mips_abi="o64"
13742 else
13743 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13744 mips_abi="n32"
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 case "$mips_abi" in
13754 "o32") GOARCH=mipso32 ;;
13755 "n32") GOARCH=mipsn32 ;;
13756 "n64") GOARCH=mipsn64 ;;
13757 "o64") GOARCH=mipso64 ;;
13758 esac
13759 case "$mips_abi" in
13760 "o32" | "n32")
13761 GOARCH_FAMILY=MIPS
13762 GOARCH_MINFRAMESIZE=4
13764 "n64" | "o64")
13765 GOARCH_FAMILY=MIPS64
13766 GOARCH_MINFRAMESIZE=8
13768 esac
13769 case "${host}" in
13770 mips*el)
13773 GOARCH_BIGENDIAN=1
13775 esac
13776 GOARCH_CACHELINESIZE=32
13777 GOARCH_PHYSPAGESIZE=16384
13778 GOARCH_PCQUANTUM=4
13780 rs6000*-*-* | powerpc*-*-*)
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13784 #ifdef _ARCH_PPC64
13785 #error 64-bit
13786 #endif
13787 _ACEOF
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 GOARCH=ppc
13790 GOARCH_FAMILY=PPC
13791 GOARCH_BIGENDIAN=1
13793 else
13795 GOARCH_FAMILY=PPC64
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13799 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13800 #error 64be
13801 #endif
13802 _ACEOF
13803 if ac_fn_c_try_compile "$LINENO"; then :
13804 GOARCH=ppc64le
13806 else
13807 GOARCH=ppc64
13808 GOARCH_BIGENDIAN=1
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 GOARCH_PHYSPAGESIZE=65536
13815 GOARCH_PCQUANTUM=4
13816 GOARCH_MINFRAMESIZE=32
13818 s390*-*-*)
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13822 #if defined(__s390x__)
13823 #error 64-bit
13824 #endif
13825 _ACEOF
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827 GOARCH=s390
13828 GOARCH_FAMILY=S390
13829 GOARCH_MINFRAMESIZE=4
13831 else
13832 GOARCH=s390x
13833 GOARCH_FAMILY=S390X
13834 GOARCH_MINFRAMESIZE=8
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 GOARCH_BIGENDIAN=1
13839 GOARCH_CACHELINESIZE=256
13840 GOARCH_PCQUANTUM=2
13842 sparc*-*-*)
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 #if defined(__sparcv9) || defined(__arch64__)
13847 #error 64-bit
13848 #endif
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 GOARCH=sparc
13852 GOARCH_FAMILY=SPARC
13854 else
13855 GOARCH=sparc64
13856 GOARCH_FAMILY=SPARC64
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 GOARCH_BIGENDIAN=1
13861 GOARCH_PHYSPAGESIZE=8192
13862 GOARCH_PCQUANTUM=4
13864 esac
13877 GO_LIBCALL_OS_FILE=
13878 GO_LIBCALL_OS_ARCH_FILE=
13879 GO_SYSCALL_OS_FILE=
13880 GO_SYSCALL_OS_ARCH_FILE=
13881 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13882 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13884 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13885 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13887 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13888 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13890 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13891 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13898 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13899 case "$target" in
13900 mips-sgi-irix6.5*)
13901 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13902 # msghdr in <sys/socket.h>.
13903 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13905 *-*-solaris2.1[01])
13906 # Solaris 10+ needs this so struct msghdr gets the msg_control
13907 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13908 # above doesn't work with C99.
13909 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13911 esac
13915 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
13918 ac_save_LDFLAGS="$LDFLAGS"
13919 LDFLAGS="$LFLAGS -mclear-hwcap"
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
13922 $as_echo_n "checking for -mclear-hwcap... " >&6; }
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13927 main ()
13929 return 0;
13931 return 0;
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 ac_hwcap_ldflags=yes
13936 else
13937 ac_hwcap_ldflags=no
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 if test "$ac_hwcap_ldflags" = "yes"; then
13942 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
13945 $as_echo "$ac_hwcap_ldflags" >&6; }
13947 LDFLAGS="$ac_save_LDFLAGS"
13951 if test $ac_hwcap_ldflags != no; then
13952 HAVE_HWCAP_TRUE=
13953 HAVE_HWCAP_FALSE='#'
13954 else
13955 HAVE_HWCAP_TRUE='#'
13956 HAVE_HWCAP_FALSE=
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13962 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13963 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 CFLAGS_hold=$CFLAGS
13967 CFLAGS="$CFLAGS -fsplit-stack"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 int i;
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 libgo_cv_c_split_stack_supported=yes
13974 else
13975 libgo_cv_c_split_stack_supported=no
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 CFLAGS=$CFLAGS_hold
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13981 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13984 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13985 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 cat > conftest1.c << EOF
13989 extern void f();
13990 int main() { f(); return 0; }
13992 cat > conftest2.c << EOF
13993 void f() {}
13995 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13996 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13997 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13998 libgo_cv_c_linker_split_non_split=yes
13999 else
14000 libgo_cv_c_linker_split_non_split=no
14002 rm -f conftest1.* conftest2.* conftest
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14005 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14007 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14008 SPLIT_STACK=-fsplit-stack
14010 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14012 else
14013 SPLIT_STACK=
14016 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14017 USING_SPLIT_STACK_TRUE=
14018 USING_SPLIT_STACK_FALSE='#'
14019 else
14020 USING_SPLIT_STACK_TRUE='#'
14021 USING_SPLIT_STACK_FALSE=
14025 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14026 GO_SPLIT_STACK=-fno-split-stack
14027 else
14028 GO_SPLIT_STACK=
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14033 $as_echo_n "checking whether linker supports split stack... " >&6; }
14034 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 libgo_cv_c_linker_supports_split_stack=no
14038 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14039 libgo_cv_c_linker_supports_split_stack=yes
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14043 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14044 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14046 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14051 $as_echo_n "checking whether compiler is llgo... " >&6; }
14052 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 libgo_cv_c_goc_is_llgo=no
14056 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14057 libgo_cv_c_goc_is_llgo=yes
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14061 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14062 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14063 GOC_IS_LLGO_TRUE=
14064 GOC_IS_LLGO_FALSE='#'
14065 else
14066 GOC_IS_LLGO_TRUE='#'
14067 GOC_IS_LLGO_FALSE=
14071 MATH_LIBS=
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14073 $as_echo_n "checking for sqrt in -lm... " >&6; }
14074 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-lm $LIBS"
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 char sqrt ();
14090 main ()
14092 return sqrt ();
14094 return 0;
14096 _ACEOF
14097 if ac_fn_c_try_link "$LINENO"; then :
14098 ac_cv_lib_m_sqrt=yes
14099 else
14100 ac_cv_lib_m_sqrt=no
14102 rm -f core conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14104 LIBS=$ac_check_lib_save_LIBS
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14107 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14108 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14109 MATH_LIBS=-lm
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14115 $as_echo_n "checking for socket libraries... " >&6; }
14116 if test "${libgo_cv_lib_sockets+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 libgo_cv_lib_sockets=
14120 libgo_check_both=no
14121 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14122 if test "x$ac_cv_func_connect" = x""yes; then :
14123 libgo_check_socket=no
14124 else
14125 libgo_check_socket=yes
14128 if test "$libgo_check_socket" = "yes"; then
14129 unset ac_cv_func_connect
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14131 $as_echo_n "checking for main in -lsocket... " >&6; }
14132 if test "${ac_cv_lib_socket_main+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lsocket $LIBS"
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14142 main ()
14144 return main ();
14146 return 0;
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 ac_cv_lib_socket_main=yes
14151 else
14152 ac_cv_lib_socket_main=no
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14159 $as_echo "$ac_cv_lib_socket_main" >&6; }
14160 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14161 libgo_cv_lib_sockets="-lsocket"
14162 else
14163 libgo_check_both=yes
14167 if test "$libgo_check_both" = "yes"; then
14168 libgo_old_libs=$LIBS
14169 LIBS="$LIBS -lsocket -lnsl"
14170 unset ac_cv_func_accept
14171 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14172 if test "x$ac_cv_func_accept" = x""yes; then :
14173 libgo_check_nsl=no
14174 libgo_cv_lib_sockets="-lsocket -lnsl"
14177 unset ac_cv_func_accept
14178 LIBS=$libgo_old_libs
14180 unset ac_cv_func_gethostbyname
14181 libgo_old_libs="$LIBS"
14182 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14183 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14187 $as_echo_n "checking for main in -lnsl... " >&6; }
14188 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lnsl $LIBS"
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14198 main ()
14200 return main ();
14202 return 0;
14204 _ACEOF
14205 if ac_fn_c_try_link "$LINENO"; then :
14206 ac_cv_lib_nsl_main=yes
14207 else
14208 ac_cv_lib_nsl_main=no
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14215 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14216 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14217 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14222 unset ac_cv_func_gethostbyname
14223 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14224 if test "x$ac_cv_func_sendfile" = x""yes; then :
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14228 $as_echo_n "checking for main in -lsendfile... " >&6; }
14229 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 ac_check_lib_save_LIBS=$LIBS
14233 LIBS="-lsendfile $LIBS"
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14239 main ()
14241 return main ();
14243 return 0;
14245 _ACEOF
14246 if ac_fn_c_try_link "$LINENO"; then :
14247 ac_cv_lib_sendfile_main=yes
14248 else
14249 ac_cv_lib_sendfile_main=no
14251 rm -f core conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14253 LIBS=$ac_check_lib_save_LIBS
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14256 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14257 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14258 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14263 LIBS=$libgo_old_libs
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14267 $as_echo "$libgo_cv_lib_sockets" >&6; }
14268 NET_LIBS="$libgo_cv_lib_sockets"
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14272 $as_echo_n "checking whether -pthread is supported... " >&6; }
14273 if test "${libgo_cv_lib_pthread+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 CFLAGS_hold=$CFLAGS
14277 CFLAGS="$CFLAGS -pthread"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 int i;
14281 _ACEOF
14282 if ac_fn_c_try_compile "$LINENO"; then :
14283 libgo_cv_lib_pthread=yes
14284 else
14285 libgo_cv_lib_pthread=no
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 CFLAGS=$CFLAGS_hold
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14291 $as_echo "$libgo_cv_lib_pthread" >&6; }
14292 PTHREAD_CFLAGS=
14293 if test "$libgo_cv_lib_pthread" = yes; then
14294 PTHREAD_CFLAGS=-pthread
14298 PTHREAD_LIBS=
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14300 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14301 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14303 else
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lpthread $LIBS"
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14309 /* Override any GCC internal prototype to avoid an error.
14310 Use char because int might match the return type of a GCC
14311 builtin and then its argument prototype would still apply. */
14312 #ifdef __cplusplus
14313 extern "C"
14314 #endif
14315 char pthread_create ();
14317 main ()
14319 return pthread_create ();
14321 return 0;
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_lib_pthread_pthread_create=yes
14326 else
14327 ac_cv_lib_pthread_pthread_create=no
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14334 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14335 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14336 PTHREAD_LIBS=-lpthread
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14342 $as_echo_n "checking for library containing sched_yield... " >&6; }
14343 if test "${ac_cv_search_sched_yield+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_func_search_save_LIBS=$LIBS
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char sched_yield ();
14358 main ()
14360 return sched_yield ();
14362 return 0;
14364 _ACEOF
14365 for ac_lib in '' rt; do
14366 if test -z "$ac_lib"; then
14367 ac_res="none required"
14368 else
14369 ac_res=-l$ac_lib
14370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_search_sched_yield=$ac_res
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext
14377 if test "${ac_cv_search_sched_yield+set}" = set; then :
14378 break
14380 done
14381 if test "${ac_cv_search_sched_yield+set}" = set; then :
14383 else
14384 ac_cv_search_sched_yield=no
14386 rm conftest.$ac_ext
14387 LIBS=$ac_func_search_save_LIBS
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14390 $as_echo "$ac_cv_search_sched_yield" >&6; }
14391 ac_res=$ac_cv_search_sched_yield
14392 if test "$ac_res" != no; then :
14393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14398 $as_echo_n "checking for library containing nanosleep... " >&6; }
14399 if test "${ac_cv_search_nanosleep+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 ac_func_search_save_LIBS=$LIBS
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char nanosleep ();
14414 main ()
14416 return nanosleep ();
14418 return 0;
14420 _ACEOF
14421 for ac_lib in '' rt; do
14422 if test -z "$ac_lib"; then
14423 ac_res="none required"
14424 else
14425 ac_res=-l$ac_lib
14426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14428 if ac_fn_c_try_link "$LINENO"; then :
14429 ac_cv_search_nanosleep=$ac_res
14431 rm -f core conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext
14433 if test "${ac_cv_search_nanosleep+set}" = set; then :
14434 break
14436 done
14437 if test "${ac_cv_search_nanosleep+set}" = set; then :
14439 else
14440 ac_cv_search_nanosleep=no
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14446 $as_echo "$ac_cv_search_nanosleep" >&6; }
14447 ac_res=$ac_cv_search_nanosleep
14448 if test "$ac_res" != no; then :
14449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14454 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14455 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 ac_func_search_save_LIBS=$LIBS
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14462 /* Override any GCC internal prototype to avoid an error.
14463 Use char because int might match the return type of a GCC
14464 builtin and then its argument prototype would still apply. */
14465 #ifdef __cplusplus
14466 extern "C"
14467 #endif
14468 char clock_gettime ();
14470 main ()
14472 return clock_gettime ();
14474 return 0;
14476 _ACEOF
14477 for ac_lib in '' rt; do
14478 if test -z "$ac_lib"; then
14479 ac_res="none required"
14480 else
14481 ac_res=-l$ac_lib
14482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14484 if ac_fn_c_try_link "$LINENO"; then :
14485 ac_cv_search_clock_gettime=$ac_res
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext
14489 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14490 break
14492 done
14493 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14495 else
14496 ac_cv_search_clock_gettime=no
14498 rm conftest.$ac_ext
14499 LIBS=$ac_func_search_save_LIBS
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14502 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14503 ac_res=$ac_cv_search_clock_gettime
14504 if test "$ac_res" != no; then :
14505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14512 if test "${ac_cv_c_bigendian+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 ac_cv_c_bigendian=unknown
14516 # See if we're dealing with a universal compiler.
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #ifndef __APPLE_CC__
14520 not a universal capable compiler
14521 #endif
14522 typedef int dummy;
14524 _ACEOF
14525 if ac_fn_c_try_compile "$LINENO"; then :
14527 # Check for potential -arch flags. It is not universal unless
14528 # there are at least two -arch flags with different values.
14529 ac_arch=
14530 ac_prev=
14531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14532 if test -n "$ac_prev"; then
14533 case $ac_word in
14534 i?86 | x86_64 | ppc | ppc64)
14535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14536 ac_arch=$ac_word
14537 else
14538 ac_cv_c_bigendian=universal
14539 break
14542 esac
14543 ac_prev=
14544 elif test "x$ac_word" = "x-arch"; then
14545 ac_prev=arch
14547 done
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 if test $ac_cv_c_bigendian = unknown; then
14551 # See if sys/param.h defines the BYTE_ORDER macro.
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14554 #include <sys/types.h>
14555 #include <sys/param.h>
14558 main ()
14560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14562 && LITTLE_ENDIAN)
14563 bogus endian macros
14564 #endif
14567 return 0;
14569 _ACEOF
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 # It does; now see whether it defined to BIG_ENDIAN or not.
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 #include <sys/types.h>
14575 #include <sys/param.h>
14578 main ()
14580 #if BYTE_ORDER != BIG_ENDIAN
14581 not big endian
14582 #endif
14585 return 0;
14587 _ACEOF
14588 if ac_fn_c_try_compile "$LINENO"; then :
14589 ac_cv_c_bigendian=yes
14590 else
14591 ac_cv_c_bigendian=no
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 if test $ac_cv_c_bigendian = unknown; then
14598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 #include <limits.h>
14604 main ()
14606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14607 bogus endian macros
14608 #endif
14611 return 0;
14613 _ACEOF
14614 if ac_fn_c_try_compile "$LINENO"; then :
14615 # It does; now see whether it defined to _BIG_ENDIAN or not.
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <limits.h>
14621 main ()
14623 #ifndef _BIG_ENDIAN
14624 not big endian
14625 #endif
14628 return 0;
14630 _ACEOF
14631 if ac_fn_c_try_compile "$LINENO"; then :
14632 ac_cv_c_bigendian=yes
14633 else
14634 ac_cv_c_bigendian=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 if test $ac_cv_c_bigendian = unknown; then
14641 # Compile a test program.
14642 if test "$cross_compiling" = yes; then :
14643 # Try to guess by grepping values from an object file.
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646 short int ascii_mm[] =
14647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14648 short int ascii_ii[] =
14649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14650 int use_ascii (int i) {
14651 return ascii_mm[i] + ascii_ii[i];
14653 short int ebcdic_ii[] =
14654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14655 short int ebcdic_mm[] =
14656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14657 int use_ebcdic (int i) {
14658 return ebcdic_mm[i] + ebcdic_ii[i];
14660 extern int foo;
14663 main ()
14665 return use_ascii (foo) == use_ebcdic (foo);
14667 return 0;
14669 _ACEOF
14670 if ac_fn_c_try_compile "$LINENO"; then :
14671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14672 ac_cv_c_bigendian=yes
14674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14675 if test "$ac_cv_c_bigendian" = unknown; then
14676 ac_cv_c_bigendian=no
14677 else
14678 # finding both strings is unlikely to happen, but who knows?
14679 ac_cv_c_bigendian=unknown
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 else
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 $ac_includes_default
14689 main ()
14692 /* Are we little or big endian? From Harbison&Steele. */
14693 union
14695 long int l;
14696 char c[sizeof (long int)];
14697 } u;
14698 u.l = 1;
14699 return u.c[sizeof (long int) - 1] == 1;
14702 return 0;
14704 _ACEOF
14705 if ac_fn_c_try_run "$LINENO"; then :
14706 ac_cv_c_bigendian=no
14707 else
14708 ac_cv_c_bigendian=yes
14710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14711 conftest.$ac_objext conftest.beam conftest.$ac_ext
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14717 $as_echo "$ac_cv_c_bigendian" >&6; }
14718 case $ac_cv_c_bigendian in #(
14719 yes)
14720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14721 ;; #(
14723 ;; #(
14724 universal)
14726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14728 ;; #(
14730 as_fn_error "unknown endianness
14731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14732 esac
14737 # Check whether --with-system-libunwind was given.
14738 if test "${with_system_libunwind+set}" = set; then :
14739 withval=$with_system_libunwind;
14742 # If system-libunwind was not specifically set, pick a default setting.
14743 if test x$with_system_libunwind = x; then
14744 case ${target} in
14745 ia64-*-hpux*) with_system_libunwind=yes ;;
14746 *) with_system_libunwind=no ;;
14747 esac
14749 # Based on system-libunwind and target, do we have ipinfo?
14750 if test x$with_system_libunwind = xyes; then
14751 case ${target} in
14752 ia64-*-*) have_unwind_getipinfo=no ;;
14753 *) have_unwind_getipinfo=yes ;;
14754 esac
14755 else
14756 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14758 case ${target} in
14759 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14760 *) have_unwind_getipinfo=yes ;;
14761 esac
14765 if test x$have_unwind_getipinfo = xyes; then
14767 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14772 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.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
14773 do :
14774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14776 eval as_val=\$$as_ac_Header
14777 if test "x$as_val" = x""yes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14780 _ACEOF
14784 done
14787 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
14788 do :
14789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14791 #include <sys/socket.h>
14792 #endif
14795 eval as_val=\$$as_ac_Header
14796 if test "x$as_val" = x""yes; then :
14797 cat >>confdefs.h <<_ACEOF
14798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14799 _ACEOF
14803 done
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14807 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14808 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 CFLAGS_hold=$CFLAGS
14812 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14816 #include <sys/types.h>
14817 #ifdef HAVE_LINUX_FILTER_H
14818 #include <linux/filter.h>
14819 #endif
14820 #include <ustat.h>
14822 _ACEOF
14823 if ac_fn_c_try_compile "$LINENO"; then :
14824 libgo_cv_c_ustat_h=yes
14825 else
14826 libgo_cv_c_ustat_h=no
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 CFLAGS=$CFLAGS_hold
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14832 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14833 if test $libgo_cv_c_ustat_h = yes; then
14835 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14839 if test "$ac_cv_header_sys_mman_h" = yes; then
14840 HAVE_SYS_MMAN_H_TRUE=
14841 HAVE_SYS_MMAN_H_FALSE='#'
14842 else
14843 HAVE_SYS_MMAN_H_TRUE='#'
14844 HAVE_SYS_MMAN_H_FALSE=
14848 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14849 do :
14850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14851 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14852 eval as_val=\$$as_ac_var
14853 if test "x$as_val" = x""yes; then :
14854 cat >>confdefs.h <<_ACEOF
14855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14856 _ACEOF
14859 done
14861 if test "$ac_cv_func_strerror_r" = yes; then
14862 HAVE_STRERROR_R_TRUE=
14863 HAVE_STRERROR_R_FALSE='#'
14864 else
14865 HAVE_STRERROR_R_TRUE='#'
14866 HAVE_STRERROR_R_FALSE=
14869 if test "$ac_cv_func_wait4" = yes; then
14870 HAVE_WAIT4_TRUE=
14871 HAVE_WAIT4_FALSE='#'
14872 else
14873 HAVE_WAIT4_TRUE='#'
14874 HAVE_WAIT4_FALSE=
14878 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
14879 do :
14880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14882 eval as_val=\$$as_ac_var
14883 if test "x$as_val" = x""yes; then :
14884 cat >>confdefs.h <<_ACEOF
14885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14886 _ACEOF
14889 done
14891 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14892 if test "x$ac_cv_type_off_t" = x""yes; then :
14894 else
14896 cat >>confdefs.h <<_ACEOF
14897 #define off_t long int
14898 _ACEOF
14902 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14903 if test "x$ac_cv_type_loff_t" = x""yes; then :
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE_LOFF_T 1
14907 _ACEOF
14913 LIBS_hold="$LIBS"
14914 LIBS="$LIBS -lm"
14915 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14916 do :
14917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14919 eval as_val=\$$as_ac_var
14920 if test "x$as_val" = x""yes; then :
14921 cat >>confdefs.h <<_ACEOF
14922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14923 _ACEOF
14926 done
14928 LIBS="$LIBS_hold"
14930 CFLAGS_hold="$CFLAGS"
14931 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14932 LIBS_hold="$LIBS"
14933 LIBS="$LIBS $PTHREAD_LIBS"
14934 for ac_func in sem_timedwait
14935 do :
14936 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14937 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14938 cat >>confdefs.h <<_ACEOF
14939 #define HAVE_SEM_TIMEDWAIT 1
14940 _ACEOF
14943 done
14945 CFLAGS="$CFLAGS_hold"
14946 LIBS="$LIBS_hold"
14948 LIBS_hold="$LIBS"
14949 LIBS="$LIBS $MATH_LIBS"
14950 for ac_func in matherr
14951 do :
14952 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14953 if test "x$ac_cv_func_matherr" = x""yes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_MATHERR 1
14956 _ACEOF
14959 done
14961 LIBS="$LIBS_hold"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14964 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14965 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14971 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14972 uint32 i;
14973 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14975 _ACEOF
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14978 else
14979 libgo_cv_func___sync_bool_compare_and_swap_4=no
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14985 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14986 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14988 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14993 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14994 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15001 uint64 i;
15002 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15007 else
15008 libgo_cv_func___sync_bool_compare_and_swap_8=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15014 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15015 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15017 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15022 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
15023 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 typedef unsigned int uint32 __attribute__ ((mode (SI)));
15030 uint32 i;
15031 int main() { return __sync_fetch_and_add (&i, 1); }
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"; then :
15035 libgo_cv_func___sync_fetch_and_add_4=yes
15036 else
15037 libgo_cv_func___sync_fetch_and_add_4=no
15039 rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15043 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15044 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15046 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15051 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
15052 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15058 typedef unsigned int uint64 __attribute__ ((mode (DI)));
15059 uint64 i;
15060 int main() { return __sync_add_and_fetch (&i, 1); }
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 libgo_cv_func___sync_add_and_fetch_8=yes
15065 else
15066 libgo_cv_func___sync_add_and_fetch_8=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15072 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15073 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15075 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15080 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15081 if test "${libgo_cv_c_stringops+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 CFLAGS_hold=$CFLAGS
15085 CFLAGS="$CFLAGS -minline-all-stringops"
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 int i;
15089 _ACEOF
15090 if ac_fn_c_try_compile "$LINENO"; then :
15091 libgo_cv_c_stringops=yes
15092 else
15093 libgo_cv_c_stringops=no
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 CFLAGS=$CFLAGS_hold
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15099 $as_echo "$libgo_cv_c_stringops" >&6; }
15100 STRINGOPS_FLAG=
15101 if test "$libgo_cv_c_stringops" = yes; then
15102 STRINGOPS_FLAG=-minline-all-stringops
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15107 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15108 if test "${libgo_cv_c_fancymath+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 CFLAGS_hold=$CFLAGS
15112 CFLAGS="$CFLAGS -mfancy-math-387"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 int i;
15116 _ACEOF
15117 if ac_fn_c_try_compile "$LINENO"; then :
15118 libgo_cv_c_fancymath=yes
15119 else
15120 libgo_cv_c_fancymath=no
15122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15123 CFLAGS=$CFLAGS_hold
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15126 $as_echo "$libgo_cv_c_fancymath" >&6; }
15127 MATH_FLAG=
15128 if test "$libgo_cv_c_fancymath" = yes; then
15129 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15130 else
15131 MATH_FLAG="-ffp-contract=off"
15135 CFLAGS_hold=$CFLAGS
15136 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15137 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15138 if test "x$ac_cv_type_off64_t" = x""yes; then :
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_OFF64_T 1
15142 _ACEOF
15147 CFLAGS=$CFLAGS_hold
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15150 $as_echo_n "checking epoll_event size... " >&6; }
15151 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15156 else
15157 libgo_cv_c_epoll_event_size=0
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15162 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15163 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15167 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15168 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15169 $as_echo_n "(cached) " >&6
15170 else
15171 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15172 #include <sys/epoll.h>"; then :
15174 else
15175 libgo_cv_c_epoll_event_fd_offset=0
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15180 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15181 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 #include <sys/stat.h>
15188 _ACEOF
15189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15190 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15191 have_stat_timespec=yes
15192 else
15193 have_stat_timespec=no
15195 rm -f conftest*
15197 if test $have_stat_timespec = yes; then
15198 HAVE_STAT_TIMESPEC_TRUE=
15199 HAVE_STAT_TIMESPEC_FALSE='#'
15200 else
15201 HAVE_STAT_TIMESPEC_TRUE='#'
15202 HAVE_STAT_TIMESPEC_FALSE=
15206 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15208 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15209 libgo_has_struct_exception=yes
15210 else
15211 libgo_has_struct_exception=no
15214 if test "$libgo_has_struct_exception" = "yes"; then
15216 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15221 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15222 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225 CFLAGS_hold="$CFLAGS"
15226 CFLAGS="$PTHREAD_CFLAGS"
15227 LIBS_hold="$LIBS"
15228 LIBS="$LIBS $PTHREAD_LIBS"
15229 # The cast to long int works around a bug in the HP C Compiler
15230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15232 # This bug is HP SR number 8606223364.
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15234 $as_echo_n "checking size of void *... " >&6; }
15235 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15240 else
15241 if test "$ac_cv_type_void_p" = yes; then
15242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15244 { as_fn_set_status 77
15245 as_fn_error "cannot compute sizeof (void *)
15246 See \`config.log' for more details." "$LINENO" 5; }; }
15247 else
15248 ac_cv_sizeof_void_p=0
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15254 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15258 cat >>confdefs.h <<_ACEOF
15259 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15260 _ACEOF
15263 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15264 if test "$cross_compiling" = yes; then :
15265 case "$target:$ptr_type_size" in
15266 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15267 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15269 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15270 esac
15272 else
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 #include <pthread.h>
15277 #include <stdlib.h>
15278 #include <ucontext.h>
15279 #include <unistd.h>
15281 __thread int tls;
15283 static char stack[10 * 1024 * 1024];
15284 static ucontext_t c;
15286 /* Called via makecontext/setcontext. */
15288 static void
15289 cfn (void)
15291 exit (tls);
15294 /* Called via pthread_create. */
15296 static void *
15297 tfn (void *dummy)
15299 /* The thread should still see this value after calling
15300 setcontext. */
15301 tls = 0;
15303 setcontext (&c);
15305 /* The call to setcontext should not return. */
15306 abort ();
15310 main ()
15312 pthread_t tid;
15314 /* The thread should not see this value. */
15315 tls = 1;
15317 if (getcontext (&c) < 0)
15318 abort ();
15320 c.uc_stack.ss_sp = stack;
15321 #ifdef MAKECONTEXT_STACK_TOP
15322 c.uc_stack.ss_sp += sizeof stack;
15323 #endif
15324 c.uc_stack.ss_flags = 0;
15325 c.uc_stack.ss_size = sizeof stack;
15326 c.uc_link = NULL;
15327 makecontext (&c, cfn, 0);
15329 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15330 abort ();
15332 if (pthread_join (tid, NULL) != 0)
15333 abort ();
15335 /* The thread should have called exit. */
15336 abort ();
15339 _ACEOF
15340 if ac_fn_c_try_run "$LINENO"; then :
15341 libgo_cv_lib_setcontext_clobbers_tls=no
15342 else
15343 libgo_cv_lib_setcontext_clobbers_tls=yes
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15346 conftest.$ac_objext conftest.beam conftest.$ac_ext
15349 CFLAGS="$CFLAGS_hold"
15350 LIBS="$LIBS_hold"
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15354 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15355 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15357 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15362 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15363 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15367 libgo_cv_ro_eh_frame=no
15368 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15369 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15370 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15371 libgo_cv_ro_eh_frame=yes
15372 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15373 | grep -v '#write' > /dev/null; then
15374 libgo_cv_ro_eh_frame=yes
15377 rm -f conftest.*
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15381 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15382 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15384 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15386 else
15388 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15393 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15394 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 CFLAGS_hold=$CFLAGS
15398 CFLAGS="$CFLAGS -Qunused-arguments"
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401 int i;
15402 _ACEOF
15403 if ac_fn_c_try_compile "$LINENO"; then :
15404 libgo_cv_c_unused_arguments=yes
15405 else
15406 libgo_cv_c_unused_arguments=no
15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409 CFLAGS=$CFLAGS_hold
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15412 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15415 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15416 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15420 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15421 CFLAGS_hold=$CFLAGS
15422 if test "$libgo_cv_c_unused_arguments" = yes; then
15423 CFLAGS="$CFLAGS -Qunused-arguments"
15425 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15426 libgo_cv_as_comdat_gnu=yes
15427 else
15428 libgo_cv_as_comdat_gnu=no
15430 CFLAGS=$CFLAGS_hold
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15434 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15435 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15437 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15442 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15443 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15447 libgo_cv_as_x86_pcrel=yes
15448 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15449 CFLAGS_hold=$CFLAGS
15450 if test "$libgo_cv_c_unused_arguments" = yes; then
15451 CFLAGS="$CFLAGS -Qunused-arguments"
15453 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15454 libgo_cv_as_x86_pcrel=no
15456 CFLAGS=$CFLAGS_hold
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15460 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15461 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15463 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15468 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15469 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15473 libgo_cv_as_x86_64_unwind_section_type=yes
15474 echo '.section .eh_frame,"a",@unwind' > conftest.s
15475 CFLAGS_hold=$CFLAGS
15476 if test "$libgo_cv_c_unused_arguments" = yes; then
15477 CFLAGS="$CFLAGS -Qunused-arguments"
15479 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15480 libgo_cv_as_x86_64_unwind_section_type=no
15482 CFLAGS=$CFLAGS_hold
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15486 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15487 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15489 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15494 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15495 if test "${libgo_cv_as_x86_aes+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15499 libgo_cv_as_x86_aes=yes
15500 echo 'aesenc %xmm0, %xmm1' > conftest.s
15501 CFLAGS_hold=$CFLAGS
15502 if test "$libgo_cv_c_unused_arguments" = yes; then
15503 CFLAGS="$CFLAGS -Qunused-arguments"
15505 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15506 libgo_cv_as_x86_aes=no
15508 CFLAGS=$CFLAGS_hold
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15512 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15513 if test "x$libgo_cv_as_x86_aes" = xyes; then
15515 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15519 cat >confcache <<\_ACEOF
15520 # This file is a shell script that caches the results of configure
15521 # tests run on this system so they can be shared between configure
15522 # scripts and configure runs, see configure's option --config-cache.
15523 # It is not useful on other systems. If it contains results you don't
15524 # want to keep, you may remove or edit it.
15526 # config.status only pays attention to the cache file if you give it
15527 # the --recheck option to rerun configure.
15529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15531 # following values.
15533 _ACEOF
15535 # The following way of writing the cache mishandles newlines in values,
15536 # but we know of no workaround that is simple, portable, and efficient.
15537 # So, we kill variables containing newlines.
15538 # Ultrix sh set writes to stderr and can't be redirected directly,
15539 # and sets the high bit in the cache file unless we assign to the vars.
15541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15542 eval ac_val=\$$ac_var
15543 case $ac_val in #(
15544 *${as_nl}*)
15545 case $ac_var in #(
15546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15548 esac
15549 case $ac_var in #(
15550 _ | IFS | as_nl) ;; #(
15551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15552 *) { eval $ac_var=; unset $ac_var;} ;;
15553 esac ;;
15554 esac
15555 done
15557 (set) 2>&1 |
15558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15559 *${as_nl}ac_space=\ *)
15560 # `set' does not quote correctly, so add quotes: double-quote
15561 # substitution turns \\\\ into \\, and sed turns \\ into \.
15562 sed -n \
15563 "s/'/'\\\\''/g;
15564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15565 ;; #(
15567 # `set' quotes correctly as required by POSIX, so do not add quotes.
15568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15570 esac |
15571 sort
15573 sed '
15574 /^ac_cv_env_/b end
15575 t clear
15576 :clear
15577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15578 t end
15579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15580 :end' >>confcache
15581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15582 if test -w "$cache_file"; then
15583 test "x$cache_file" != "x/dev/null" &&
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15585 $as_echo "$as_me: updating cache $cache_file" >&6;}
15586 cat confcache >$cache_file
15587 else
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15592 rm -f confcache
15594 if test ${multilib} = yes; then
15595 multilib_arg="--enable-multilib"
15596 else
15597 multilib_arg=
15600 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15603 ac_config_commands="$ac_config_commands default"
15606 cat >confcache <<\_ACEOF
15607 # This file is a shell script that caches the results of configure
15608 # tests run on this system so they can be shared between configure
15609 # scripts and configure runs, see configure's option --config-cache.
15610 # It is not useful on other systems. If it contains results you don't
15611 # want to keep, you may remove or edit it.
15613 # config.status only pays attention to the cache file if you give it
15614 # the --recheck option to rerun configure.
15616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15618 # following values.
15620 _ACEOF
15622 # The following way of writing the cache mishandles newlines in values,
15623 # but we know of no workaround that is simple, portable, and efficient.
15624 # So, we kill variables containing newlines.
15625 # Ultrix sh set writes to stderr and can't be redirected directly,
15626 # and sets the high bit in the cache file unless we assign to the vars.
15628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15629 eval ac_val=\$$ac_var
15630 case $ac_val in #(
15631 *${as_nl}*)
15632 case $ac_var in #(
15633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15635 esac
15636 case $ac_var in #(
15637 _ | IFS | as_nl) ;; #(
15638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15639 *) { eval $ac_var=; unset $ac_var;} ;;
15640 esac ;;
15641 esac
15642 done
15644 (set) 2>&1 |
15645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15646 *${as_nl}ac_space=\ *)
15647 # `set' does not quote correctly, so add quotes: double-quote
15648 # substitution turns \\\\ into \\, and sed turns \\ into \.
15649 sed -n \
15650 "s/'/'\\\\''/g;
15651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15652 ;; #(
15654 # `set' quotes correctly as required by POSIX, so do not add quotes.
15655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15657 esac |
15658 sort
15660 sed '
15661 /^ac_cv_env_/b end
15662 t clear
15663 :clear
15664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15665 t end
15666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15667 :end' >>confcache
15668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15669 if test -w "$cache_file"; then
15670 test "x$cache_file" != "x/dev/null" &&
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15672 $as_echo "$as_me: updating cache $cache_file" >&6;}
15673 cat confcache >$cache_file
15674 else
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15679 rm -f confcache
15681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15682 # Let make expand exec_prefix.
15683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15685 DEFS=-DHAVE_CONFIG_H
15687 ac_libobjs=
15688 ac_ltlibobjs=
15689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15690 # 1. Remove the extension, and $U if already installed.
15691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15694 # will be set to the directory where LIBOBJS objects are built.
15695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15697 done
15698 LIBOBJS=$ac_libobjs
15700 LTLIBOBJS=$ac_ltlibobjs
15703 if test -n "$EXEEXT"; then
15704 am__EXEEXT_TRUE=
15705 am__EXEEXT_FALSE='#'
15706 else
15707 am__EXEEXT_TRUE='#'
15708 am__EXEEXT_FALSE=
15711 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15712 as_fn_error "conditional \"AMDEP\" was never defined.
15713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15716 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15720 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15724 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15728 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15732 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15736 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15740 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15744 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15748 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15752 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15756 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15760 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15764 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
15768 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
15769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15772 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15776 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15780 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15781 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15784 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15785 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15788 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15789 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15792 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15793 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797 : ${CONFIG_STATUS=./config.status}
15798 ac_write_fail=0
15799 ac_clean_files_save=$ac_clean_files
15800 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15802 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15803 as_write_fail=0
15804 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15805 #! $SHELL
15806 # Generated by $as_me.
15807 # Run this file to recreate the current configuration.
15808 # Compiler output produced by configure, useful for debugging
15809 # configure, is in config.log if it exists.
15811 debug=false
15812 ac_cs_recheck=false
15813 ac_cs_silent=false
15815 SHELL=\${CONFIG_SHELL-$SHELL}
15816 export SHELL
15817 _ASEOF
15818 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15819 ## -------------------- ##
15820 ## M4sh Initialization. ##
15821 ## -------------------- ##
15823 # Be more Bourne compatible
15824 DUALCASE=1; export DUALCASE # for MKS sh
15825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15826 emulate sh
15827 NULLCMD=:
15828 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15829 # is contrary to our usage. Disable this feature.
15830 alias -g '${1+"$@"}'='"$@"'
15831 setopt NO_GLOB_SUBST
15832 else
15833 case `(set -o) 2>/dev/null` in #(
15834 *posix*) :
15835 set -o posix ;; #(
15836 *) :
15838 esac
15842 as_nl='
15844 export as_nl
15845 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15846 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15847 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15849 # Prefer a ksh shell builtin over an external printf program on Solaris,
15850 # but without wasting forks for bash or zsh.
15851 if test -z "$BASH_VERSION$ZSH_VERSION" \
15852 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15853 as_echo='print -r --'
15854 as_echo_n='print -rn --'
15855 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15856 as_echo='printf %s\n'
15857 as_echo_n='printf %s'
15858 else
15859 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15860 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15861 as_echo_n='/usr/ucb/echo -n'
15862 else
15863 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15864 as_echo_n_body='eval
15865 arg=$1;
15866 case $arg in #(
15867 *"$as_nl"*)
15868 expr "X$arg" : "X\\(.*\\)$as_nl";
15869 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15870 esac;
15871 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15873 export as_echo_n_body
15874 as_echo_n='sh -c $as_echo_n_body as_echo'
15876 export as_echo_body
15877 as_echo='sh -c $as_echo_body as_echo'
15880 # The user is always right.
15881 if test "${PATH_SEPARATOR+set}" != set; then
15882 PATH_SEPARATOR=:
15883 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15884 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15885 PATH_SEPARATOR=';'
15890 # IFS
15891 # We need space, tab and new line, in precisely that order. Quoting is
15892 # there to prevent editors from complaining about space-tab.
15893 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15894 # splitting by setting IFS to empty value.)
15895 IFS=" "" $as_nl"
15897 # Find who we are. Look in the path if we contain no directory separator.
15898 case $0 in #((
15899 *[\\/]* ) as_myself=$0 ;;
15900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15901 for as_dir in $PATH
15903 IFS=$as_save_IFS
15904 test -z "$as_dir" && as_dir=.
15905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15906 done
15907 IFS=$as_save_IFS
15910 esac
15911 # We did not find ourselves, most probably we were run as `sh COMMAND'
15912 # in which case we are not to be found in the path.
15913 if test "x$as_myself" = x; then
15914 as_myself=$0
15916 if test ! -f "$as_myself"; then
15917 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15918 exit 1
15921 # Unset variables that we do not need and which cause bugs (e.g. in
15922 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15923 # suppresses any "Segmentation fault" message there. '((' could
15924 # trigger a bug in pdksh 5.2.14.
15925 for as_var in BASH_ENV ENV MAIL MAILPATH
15926 do eval test x\${$as_var+set} = xset \
15927 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15928 done
15929 PS1='$ '
15930 PS2='> '
15931 PS4='+ '
15933 # NLS nuisances.
15934 LC_ALL=C
15935 export LC_ALL
15936 LANGUAGE=C
15937 export LANGUAGE
15939 # CDPATH.
15940 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15943 # as_fn_error ERROR [LINENO LOG_FD]
15944 # ---------------------------------
15945 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15946 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15947 # script with status $?, using 1 if that was 0.
15948 as_fn_error ()
15950 as_status=$?; test $as_status -eq 0 && as_status=1
15951 if test "$3"; then
15952 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15953 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15955 $as_echo "$as_me: error: $1" >&2
15956 as_fn_exit $as_status
15957 } # as_fn_error
15960 # as_fn_set_status STATUS
15961 # -----------------------
15962 # Set $? to STATUS, without forking.
15963 as_fn_set_status ()
15965 return $1
15966 } # as_fn_set_status
15968 # as_fn_exit STATUS
15969 # -----------------
15970 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15971 as_fn_exit ()
15973 set +e
15974 as_fn_set_status $1
15975 exit $1
15976 } # as_fn_exit
15978 # as_fn_unset VAR
15979 # ---------------
15980 # Portably unset VAR.
15981 as_fn_unset ()
15983 { eval $1=; unset $1;}
15985 as_unset=as_fn_unset
15986 # as_fn_append VAR VALUE
15987 # ----------------------
15988 # Append the text in VALUE to the end of the definition contained in VAR. Take
15989 # advantage of any shell optimizations that allow amortized linear growth over
15990 # repeated appends, instead of the typical quadratic growth present in naive
15991 # implementations.
15992 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15993 eval 'as_fn_append ()
15995 eval $1+=\$2
15997 else
15998 as_fn_append ()
16000 eval $1=\$$1\$2
16002 fi # as_fn_append
16004 # as_fn_arith ARG...
16005 # ------------------
16006 # Perform arithmetic evaluation on the ARGs, and store the result in the
16007 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16008 # must be portable across $(()) and expr.
16009 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16010 eval 'as_fn_arith ()
16012 as_val=$(( $* ))
16014 else
16015 as_fn_arith ()
16017 as_val=`expr "$@" || test $? -eq 1`
16019 fi # as_fn_arith
16022 if expr a : '\(a\)' >/dev/null 2>&1 &&
16023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16024 as_expr=expr
16025 else
16026 as_expr=false
16029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16030 as_basename=basename
16031 else
16032 as_basename=false
16035 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16036 as_dirname=dirname
16037 else
16038 as_dirname=false
16041 as_me=`$as_basename -- "$0" ||
16042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16043 X"$0" : 'X\(//\)$' \| \
16044 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16045 $as_echo X/"$0" |
16046 sed '/^.*\/\([^/][^/]*\)\/*$/{
16047 s//\1/
16050 /^X\/\(\/\/\)$/{
16051 s//\1/
16054 /^X\/\(\/\).*/{
16055 s//\1/
16058 s/.*/./; q'`
16060 # Avoid depending upon Character Ranges.
16061 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16062 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16063 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16064 as_cr_digits='0123456789'
16065 as_cr_alnum=$as_cr_Letters$as_cr_digits
16067 ECHO_C= ECHO_N= ECHO_T=
16068 case `echo -n x` in #(((((
16069 -n*)
16070 case `echo 'xy\c'` in
16071 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16072 xy) ECHO_C='\c';;
16073 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16074 ECHO_T=' ';;
16075 esac;;
16077 ECHO_N='-n';;
16078 esac
16080 rm -f conf$$ conf$$.exe conf$$.file
16081 if test -d conf$$.dir; then
16082 rm -f conf$$.dir/conf$$.file
16083 else
16084 rm -f conf$$.dir
16085 mkdir conf$$.dir 2>/dev/null
16087 if (echo >conf$$.file) 2>/dev/null; then
16088 if ln -s conf$$.file conf$$ 2>/dev/null; then
16089 as_ln_s='ln -s'
16090 # ... but there are two gotchas:
16091 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16092 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16093 # In both cases, we have to default to `cp -p'.
16094 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16095 as_ln_s='cp -p'
16096 elif ln conf$$.file conf$$ 2>/dev/null; then
16097 as_ln_s=ln
16098 else
16099 as_ln_s='cp -p'
16101 else
16102 as_ln_s='cp -p'
16104 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16105 rmdir conf$$.dir 2>/dev/null
16108 # as_fn_mkdir_p
16109 # -------------
16110 # Create "$as_dir" as a directory, including parents if necessary.
16111 as_fn_mkdir_p ()
16114 case $as_dir in #(
16115 -*) as_dir=./$as_dir;;
16116 esac
16117 test -d "$as_dir" || eval $as_mkdir_p || {
16118 as_dirs=
16119 while :; do
16120 case $as_dir in #(
16121 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16122 *) as_qdir=$as_dir;;
16123 esac
16124 as_dirs="'$as_qdir' $as_dirs"
16125 as_dir=`$as_dirname -- "$as_dir" ||
16126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$as_dir" : 'X\(//\)[^/]' \| \
16128 X"$as_dir" : 'X\(//\)$' \| \
16129 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16130 $as_echo X"$as_dir" |
16131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16132 s//\1/
16135 /^X\(\/\/\)[^/].*/{
16136 s//\1/
16139 /^X\(\/\/\)$/{
16140 s//\1/
16143 /^X\(\/\).*/{
16144 s//\1/
16147 s/.*/./; q'`
16148 test -d "$as_dir" && break
16149 done
16150 test -z "$as_dirs" || eval "mkdir $as_dirs"
16151 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16154 } # as_fn_mkdir_p
16155 if mkdir -p . 2>/dev/null; then
16156 as_mkdir_p='mkdir -p "$as_dir"'
16157 else
16158 test -d ./-p && rmdir ./-p
16159 as_mkdir_p=false
16162 if test -x / >/dev/null 2>&1; then
16163 as_test_x='test -x'
16164 else
16165 if ls -dL / >/dev/null 2>&1; then
16166 as_ls_L_option=L
16167 else
16168 as_ls_L_option=
16170 as_test_x='
16171 eval sh -c '\''
16172 if test -d "$1"; then
16173 test -d "$1/.";
16174 else
16175 case $1 in #(
16176 -*)set "./$1";;
16177 esac;
16178 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16179 ???[sx]*):;;*)false;;esac;fi
16180 '\'' sh
16183 as_executable_p=$as_test_x
16185 # Sed expression to map a string onto a valid CPP name.
16186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16188 # Sed expression to map a string onto a valid variable name.
16189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16192 exec 6>&1
16193 ## ----------------------------------- ##
16194 ## Main body of $CONFIG_STATUS script. ##
16195 ## ----------------------------------- ##
16196 _ASEOF
16197 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 # Save the log message, to keep $0 and so on meaningful, and to
16201 # report actual input values of CONFIG_FILES etc. instead of their
16202 # values after options handling.
16203 ac_log="
16204 This file was extended by package-unused $as_me version-unused, which was
16205 generated by GNU Autoconf 2.64. Invocation command line was
16207 CONFIG_FILES = $CONFIG_FILES
16208 CONFIG_HEADERS = $CONFIG_HEADERS
16209 CONFIG_LINKS = $CONFIG_LINKS
16210 CONFIG_COMMANDS = $CONFIG_COMMANDS
16211 $ $0 $@
16213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16216 _ACEOF
16218 case $ac_config_files in *"
16219 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16220 esac
16222 case $ac_config_headers in *"
16223 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16224 esac
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 # Files that config.status was made for.
16229 config_files="$ac_config_files"
16230 config_headers="$ac_config_headers"
16231 config_commands="$ac_config_commands"
16233 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 ac_cs_usage="\
16237 \`$as_me' instantiates files and other configuration actions
16238 from templates according to the current configuration. Unless the files
16239 and actions are specified as TAGs, all are instantiated by default.
16241 Usage: $0 [OPTION]... [TAG]...
16243 -h, --help print this help, then exit
16244 -V, --version print version number and configuration settings, then exit
16245 -q, --quiet, --silent
16246 do not print progress messages
16247 -d, --debug don't remove temporary files
16248 --recheck update $as_me by reconfiguring in the same conditions
16249 --file=FILE[:TEMPLATE]
16250 instantiate the configuration file FILE
16251 --header=FILE[:TEMPLATE]
16252 instantiate the configuration header FILE
16254 Configuration files:
16255 $config_files
16257 Configuration headers:
16258 $config_headers
16260 Configuration commands:
16261 $config_commands
16263 Report bugs to the package provider."
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 ac_cs_version="\\
16268 package-unused config.status version-unused
16269 configured by $0, generated by GNU Autoconf 2.64,
16270 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16272 Copyright (C) 2009 Free Software Foundation, Inc.
16273 This config.status script is free software; the Free Software Foundation
16274 gives unlimited permission to copy, distribute and modify it."
16276 ac_pwd='$ac_pwd'
16277 srcdir='$srcdir'
16278 INSTALL='$INSTALL'
16279 MKDIR_P='$MKDIR_P'
16280 AWK='$AWK'
16281 test -n "\$AWK" || AWK=awk
16282 _ACEOF
16284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285 # The default lists apply if the user does not specify any file.
16286 ac_need_defaults=:
16287 while test $# != 0
16289 case $1 in
16290 --*=*)
16291 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16292 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16293 ac_shift=:
16296 ac_option=$1
16297 ac_optarg=$2
16298 ac_shift=shift
16300 esac
16302 case $ac_option in
16303 # Handling of the options.
16304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16305 ac_cs_recheck=: ;;
16306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16307 $as_echo "$ac_cs_version"; exit ;;
16308 --debug | --debu | --deb | --de | --d | -d )
16309 debug=: ;;
16310 --file | --fil | --fi | --f )
16311 $ac_shift
16312 case $ac_optarg in
16313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16314 esac
16315 as_fn_append CONFIG_FILES " '$ac_optarg'"
16316 ac_need_defaults=false;;
16317 --header | --heade | --head | --hea )
16318 $ac_shift
16319 case $ac_optarg in
16320 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16321 esac
16322 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16323 ac_need_defaults=false;;
16324 --he | --h)
16325 # Conflict between --help and --header
16326 as_fn_error "ambiguous option: \`$1'
16327 Try \`$0 --help' for more information.";;
16328 --help | --hel | -h )
16329 $as_echo "$ac_cs_usage"; exit ;;
16330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16332 ac_cs_silent=: ;;
16334 # This is an error.
16335 -*) as_fn_error "unrecognized option: \`$1'
16336 Try \`$0 --help' for more information." ;;
16338 *) as_fn_append ac_config_targets " $1"
16339 ac_need_defaults=false ;;
16341 esac
16342 shift
16343 done
16345 ac_configure_extra_args=
16347 if $ac_cs_silent; then
16348 exec 6>/dev/null
16349 ac_configure_extra_args="$ac_configure_extra_args --silent"
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16354 if \$ac_cs_recheck; then
16355 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16356 shift
16357 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16358 CONFIG_SHELL='$SHELL'
16359 export CONFIG_SHELL
16360 exec "\$@"
16363 _ACEOF
16364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16365 exec 5>>config.log
16367 echo
16368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16369 ## Running $as_me. ##
16370 _ASBOX
16371 $as_echo "$ac_log"
16372 } >&5
16374 _ACEOF
16375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377 # INIT-COMMANDS
16380 srcdir="$srcdir"
16381 host="$host"
16382 target="$target"
16383 with_multisubdir="$with_multisubdir"
16384 with_multisrctop="$with_multisrctop"
16385 with_target_subdir="$with_target_subdir"
16386 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16387 multi_basedir="$multi_basedir"
16388 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16389 CC="$CC"
16390 CXX="$CXX"
16391 GFORTRAN="$GFORTRAN"
16392 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16395 # The HP-UX ksh and POSIX shell print the target directory to stdout
16396 # if CDPATH is set.
16397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16399 sed_quote_subst='$sed_quote_subst'
16400 double_quote_subst='$double_quote_subst'
16401 delay_variable_subst='$delay_variable_subst'
16402 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16403 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16404 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16405 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16406 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16407 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16408 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16409 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16410 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16411 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16412 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16413 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16414 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16415 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16416 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16417 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16418 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16419 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16420 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16421 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16422 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16423 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16424 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16425 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16426 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16427 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16428 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16429 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16430 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16431 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16432 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16433 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16434 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16435 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16436 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16437 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16438 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16439 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16440 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16441 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16442 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16443 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16444 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16445 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16446 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16447 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16448 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16449 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16450 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"`'
16451 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16452 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16453 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16454 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16455 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16456 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16457 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16458 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16459 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16460 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16461 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16462 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16463 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16464 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16465 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16466 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16467 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16468 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16469 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16470 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16471 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16472 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16473 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16474 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16475 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16476 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16477 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16478 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16479 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16480 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16481 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16482 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16483 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16484 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16485 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16486 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16487 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16488 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16489 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16490 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16491 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16492 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16493 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16494 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16495 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16496 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16497 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16498 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16499 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16500 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16501 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16502 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16503 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16504 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16505 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16506 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16507 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16508 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16509 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16510 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16511 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16512 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16513 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16514 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16515 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16516 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16517 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16518 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16519 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16520 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16521 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16522 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16523 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16524 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16525 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16526 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16527 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16528 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16529 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16530 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16531 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16532 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16533 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16534 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16535 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16536 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16537 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16538 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16539 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16540 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16541 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16542 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16543 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16544 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16545 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16546 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16547 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16548 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16549 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16550 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16551 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16552 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16553 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16554 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16555 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16556 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16557 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16558 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16559 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16560 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16561 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16562 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16563 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16564 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16566 LTCC='$LTCC'
16567 LTCFLAGS='$LTCFLAGS'
16568 compiler='$compiler_DEFAULT'
16570 # A function that is used when there is no print builtin or printf.
16571 func_fallback_echo ()
16573 eval 'cat <<_LTECHO_EOF
16575 _LTECHO_EOF'
16578 # Quote evaled strings.
16579 for var in SED \
16580 GREP \
16581 EGREP \
16582 FGREP \
16583 SHELL \
16584 ECHO \
16585 LD \
16586 NM \
16587 LN_S \
16588 lt_SP2NL \
16589 lt_NL2SP \
16590 reload_flag \
16591 OBJDUMP \
16592 deplibs_check_method \
16593 file_magic_cmd \
16594 AR \
16595 AR_FLAGS \
16596 STRIP \
16597 RANLIB \
16598 CC \
16599 CFLAGS \
16600 compiler \
16601 lt_cv_sys_global_symbol_pipe \
16602 lt_cv_sys_global_symbol_to_cdecl \
16603 lt_cv_sys_global_symbol_to_c_name_address \
16604 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16605 lt_prog_compiler_no_builtin_flag \
16606 lt_prog_compiler_wl \
16607 lt_prog_compiler_pic \
16608 lt_prog_compiler_static \
16609 lt_cv_prog_compiler_c_o \
16610 need_locks \
16611 DSYMUTIL \
16612 NMEDIT \
16613 LIPO \
16614 OTOOL \
16615 OTOOL64 \
16616 shrext_cmds \
16617 export_dynamic_flag_spec \
16618 whole_archive_flag_spec \
16619 compiler_needs_object \
16620 with_gnu_ld \
16621 allow_undefined_flag \
16622 no_undefined_flag \
16623 hardcode_libdir_flag_spec \
16624 hardcode_libdir_flag_spec_ld \
16625 hardcode_libdir_separator \
16626 fix_srcfile_path \
16627 exclude_expsyms \
16628 include_expsyms \
16629 file_list_spec \
16630 variables_saved_for_relink \
16631 libname_spec \
16632 library_names_spec \
16633 soname_spec \
16634 install_override_mode \
16635 finish_eval \
16636 old_striplib \
16637 striplib \
16638 LD_GO \
16639 reload_flag_GO \
16640 compiler_GO \
16641 lt_prog_compiler_no_builtin_flag_GO \
16642 lt_prog_compiler_wl_GO \
16643 lt_prog_compiler_pic_GO \
16644 lt_prog_compiler_static_GO \
16645 lt_cv_prog_compiler_c_o_GO \
16646 export_dynamic_flag_spec_GO \
16647 whole_archive_flag_spec_GO \
16648 compiler_needs_object_GO \
16649 with_gnu_ld_GO \
16650 allow_undefined_flag_GO \
16651 no_undefined_flag_GO \
16652 hardcode_libdir_flag_spec_GO \
16653 hardcode_libdir_flag_spec_ld_GO \
16654 hardcode_libdir_separator_GO \
16655 fix_srcfile_path_GO \
16656 exclude_expsyms_GO \
16657 include_expsyms_GO \
16658 file_list_spec_GO; do
16659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16660 *[\\\\\\\`\\"\\\$]*)
16661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16666 esac
16667 done
16669 # Double-quote double-evaled strings.
16670 for var in reload_cmds \
16671 old_postinstall_cmds \
16672 old_postuninstall_cmds \
16673 old_archive_cmds \
16674 extract_expsyms_cmds \
16675 old_archive_from_new_cmds \
16676 old_archive_from_expsyms_cmds \
16677 archive_cmds \
16678 archive_expsym_cmds \
16679 module_cmds \
16680 module_expsym_cmds \
16681 export_symbols_cmds \
16682 prelink_cmds \
16683 postinstall_cmds \
16684 postuninstall_cmds \
16685 finish_cmds \
16686 sys_lib_search_path_spec \
16687 sys_lib_dlsearch_path_spec \
16688 reload_cmds_GO \
16689 old_archive_cmds_GO \
16690 old_archive_from_new_cmds_GO \
16691 old_archive_from_expsyms_cmds_GO \
16692 archive_cmds_GO \
16693 archive_expsym_cmds_GO \
16694 module_cmds_GO \
16695 module_expsym_cmds_GO \
16696 export_symbols_cmds_GO \
16697 prelink_cmds_GO; do
16698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16699 *[\\\\\\\`\\"\\\$]*)
16700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16705 esac
16706 done
16708 ac_aux_dir='$ac_aux_dir'
16709 xsi_shell='$xsi_shell'
16710 lt_shell_append='$lt_shell_append'
16712 # See if we are running on zsh, and set the options which allow our
16713 # commands through without removal of \ escapes INIT.
16714 if test -n "\${ZSH_VERSION+set}" ; then
16715 setopt NO_GLOB_SUBST
16719 PACKAGE='$PACKAGE'
16720 VERSION='$VERSION'
16721 TIMESTAMP='$TIMESTAMP'
16722 RM='$RM'
16723 ofile='$ofile'
16730 # Variables needed in config.status (file generation) which aren't already
16731 # passed by autoconf.
16732 SUBDIRS="$SUBDIRS"
16735 _ACEOF
16737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739 # Handling of arguments.
16740 for ac_config_target in $ac_config_targets
16742 case $ac_config_target in
16743 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16744 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16748 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16749 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16751 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16752 esac
16753 done
16756 # If the user did not use the arguments to specify the items to instantiate,
16757 # then the envvar interface is used. Set only those that are not.
16758 # We use the long form for the default assignment because of an extremely
16759 # bizarre bug on SunOS 4.1.3.
16760 if $ac_need_defaults; then
16761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16766 # Have a temporary directory for convenience. Make it in the build tree
16767 # simply because there is no reason against having it here, and in addition,
16768 # creating and moving files from /tmp can sometimes cause problems.
16769 # Hook for its removal unless debugging.
16770 # Note that there is a small window in which the directory will not be cleaned:
16771 # after its creation but before its name has been assigned to `$tmp'.
16772 $debug ||
16774 tmp=
16775 trap 'exit_status=$?
16776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16778 trap 'as_fn_exit 1' 1 2 13 15
16780 # Create a (secure) tmp directory for tmp files.
16783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16784 test -n "$tmp" && test -d "$tmp"
16785 } ||
16787 tmp=./conf$$-$RANDOM
16788 (umask 077 && mkdir "$tmp")
16789 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16791 # Set up the scripts for CONFIG_FILES section.
16792 # No need to generate them if there are no CONFIG_FILES.
16793 # This happens for instance with `./config.status config.h'.
16794 if test -n "$CONFIG_FILES"; then
16797 ac_cr=`echo X | tr X '\015'`
16798 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16799 # But we know of no other shell where ac_cr would be empty at this
16800 # point, so we can use a bashism as a fallback.
16801 if test "x$ac_cr" = x; then
16802 eval ac_cr=\$\'\\r\'
16804 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16805 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16806 ac_cs_awk_cr='\r'
16807 else
16808 ac_cs_awk_cr=$ac_cr
16811 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16812 _ACEOF
16816 echo "cat >conf$$subs.awk <<_ACEOF" &&
16817 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16818 echo "_ACEOF"
16819 } >conf$$subs.sh ||
16820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16822 ac_delim='%!_!# '
16823 for ac_last_try in false false false false false :; do
16824 . ./conf$$subs.sh ||
16825 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16828 if test $ac_delim_n = $ac_delim_num; then
16829 break
16830 elif $ac_last_try; then
16831 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16832 else
16833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16835 done
16836 rm -f conf$$subs.sh
16838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16839 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16840 _ACEOF
16841 sed -n '
16843 s/^/S["/; s/!.*/"]=/
16846 s/^[^!]*!//
16847 :repl
16848 t repl
16849 s/'"$ac_delim"'$//
16850 t delim
16853 s/\(.\{148\}\).*/\1/
16854 t more1
16855 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16858 b repl
16859 :more1
16860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16863 s/.\{148\}//
16864 t nl
16865 :delim
16867 s/\(.\{148\}\).*/\1/
16868 t more2
16869 s/["\\]/\\&/g; s/^/"/; s/$/"/
16872 :more2
16873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16876 s/.\{148\}//
16877 t delim
16878 ' <conf$$subs.awk | sed '
16879 /^[^""]/{
16881 s/\n//
16883 ' >>$CONFIG_STATUS || ac_write_fail=1
16884 rm -f conf$$subs.awk
16885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886 _ACAWK
16887 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16888 for (key in S) S_is_set[key] = 1
16889 FS = "\a"
16893 line = $ 0
16894 nfields = split(line, field, "@")
16895 substed = 0
16896 len = length(field[1])
16897 for (i = 2; i < nfields; i++) {
16898 key = field[i]
16899 keylen = length(key)
16900 if (S_is_set[key]) {
16901 value = S[key]
16902 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16903 len += length(value) + length(field[++i])
16904 substed = 1
16905 } else
16906 len += 1 + keylen
16909 print line
16912 _ACAWK
16913 _ACEOF
16914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16915 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16917 else
16919 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16920 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16921 _ACEOF
16923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16925 # trailing colons and then remove the whole line if VPATH becomes empty
16926 # (actually we leave an empty line to preserve line numbers).
16927 if test "x$srcdir" = x.; then
16928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16929 s/:*\$(srcdir):*/:/
16930 s/:*\${srcdir}:*/:/
16931 s/:*@srcdir@:*/:/
16932 s/^\([^=]*=[ ]*\):*/\1/
16933 s/:*$//
16934 s/^[^=]*=[ ]*$//
16938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16939 fi # test -n "$CONFIG_FILES"
16941 # Set up the scripts for CONFIG_HEADERS section.
16942 # No need to generate them if there are no CONFIG_HEADERS.
16943 # This happens for instance with `./config.status Makefile'.
16944 if test -n "$CONFIG_HEADERS"; then
16945 cat >"$tmp/defines.awk" <<\_ACAWK ||
16946 BEGIN {
16947 _ACEOF
16949 # Transform confdefs.h into an awk script `defines.awk', embedded as
16950 # here-document in config.status, that substitutes the proper values into
16951 # config.h.in to produce config.h.
16953 # Create a delimiter string that does not exist in confdefs.h, to ease
16954 # handling of long lines.
16955 ac_delim='%!_!# '
16956 for ac_last_try in false false :; do
16957 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16958 if test -z "$ac_t"; then
16959 break
16960 elif $ac_last_try; then
16961 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16962 else
16963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16965 done
16967 # For the awk script, D is an array of macro values keyed by name,
16968 # likewise P contains macro parameters if any. Preserve backslash
16969 # newline sequences.
16971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16972 sed -n '
16973 s/.\{148\}/&'"$ac_delim"'/g
16974 t rset
16975 :rset
16976 s/^[ ]*#[ ]*define[ ][ ]*/ /
16977 t def
16979 :def
16980 s/\\$//
16981 t bsnl
16982 s/["\\]/\\&/g
16983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16984 D["\1"]=" \3"/p
16985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16987 :bsnl
16988 s/["\\]/\\&/g
16989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16990 D["\1"]=" \3\\\\\\n"\\/p
16991 t cont
16992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16993 t cont
16995 :cont
16997 s/.\{148\}/&'"$ac_delim"'/g
16998 t clear
16999 :clear
17000 s/\\$//
17001 t bsnlc
17002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17004 :bsnlc
17005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17006 b cont
17007 ' <confdefs.h | sed '
17008 s/'"$ac_delim"'/"\\\
17009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17012 for (key in D) D_is_set[key] = 1
17013 FS = "\a"
17015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17016 line = \$ 0
17017 split(line, arg, " ")
17018 if (arg[1] == "#") {
17019 defundef = arg[2]
17020 mac1 = arg[3]
17021 } else {
17022 defundef = substr(arg[1], 2)
17023 mac1 = arg[2]
17025 split(mac1, mac2, "(") #)
17026 macro = mac2[1]
17027 prefix = substr(line, 1, index(line, defundef) - 1)
17028 if (D_is_set[macro]) {
17029 # Preserve the white space surrounding the "#".
17030 print prefix "define", macro P[macro] D[macro]
17031 next
17032 } else {
17033 # Replace #undef with comments. This is necessary, for example,
17034 # in the case of _POSIX_SOURCE, which is predefined and required
17035 # on some systems where configure will not decide to define it.
17036 if (defundef == "undef") {
17037 print "/*", prefix defundef, macro, "*/"
17038 next
17042 { print }
17043 _ACAWK
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17047 fi # test -n "$CONFIG_HEADERS"
17050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17051 shift
17052 for ac_tag
17054 case $ac_tag in
17055 :[FHLC]) ac_mode=$ac_tag; continue;;
17056 esac
17057 case $ac_mode$ac_tag in
17058 :[FHL]*:*);;
17059 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17060 :[FH]-) ac_tag=-:-;;
17061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17062 esac
17063 ac_save_IFS=$IFS
17064 IFS=:
17065 set x $ac_tag
17066 IFS=$ac_save_IFS
17067 shift
17068 ac_file=$1
17069 shift
17071 case $ac_mode in
17072 :L) ac_source=$1;;
17073 :[FH])
17074 ac_file_inputs=
17075 for ac_f
17077 case $ac_f in
17078 -) ac_f="$tmp/stdin";;
17079 *) # Look for the file first in the build tree, then in the source tree
17080 # (if the path is not absolute). The absolute path cannot be DOS-style,
17081 # because $ac_f cannot contain `:'.
17082 test -f "$ac_f" ||
17083 case $ac_f in
17084 [\\/$]*) false;;
17085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17086 esac ||
17087 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17088 esac
17089 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17090 as_fn_append ac_file_inputs " '$ac_f'"
17091 done
17093 # Let's still pretend it is `configure' which instantiates (i.e., don't
17094 # use $as_me), people would be surprised to read:
17095 # /* config.h. Generated by config.status. */
17096 configure_input='Generated from '`
17097 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17098 `' by configure.'
17099 if test x"$ac_file" != x-; then
17100 configure_input="$ac_file. $configure_input"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17102 $as_echo "$as_me: creating $ac_file" >&6;}
17104 # Neutralize special characters interpreted by sed in replacement strings.
17105 case $configure_input in #(
17106 *\&* | *\|* | *\\* )
17107 ac_sed_conf_input=`$as_echo "$configure_input" |
17108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17109 *) ac_sed_conf_input=$configure_input;;
17110 esac
17112 case $ac_tag in
17113 *:-:* | *:-) cat >"$tmp/stdin" \
17114 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17115 esac
17117 esac
17119 ac_dir=`$as_dirname -- "$ac_file" ||
17120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121 X"$ac_file" : 'X\(//\)[^/]' \| \
17122 X"$ac_file" : 'X\(//\)$' \| \
17123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17124 $as_echo X"$ac_file" |
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17126 s//\1/
17129 /^X\(\/\/\)[^/].*/{
17130 s//\1/
17133 /^X\(\/\/\)$/{
17134 s//\1/
17137 /^X\(\/\).*/{
17138 s//\1/
17141 s/.*/./; q'`
17142 as_dir="$ac_dir"; as_fn_mkdir_p
17143 ac_builddir=.
17145 case "$ac_dir" in
17146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17149 # A ".." for each directory in $ac_dir_suffix.
17150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17151 case $ac_top_builddir_sub in
17152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17154 esac ;;
17155 esac
17156 ac_abs_top_builddir=$ac_pwd
17157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17158 # for backward compatibility:
17159 ac_top_builddir=$ac_top_build_prefix
17161 case $srcdir in
17162 .) # We are building in place.
17163 ac_srcdir=.
17164 ac_top_srcdir=$ac_top_builddir_sub
17165 ac_abs_top_srcdir=$ac_pwd ;;
17166 [\\/]* | ?:[\\/]* ) # Absolute name.
17167 ac_srcdir=$srcdir$ac_dir_suffix;
17168 ac_top_srcdir=$srcdir
17169 ac_abs_top_srcdir=$srcdir ;;
17170 *) # Relative name.
17171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17172 ac_top_srcdir=$ac_top_build_prefix$srcdir
17173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17174 esac
17175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17178 case $ac_mode in
17181 # CONFIG_FILE
17184 case $INSTALL in
17185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17187 esac
17188 ac_MKDIR_P=$MKDIR_P
17189 case $MKDIR_P in
17190 [\\/$]* | ?:[\\/]* ) ;;
17191 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17192 esac
17193 _ACEOF
17195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17196 # If the template does not know about datarootdir, expand it.
17197 # FIXME: This hack should be removed a few years after 2.60.
17198 ac_datarootdir_hack=; ac_datarootdir_seen=
17199 ac_sed_dataroot='
17200 /datarootdir/ {
17204 /@datadir@/p
17205 /@docdir@/p
17206 /@infodir@/p
17207 /@localedir@/p
17208 /@mandir@/p'
17209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17210 *datarootdir*) ac_datarootdir_seen=yes;;
17211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17213 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17214 _ACEOF
17215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216 ac_datarootdir_hack='
17217 s&@datadir@&$datadir&g
17218 s&@docdir@&$docdir&g
17219 s&@infodir@&$infodir&g
17220 s&@localedir@&$localedir&g
17221 s&@mandir@&$mandir&g
17222 s&\\\${datarootdir}&$datarootdir&g' ;;
17223 esac
17224 _ACEOF
17226 # Neutralize VPATH when `$srcdir' = `.'.
17227 # Shell code in configure.ac might set extrasub.
17228 # FIXME: do we really want to maintain this feature?
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 ac_sed_extra="$ac_vpsub
17231 $extrasub
17232 _ACEOF
17233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17236 s|@configure_input@|$ac_sed_conf_input|;t t
17237 s&@top_builddir@&$ac_top_builddir_sub&;t t
17238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17239 s&@srcdir@&$ac_srcdir&;t t
17240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17241 s&@top_srcdir@&$ac_top_srcdir&;t t
17242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17243 s&@builddir@&$ac_builddir&;t t
17244 s&@abs_builddir@&$ac_abs_builddir&;t t
17245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17246 s&@INSTALL@&$ac_INSTALL&;t t
17247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17248 $ac_datarootdir_hack
17250 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17251 || as_fn_error "could not create $ac_file" "$LINENO" 5
17253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17254 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17257 which seems to be undefined. Please make sure it is defined." >&5
17258 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17259 which seems to be undefined. Please make sure it is defined." >&2;}
17261 rm -f "$tmp/stdin"
17262 case $ac_file in
17263 -) cat "$tmp/out" && rm -f "$tmp/out";;
17264 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17265 esac \
17266 || as_fn_error "could not create $ac_file" "$LINENO" 5
17270 # CONFIG_HEADER
17272 if test x"$ac_file" != x-; then
17274 $as_echo "/* $configure_input */" \
17275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17276 } >"$tmp/config.h" \
17277 || as_fn_error "could not create $ac_file" "$LINENO" 5
17278 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17280 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17281 else
17282 rm -f "$ac_file"
17283 mv "$tmp/config.h" "$ac_file" \
17284 || as_fn_error "could not create $ac_file" "$LINENO" 5
17286 else
17287 $as_echo "/* $configure_input */" \
17288 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17289 || as_fn_error "could not create -" "$LINENO" 5
17291 # Compute "$ac_file"'s index in $config_headers.
17292 _am_arg="$ac_file"
17293 _am_stamp_count=1
17294 for _am_header in $config_headers :; do
17295 case $_am_header in
17296 $_am_arg | $_am_arg:* )
17297 break ;;
17299 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17300 esac
17301 done
17302 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17303 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17304 X"$_am_arg" : 'X\(//\)[^/]' \| \
17305 X"$_am_arg" : 'X\(//\)$' \| \
17306 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17307 $as_echo X"$_am_arg" |
17308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17309 s//\1/
17312 /^X\(\/\/\)[^/].*/{
17313 s//\1/
17316 /^X\(\/\/\)$/{
17317 s//\1/
17320 /^X\(\/\).*/{
17321 s//\1/
17324 s/.*/./; q'`/stamp-h$_am_stamp_count
17327 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17328 $as_echo "$as_me: executing $ac_file commands" >&6;}
17330 esac
17333 case $ac_file$ac_mode in
17334 "default-1":C)
17335 # Only add multilib support code if we just rebuilt the top-level
17336 # Makefile.
17337 case " $CONFIG_FILES " in
17338 *" Makefile "*)
17339 ac_file=Makefile . ${multi_basedir}/config-ml.in
17341 esac ;;
17342 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17343 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17344 # are listed without --file. Let's play safe and only enable the eval
17345 # if we detect the quoting.
17346 case $CONFIG_FILES in
17347 *\'*) eval set x "$CONFIG_FILES" ;;
17348 *) set x $CONFIG_FILES ;;
17349 esac
17350 shift
17351 for mf
17353 # Strip MF so we end up with the name of the file.
17354 mf=`echo "$mf" | sed -e 's/:.*$//'`
17355 # Check whether this is an Automake generated Makefile or not.
17356 # We used to match only the files named `Makefile.in', but
17357 # some people rename them; so instead we look at the file content.
17358 # Grep'ing the first line is not enough: some people post-process
17359 # each Makefile.in and add a new line on top of each file to say so.
17360 # Grep'ing the whole file is not good either: AIX grep has a line
17361 # limit of 2048, but all sed's we know have understand at least 4000.
17362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17363 dirpart=`$as_dirname -- "$mf" ||
17364 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17365 X"$mf" : 'X\(//\)[^/]' \| \
17366 X"$mf" : 'X\(//\)$' \| \
17367 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17368 $as_echo X"$mf" |
17369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17370 s//\1/
17373 /^X\(\/\/\)[^/].*/{
17374 s//\1/
17377 /^X\(\/\/\)$/{
17378 s//\1/
17381 /^X\(\/\).*/{
17382 s//\1/
17385 s/.*/./; q'`
17386 else
17387 continue
17389 # Extract the definition of DEPDIR, am__include, and am__quote
17390 # from the Makefile without running `make'.
17391 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17392 test -z "$DEPDIR" && continue
17393 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17394 test -z "am__include" && continue
17395 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17396 # When using ansi2knr, U may be empty or an underscore; expand it
17397 U=`sed -n 's/^U = //p' < "$mf"`
17398 # Find all dependency output files, they are included files with
17399 # $(DEPDIR) in their names. We invoke sed twice because it is the
17400 # simplest approach to changing $(DEPDIR) to its actual value in the
17401 # expansion.
17402 for file in `sed -n "
17403 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17404 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17405 # Make sure the directory exists.
17406 test -f "$dirpart/$file" && continue
17407 fdir=`$as_dirname -- "$file" ||
17408 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409 X"$file" : 'X\(//\)[^/]' \| \
17410 X"$file" : 'X\(//\)$' \| \
17411 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17412 $as_echo X"$file" |
17413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17414 s//\1/
17417 /^X\(\/\/\)[^/].*/{
17418 s//\1/
17421 /^X\(\/\/\)$/{
17422 s//\1/
17425 /^X\(\/\).*/{
17426 s//\1/
17429 s/.*/./; q'`
17430 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17431 # echo "creating $dirpart/$file"
17432 echo '# dummy' > "$dirpart/$file"
17433 done
17434 done
17437 "libtool":C)
17439 # See if we are running on zsh, and set the options which allow our
17440 # commands through without removal of \ escapes.
17441 if test -n "${ZSH_VERSION+set}" ; then
17442 setopt NO_GLOB_SUBST
17445 cfgfile="${ofile}T"
17446 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17447 $RM "$cfgfile"
17449 cat <<_LT_EOF >> "$cfgfile"
17450 #! $SHELL
17452 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17453 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17457 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17458 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17459 # Written by Gordon Matzigkeit, 1996
17461 # This file is part of GNU Libtool.
17463 # GNU Libtool is free software; you can redistribute it and/or
17464 # modify it under the terms of the GNU General Public License as
17465 # published by the Free Software Foundation; either version 2 of
17466 # the License, or (at your option) any later version.
17468 # As a special exception to the GNU General Public License,
17469 # if you distribute this file as part of a program or library that
17470 # is built using GNU Libtool, you may include this file under the
17471 # same distribution terms that you use for the rest of that program.
17473 # GNU Libtool is distributed in the hope that it will be useful,
17474 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17476 # GNU General Public License for more details.
17478 # You should have received a copy of the GNU General Public License
17479 # along with GNU Libtool; see the file COPYING. If not, a copy
17480 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17481 # obtained by writing to the Free Software Foundation, Inc.,
17482 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17485 # The names of the tagged configurations supported by this script.
17486 available_tags="GO "
17488 # ### BEGIN LIBTOOL CONFIG
17490 # A sed program that does not truncate output.
17491 SED=$lt_SED
17493 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17494 Xsed="\$SED -e 1s/^X//"
17496 # A grep program that handles long lines.
17497 GREP=$lt_GREP
17499 # An ERE matcher.
17500 EGREP=$lt_EGREP
17502 # A literal string matcher.
17503 FGREP=$lt_FGREP
17505 # Shell to use when invoking shell scripts.
17506 SHELL=$lt_SHELL
17508 # An echo program that protects backslashes.
17509 ECHO=$lt_ECHO
17511 # Which release of libtool.m4 was used?
17512 macro_version=$macro_version
17513 macro_revision=$macro_revision
17515 # Whether or not to build shared libraries.
17516 build_libtool_libs=$enable_shared
17518 # Whether or not to build static libraries.
17519 build_old_libs=$enable_static
17521 # What type of objects to build.
17522 pic_mode=$pic_mode
17524 # Whether or not to optimize for fast installation.
17525 fast_install=$enable_fast_install
17527 # The host system.
17528 host_alias=$host_alias
17529 host=$host
17530 host_os=$host_os
17532 # The build system.
17533 build_alias=$build_alias
17534 build=$build
17535 build_os=$build_os
17537 # A BSD- or MS-compatible name lister.
17538 NM=$lt_NM
17540 # Whether we need soft or hard links.
17541 LN_S=$lt_LN_S
17543 # What is the maximum length of a command?
17544 max_cmd_len=$max_cmd_len
17546 # Object file suffix (normally "o").
17547 objext=$ac_objext
17549 # Executable file suffix (normally "").
17550 exeext=$exeext
17552 # whether the shell understands "unset".
17553 lt_unset=$lt_unset
17555 # turn spaces into newlines.
17556 SP2NL=$lt_lt_SP2NL
17558 # turn newlines into spaces.
17559 NL2SP=$lt_lt_NL2SP
17561 # An object symbol dumper.
17562 OBJDUMP=$lt_OBJDUMP
17564 # Method to check whether dependent libraries are shared objects.
17565 deplibs_check_method=$lt_deplibs_check_method
17567 # Command to use when deplibs_check_method == "file_magic".
17568 file_magic_cmd=$lt_file_magic_cmd
17570 # The archiver.
17571 AR=$lt_AR
17572 AR_FLAGS=$lt_AR_FLAGS
17574 # A symbol stripping program.
17575 STRIP=$lt_STRIP
17577 # Commands used to install an old-style archive.
17578 RANLIB=$lt_RANLIB
17579 old_postinstall_cmds=$lt_old_postinstall_cmds
17580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17582 # Whether to use a lock for old archive extraction.
17583 lock_old_archive_extraction=$lock_old_archive_extraction
17585 # A C compiler.
17586 LTCC=$lt_CC
17588 # LTCC compiler flags.
17589 LTCFLAGS=$lt_CFLAGS
17591 # Take the output of nm and produce a listing of raw symbols and C names.
17592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17594 # Transform the output of nm in a proper C declaration.
17595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17597 # Transform the output of nm in a C name address pair.
17598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17600 # Transform the output of nm in a C name address pair when lib prefix is needed.
17601 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17603 # The name of the directory that contains temporary libtool files.
17604 objdir=$objdir
17606 # Used to examine libraries when file_magic_cmd begins with "file".
17607 MAGIC_CMD=$MAGIC_CMD
17609 # Must we lock files when doing compilation?
17610 need_locks=$lt_need_locks
17612 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17613 DSYMUTIL=$lt_DSYMUTIL
17615 # Tool to change global to local symbols on Mac OS X.
17616 NMEDIT=$lt_NMEDIT
17618 # Tool to manipulate fat objects and archives on Mac OS X.
17619 LIPO=$lt_LIPO
17621 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17622 OTOOL=$lt_OTOOL
17624 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17625 OTOOL64=$lt_OTOOL64
17627 # Old archive suffix (normally "a").
17628 libext=$libext
17630 # Shared library suffix (normally ".so").
17631 shrext_cmds=$lt_shrext_cmds
17633 # The commands to extract the exported symbol list from a shared archive.
17634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17636 # Variables whose values should be saved in libtool wrapper scripts and
17637 # restored at link time.
17638 variables_saved_for_relink=$lt_variables_saved_for_relink
17640 # Do we need the "lib" prefix for modules?
17641 need_lib_prefix=$need_lib_prefix
17643 # Do we need a version for libraries?
17644 need_version=$need_version
17646 # Library versioning type.
17647 version_type=$version_type
17649 # Shared library runtime path variable.
17650 runpath_var=$runpath_var
17652 # Shared library path variable.
17653 shlibpath_var=$shlibpath_var
17655 # Is shlibpath searched before the hard-coded library search path?
17656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17658 # Format of library name prefix.
17659 libname_spec=$lt_libname_spec
17661 # List of archive names. First name is the real one, the rest are links.
17662 # The last name is the one that the linker finds with -lNAME
17663 library_names_spec=$lt_library_names_spec
17665 # The coded name of the library, if different from the real name.
17666 soname_spec=$lt_soname_spec
17668 # Permission mode override for installation of shared libraries.
17669 install_override_mode=$lt_install_override_mode
17671 # Command to use after installation of a shared archive.
17672 postinstall_cmds=$lt_postinstall_cmds
17674 # Command to use after uninstallation of a shared archive.
17675 postuninstall_cmds=$lt_postuninstall_cmds
17677 # Commands used to finish a libtool library installation in a directory.
17678 finish_cmds=$lt_finish_cmds
17680 # As "finish_cmds", except a single script fragment to be evaled but
17681 # not shown.
17682 finish_eval=$lt_finish_eval
17684 # Whether we should hardcode library paths into libraries.
17685 hardcode_into_libs=$hardcode_into_libs
17687 # Compile-time system search path for libraries.
17688 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17690 # Run-time system search path for libraries.
17691 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17702 # Commands to strip libraries.
17703 old_striplib=$lt_old_striplib
17704 striplib=$lt_striplib
17707 # The linker used to build libraries.
17708 LD=$lt_LD
17710 # How to create reloadable object files.
17711 reload_flag=$lt_reload_flag
17712 reload_cmds=$lt_reload_cmds
17714 # Commands used to build an old-style archive.
17715 old_archive_cmds=$lt_old_archive_cmds
17717 # A language specific compiler.
17718 CC=$lt_compiler
17720 # Is the compiler the GNU compiler?
17721 with_gcc=$GCC
17723 # Compiler flag to turn off builtin functions.
17724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17726 # How to pass a linker flag through the compiler.
17727 wl=$lt_lt_prog_compiler_wl
17729 # Additional compiler flags for building library objects.
17730 pic_flag=$lt_lt_prog_compiler_pic
17732 # Compiler flag to prevent dynamic linking.
17733 link_static_flag=$lt_lt_prog_compiler_static
17735 # Does compiler simultaneously support -c and -o options?
17736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc
17741 # Whether or not to disallow shared libs when runtime libs are static.
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17744 # Compiler flag to allow reflexive dlopens.
17745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17747 # Compiler flag to generate shared objects directly from archives.
17748 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17750 # Whether the compiler copes with passing no objects directly.
17751 compiler_needs_object=$lt_compiler_needs_object
17753 # Create an old-style archive from a shared archive.
17754 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17756 # Create a temporary old-style archive to link instead of a shared archive.
17757 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17759 # Commands used to build a shared archive.
17760 archive_cmds=$lt_archive_cmds
17761 archive_expsym_cmds=$lt_archive_expsym_cmds
17763 # Commands used to build a loadable module if different from building
17764 # a shared archive.
17765 module_cmds=$lt_module_cmds
17766 module_expsym_cmds=$lt_module_expsym_cmds
17768 # Whether we are building with GNU ld or not.
17769 with_gnu_ld=$lt_with_gnu_ld
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag
17774 # Flag that enforces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag
17777 # Flag to hardcode \$libdir into a binary during linking.
17778 # This must work even if \$libdir does not exist
17779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17781 # If ld is used when linking, flag to hardcode \$libdir into a binary
17782 # during linking. This must work even if \$libdir does not exist.
17783 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17785 # Whether we need a single "-rpath" flag with a separated argument.
17786 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17788 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17789 # DIR into the resulting binary.
17790 hardcode_direct=$hardcode_direct
17792 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17793 # DIR into the resulting binary and the resulting library dependency is
17794 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17795 # library is relocated.
17796 hardcode_direct_absolute=$hardcode_direct_absolute
17798 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17799 # into the resulting binary.
17800 hardcode_minus_L=$hardcode_minus_L
17802 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17803 # into the resulting binary.
17804 hardcode_shlibpath_var=$hardcode_shlibpath_var
17806 # Set to "yes" if building a shared library automatically hardcodes DIR
17807 # into the library and all subsequent libraries and executables linked
17808 # against it.
17809 hardcode_automatic=$hardcode_automatic
17811 # Set to yes if linker adds runtime paths of dependent libraries
17812 # to runtime path list.
17813 inherit_rpath=$inherit_rpath
17815 # Whether libtool must link a program against all its dependency libraries.
17816 link_all_deplibs=$link_all_deplibs
17818 # Fix the shell variable \$srcfile for the compiler.
17819 fix_srcfile_path=$lt_fix_srcfile_path
17821 # Set to "yes" if exported symbols are required.
17822 always_export_symbols=$always_export_symbols
17824 # The commands to list exported symbols.
17825 export_symbols_cmds=$lt_export_symbols_cmds
17827 # Symbols that should not be listed in the preloaded symbols.
17828 exclude_expsyms=$lt_exclude_expsyms
17830 # Symbols that must always be exported.
17831 include_expsyms=$lt_include_expsyms
17833 # Commands necessary for linking programs (against libraries) with templates.
17834 prelink_cmds=$lt_prelink_cmds
17836 # Specify filename containing input files.
17837 file_list_spec=$lt_file_list_spec
17839 # How to hardcode a shared library path into an executable.
17840 hardcode_action=$hardcode_action
17842 # ### END LIBTOOL CONFIG
17844 _LT_EOF
17846 case $host_os in
17847 aix3*)
17848 cat <<\_LT_EOF >> "$cfgfile"
17849 # AIX sometimes has problems with the GCC collect2 program. For some
17850 # reason, if we set the COLLECT_NAMES environment variable, the problems
17851 # vanish in a puff of smoke.
17852 if test "X${COLLECT_NAMES+set}" != Xset; then
17853 COLLECT_NAMES=
17854 export COLLECT_NAMES
17856 _LT_EOF
17858 esac
17861 ltmain="$ac_aux_dir/ltmain.sh"
17864 # We use sed instead of cat because bash on DJGPP gets confused if
17865 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17866 # text mode, it properly converts lines to CR/LF. This bash problem
17867 # is reportedly fixed, but why not run on old versions too?
17868 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17869 || (rm -f "$cfgfile"; exit 1)
17871 case $xsi_shell in
17872 yes)
17873 cat << \_LT_EOF >> "$cfgfile"
17875 # func_dirname file append nondir_replacement
17876 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17877 # otherwise set result to NONDIR_REPLACEMENT.
17878 func_dirname ()
17880 case ${1} in
17881 */*) func_dirname_result="${1%/*}${2}" ;;
17882 * ) func_dirname_result="${3}" ;;
17883 esac
17886 # func_basename file
17887 func_basename ()
17889 func_basename_result="${1##*/}"
17892 # func_dirname_and_basename file append nondir_replacement
17893 # perform func_basename and func_dirname in a single function
17894 # call:
17895 # dirname: Compute the dirname of FILE. If nonempty,
17896 # add APPEND to the result, otherwise set result
17897 # to NONDIR_REPLACEMENT.
17898 # value returned in "$func_dirname_result"
17899 # basename: Compute filename of FILE.
17900 # value retuned in "$func_basename_result"
17901 # Implementation must be kept synchronized with func_dirname
17902 # and func_basename. For efficiency, we do not delegate to
17903 # those functions but instead duplicate the functionality here.
17904 func_dirname_and_basename ()
17906 case ${1} in
17907 */*) func_dirname_result="${1%/*}${2}" ;;
17908 * ) func_dirname_result="${3}" ;;
17909 esac
17910 func_basename_result="${1##*/}"
17913 # func_stripname prefix suffix name
17914 # strip PREFIX and SUFFIX off of NAME.
17915 # PREFIX and SUFFIX must not contain globbing or regex special
17916 # characters, hashes, percent signs, but SUFFIX may contain a leading
17917 # dot (in which case that matches only a dot).
17918 func_stripname ()
17920 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17921 # positional parameters, so assign one to ordinary parameter first.
17922 func_stripname_result=${3}
17923 func_stripname_result=${func_stripname_result#"${1}"}
17924 func_stripname_result=${func_stripname_result%"${2}"}
17927 # func_opt_split
17928 func_opt_split ()
17930 func_opt_split_opt=${1%%=*}
17931 func_opt_split_arg=${1#*=}
17934 # func_lo2o object
17935 func_lo2o ()
17937 case ${1} in
17938 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17939 *) func_lo2o_result=${1} ;;
17940 esac
17943 # func_xform libobj-or-source
17944 func_xform ()
17946 func_xform_result=${1%.*}.lo
17949 # func_arith arithmetic-term...
17950 func_arith ()
17952 func_arith_result=$(( $* ))
17955 # func_len string
17956 # STRING may not start with a hyphen.
17957 func_len ()
17959 func_len_result=${#1}
17962 _LT_EOF
17964 *) # Bourne compatible functions.
17965 cat << \_LT_EOF >> "$cfgfile"
17967 # func_dirname file append nondir_replacement
17968 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17969 # otherwise set result to NONDIR_REPLACEMENT.
17970 func_dirname ()
17972 # Extract subdirectory from the argument.
17973 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17974 if test "X$func_dirname_result" = "X${1}"; then
17975 func_dirname_result="${3}"
17976 else
17977 func_dirname_result="$func_dirname_result${2}"
17981 # func_basename file
17982 func_basename ()
17984 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17988 # func_stripname prefix suffix name
17989 # strip PREFIX and SUFFIX off of NAME.
17990 # PREFIX and SUFFIX must not contain globbing or regex special
17991 # characters, hashes, percent signs, but SUFFIX may contain a leading
17992 # dot (in which case that matches only a dot).
17993 # func_strip_suffix prefix name
17994 func_stripname ()
17996 case ${2} in
17997 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17998 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17999 esac
18002 # sed scripts:
18003 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18004 my_sed_long_arg='1s/^-[^=]*=//'
18006 # func_opt_split
18007 func_opt_split ()
18009 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18010 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18013 # func_lo2o object
18014 func_lo2o ()
18016 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18019 # func_xform libobj-or-source
18020 func_xform ()
18022 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18025 # func_arith arithmetic-term...
18026 func_arith ()
18028 func_arith_result=`expr "$@"`
18031 # func_len string
18032 # STRING may not start with a hyphen.
18033 func_len ()
18035 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18038 _LT_EOF
18039 esac
18041 case $lt_shell_append in
18042 yes)
18043 cat << \_LT_EOF >> "$cfgfile"
18045 # func_append var value
18046 # Append VALUE to the end of shell variable VAR.
18047 func_append ()
18049 eval "$1+=\$2"
18051 _LT_EOF
18054 cat << \_LT_EOF >> "$cfgfile"
18056 # func_append var value
18057 # Append VALUE to the end of shell variable VAR.
18058 func_append ()
18060 eval "$1=\$$1\$2"
18063 _LT_EOF
18065 esac
18068 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18069 || (rm -f "$cfgfile"; exit 1)
18071 mv -f "$cfgfile" "$ofile" ||
18072 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18073 chmod +x "$ofile"
18076 cat <<_LT_EOF >> "$ofile"
18078 # ### BEGIN LIBTOOL TAG CONFIG: GO
18080 # The linker used to build libraries.
18081 LD=$lt_LD_GO
18083 # How to create reloadable object files.
18084 reload_flag=$lt_reload_flag_GO
18085 reload_cmds=$lt_reload_cmds_GO
18087 # Commands used to build an old-style archive.
18088 old_archive_cmds=$lt_old_archive_cmds_GO
18090 # A language specific compiler.
18091 CC=$lt_compiler_GO
18093 # Is the compiler the GNU compiler?
18094 with_gcc=$GCC_GO
18096 # Compiler flag to turn off builtin functions.
18097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18099 # How to pass a linker flag through the compiler.
18100 wl=$lt_lt_prog_compiler_wl_GO
18102 # Additional compiler flags for building library objects.
18103 pic_flag=$lt_lt_prog_compiler_pic_GO
18105 # Compiler flag to prevent dynamic linking.
18106 link_static_flag=$lt_lt_prog_compiler_static_GO
18108 # Does compiler simultaneously support -c and -o options?
18109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18111 # Whether or not to add -lc for building shared libraries.
18112 build_libtool_need_lc=$archive_cmds_need_lc_GO
18114 # Whether or not to disallow shared libs when runtime libs are static.
18115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18117 # Compiler flag to allow reflexive dlopens.
18118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18120 # Compiler flag to generate shared objects directly from archives.
18121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18123 # Whether the compiler copes with passing no objects directly.
18124 compiler_needs_object=$lt_compiler_needs_object_GO
18126 # Create an old-style archive from a shared archive.
18127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18129 # Create a temporary old-style archive to link instead of a shared archive.
18130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18132 # Commands used to build a shared archive.
18133 archive_cmds=$lt_archive_cmds_GO
18134 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18136 # Commands used to build a loadable module if different from building
18137 # a shared archive.
18138 module_cmds=$lt_module_cmds_GO
18139 module_expsym_cmds=$lt_module_expsym_cmds_GO
18141 # Whether we are building with GNU ld or not.
18142 with_gnu_ld=$lt_with_gnu_ld_GO
18144 # Flag that allows shared libraries with undefined symbols to be built.
18145 allow_undefined_flag=$lt_allow_undefined_flag_GO
18147 # Flag that enforces no undefined symbols.
18148 no_undefined_flag=$lt_no_undefined_flag_GO
18150 # Flag to hardcode \$libdir into a binary during linking.
18151 # This must work even if \$libdir does not exist
18152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18154 # If ld is used when linking, flag to hardcode \$libdir into a binary
18155 # during linking. This must work even if \$libdir does not exist.
18156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18158 # Whether we need a single "-rpath" flag with a separated argument.
18159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18162 # DIR into the resulting binary.
18163 hardcode_direct=$hardcode_direct_GO
18165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18166 # DIR into the resulting binary and the resulting library dependency is
18167 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18168 # library is relocated.
18169 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18171 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18172 # into the resulting binary.
18173 hardcode_minus_L=$hardcode_minus_L_GO
18175 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18176 # into the resulting binary.
18177 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18179 # Set to "yes" if building a shared library automatically hardcodes DIR
18180 # into the library and all subsequent libraries and executables linked
18181 # against it.
18182 hardcode_automatic=$hardcode_automatic_GO
18184 # Set to yes if linker adds runtime paths of dependent libraries
18185 # to runtime path list.
18186 inherit_rpath=$inherit_rpath_GO
18188 # Whether libtool must link a program against all its dependency libraries.
18189 link_all_deplibs=$link_all_deplibs_GO
18191 # Fix the shell variable \$srcfile for the compiler.
18192 fix_srcfile_path=$lt_fix_srcfile_path_GO
18194 # Set to "yes" if exported symbols are required.
18195 always_export_symbols=$always_export_symbols_GO
18197 # The commands to list exported symbols.
18198 export_symbols_cmds=$lt_export_symbols_cmds_GO
18200 # Symbols that should not be listed in the preloaded symbols.
18201 exclude_expsyms=$lt_exclude_expsyms_GO
18203 # Symbols that must always be exported.
18204 include_expsyms=$lt_include_expsyms_GO
18206 # Commands necessary for linking programs (against libraries) with templates.
18207 prelink_cmds=$lt_prelink_cmds_GO
18209 # Specify filename containing input files.
18210 file_list_spec=$lt_file_list_spec_GO
18212 # How to hardcode a shared library path into an executable.
18213 hardcode_action=$hardcode_action_GO
18215 # ### END LIBTOOL TAG CONFIG: GO
18216 _LT_EOF
18219 "default":C) if test -n "$CONFIG_FILES"; then
18220 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18221 # that multilib installs will end up installed in the correct place.
18222 # The testsuite needs it for multilib-aware ABI baseline files.
18223 # To work around this not being passed down from config-ml.in ->
18224 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18225 # append it here. Only modify Makefiles that have just been created.
18227 # Also, get rid of this simulated-VPATH thing that automake does.
18228 cat > vpsed << \_EOF
18229 s!`test -f '$<' || echo '$(srcdir)/'`!!
18230 _EOF
18231 for i in $SUBDIRS; do
18232 case $CONFIG_FILES in
18233 *${i}/Makefile*)
18234 #echo "Adding MULTISUBDIR to $i/Makefile"
18235 sed -f vpsed $i/Makefile > tmp
18236 grep '^MULTISUBDIR =' Makefile >> tmp
18237 mv tmp $i/Makefile
18239 esac
18240 done
18241 rm vpsed
18245 esac
18246 done # for ac_tag
18249 as_fn_exit 0
18250 _ACEOF
18251 ac_clean_files=$ac_clean_files_save
18253 test $ac_write_fail = 0 ||
18254 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18257 # configure is writing to config.log, and then calls config.status.
18258 # config.status does its own redirection, appending to config.log.
18259 # Unfortunately, on DOS this fails, as config.log is still kept open
18260 # by configure, so config.status won't be able to write to it; its
18261 # output is simply discarded. So we exec the FD to /dev/null,
18262 # effectively closing config.log, so it can be properly (re)opened and
18263 # appended to by config.status. When coming back to configure, we
18264 # need to make the FD available again.
18265 if test "$no_create" != yes; then
18266 ac_cs_success=:
18267 ac_config_status_args=
18268 test "$silent" = yes &&
18269 ac_config_status_args="$ac_config_status_args --quiet"
18270 exec 5>/dev/null
18271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18272 exec 5>>config.log
18273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18274 # would make configure fail if this is the last instruction.
18275 $ac_cs_success || as_fn_exit $?
18277 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18279 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}