PR libstdc++/51649:
[official-gcc.git] / libgo / configure
blob94bf268f4a63666f554a846029775a35a4e20ec8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 STRINGOPS_FLAG
608 HAVE_WAIT4_FALSE
609 HAVE_WAIT4_TRUE
610 HAVE_STRERROR_R_FALSE
611 HAVE_STRERROR_R_TRUE
612 HAVE_SYS_MMAN_H_FALSE
613 HAVE_SYS_MMAN_H_TRUE
614 PTHREAD_LIBS
615 PTHREAD_CFLAGS
616 NET_LIBS
617 MATH_LIBS
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
620 SPLIT_STACK
621 OSCFLAGS
622 GO_SYSCALL_OS_ARCH_FILE
623 GO_SYSCALL_OS_FILE
624 GO_LIBCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_FILE
626 GOARCH
627 LIBGO_IS_X86_64_FALSE
628 LIBGO_IS_X86_64_TRUE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
631 LIBGO_IS_SPARC_FALSE
632 LIBGO_IS_SPARC_TRUE
633 LIBGO_IS_PPC64_FALSE
634 LIBGO_IS_PPC64_TRUE
635 LIBGO_IS_PPC_FALSE
636 LIBGO_IS_PPC_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
645 LIBGO_IS_MIPS_FALSE
646 LIBGO_IS_MIPS_TRUE
647 LIBGO_IS_M68K_FALSE
648 LIBGO_IS_M68K_TRUE
649 LIBGO_IS_ARM_FALSE
650 LIBGO_IS_ARM_TRUE
651 LIBGO_IS_ALPHA_FALSE
652 LIBGO_IS_ALPHA_TRUE
653 LIBGO_IS_386_FALSE
654 LIBGO_IS_386_TRUE
655 GOOS
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_RTEMS_FALSE
659 LIBGO_IS_RTEMS_TRUE
660 LIBGO_IS_NETBSD_FALSE
661 LIBGO_IS_NETBSD_TRUE
662 LIBGO_IS_LINUX_FALSE
663 LIBGO_IS_LINUX_TRUE
664 LIBGO_IS_IRIX_FALSE
665 LIBGO_IS_IRIX_TRUE
666 LIBGO_IS_FREEBSD_FALSE
667 LIBGO_IS_FREEBSD_TRUE
668 LIBGO_IS_DARWIN_FALSE
669 LIBGO_IS_DARWIN_TRUE
670 go_include
671 LIBFFIINCS
672 LIBFFI
673 glibgo_toolexeclibdir
674 glibgo_toolexecdir
675 glibgo_prefixdir
676 WERROR
677 WARN_FLAGS
678 CC_FOR_BUILD
679 enable_static
680 enable_shared
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
687 OBJDUMP
688 LN_S
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LIBTOOL
693 OBJCOPY
694 RANLIB
696 FGREP
698 EGREP
699 GREP
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 GOCFLAGS
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 multi_basedir
758 libtool_VERSION
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_dependency_tracking
802 enable_maintainer_mode
803 with_gnu_ld
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 enable_libtool_lock
809 enable_version_specific_runtime_libs
810 with_libffi
811 with_system_libunwind
812 enable_sjlj_exceptions
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
818 CPPFLAGS'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information."
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 esac
1226 done
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of package-unused version-unused:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-multilib build many library versions (default)
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-maintainer-mode enable make rules and dependencies not useful
1443 (and sometimes confusing) to the casual installer
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-version-specific-runtime-libs
1450 Specify that runtime libraries should be installed
1451 in a compiler-specific directory
1452 --enable-sjlj-exceptions
1453 force use of builtin_setjmp for exceptions
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --without-libffi don't use libffi
1462 --with-system-libunwind use installed libunwind
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 GOC Go compiler command
1473 GOCFLAGS Go compiler flags
1474 CPP C preprocessor
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 package-unused configure version-unused
1543 generated by GNU Autoconf 2.64
1545 Copyright (C) 2009 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 return $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1629 } # ac_fn_c_try_cpp
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=$ac_status
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_run
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 eval "$3=yes"
1692 else
1693 eval "$3=no"
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 } # ac_fn_c_check_header_compile
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_link ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext conftest$ac_exeext
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest$ac_exeext && {
1730 test "$cross_compiling" = yes ||
1731 $as_test_x conftest$ac_exeext
1732 }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742 # interfere with the next link command; also delete a directory that is
1743 # left behind by Apple's compiler. We do this before executing the actions.
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1748 } # ac_fn_c_try_link
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below.
1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770 <limits.h> exists even on freestanding compilers. */
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1778 #undef $2
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1795 main ()
1797 return $2 ();
1799 return 0;
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1807 rm -f core conftest.err conftest.$ac_objext \
1808 conftest$ac_exeext conftest.$ac_ext
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 } # ac_fn_c_check_func
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_header_mongrel ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 else
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1845 else
1846 ac_header_compiler=no
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1861 else
1862 ac_header_preproc=no
1864 rm -f conftest.err conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870 yes:no: )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 no:yes:* )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 esac
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=\$ac_header_compiler"
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 eval "$3=no"
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 main ()
1923 if (sizeof ($2))
1924 return 0;
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 if (sizeof (($2)))
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1944 else
1945 eval "$3=yes"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_type
1958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1959 # --------------------------------------------
1960 # Tries to find the compile-time value of EXPR in a program that includes
1961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1962 # computed
1963 ac_fn_c_compute_int ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if test "$cross_compiling" = yes; then
1967 # Depending upon the size, compute the lo and hi bounds.
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 main ()
1974 static int test_array [1 - 2 * !(($2) >= 0)];
1975 test_array [0] = 0
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_lo=0 ac_mid=0
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
1999 else
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2002 ac_lo= ac_hi=
2003 break
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 main ()
2016 static int test_array [1 - 2 * !(($2) < 0)];
2017 test_array [0] = 0
2020 return 0;
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=-1 ac_mid=-1
2025 while :; do
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2033 test_array [0] = 0
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=$ac_mid; break
2041 else
2042 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043 if test $ac_mid -le $ac_hi; then
2044 ac_lo= ac_hi=
2045 break
2047 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 done
2051 else
2052 ac_lo= ac_hi=
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 # Binary search between lo and hi bounds.
2058 while test "x$ac_lo" != "x$ac_hi"; do
2059 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 test_array [0] = 0
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_hi=$ac_mid
2075 else
2076 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 case $ac_lo in #((
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2082 '') ac_retval=1 ;;
2083 esac
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2090 #include <stdio.h>
2091 #include <stdlib.h>
2093 main ()
2096 FILE *f = fopen ("conftest.val", "w");
2097 if (! f)
2098 return 1;
2099 if (($2) < 0)
2101 long int i = longval ();
2102 if (i != ($2))
2103 return 1;
2104 fprintf (f, "%ld", i);
2106 else
2108 unsigned long int i = ulongval ();
2109 if (i != ($2))
2110 return 1;
2111 fprintf (f, "%lu", i);
2113 /* Do not output a trailing newline, as this causes \r\n confusion
2114 on some platforms. */
2115 return ferror (f) || fclose (f) != 0;
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_run "$LINENO"; then :
2122 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2123 else
2124 ac_retval=1
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127 conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 rm -f conftest.val
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 return $ac_retval
2134 } # ac_fn_c_compute_int
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by package-unused $as_me version-unused, which was
2140 generated by GNU Autoconf 2.64. Invocation command line was
2142 $ $0 $@
2144 _ACEOF
2145 exec 5>>config.log
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169 _ASUNAME
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2177 done
2178 IFS=$as_save_IFS
2180 } >&5
2182 cat >&5 <<_ACEOF
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2189 _ACEOF
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2203 for ac_arg
2205 case $ac_arg in
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2209 continue ;;
2210 *\'*)
2211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 esac
2213 case $ac_pass in
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2219 else
2220 case $ac_arg in
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227 esac
2229 -* ) ac_must_keep_next=true ;;
2230 esac
2232 as_fn_append ac_configure_args " '$ac_arg'"
2234 esac
2235 done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2248 echo
2250 cat <<\_ASBOX
2251 ## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##
2254 _ASBOX
2255 echo
2256 # The following way of writing the cache mishandles newlines in values,
2258 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2259 eval ac_val=\$$ac_var
2260 case $ac_val in #(
2261 *${as_nl}*)
2262 case $ac_var in #(
2263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2265 esac
2266 case $ac_var in #(
2267 _ | IFS | as_nl) ;; #(
2268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2269 *) { eval $ac_var=; unset $ac_var;} ;;
2270 esac ;;
2271 esac
2272 done
2273 (set) 2>&1 |
2274 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2275 *${as_nl}ac_space=\ *)
2276 sed -n \
2277 "s/'\''/'\''\\\\'\'''\''/g;
2278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2279 ;; #(
2281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283 esac |
2284 sort
2286 echo
2288 cat <<\_ASBOX
2289 ## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##
2292 _ASBOX
2293 echo
2294 for ac_var in $ac_subst_vars
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 $as_echo "$ac_var='\''$ac_val'\''"
2301 done | sort
2302 echo
2304 if test -n "$ac_subst_files"; then
2305 cat <<\_ASBOX
2306 ## ------------------- ##
2307 ## File substitutions. ##
2308 ## ------------------- ##
2309 _ASBOX
2310 echo
2311 for ac_var in $ac_subst_files
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2322 if test -s confdefs.h; then
2323 cat <<\_ASBOX
2324 ## ----------- ##
2325 ## confdefs.h. ##
2326 ## ----------- ##
2327 _ASBOX
2328 echo
2329 cat confdefs.h
2330 echo
2332 test "$ac_signal" != 0 &&
2333 $as_echo "$as_me: caught signal $ac_signal"
2334 $as_echo "$as_me: exit $exit_status"
2335 } >&5
2336 rm -f core *.core core.conftest.* &&
2337 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338 exit $exit_status
2340 for ac_signal in 1 2 13 15; do
2341 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342 done
2343 ac_signal=0
2345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2346 rm -f -r conftest* confdefs.h
2348 $as_echo "/* confdefs.h */" > confdefs.h
2350 # Predefined preprocessor variables.
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_NAME "$PACKAGE_NAME"
2354 _ACEOF
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_STRING "$PACKAGE_STRING"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_URL "$PACKAGE_URL"
2374 _ACEOF
2377 # Let the site file select an alternate cache file if it wants to.
2378 # Prefer an explicitly selected file to automatically selected ones.
2379 ac_site_file1=NONE
2380 ac_site_file2=NONE
2381 if test -n "$CONFIG_SITE"; then
2382 ac_site_file1=$CONFIG_SITE
2383 elif test "x$prefix" != xNONE; then
2384 ac_site_file1=$prefix/share/config.site
2385 ac_site_file2=$prefix/etc/config.site
2386 else
2387 ac_site_file1=$ac_default_prefix/share/config.site
2388 ac_site_file2=$ac_default_prefix/etc/config.site
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 test "x$ac_site_file" = xNONE && continue
2393 if test -r "$ac_site_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396 sed 's/^/| /' "$ac_site_file" >&5
2397 . "$ac_site_file"
2399 done
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special
2403 # files actually), so we avoid doing that.
2404 if test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 case $cache_file in
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2410 esac
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415 >$cache_file
2418 # Check that the precious variables saved in the cache have kept the same
2419 # value.
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2426 case $ac_old_set,$ac_new_set in
2427 set,)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,set)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2435 ,);;
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x $ac_old_val`
2440 ac_new_val_w=`echo x $ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444 ac_cache_corrupted=:
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2451 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2454 fi;;
2455 esac
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2458 case $ac_new_val in
2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2461 esac
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465 esac
2467 done
2468 if $ac_cache_corrupted; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 ac_config_headers="$ac_config_headers config.h"
2493 libtool_VERSION=1:0:0
2496 # Default to --enable-multilib
2497 # Check whether --enable-multilib was given.
2498 if test "${enable_multilib+set}" = set; then :
2499 enableval=$enable_multilib; case "$enableval" in
2500 yes) multilib=yes ;;
2501 no) multilib=no ;;
2502 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2503 esac
2504 else
2505 multilib=yes
2509 # We may get other options which we leave undocumented:
2510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2511 # See config-ml.in if you want the gory details.
2513 if test "$srcdir" = "."; then
2514 if test "$with_target_subdir" != "."; then
2515 multi_basedir="$srcdir/$with_multisrctop../.."
2516 else
2517 multi_basedir="$srcdir/$with_multisrctop.."
2519 else
2520 multi_basedir="$srcdir/.."
2524 # Even if the default multilib is not a cross compilation,
2525 # it may be that some of the other multilibs are.
2526 if test $cross_compiling = no && test $multilib = yes \
2527 && test "x${with_multisubdir}" != x ; then
2528 cross_compiling=maybe
2531 ac_config_commands="$ac_config_commands default-1"
2534 ac_aux_dir=
2535 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536 for ac_t in install-sh install.sh shtool; do
2537 if test -f "$ac_dir/$ac_t"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/$ac_t -c"
2540 break 2
2542 done
2543 done
2544 if test -z "$ac_aux_dir"; then
2545 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557 # Make sure we can run config.sub.
2558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2559 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2562 $as_echo_n "checking build system type... " >&6; }
2563 if test "${ac_cv_build+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 ac_build_alias=$build_alias
2567 test "x$ac_build_alias" = x &&
2568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569 test "x$ac_build_alias" = x &&
2570 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2576 $as_echo "$ac_cv_build" >&6; }
2577 case $ac_cv_build in
2578 *-*-*) ;;
2579 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2580 esac
2581 build=$ac_cv_build
2582 ac_save_IFS=$IFS; IFS='-'
2583 set x $ac_cv_build
2584 shift
2585 build_cpu=$1
2586 build_vendor=$2
2587 shift; shift
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2590 build_os=$*
2591 IFS=$ac_save_IFS
2592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2596 $as_echo_n "checking host system type... " >&6; }
2597 if test "${ac_cv_host+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test "x$host_alias" = x; then
2601 ac_cv_host=$ac_cv_build
2602 else
2603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2604 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2609 $as_echo "$ac_cv_host" >&6; }
2610 case $ac_cv_host in
2611 *-*-*) ;;
2612 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2613 esac
2614 host=$ac_cv_host
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_host
2617 shift
2618 host_cpu=$1
2619 host_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 host_os=$*
2624 IFS=$ac_save_IFS
2625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2629 $as_echo_n "checking target system type... " >&6; }
2630 if test "${ac_cv_target+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test "x$target_alias" = x; then
2634 ac_cv_target=$ac_cv_host
2635 else
2636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2642 $as_echo "$ac_cv_target" >&6; }
2643 case $ac_cv_target in
2644 *-*-*) ;;
2645 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2646 esac
2647 target=$ac_cv_target
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_target
2650 shift
2651 target_cpu=$1
2652 target_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 target_os=$*
2657 IFS=$ac_save_IFS
2658 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2661 # The aliases save the names the user supplied, while $host etc.
2662 # will get canonicalized.
2663 test -n "$target_alias" &&
2664 test "$program_prefix$program_suffix$program_transform_name" = \
2665 NONENONEs,x,x, &&
2666 program_prefix=${target_alias}-
2668 target_alias=${target_alias-$host_alias}
2670 am__api_version='1.11'
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2687 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in #((
2699 ./ | .// | /[cC]/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2702 /usr/ucb/* ) ;;
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2733 done
2734 done
2736 esac
2738 done
2739 IFS=$as_save_IFS
2741 rm -rf conftest.one conftest.two conftest.dir
2744 if test "${ac_cv_path_install+set}" = set; then
2745 INSTALL=$ac_cv_path_install
2746 else
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 INSTALL=$ac_install_sh
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 $as_echo "$INSTALL" >&6; }
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 $as_echo_n "checking whether build environment is sane... " >&6; }
2767 # Just in case
2768 sleep 1
2769 echo timestamp > conftest.file
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2772 am_lf='
2774 case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2781 esac
2783 # Do `set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790 if test "$*" = "X"; then
2791 # -L didn't work.
2792 set X `ls -t "$srcdir/configure" conftest.file`
2794 rm -f conftest.file
2795 if test "$*" != "X $srcdir/configure conftest.file" \
2796 && test "$*" != "X conftest.file $srcdir/configure"; then
2798 # If neither matched, then we have a broken ls. This can happen
2799 # if, for instance, CONFIG_SHELL is bash and it inherits a
2800 # broken ls alias from the environment. This has actually
2801 # happened. Such a system could not be considered "sane".
2802 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2803 alias in your environment" "$LINENO" 5
2806 test "$2" = conftest.file
2808 then
2809 # Ok.
2811 else
2812 as_fn_error "newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 test "$program_prefix" != NONE &&
2818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2830 if test x"${MISSING+set}" != xset; then
2831 case $am_aux_dir in
2832 *\ * | *\ *)
2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836 esac
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840 am_missing_run="$MISSING --run "
2841 else
2842 am_missing_run=
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2847 if test x"${install_sh}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2853 esac
2856 # Installed binaries are usually stripped using `strip' when the user
2857 # run `make install-strip'. However `strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the `STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$ac_cv_prog_STRIP"; then
2901 ac_ct_STRIP=$STRIP
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_STRIP="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2938 if test "x$ac_ct_STRIP" = x; then
2939 STRIP=":"
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if test "${ac_cv_path_mkdir+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_prog in mkdir gmkdir; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975 break 3;;
2976 esac
2977 done
2978 done
2979 done
2980 IFS=$as_save_IFS
2984 if test "${ac_cv_path_mkdir+set}" = set; then
2985 MKDIR_P="$ac_cv_path_mkdir -p"
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for MKDIR_P within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 test -d ./--version && rmdir ./--version
2992 MKDIR_P="$ac_install_sh -d"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2998 mkdir_p="$MKDIR_P"
2999 case $mkdir_p in
3000 [\\/$]* | ?:[\\/]*) ;;
3001 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3002 esac
3004 for ac_prog in gawk mawk nawk awk
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$AWK"; then
3014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_AWK="$ac_prog"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3043 test -n "$AWK" && break
3044 done
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056 @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060 *@@@%%%=?*=@@@%%%*)
3061 eval ac_cv_prog_make_${ac_make}_set=yes;;
3063 eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 SET_MAKE=
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 SET_MAKE="MAKE=${MAKE-make}"
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080 am__leading_dot=.
3081 else
3082 am__leading_dot=_
3084 rmdir .tst 2>/dev/null
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status; then
3092 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath --version) >/dev/null 2>/dev/null; then
3099 CYGPATH_W='cygpath -w'
3100 else
3101 CYGPATH_W=echo
3106 # Define the identity of the package.
3107 PACKAGE='libgo'
3108 VERSION='version-unused'
3111 # Some tools Automake needs.
3113 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3119 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3125 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3127 # We need awk for the "check" target. The system "awk" is bad on
3128 # some platforms.
3129 # Always define AMTAR for backward compatibility.
3131 AMTAR=${AMTAR-"${am_missing_run}tar"}
3133 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3173 IFS=$as_save_IFS
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3189 ac_ct_CC=$CC
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3227 CC=""
3228 else
3229 case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235 CC=$ac_ct_CC
3237 else
3238 CC="$ac_cv_prog_CC"
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3266 IFS=$as_save_IFS
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3303 continue
3305 ac_cv_prog_CC="cc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3316 shift
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3321 shift
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3363 done
3364 done
3365 IFS=$as_save_IFS
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3380 done
3382 if test -z "$CC"; then
3383 ac_ct_CC=$CC
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3424 done
3426 if test "x$ac_ct_CC" = x; then
3427 CC=""
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 CC=$ac_ct_CC
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452 { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 ac_status=$?
3461 if test -s conftest.err; then
3462 sed '10a\
3463 ... rest of stderr output deleted ...
3464 10q' conftest.err >conftest.er1
3465 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 done
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3476 main ()
3480 return 0;
3482 _ACEOF
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3487 # of exeext.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3489 $as_echo_n "checking for C compiler default output file name... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495 ac_rmfiles=
3496 for ac_file in $ac_files
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3501 esac
3502 done
3503 rm -f $ac_rmfiles
3505 if { { ac_try="$ac_link_default"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link_default") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3520 # Autoconf.
3521 for ac_file in $ac_files ''
3523 test -f "$ac_file" || continue
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527 [ab].out )
3528 # We found the default executable, but exeext='' is most
3529 # certainly right.
3530 break;;
3531 *.* )
3532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533 then :; else
3534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 # We set ac_cv_exeext here because the later test for it is not
3537 # safe: cross compilers may not add the suffix if given an `-o'
3538 # argument, so we may need to know it at that point already.
3539 # Even if this section looks crufty: it has the advantage of
3540 # actually working.
3541 break;;
3543 break;;
3544 esac
3545 done
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548 else
3549 ac_file=''
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3552 $as_echo "$ac_file" >&6; }
3553 if test -z "$ac_file"; then :
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status 77
3560 as_fn_error "C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3563 ac_exeext=$ac_cv_exeext
3565 # Check that the compiler produces executables we can run. If not, either
3566 # the compiler is broken, or we cross compile.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 # If not cross compiling, check that we can run a simple program.
3570 if test "$cross_compiling" != yes; then
3571 if { ac_try='./$ac_file'
3572 { { case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_try") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; }; then
3582 cross_compiling=no
3583 else
3584 if test "$cross_compiling" = maybe; then
3585 cross_compiling=yes
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details." "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625 test -f "$ac_file" || continue
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629 break;;
3630 * ) break;;
3631 esac
3632 done
3633 else
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." "$LINENO" 5; }
3639 rm -f conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3655 main ()
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.o conftest.obj
3663 if { { ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_compile") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 for ac_file in conftest.o conftest.obj conftest.*; do
3675 test -f "$ac_file" || continue;
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679 break;;
3680 esac
3681 done
3682 else
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error "cannot compute suffix of object files: cannot compile
3689 See \`config.log' for more details." "$LINENO" 5; }
3691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694 $as_echo "$ac_cv_objext" >&6; }
3695 OBJEXT=$ac_cv_objext
3696 ac_objext=$OBJEXT
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3708 #ifndef __GNUC__
3709 choke me
3710 #endif
3713 return 0;
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_compiler_gnu=yes
3718 else
3719 ac_compiler_gnu=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727 if test $ac_compiler_gnu = yes; then
3728 GCC=yes
3729 else
3730 GCC=
3732 ac_test_CFLAGS=${CFLAGS+set}
3733 ac_save_CFLAGS=$CFLAGS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3736 if test "${ac_cv_prog_cc_g+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 ac_save_c_werror_flag=$ac_c_werror_flag
3740 ac_c_werror_flag=yes
3741 ac_cv_prog_cc_g=no
3742 CFLAGS="-g"
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_g=yes
3756 else
3757 CFLAGS=""
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3762 main ()
3766 return 0;
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3771 else
3772 ac_c_werror_flag=$ac_save_c_werror_flag
3773 CFLAGS="-g"
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_g=yes
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796 $as_echo "$ac_cv_prog_cc_g" >&6; }
3797 if test "$ac_test_CFLAGS" = set; then
3798 CFLAGS=$ac_save_CFLAGS
3799 elif test $ac_cv_prog_cc_g = yes; then
3800 if test "$GCC" = yes; then
3801 CFLAGS="-g -O2"
3802 else
3803 CFLAGS="-g"
3805 else
3806 if test "$GCC" = yes; then
3807 CFLAGS="-O2"
3808 else
3809 CFLAGS=
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_cv_prog_cc_c89=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3832 return p[i];
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3865 main ()
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 return 0;
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877 ac_cv_prog_cc_c89=$ac_arg
3879 rm -f core conftest.err conftest.$ac_objext
3880 test "x$ac_cv_prog_cc_c89" != "xno" && break
3881 done
3882 rm -f conftest.$ac_ext
3883 CC=$ac_save_CC
3886 # AC_CACHE_VAL
3887 case "x$ac_cv_prog_cc_c89" in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890 $as_echo "none needed" >&6; } ;;
3891 xno)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 $as_echo "unsupported" >&6; } ;;
3895 CC="$CC $ac_cv_prog_cc_c89"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898 esac
3899 if test "x$ac_cv_prog_cc_c89" != xno; then :
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 DEPDIR="${am__leading_dot}deps"
3910 ac_config_commands="$ac_config_commands depfiles"
3913 am_make=${MAKE-make}
3914 cat > confinc << 'END'
3915 am__doit:
3916 @echo this is the am__doit target
3917 .PHONY: am__doit
3919 # If we don't find an include directive, just comment out the code.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3921 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3922 am__include="#"
3923 am__quote=
3924 _am_result=none
3925 # First try GNU make style include.
3926 echo "include confinc" > confmf
3927 # Ignore all kinds of additional output from `make'.
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3930 am__include=include
3931 am__quote=
3932 _am_result=GNU
3934 esac
3935 # Now try BSD make style include.
3936 if test "$am__include" = "#"; then
3937 echo '.include "confinc"' > confmf
3938 case `$am_make -s -f confmf 2> /dev/null` in #(
3939 *the\ am__doit\ target*)
3940 am__include=.include
3941 am__quote="\""
3942 _am_result=BSD
3944 esac
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3949 $as_echo "$_am_result" >&6; }
3950 rm -f confinc confmf
3952 # Check whether --enable-dependency-tracking was given.
3953 if test "${enable_dependency_tracking+set}" = set; then :
3954 enableval=$enable_dependency_tracking;
3957 if test "x$enable_dependency_tracking" != xno; then
3958 am_depcomp="$ac_aux_dir/depcomp"
3959 AMDEPBACKSLASH='\'
3961 if test "x$enable_dependency_tracking" != xno; then
3962 AMDEP_TRUE=
3963 AMDEP_FALSE='#'
3964 else
3965 AMDEP_TRUE='#'
3966 AMDEP_FALSE=
3971 depcc="$CC" am_compiler_list=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named `D' -- because `-MD' means `put the output
3983 # in D'.
3984 mkdir conftest.dir
3985 # Copy depcomp to subdir because otherwise we won't find it if we're
3986 # using a relative directory.
3987 cp "$am_depcomp" conftest.dir
3988 cd conftest.dir
3989 # We will build objects and dependencies in a subdirectory because
3990 # it helps to detect inapplicable dependency modes. For instance
3991 # both Tru64's cc and ICC support -MD to output dependencies as a
3992 # side effect of compilation, but ICC will put the dependencies in
3993 # the current directory while Tru64 will put them in the object
3994 # directory.
3995 mkdir sub
3997 am_cv_CC_dependencies_compiler_type=none
3998 if test "$am_compiler_list" = ""; then
3999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4001 am__universal=false
4002 case " $depcc " in #(
4003 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4004 esac
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4014 : > sub/conftest.c
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018 # Solaris 8's {/usr,}/bin/sh.
4019 touch sub/conftst$i.h
4020 done
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle `-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs
4027 am__obj=sub/conftest.${OBJEXT-o}
4028 am__minus_obj="-o $am__obj"
4029 case $depmode in
4030 gcc)
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false || continue
4034 nosideeffect)
4035 # after this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested
4037 if test "x$enable_dependency_tracking" = xyes; then
4038 continue
4039 else
4040 break
4043 msvisualcpp | msvcmsys)
4044 # This compiler won't grok `-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj=conftest.${OBJEXT-o}
4048 am__minus_obj=
4050 none) break ;;
4051 esac
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=$am__obj \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070 am_cv_CC_dependencies_compiler_type=$depmode
4071 break
4074 done
4076 cd ..
4077 rm -rf conftest.dir
4078 else
4079 am_cv_CC_dependencies_compiler_type=none
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090 am__fastdepCC_TRUE=
4091 am__fastdepCC_FALSE='#'
4092 else
4093 am__fastdepCC_TRUE='#'
4094 am__fastdepCC_FALSE=
4098 ac_ext=go
4099 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4100 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compile_gnu=yes
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_GOC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if test -n "$GOC"; then
4111 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4130 GOC=$ac_cv_prog_GOC
4131 if test -n "$GOC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4133 $as_echo "$GOC" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4141 if test -z "$ac_cv_prog_GOC"; then
4142 ac_ct_GOC=$GOC
4143 # Extract the first word of "gccgo", so it can be a program name with args.
4144 set dummy gccgo; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$ac_ct_GOC"; then
4151 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_ac_ct_GOC="gccgo"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4164 done
4165 done
4166 IFS=$as_save_IFS
4170 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4171 if test -n "$ac_ct_GOC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4173 $as_echo "$ac_ct_GOC" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4179 if test "x$ac_ct_GOC" = x; then
4180 GOC=""
4181 else
4182 case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188 GOC=$ac_ct_GOC
4190 else
4191 GOC="$ac_cv_prog_GOC"
4194 if test -z "$GOC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_GOC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$GOC"; then
4204 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 GOC=$ac_cv_prog_GOC
4224 if test -n "$GOC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4226 $as_echo "$GOC" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4235 if test -z "$GOC"; then
4236 # Extract the first word of "gccgo", so it can be a program name with args.
4237 set dummy gccgo; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_GOC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$GOC"; then
4244 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4245 else
4246 ac_prog_rejected=no
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4255 ac_prog_rejected=yes
4256 continue
4258 ac_cv_prog_GOC="gccgo"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4266 if test $ac_prog_rejected = yes; then
4267 # We found a bogon in the path, so make sure we never use it.
4268 set dummy $ac_cv_prog_GOC
4269 shift
4270 if test $# != 0; then
4271 # We chose a different compiler from the bogus one.
4272 # However, it has the same basename, so the bogon will be chosen
4273 # first if we set GOC to just the basename; use the full file name.
4274 shift
4275 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4280 GOC=$ac_cv_prog_GOC
4281 if test -n "$GOC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4283 $as_echo "$GOC" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 { { ac_try="$ac_compiler --version >&5"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_compiler --version >&5") 2>conftest.err
4305 ac_status=$?
4306 if test -s conftest.err; then
4307 sed '10a\
4308 ... rest of stderr output deleted ...
4309 10q' conftest.err >conftest.er1
4310 cat conftest.er1 >&5
4311 rm -f conftest.er1 conftest.err
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }
4315 GOCFLAGS="-g -O2"
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4328 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4329 # Check whether --enable-maintainer-mode was given.
4330 if test "${enable_maintainer_mode+set}" = set; then :
4331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4332 else
4333 USE_MAINTAINER_MODE=no
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4337 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4338 if test $USE_MAINTAINER_MODE = yes; then
4339 MAINTAINER_MODE_TRUE=
4340 MAINTAINER_MODE_FALSE='#'
4341 else
4342 MAINTAINER_MODE_TRUE='#'
4343 MAINTAINER_MODE_FALSE=
4346 MAINT=$MAINTAINER_MODE_TRUE
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360 CPP=
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385 Syntax error
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4389 else
4390 # Broken: fails on valid input.
4391 continue
4393 rm -f conftest.err conftest.$ac_ext
4395 # OK, works on sane cases. Now check whether nonexistent headers
4396 # can be detected and how.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <ac_nonexistent.h>
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: success on invalid input.
4403 continue
4404 else
4405 # Passes both tests.
4406 ac_preproc_ok=:
4407 break
4409 rm -f conftest.err conftest.$ac_ext
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4415 break
4418 done
4419 ac_cv_prog_CPP=$CPP
4422 CPP=$ac_cv_prog_CPP
4423 else
4424 ac_cv_prog_CPP=$CPP
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4428 ac_preproc_ok=false
4429 for ac_c_preproc_warn_flag in '' yes
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error" is here to catch this case.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #ifdef __STDC__
4440 # include <limits.h>
4441 #else
4442 # include <assert.h>
4443 #endif
4444 Syntax error
4445 _ACEOF
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4448 else
4449 # Broken: fails on valid input.
4450 continue
4452 rm -f conftest.err conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461 # Broken: success on invalid input.
4462 continue
4463 else
4464 # Passes both tests.
4465 ac_preproc_ok=:
4466 break
4468 rm -f conftest.err conftest.$ac_ext
4470 done
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4475 else
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details." "$LINENO" 5; }
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4491 if test "${ac_cv_path_GREP+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -z "$GREP"; then
4495 ac_path_GREP_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in grep ggrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4506 # Check for GNU ac_path_GREP and select it if it is found.
4507 # Check for GNU $ac_path_GREP
4508 case `"$ac_path_GREP" --version 2>&1` in
4509 *GNU*)
4510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 ac_count=0
4513 $as_echo_n 0123456789 >"conftest.in"
4514 while :
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'GREP' >> "conftest.nl"
4520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_GREP="$ac_path_GREP"
4526 ac_path_GREP_max=$ac_count
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4530 done
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4534 $ac_path_GREP_found && break 3
4535 done
4536 done
4537 done
4538 IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_GREP"; then
4540 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 else
4543 ac_cv_path_GREP=$GREP
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4548 $as_echo "$ac_cv_path_GREP" >&6; }
4549 GREP="$ac_cv_path_GREP"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4553 $as_echo_n "checking for egrep... " >&6; }
4554 if test "${ac_cv_path_EGREP+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558 then ac_cv_path_EGREP="$GREP -E"
4559 else
4560 if test -z "$EGREP"; then
4561 ac_path_EGREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in egrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4572 # Check for GNU ac_path_EGREP and select it if it is found.
4573 # Check for GNU $ac_path_EGREP
4574 case `"$ac_path_EGREP" --version 2>&1` in
4575 *GNU*)
4576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4578 ac_count=0
4579 $as_echo_n 0123456789 >"conftest.in"
4580 while :
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'EGREP' >> "conftest.nl"
4586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_EGREP="$ac_path_EGREP"
4592 ac_path_EGREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4596 done
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4600 $ac_path_EGREP_found && break 3
4601 done
4602 done
4603 done
4604 IFS=$as_save_IFS
4605 if test -z "$ac_cv_path_EGREP"; then
4606 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 else
4609 ac_cv_path_EGREP=$EGREP
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4615 $as_echo "$ac_cv_path_EGREP" >&6; }
4616 EGREP="$ac_cv_path_EGREP"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if test "${ac_cv_header_stdc+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4632 main ()
4636 return 0;
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_header_stdc=yes
4641 else
4642 ac_cv_header_stdc=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <string.h>
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "memchr" >/dev/null 2>&1; then :
4656 else
4657 ac_cv_header_stdc=no
4659 rm -f conftest*
4663 if test $ac_cv_header_stdc = yes; then
4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdlib.h>
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "free" >/dev/null 2>&1; then :
4673 else
4674 ac_cv_header_stdc=no
4676 rm -f conftest*
4680 if test $ac_cv_header_stdc = yes; then
4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682 if test "$cross_compiling" = yes; then :
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <ctype.h>
4688 #include <stdlib.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4702 main ()
4704 int i;
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4708 return 2;
4709 return 0;
4711 _ACEOF
4712 if ac_fn_c_try_run "$LINENO"; then :
4714 else
4715 ac_cv_header_stdc=no
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718 conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733 inttypes.h stdint.h unistd.h
4734 do :
4735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4738 eval as_val=\$$as_ac_Header
4739 if test "x$as_val" = x""yes; then :
4740 cat >>confdefs.h <<_ACEOF
4741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4742 _ACEOF
4746 done
4749 $ac_includes_default
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4752 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4753 if test "${ac_cv_path_SED+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4757 for ac_i in 1 2 3 4 5 6 7; do
4758 ac_script="$ac_script$as_nl$ac_script"
4759 done
4760 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4761 { ac_script=; unset ac_script;}
4762 if test -z "$SED"; then
4763 ac_path_SED_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_prog in sed gsed; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4774 # Check for GNU ac_path_SED and select it if it is found.
4775 # Check for GNU $ac_path_SED
4776 case `"$ac_path_SED" --version 2>&1` in
4777 *GNU*)
4778 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo '' >> "conftest.nl"
4788 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790 as_fn_arith $ac_count + 1 && ac_count=$as_val
4791 if test $ac_count -gt ${ac_path_SED_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_SED="$ac_path_SED"
4794 ac_path_SED_max=$ac_count
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 esac
4802 $ac_path_SED_found && break 3
4803 done
4804 done
4805 done
4806 IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_SED"; then
4808 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4810 else
4811 ac_cv_path_SED=$SED
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4816 $as_echo "$ac_cv_path_SED" >&6; }
4817 SED="$ac_cv_path_SED"
4818 rm -f conftest.sed
4820 test -z "$SED" && SED=sed
4821 Xsed="$SED -e 1s/^X//"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4834 $as_echo_n "checking for fgrep... " >&6; }
4835 if test "${ac_cv_path_FGREP+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4839 then ac_cv_path_FGREP="$GREP -F"
4840 else
4841 if test -z "$FGREP"; then
4842 ac_path_FGREP_found=false
4843 # Loop through the user's path and test for each of PROGNAME-LIST
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_prog in fgrep; do
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4852 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4853 # Check for GNU ac_path_FGREP and select it if it is found.
4854 # Check for GNU $ac_path_FGREP
4855 case `"$ac_path_FGREP" --version 2>&1` in
4856 *GNU*)
4857 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4859 ac_count=0
4860 $as_echo_n 0123456789 >"conftest.in"
4861 while :
4863 cat "conftest.in" "conftest.in" >"conftest.tmp"
4864 mv "conftest.tmp" "conftest.in"
4865 cp "conftest.in" "conftest.nl"
4866 $as_echo 'FGREP' >> "conftest.nl"
4867 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4869 as_fn_arith $ac_count + 1 && ac_count=$as_val
4870 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4871 # Best one so far, save it but keep looking for a better one
4872 ac_cv_path_FGREP="$ac_path_FGREP"
4873 ac_path_FGREP_max=$ac_count
4875 # 10*(2^10) chars as input seems more than enough
4876 test $ac_count -gt 10 && break
4877 done
4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879 esac
4881 $ac_path_FGREP_found && break 3
4882 done
4883 done
4884 done
4885 IFS=$as_save_IFS
4886 if test -z "$ac_cv_path_FGREP"; then
4887 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889 else
4890 ac_cv_path_FGREP=$FGREP
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4896 $as_echo "$ac_cv_path_FGREP" >&6; }
4897 FGREP="$ac_cv_path_FGREP"
4900 test -z "$GREP" && GREP=grep
4918 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4923 $as_echo_n "checking how to print strings... " >&6; }
4924 # Test print first, because it will be a builtin if present.
4925 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4926 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4927 ECHO='print -r --'
4928 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4929 ECHO='printf %s\n'
4930 else
4931 # Use this function as a fallback that always works.
4932 func_fallback_echo ()
4934 eval 'cat <<_LTECHO_EOF
4936 _LTECHO_EOF'
4938 ECHO='func_fallback_echo'
4941 # func_echo_all arg...
4942 # Invoke $ECHO with all args, space-separated.
4943 func_echo_all ()
4945 $ECHO ""
4948 case "$ECHO" in
4949 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4950 $as_echo "printf" >&6; } ;;
4951 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4952 $as_echo "print -r" >&6; } ;;
4953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4954 $as_echo "cat" >&6; } ;;
4955 esac
4972 # Check whether --with-gnu-ld was given.
4973 if test "${with_gnu_ld+set}" = set; then :
4974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4975 else
4976 with_gnu_ld=no
4979 ac_prog=ld
4980 if test "$GCC" = yes; then
4981 # Check if gcc -print-prog-name=ld gives a path.
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4983 $as_echo_n "checking for ld used by $CC... " >&6; }
4984 case $host in
4985 *-*-mingw*)
4986 # gcc leaves a trailing carriage return which upsets mingw
4987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4990 esac
4991 case $ac_prog in
4992 # Accept absolute paths.
4993 [\\/]* | ?:[\\/]*)
4994 re_direlt='/[^/][^/]*/\.\./'
4995 # Canonicalize the pathname of ld
4996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4999 done
5000 test -z "$LD" && LD="$ac_prog"
5003 # If it fails, then pretend we aren't using GCC.
5004 ac_prog=ld
5007 # If it is relative, then search for the first ld in PATH.
5008 with_gnu_ld=unknown
5010 esac
5011 elif test "$with_gnu_ld" = yes; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5013 $as_echo_n "checking for GNU ld... " >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5016 $as_echo_n "checking for non-GNU ld... " >&6; }
5018 if test "${lt_cv_path_LD+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -z "$LD"; then
5022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023 for ac_dir in $PATH; do
5024 IFS="$lt_save_ifs"
5025 test -z "$ac_dir" && ac_dir=.
5026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5027 lt_cv_path_LD="$ac_dir/$ac_prog"
5028 # Check to see if the program is GNU ld. I'd rather use --version,
5029 # but apparently some variants of GNU ld only accept -v.
5030 # Break only if it was the GNU/non-GNU ld that we prefer.
5031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5032 *GNU* | *'with BFD'*)
5033 test "$with_gnu_ld" != no && break
5036 test "$with_gnu_ld" != yes && break
5038 esac
5040 done
5041 IFS="$lt_save_ifs"
5042 else
5043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5047 LD="$lt_cv_path_LD"
5048 if test -n "$LD"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5050 $as_echo "$LD" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5055 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5058 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5062 case `$LD -v 2>&1 </dev/null` in
5063 *GNU* | *'with BFD'*)
5064 lt_cv_prog_gnu_ld=yes
5067 lt_cv_prog_gnu_ld=no
5069 esac
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5073 with_gnu_ld=$lt_cv_prog_gnu_ld
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$RANLIB"; then
5092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 RANLIB=$ac_cv_prog_RANLIB
5112 if test -n "$RANLIB"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5114 $as_echo "$RANLIB" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5122 if test -z "$ac_cv_prog_RANLIB"; then
5123 ac_ct_RANLIB=$RANLIB
5124 # Extract the first word of "ranlib", so it can be a program name with args.
5125 set dummy ranlib; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_RANLIB"; then
5132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_RANLIB="ranlib"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152 if test -n "$ac_ct_RANLIB"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5154 $as_echo "$ac_ct_RANLIB" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5160 if test "x$ac_ct_RANLIB" = x; then
5161 RANLIB=":"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169 RANLIB=$ac_ct_RANLIB
5171 else
5172 RANLIB="$ac_cv_prog_RANLIB"
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$OBJCOPY"; then
5184 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 OBJCOPY=$ac_cv_prog_OBJCOPY
5204 if test -n "$OBJCOPY"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5206 $as_echo "$OBJCOPY" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5214 if test -z "$ac_cv_prog_OBJCOPY"; then
5215 ac_ct_OBJCOPY=$OBJCOPY
5216 # Extract the first word of "objcopy", so it can be a program name with args.
5217 set dummy objcopy; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$ac_ct_OBJCOPY"; then
5224 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5244 if test -n "$ac_ct_OBJCOPY"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5246 $as_echo "$ac_ct_OBJCOPY" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5252 if test "x$ac_ct_OBJCOPY" = x; then
5253 OBJCOPY="missing-objcopy"
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 OBJCOPY=$ac_ct_OBJCOPY
5263 else
5264 OBJCOPY="$ac_cv_prog_OBJCOPY"
5268 enable_dlopen=yes
5272 case `pwd` in
5273 *\ * | *\ *)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5275 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5276 esac
5280 macro_version='2.2.7a'
5281 macro_revision='1.3134'
5295 ltmain="$ac_aux_dir/ltmain.sh"
5297 # Backslashify metacharacters that are still active within
5298 # double-quoted strings.
5299 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5301 # Same as above, but do not quote variable references.
5302 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5304 # Sed substitution to delay expansion of an escaped shell variable in a
5305 # double_quote_subst'ed string.
5306 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5308 # Sed substitution to delay expansion of an escaped single quote.
5309 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5311 # Sed substitution to avoid accidental globbing in evaled expressions
5312 no_glob_subst='s/\*/\\\*/g'
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if test "${lt_cv_path_NM+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$NM"; then
5320 # Let the user override the test.
5321 lt_cv_path_NM="$NM"
5322 else
5323 lt_nm_to_check="${ac_tool_prefix}nm"
5324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325 lt_nm_to_check="$lt_nm_to_check nm"
5327 for lt_tmp_nm in $lt_nm_to_check; do
5328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5330 IFS="$lt_save_ifs"
5331 test -z "$ac_dir" && ac_dir=.
5332 tmp_nm="$ac_dir/$lt_tmp_nm"
5333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334 # Check to see if the nm accepts a BSD-compat flag.
5335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336 # nm: unknown option "B" ignored
5337 # Tru64's nm complains that /dev/null is an invalid object file
5338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339 */dev/null* | *'Invalid file or object type'*)
5340 lt_cv_path_NM="$tmp_nm -B"
5341 break
5344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345 */dev/null*)
5346 lt_cv_path_NM="$tmp_nm -p"
5347 break
5350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351 continue # so that we can try to find one that supports BSD flags
5353 esac
5355 esac
5357 done
5358 IFS="$lt_save_ifs"
5359 done
5360 : ${lt_cv_path_NM=no}
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5366 NM="$lt_cv_path_NM"
5367 else
5368 # Didn't find any BSD compatible name lister, look for dumpbin.
5369 if test -n "$DUMPBIN"; then :
5370 # Let the user override the test.
5371 else
5372 if test -n "$ac_tool_prefix"; then
5373 for ac_prog in dumpbin "link -dump"
5375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$DUMPBIN"; then
5383 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 test -n "$DUMPBIN" && break
5413 done
5415 if test -z "$DUMPBIN"; then
5416 ac_ct_DUMPBIN=$DUMPBIN
5417 for ac_prog in dumpbin "link -dump"
5419 # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_DUMPBIN"; then
5427 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5456 test -n "$ac_ct_DUMPBIN" && break
5457 done
5459 if test "x$ac_ct_DUMPBIN" = x; then
5460 DUMPBIN=":"
5461 else
5462 case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468 DUMPBIN=$ac_ct_DUMPBIN
5472 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5473 *COFF*)
5474 DUMPBIN="$DUMPBIN -symbols"
5477 DUMPBIN=:
5479 esac
5482 if test "$DUMPBIN" != ":"; then
5483 NM="$DUMPBIN"
5486 test -z "$NM" && NM=nm
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if test "${lt_cv_nm_interface+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 lt_cv_nm_interface="BSD nm"
5499 echo "int some_variable = 0;" > conftest.$ac_ext
5500 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501 (eval "$ac_compile" 2>conftest.err)
5502 cat conftest.err >&5
5503 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505 cat conftest.err >&5
5506 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507 cat conftest.out >&5
5508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509 lt_cv_nm_interface="MS dumpbin"
5511 rm -f conftest*
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5518 LN_S=$as_ln_s
5519 if test "$LN_S" = "ln -s"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5534 teststring="ABCD"
5536 case $build_os in
5537 msdosdjgpp*)
5538 # On DJGPP, this test can blow up pretty badly due to problems in libc
5539 # (any single argument exceeding 2000 bytes causes a buffer overrun
5540 # during glob expansion). Even if it were fixed, the result of this
5541 # check would be larger than it should be.
5542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5545 gnu*)
5546 # Under GNU Hurd, this test is not required because there is
5547 # no limit to the length of command line arguments.
5548 # Libtool will interpret -1 as no limit whatsoever
5549 lt_cv_sys_max_cmd_len=-1;
5552 cygwin* | mingw* | cegcc*)
5553 # On Win9x/ME, this test blows up -- it succeeds, but takes
5554 # about 5 minutes as the teststring grows exponentially.
5555 # Worse, since 9x/ME are not pre-emptively multitasking,
5556 # you end up with a "frozen" computer, even though with patience
5557 # the test eventually succeeds (with a max line length of 256k).
5558 # Instead, let's just punt: use the minimum linelength reported by
5559 # all of the supported platforms: 8192 (on NT/2K/XP).
5560 lt_cv_sys_max_cmd_len=8192;
5563 mint*)
5564 # On MiNT this can take a long time and run out of memory.
5565 lt_cv_sys_max_cmd_len=8192;
5568 amigaos*)
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len=8192;
5574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr/sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580 else
5581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5588 interix*)
5589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590 lt_cv_sys_max_cmd_len=196608
5593 osf*)
5594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5596 # nice to cause kernel panics so lets avoid the loop below.
5597 # First set a reasonable default.
5598 lt_cv_sys_max_cmd_len=16384
5600 if test -x /sbin/sysconfig; then
5601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5603 esac
5606 sco3.2v5*)
5607 lt_cv_sys_max_cmd_len=102400
5609 sysv5* | sco5v6* | sysv4.2uw2*)
5610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5611 if test -n "$kargmax"; then
5612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5613 else
5614 lt_cv_sys_max_cmd_len=32768
5618 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5619 if test -n "$lt_cv_sys_max_cmd_len"; then
5620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622 else
5623 # Make teststring a little bigger before we do anything with it.
5624 # a 1K string should be a reasonable start.
5625 for i in 1 2 3 4 5 6 7 8 ; do
5626 teststring=$teststring$teststring
5627 done
5628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629 # If test is not a shell built-in, we'll probably end up computing a
5630 # maximum length that is only half of the actual maximum length, but
5631 # we can't tell.
5632 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5633 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5634 test $i != 17 # 1/2 MB should be enough
5636 i=`expr $i + 1`
5637 teststring=$teststring$teststring
5638 done
5639 # Only check the string length outside the loop.
5640 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5641 teststring=
5642 # Add a significant safety factor because C++ compilers can tack on
5643 # massive amounts of additional arguments before passing them to the
5644 # linker. It appears as though 1/2 is a usable value.
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5648 esac
5652 if test -n $lt_cv_sys_max_cmd_len ; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5654 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5657 $as_echo "none" >&6; }
5659 max_cmd_len=$lt_cv_sys_max_cmd_len
5666 : ${CP="cp -f"}
5667 : ${MV="mv -f"}
5668 : ${RM="rm -f"}
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5671 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5672 # Try some XSI features
5673 xsi_shell=no
5674 ( _lt_dummy="a/b/c"
5675 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5676 = c,a/b,, \
5677 && eval 'test $(( 1 + 1 )) -eq 2 \
5678 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5679 && xsi_shell=yes
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5681 $as_echo "$xsi_shell" >&6; }
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5685 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5686 lt_shell_append=no
5687 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5688 >/dev/null 2>&1 \
5689 && lt_shell_append=yes
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5691 $as_echo "$lt_shell_append" >&6; }
5694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5695 lt_unset=unset
5696 else
5697 lt_unset=false
5704 # test EBCDIC or ASCII
5705 case `echo X|tr X '\101'` in
5706 A) # ASCII based system
5707 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5708 lt_SP2NL='tr \040 \012'
5709 lt_NL2SP='tr \015\012 \040\040'
5711 *) # EBCDIC based system
5712 lt_SP2NL='tr \100 \n'
5713 lt_NL2SP='tr \r\n \100\100'
5715 esac
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5726 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5727 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 lt_cv_ld_reload_flag='-r'
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5733 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5734 reload_flag=$lt_cv_ld_reload_flag
5735 case $reload_flag in
5736 "" | " "*) ;;
5737 *) reload_flag=" $reload_flag" ;;
5738 esac
5739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5740 case $host_os in
5741 darwin*)
5742 if test "$GCC" = yes; then
5743 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5744 else
5745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 esac
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$OBJDUMP"; then
5767 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5782 IFS=$as_save_IFS
5786 OBJDUMP=$ac_cv_prog_OBJDUMP
5787 if test -n "$OBJDUMP"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5789 $as_echo "$OBJDUMP" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test -z "$ac_cv_prog_OBJDUMP"; then
5798 ac_ct_OBJDUMP=$OBJDUMP
5799 # Extract the first word of "objdump", so it can be a program name with args.
5800 set dummy objdump; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$ac_ct_OBJDUMP"; then
5807 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5820 done
5821 done
5822 IFS=$as_save_IFS
5826 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5827 if test -n "$ac_ct_OBJDUMP"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5829 $as_echo "$ac_ct_OBJDUMP" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5835 if test "x$ac_ct_OBJDUMP" = x; then
5836 OBJDUMP="false"
5837 else
5838 case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844 OBJDUMP=$ac_ct_OBJDUMP
5846 else
5847 OBJDUMP="$ac_cv_prog_OBJDUMP"
5850 test -z "$OBJDUMP" && OBJDUMP=objdump
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5861 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5862 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 lt_cv_file_magic_cmd='$MAGIC_CMD'
5866 lt_cv_file_magic_test_file=
5867 lt_cv_deplibs_check_method='unknown'
5868 # Need to set the preceding variable on all platforms that support
5869 # interlibrary dependencies.
5870 # 'none' -- dependencies not supported.
5871 # `unknown' -- same as none, but documents that we really don't know.
5872 # 'pass_all' -- all dependencies passed with no checks.
5873 # 'test_compile' -- check by making test program.
5874 # 'file_magic [[regex]]' -- check by looking for files in library path
5875 # which responds to the $file_magic_cmd with a given extended regex.
5876 # If you have `file' or equivalent on your system and you're not sure
5877 # whether `pass_all' will *always* work, you probably want this one.
5879 case $host_os in
5880 aix[4-9]*)
5881 lt_cv_deplibs_check_method=pass_all
5884 beos*)
5885 lt_cv_deplibs_check_method=pass_all
5888 bsdi[45]*)
5889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5890 lt_cv_file_magic_cmd='/usr/bin/file -L'
5891 lt_cv_file_magic_test_file=/shlib/libc.so
5894 cygwin*)
5895 # func_win32_libid is a shell function defined in ltmain.sh
5896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897 lt_cv_file_magic_cmd='func_win32_libid'
5900 mingw* | pw32*)
5901 # Base MSYS/MinGW do not provide the 'file' command needed by
5902 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5903 # unless we find 'file', for example because we are cross-compiling.
5904 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5905 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5907 lt_cv_file_magic_cmd='func_win32_libid'
5908 else
5909 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5910 lt_cv_file_magic_cmd='$OBJDUMP -f'
5914 cegcc*)
5915 # use the weaker test based on 'objdump'. See mingw*.
5916 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5917 lt_cv_file_magic_cmd='$OBJDUMP -f'
5920 darwin* | rhapsody*)
5921 lt_cv_deplibs_check_method=pass_all
5924 freebsd* | dragonfly*)
5925 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5926 case $host_cpu in
5927 i*86 )
5928 # Not sure whether the presence of OpenBSD here was a mistake.
5929 # Let's accept both of them until this is cleared up.
5930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5931 lt_cv_file_magic_cmd=/usr/bin/file
5932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5934 esac
5935 else
5936 lt_cv_deplibs_check_method=pass_all
5940 gnu*)
5941 lt_cv_deplibs_check_method=pass_all
5944 haiku*)
5945 lt_cv_deplibs_check_method=pass_all
5948 hpux10.20* | hpux11*)
5949 lt_cv_file_magic_cmd=/usr/bin/file
5950 case $host_cpu in
5951 ia64*)
5952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5955 hppa*64*)
5956 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]'
5957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5963 esac
5966 interix[3-9]*)
5967 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5971 irix5* | irix6* | nonstopux*)
5972 case $LD in
5973 *-32|*"-32 ") libmagic=32-bit;;
5974 *-n32|*"-n32 ") libmagic=N32;;
5975 *-64|*"-64 ") libmagic=64-bit;;
5976 *) libmagic=never-match;;
5977 esac
5978 lt_cv_deplibs_check_method=pass_all
5981 # This must be Linux ELF.
5982 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5983 lt_cv_deplibs_check_method=pass_all
5986 netbsd*)
5987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5989 else
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5994 newos6*)
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996 lt_cv_file_magic_cmd=/usr/bin/file
5997 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6000 *nto* | *qnx*)
6001 lt_cv_deplibs_check_method=pass_all
6004 openbsd*)
6005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6007 else
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 osf3* | osf4* | osf5*)
6013 lt_cv_deplibs_check_method=pass_all
6016 rdos*)
6017 lt_cv_deplibs_check_method=pass_all
6020 solaris*)
6021 lt_cv_deplibs_check_method=pass_all
6024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6025 lt_cv_deplibs_check_method=pass_all
6028 sysv4 | sysv4.3*)
6029 case $host_vendor in
6030 motorola)
6031 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]'
6032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6034 ncr)
6035 lt_cv_deplibs_check_method=pass_all
6037 sequent)
6038 lt_cv_file_magic_cmd='/bin/file'
6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6041 sni)
6042 lt_cv_file_magic_cmd='/bin/file'
6043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044 lt_cv_file_magic_test_file=/lib/libc.so
6046 siemens)
6047 lt_cv_deplibs_check_method=pass_all
6050 lt_cv_deplibs_check_method=pass_all
6052 esac
6055 tpf*)
6056 lt_cv_deplibs_check_method=pass_all
6058 esac
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6063 file_magic_cmd=$lt_cv_file_magic_cmd
6064 deplibs_check_method=$lt_cv_deplibs_check_method
6065 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ar; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_AR+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$AR"; then
6087 ac_cv_prog_AR="$AR" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_AR="${ac_tool_prefix}ar"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6106 AR=$ac_cv_prog_AR
6107 if test -n "$AR"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6109 $as_echo "$AR" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6117 if test -z "$ac_cv_prog_AR"; then
6118 ac_ct_AR=$AR
6119 # Extract the first word of "ar", so it can be a program name with args.
6120 set dummy ar; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$ac_ct_AR"; then
6127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_ac_ct_AR="ar"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6140 done
6141 done
6142 IFS=$as_save_IFS
6146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6147 if test -n "$ac_ct_AR"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6149 $as_echo "$ac_ct_AR" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6155 if test "x$ac_ct_AR" = x; then
6156 AR="false"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164 AR=$ac_ct_AR
6166 else
6167 AR="$ac_cv_prog_AR"
6170 test -z "$AR" && AR=ar
6171 test -z "$AR_FLAGS" && AR_FLAGS=cru
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}strip; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_STRIP+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$STRIP"; then
6192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6207 IFS=$as_save_IFS
6211 STRIP=$ac_cv_prog_STRIP
6212 if test -n "$STRIP"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6214 $as_echo "$STRIP" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test -z "$ac_cv_prog_STRIP"; then
6223 ac_ct_STRIP=$STRIP
6224 # Extract the first word of "strip", so it can be a program name with args.
6225 set dummy strip; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_STRIP"; then
6232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_STRIP="strip"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6252 if test -n "$ac_ct_STRIP"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6254 $as_echo "$ac_ct_STRIP" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6260 if test "x$ac_ct_STRIP" = x; then
6261 STRIP=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 STRIP=$ac_ct_STRIP
6271 else
6272 STRIP="$ac_cv_prog_STRIP"
6275 test -z "$STRIP" && STRIP=:
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$RANLIB"; then
6291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 RANLIB=$ac_cv_prog_RANLIB
6311 if test -n "$RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6313 $as_echo "$RANLIB" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6321 if test -z "$ac_cv_prog_RANLIB"; then
6322 ac_ct_RANLIB=$RANLIB
6323 # Extract the first word of "ranlib", so it can be a program name with args.
6324 set dummy ranlib; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_RANLIB"; then
6331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_ac_ct_RANLIB="ranlib"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6344 done
6345 done
6346 IFS=$as_save_IFS
6350 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6351 if test -n "$ac_ct_RANLIB"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6353 $as_echo "$ac_ct_RANLIB" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6359 if test "x$ac_ct_RANLIB" = x; then
6360 RANLIB=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 RANLIB=$ac_ct_RANLIB
6370 else
6371 RANLIB="$ac_cv_prog_RANLIB"
6374 test -z "$RANLIB" && RANLIB=:
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6383 old_postinstall_cmds='chmod 644 $oldlib'
6384 old_postuninstall_cmds=
6386 if test -n "$RANLIB"; then
6387 case $host_os in
6388 openbsd*)
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6394 esac
6395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6398 case $host_os in
6399 darwin*)
6400 lock_old_archive_extraction=yes ;;
6402 lock_old_archive_extraction=no ;;
6403 esac
6443 # If no C compiler was specified, use CC.
6444 LTCC=${LTCC-"$CC"}
6446 # If no C compiler flags were specified, use CFLAGS.
6447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6449 # Allow CC to be a program name with arguments.
6450 compiler=$CC
6453 # Check for command to grab the raw symbol name followed by C symbol from nm.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6455 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6456 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6460 # These are sane defaults that work on at least a few old systems.
6461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6463 # Character class describing NM global symbol codes.
6464 symcode='[BCDEGRST]'
6466 # Regexp to match symbols that can be accessed directly from C.
6467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6469 # Define system-specific variables.
6470 case $host_os in
6471 aix*)
6472 symcode='[BCDT]'
6474 cygwin* | mingw* | pw32* | cegcc*)
6475 symcode='[ABCDGISTW]'
6477 hpux*)
6478 if test "$host_cpu" = ia64; then
6479 symcode='[ABCDEGRST]'
6482 irix* | nonstopux*)
6483 symcode='[BCDEGRST]'
6485 osf*)
6486 symcode='[BCDEGQRST]'
6488 solaris*)
6489 symcode='[BDRT]'
6491 sco3.2v5*)
6492 symcode='[DT]'
6494 sysv4.2uw2*)
6495 symcode='[DT]'
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498 symcode='[ABDT]'
6500 sysv4)
6501 symcode='[DFNSTU]'
6503 esac
6505 # If we're using GNU nm, then use its standard symbol codes.
6506 case `$NM -V 2>&1` in
6507 *GNU* | *'with BFD'*)
6508 symcode='[ABCDGIRSTW]' ;;
6509 esac
6511 # Transform an extracted symbol line into a proper C declaration.
6512 # Some systems (esp. on ia64) link data and code symbols differently,
6513 # so use this general approach.
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516 # Transform an extracted symbol line into symbol name and symbol address
6517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6518 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'"
6520 # Handle CRLF in mingw tool chain
6521 opt_cr=
6522 case $build_os in
6523 mingw*)
6524 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6526 esac
6528 # Try without a prefix underscore, then with it.
6529 for ac_symprfx in "" "_"; do
6531 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6532 symxfrm="\\1 $ac_symprfx\\2 \\2"
6534 # Write the raw and C identifiers.
6535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6536 # Fake it for dumpbin and say T for any non-static function
6537 # and D for any global variable.
6538 # Also find C++ and __fastcall symbols from MSVC++,
6539 # which start with @ or ?.
6540 lt_cv_sys_global_symbol_pipe="$AWK '"\
6541 " {last_section=section; section=\$ 3};"\
6542 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6543 " \$ 0!~/External *\|/{next};"\
6544 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6545 " {if(hide[section]) next};"\
6546 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6547 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6548 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6549 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6550 " ' prfx=^$ac_symprfx"
6551 else
6552 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6555 # Check to see that the pipe works correctly.
6556 pipe_works=no
6558 rm -f conftest*
6559 cat > conftest.$ac_ext <<_LT_EOF
6560 #ifdef __cplusplus
6561 extern "C" {
6562 #endif
6563 char nm_test_var;
6564 void nm_test_func(void);
6565 void nm_test_func(void){}
6566 #ifdef __cplusplus
6568 #endif
6569 int main(){nm_test_var='a';nm_test_func();return(0);}
6570 _LT_EOF
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 # Now try to grab the symbols.
6578 nlist=conftest.nm
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6580 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; } && test -s "$nlist"; then
6584 # Try sorting and uniquifying the output.
6585 if sort "$nlist" | uniq > "$nlist"T; then
6586 mv -f "$nlist"T "$nlist"
6587 else
6588 rm -f "$nlist"T
6591 # Make sure that we snagged all the symbols we need.
6592 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6593 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6594 cat <<_LT_EOF > conftest.$ac_ext
6595 #ifdef __cplusplus
6596 extern "C" {
6597 #endif
6599 _LT_EOF
6600 # Now generate the symbol file.
6601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6603 cat <<_LT_EOF >> conftest.$ac_ext
6605 /* The mapping between symbol names and symbols. */
6606 const struct {
6607 const char *name;
6608 void *address;
6610 lt__PROGRAM__LTX_preloaded_symbols[] =
6612 { "@PROGRAM@", (void *) 0 },
6613 _LT_EOF
6614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6615 cat <<\_LT_EOF >> conftest.$ac_ext
6616 {0, (void *) 0}
6619 /* This works around a problem in FreeBSD linker */
6620 #ifdef FREEBSD_WORKAROUND
6621 static const void *lt_preloaded_setup() {
6622 return lt__PROGRAM__LTX_preloaded_symbols;
6624 #endif
6626 #ifdef __cplusplus
6628 #endif
6629 _LT_EOF
6630 # Now try linking the two files.
6631 mv conftest.$ac_objext conftstm.$ac_objext
6632 lt_save_LIBS="$LIBS"
6633 lt_save_CFLAGS="$CFLAGS"
6634 LIBS="conftstm.$ac_objext"
6635 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6637 (eval $ac_link) 2>&5
6638 ac_status=$?
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6641 pipe_works=yes
6643 LIBS="$lt_save_LIBS"
6644 CFLAGS="$lt_save_CFLAGS"
6645 else
6646 echo "cannot find nm_test_func in $nlist" >&5
6648 else
6649 echo "cannot find nm_test_var in $nlist" >&5
6651 else
6652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6654 else
6655 echo "$progname: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6658 rm -rf conftest* conftst*
6660 # Do not use the global_symbol_pipe unless it works.
6661 if test "$pipe_works" = yes; then
6662 break
6663 else
6664 lt_cv_sys_global_symbol_pipe=
6666 done
6670 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6671 lt_cv_sys_global_symbol_to_cdecl=
6673 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6675 $as_echo "failed" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6678 $as_echo "ok" >&6; }
6702 # Check whether --enable-libtool-lock was given.
6703 if test "${enable_libtool_lock+set}" = set; then :
6704 enableval=$enable_libtool_lock;
6707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6709 # Some flags need to be propagated to the compiler or linker for good
6710 # libtool support.
6711 case $host in
6712 ia64-*-hpux*)
6713 # Find out which ABI we are using.
6714 echo 'int i;' > conftest.$ac_ext
6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716 (eval $ac_compile) 2>&5
6717 ac_status=$?
6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 test $ac_status = 0; }; then
6720 case `/usr/bin/file conftest.$ac_objext` in
6721 *ELF-32*)
6722 HPUX_IA64_MODE="32"
6724 *ELF-64*)
6725 HPUX_IA64_MODE="64"
6727 esac
6729 rm -rf conftest*
6731 *-*-irix6*)
6732 # Find out which ABI we are using.
6733 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735 (eval $ac_compile) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
6739 if test "$lt_cv_prog_gnu_ld" = yes; then
6740 case `/usr/bin/file conftest.$ac_objext` in
6741 *32-bit*)
6742 LD="${LD-ld} -melf32bsmip"
6744 *N32*)
6745 LD="${LD-ld} -melf32bmipn32"
6747 *64-bit*)
6748 LD="${LD-ld} -melf64bmip"
6750 esac
6751 else
6752 case `/usr/bin/file conftest.$ac_objext` in
6753 *32-bit*)
6754 LD="${LD-ld} -32"
6756 *N32*)
6757 LD="${LD-ld} -n32"
6759 *64-bit*)
6760 LD="${LD-ld} -64"
6762 esac
6765 rm -rf conftest*
6768 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6769 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6770 # Find out which ABI we are using.
6771 echo 'int i;' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 case `/usr/bin/file conftest.o` in
6778 *32-bit*)
6779 case $host in
6780 x86_64-*kfreebsd*-gnu)
6781 LD="${LD-ld} -m elf_i386_fbsd"
6783 x86_64-*linux*)
6784 LD="${LD-ld} -m elf_i386"
6786 ppc64-*linux*|powerpc64-*linux*)
6787 LD="${LD-ld} -m elf32ppclinux"
6789 s390x-*linux*)
6790 LD="${LD-ld} -m elf_s390"
6792 sparc64-*linux*)
6793 LD="${LD-ld} -m elf32_sparc"
6795 esac
6797 *64-bit*)
6798 case $host in
6799 x86_64-*kfreebsd*-gnu)
6800 LD="${LD-ld} -m elf_x86_64_fbsd"
6802 x86_64-*linux*)
6803 LD="${LD-ld} -m elf_x86_64"
6805 ppc*-*linux*|powerpc*-*linux*)
6806 LD="${LD-ld} -m elf64ppc"
6808 s390*-*linux*|s390*-*tpf*)
6809 LD="${LD-ld} -m elf64_s390"
6811 sparc*-*linux*)
6812 LD="${LD-ld} -m elf64_sparc"
6814 esac
6816 esac
6818 rm -rf conftest*
6821 *-*-sco3.2v5*)
6822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823 SAVE_CFLAGS="$CFLAGS"
6824 CFLAGS="$CFLAGS -belf"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6840 main ()
6844 return 0;
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 lt_cv_cc_needs_belf=yes
6849 else
6850 lt_cv_cc_needs_belf=no
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 ac_ext=c
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6863 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865 CFLAGS="$SAVE_CFLAGS"
6868 *-*solaris*)
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 case `/usr/bin/file conftest.o` in
6877 *64-bit*)
6878 case $lt_cv_prog_gnu_ld in
6879 yes*)
6880 case $host in
6881 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6882 LD="${LD-ld} -m elf_x86_64"
6884 sparc*-*-solaris*)
6885 LD="${LD-ld} -m elf64_sparc"
6887 esac
6888 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6889 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6890 LD="${LD-ld}_sol2"
6894 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6895 LD="${LD-ld} -64"
6898 esac
6900 esac
6902 rm -rf conftest*
6904 esac
6906 need_locks="$enable_libtool_lock"
6909 case $host_os in
6910 rhapsody* | darwin*)
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$DSYMUTIL"; then
6920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6933 done
6934 done
6935 IFS=$as_save_IFS
6939 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6940 if test -n "$DSYMUTIL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6942 $as_echo "$DSYMUTIL" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6950 if test -z "$ac_cv_prog_DSYMUTIL"; then
6951 ac_ct_DSYMUTIL=$DSYMUTIL
6952 # Extract the first word of "dsymutil", so it can be a program name with args.
6953 set dummy dsymutil; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$ac_ct_DSYMUTIL"; then
6960 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6979 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6980 if test -n "$ac_ct_DSYMUTIL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6982 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6988 if test "x$ac_ct_DSYMUTIL" = x; then
6989 DSYMUTIL=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997 DSYMUTIL=$ac_ct_DSYMUTIL
6999 else
7000 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$NMEDIT"; then
7012 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 NMEDIT=$ac_cv_prog_NMEDIT
7032 if test -n "$NMEDIT"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7034 $as_echo "$NMEDIT" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7042 if test -z "$ac_cv_prog_NMEDIT"; then
7043 ac_ct_NMEDIT=$NMEDIT
7044 # Extract the first word of "nmedit", so it can be a program name with args.
7045 set dummy nmedit; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$ac_ct_NMEDIT"; then
7052 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7072 if test -n "$ac_ct_NMEDIT"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7074 $as_echo "$ac_ct_NMEDIT" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7080 if test "x$ac_ct_NMEDIT" = x; then
7081 NMEDIT=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089 NMEDIT=$ac_ct_NMEDIT
7091 else
7092 NMEDIT="$ac_cv_prog_NMEDIT"
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_LIPO+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$LIPO"; then
7104 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7117 done
7118 done
7119 IFS=$as_save_IFS
7123 LIPO=$ac_cv_prog_LIPO
7124 if test -n "$LIPO"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7126 $as_echo "$LIPO" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7134 if test -z "$ac_cv_prog_LIPO"; then
7135 ac_ct_LIPO=$LIPO
7136 # Extract the first word of "lipo", so it can be a program name with args.
7137 set dummy lipo; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$ac_ct_LIPO"; then
7144 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_ac_ct_LIPO="lipo"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7157 done
7158 done
7159 IFS=$as_save_IFS
7163 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7164 if test -n "$ac_ct_LIPO"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7166 $as_echo "$ac_ct_LIPO" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7172 if test "x$ac_ct_LIPO" = x; then
7173 LIPO=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 LIPO=$ac_ct_LIPO
7183 else
7184 LIPO="$ac_cv_prog_LIPO"
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}otool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$OTOOL"; then
7196 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7209 done
7210 done
7211 IFS=$as_save_IFS
7215 OTOOL=$ac_cv_prog_OTOOL
7216 if test -n "$OTOOL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7218 $as_echo "$OTOOL" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7226 if test -z "$ac_cv_prog_OTOOL"; then
7227 ac_ct_OTOOL=$OTOOL
7228 # Extract the first word of "otool", so it can be a program name with args.
7229 set dummy otool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$ac_ct_OTOOL"; then
7236 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_ac_ct_OTOOL="otool"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7249 done
7250 done
7251 IFS=$as_save_IFS
7255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7256 if test -n "$ac_ct_OTOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7258 $as_echo "$ac_ct_OTOOL" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7264 if test "x$ac_ct_OTOOL" = x; then
7265 OTOOL=":"
7266 else
7267 case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273 OTOOL=$ac_ct_OTOOL
7275 else
7276 OTOOL="$ac_cv_prog_OTOOL"
7279 if test -n "$ac_tool_prefix"; then
7280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$OTOOL64"; then
7288 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7307 OTOOL64=$ac_cv_prog_OTOOL64
7308 if test -n "$OTOOL64"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7310 $as_echo "$OTOOL64" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7318 if test -z "$ac_cv_prog_OTOOL64"; then
7319 ac_ct_OTOOL64=$OTOOL64
7320 # Extract the first word of "otool64", so it can be a program name with args.
7321 set dummy otool64; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$ac_ct_OTOOL64"; then
7328 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_ac_ct_OTOOL64="otool64"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7343 IFS=$as_save_IFS
7347 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7348 if test -n "$ac_ct_OTOOL64"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7350 $as_echo "$ac_ct_OTOOL64" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7356 if test "x$ac_ct_OTOOL64" = x; then
7357 OTOOL64=":"
7358 else
7359 case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365 OTOOL64=$ac_ct_OTOOL64
7367 else
7368 OTOOL64="$ac_cv_prog_OTOOL64"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7398 $as_echo_n "checking for -single_module linker flag... " >&6; }
7399 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 lt_cv_apple_cc_single_mod=no
7403 if test -z "${LT_MULTI_MODULE}"; then
7404 # By default we will add the -single_module flag. You can override
7405 # by either setting the environment variable LT_MULTI_MODULE
7406 # non-empty at configure time, or by adding -multi_module to the
7407 # link flags.
7408 rm -rf libconftest.dylib*
7409 echo "int foo(void){return 1;}" > conftest.c
7410 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411 -dynamiclib -Wl,-single_module conftest.c" >&5
7412 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7413 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7414 _lt_result=$?
7415 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7416 lt_cv_apple_cc_single_mod=yes
7417 else
7418 cat conftest.err >&5
7420 rm -rf libconftest.dylib*
7421 rm -f conftest.*
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7427 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7428 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 lt_cv_ld_exported_symbols_list=no
7432 save_LDFLAGS=$LDFLAGS
7433 echo "_main" > conftest.sym
7434 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 main ()
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447 lt_cv_ld_exported_symbols_list=yes
7448 else
7449 lt_cv_ld_exported_symbols_list=no
7451 rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 LDFLAGS="$save_LDFLAGS"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7457 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7459 $as_echo_n "checking for -force_load linker flag... " >&6; }
7460 if test "${lt_cv_ld_force_load+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 lt_cv_ld_force_load=no
7464 cat > conftest.c << _LT_EOF
7465 int forced_loaded() { return 2;}
7466 _LT_EOF
7467 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7468 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7469 echo "$AR cru libconftest.a conftest.o" >&5
7470 $AR cru libconftest.a conftest.o 2>&5
7471 cat > conftest.c << _LT_EOF
7472 int main() { return 0;}
7473 _LT_EOF
7474 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7475 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7476 _lt_result=$?
7477 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7478 lt_cv_ld_force_load=yes
7479 else
7480 cat conftest.err >&5
7482 rm -f conftest.err libconftest.a conftest conftest.c
7483 rm -rf conftest.dSYM
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7487 $as_echo "$lt_cv_ld_force_load" >&6; }
7488 case $host_os in
7489 rhapsody* | darwin1.[012])
7490 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7491 darwin1.*)
7492 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7493 darwin*) # darwin 5.x on
7494 # if running on 10.5 or later, the deployment target defaults
7495 # to the OS version, if on x86, and 10.4, the deployment
7496 # target defaults to 10.4. Don't you love it?
7497 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7498 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7499 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7500 10.[012]*)
7501 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7502 10.*)
7503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7504 esac
7506 esac
7507 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7508 _lt_dar_single_mod='$single_module'
7510 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7511 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7512 else
7513 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7515 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7516 _lt_dsymutil='~$DSYMUTIL $lib || :'
7517 else
7518 _lt_dsymutil=
7521 esac
7523 for ac_header in dlfcn.h
7524 do :
7525 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7527 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7528 cat >>confdefs.h <<_ACEOF
7529 #define HAVE_DLFCN_H 1
7530 _ACEOF
7534 done
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_GOC+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$GOC"; then
7545 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 GOC=$ac_cv_prog_GOC
7565 if test -n "$GOC"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7567 $as_echo "$GOC" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_GOC"; then
7576 ac_ct_GOC=$GOC
7577 # Extract the first word of "gccgo", so it can be a program name with args.
7578 set dummy gccgo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_GOC"; then
7585 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_ac_ct_GOC="gccgo"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7598 done
7599 done
7600 IFS=$as_save_IFS
7604 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7605 if test -n "$ac_ct_GOC"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7607 $as_echo "$ac_ct_GOC" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_GOC" = x; then
7614 GOC=""
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 GOC=$ac_ct_GOC
7624 else
7625 GOC="$ac_cv_prog_GOC"
7633 # Set options
7638 enable_win32_dll=no
7641 # Check whether --enable-shared was given.
7642 if test "${enable_shared+set}" = set; then :
7643 enableval=$enable_shared; p=${PACKAGE-default}
7644 case $enableval in
7645 yes) enable_shared=yes ;;
7646 no) enable_shared=no ;;
7648 enable_shared=no
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651 for pkg in $enableval; do
7652 IFS="$lt_save_ifs"
7653 if test "X$pkg" = "X$p"; then
7654 enable_shared=yes
7656 done
7657 IFS="$lt_save_ifs"
7659 esac
7660 else
7661 enable_shared=yes
7672 # Check whether --enable-static was given.
7673 if test "${enable_static+set}" = set; then :
7674 enableval=$enable_static; p=${PACKAGE-default}
7675 case $enableval in
7676 yes) enable_static=yes ;;
7677 no) enable_static=no ;;
7679 enable_static=no
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for pkg in $enableval; do
7683 IFS="$lt_save_ifs"
7684 if test "X$pkg" = "X$p"; then
7685 enable_static=yes
7687 done
7688 IFS="$lt_save_ifs"
7690 esac
7691 else
7692 enable_static=yes
7704 # Check whether --with-pic was given.
7705 if test "${with_pic+set}" = set; then :
7706 withval=$with_pic; pic_mode="$withval"
7707 else
7708 pic_mode=default
7712 test -z "$pic_mode" && pic_mode=default
7720 # Check whether --enable-fast-install was given.
7721 if test "${enable_fast_install+set}" = set; then :
7722 enableval=$enable_fast_install; p=${PACKAGE-default}
7723 case $enableval in
7724 yes) enable_fast_install=yes ;;
7725 no) enable_fast_install=no ;;
7727 enable_fast_install=no
7728 # Look at the argument we got. We use all the common list separators.
7729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7730 for pkg in $enableval; do
7731 IFS="$lt_save_ifs"
7732 if test "X$pkg" = "X$p"; then
7733 enable_fast_install=yes
7735 done
7736 IFS="$lt_save_ifs"
7738 esac
7739 else
7740 enable_fast_install=yes
7753 # This can be used to rebuild libtool when needed
7754 LIBTOOL_DEPS="$ltmain"
7756 # Always use our own libtool.
7757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7784 test -z "$LN_S" && LN_S="ln -s"
7799 if test -n "${ZSH_VERSION+set}" ; then
7800 setopt NO_GLOB_SUBST
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7804 $as_echo_n "checking for objdir... " >&6; }
7805 if test "${lt_cv_objdir+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 rm -f .libs 2>/dev/null
7809 mkdir .libs 2>/dev/null
7810 if test -d .libs; then
7811 lt_cv_objdir=.libs
7812 else
7813 # MS-DOS does not allow filenames that begin with a dot.
7814 lt_cv_objdir=_libs
7816 rmdir .libs 2>/dev/null
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7819 $as_echo "$lt_cv_objdir" >&6; }
7820 objdir=$lt_cv_objdir
7826 cat >>confdefs.h <<_ACEOF
7827 #define LT_OBJDIR "$lt_cv_objdir/"
7828 _ACEOF
7833 case $host_os in
7834 aix3*)
7835 # AIX sometimes has problems with the GCC collect2 program. For some
7836 # reason, if we set the COLLECT_NAMES environment variable, the problems
7837 # vanish in a puff of smoke.
7838 if test "X${COLLECT_NAMES+set}" != Xset; then
7839 COLLECT_NAMES=
7840 export COLLECT_NAMES
7843 esac
7845 # Global variables:
7846 ofile=libtool
7847 can_build_shared=yes
7849 # All known linkers require a `.a' archive for static linking (except MSVC,
7850 # which needs '.lib').
7851 libext=a
7853 with_gnu_ld="$lt_cv_prog_gnu_ld"
7855 old_CC="$CC"
7856 old_CFLAGS="$CFLAGS"
7858 # Set sane defaults for various variables
7859 test -z "$CC" && CC=cc
7860 test -z "$LTCC" && LTCC=$CC
7861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7862 test -z "$LD" && LD=ld
7863 test -z "$ac_objext" && ac_objext=o
7865 for cc_temp in $compiler""; do
7866 case $cc_temp in
7867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869 \-*) ;;
7870 *) break;;
7871 esac
7872 done
7873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7876 # Only perform the check for file, if the check method requires it
7877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7878 case $deplibs_check_method in
7879 file_magic*)
7880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $MAGIC_CMD in
7887 [\\/*] | ?:[\\/]*)
7888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891 lt_save_MAGIC_CMD="$MAGIC_CMD"
7892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894 for ac_dir in $ac_dummy; do
7895 IFS="$lt_save_ifs"
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/${ac_tool_prefix}file; then
7898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7899 if test -n "$file_magic_test_file"; then
7900 case $deplibs_check_method in
7901 "file_magic "*)
7902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905 $EGREP "$file_magic_regex" > /dev/null; then
7907 else
7908 cat <<_LT_EOF 1>&2
7910 *** Warning: the command libtool uses to detect shared libraries,
7911 *** $file_magic_cmd, produces output that libtool cannot recognize.
7912 *** The result is that libtool may fail to recognize shared libraries
7913 *** as such. This will affect the creation of libtool libraries that
7914 *** depend on shared libraries, but programs linked with such libtool
7915 *** libraries will work regardless of this problem. Nevertheless, you
7916 *** may want to report the problem to your system manager and/or to
7917 *** bug-libtool@gnu.org
7919 _LT_EOF
7920 fi ;;
7921 esac
7923 break
7925 done
7926 IFS="$lt_save_ifs"
7927 MAGIC_CMD="$lt_save_MAGIC_CMD"
7929 esac
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if test -n "$MAGIC_CMD"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935 $as_echo "$MAGIC_CMD" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7945 if test -z "$lt_cv_path_MAGIC_CMD"; then
7946 if test -n "$ac_tool_prefix"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7948 $as_echo_n "checking for file... " >&6; }
7949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 case $MAGIC_CMD in
7953 [\\/*] | ?:[\\/]*)
7954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7957 lt_save_MAGIC_CMD="$MAGIC_CMD"
7958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960 for ac_dir in $ac_dummy; do
7961 IFS="$lt_save_ifs"
7962 test -z "$ac_dir" && ac_dir=.
7963 if test -f $ac_dir/file; then
7964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965 if test -n "$file_magic_test_file"; then
7966 case $deplibs_check_method in
7967 "file_magic "*)
7968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971 $EGREP "$file_magic_regex" > /dev/null; then
7973 else
7974 cat <<_LT_EOF 1>&2
7976 *** Warning: the command libtool uses to detect shared libraries,
7977 *** $file_magic_cmd, produces output that libtool cannot recognize.
7978 *** The result is that libtool may fail to recognize shared libraries
7979 *** as such. This will affect the creation of libtool libraries that
7980 *** depend on shared libraries, but programs linked with such libtool
7981 *** libraries will work regardless of this problem. Nevertheless, you
7982 *** may want to report the problem to your system manager and/or to
7983 *** bug-libtool@gnu.org
7985 _LT_EOF
7986 fi ;;
7987 esac
7989 break
7991 done
7992 IFS="$lt_save_ifs"
7993 MAGIC_CMD="$lt_save_MAGIC_CMD"
7995 esac
7998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999 if test -n "$MAGIC_CMD"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8001 $as_echo "$MAGIC_CMD" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8008 else
8009 MAGIC_CMD=:
8015 esac
8017 # Use C for the default configuration in the libtool script
8019 lt_save_CC="$CC"
8020 ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 # Source file extension for C test sources.
8028 ac_ext=c
8030 # Object file extension for compiled C test sources.
8031 objext=o
8032 objext=$objext
8034 # Code to be used in simple compile tests
8035 lt_simple_compile_test_code="int some_variable = 0;"
8037 # Code to be used in simple link tests
8038 lt_simple_link_test_code='int main(){return(0);}'
8046 # If no C compiler was specified, use CC.
8047 LTCC=${LTCC-"$CC"}
8049 # If no C compiler flags were specified, use CFLAGS.
8050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8052 # Allow CC to be a program name with arguments.
8053 compiler=$CC
8055 # Save the default compiler, since it gets overwritten when the other
8056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8057 compiler_DEFAULT=$CC
8059 # save warnings/boilerplate of simple test code
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063 _lt_compiler_boilerplate=`cat conftest.err`
8064 $RM conftest*
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_linker_boilerplate=`cat conftest.err`
8070 $RM -r conftest*
8073 ## CAVEAT EMPTOR:
8074 ## There is no encapsulation within the following macros, do not change
8075 ## the running order or otherwise move them around unless you know exactly
8076 ## what you are doing...
8077 if test -n "$compiler"; then
8079 lt_prog_compiler_no_builtin_flag=
8081 if test "$GCC" = yes; then
8082 case $cc_basename in
8083 nvcc*)
8084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8087 esac
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 lt_cv_prog_compiler_rtti_exceptions=no
8095 ac_outfile=conftest.$ac_objext
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097 lt_compiler_flag="-fno-rtti -fno-exceptions"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 # The option is referenced via a variable to avoid confusing sed.
8103 lt_compile=`echo "$ac_compile" | $SED \
8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106 -e 's:$: $lt_compiler_flag:'`
8107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108 (eval "$lt_compile" 2>conftest.err)
8109 ac_status=$?
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 if (exit $ac_status) && test -s "$ac_outfile"; then
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings other than the usual output.
8115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_rtti_exceptions=yes
8121 $RM conftest*
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8129 else
8140 lt_prog_compiler_wl=
8141 lt_prog_compiler_pic=
8142 lt_prog_compiler_static=
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8147 if test "$GCC" = yes; then
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_static='-static'
8151 case $host_os in
8152 aix*)
8153 # All AIX code is PIC.
8154 if test "$host_cpu" = ia64; then
8155 # AIX 5 now supports IA64 processor
8156 lt_prog_compiler_static='-Bstatic'
8160 amigaos*)
8161 case $host_cpu in
8162 powerpc)
8163 # see comment about AmigaOS4 .so support
8164 lt_prog_compiler_pic='-fPIC'
8166 m68k)
8167 # FIXME: we need at least 68020 code to build shared libraries, but
8168 # adding the `-m68020' flag to GCC prevents building anything better,
8169 # like `-m68040'.
8170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8172 esac
8175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176 # PIC is the default for these OSes.
8179 mingw* | cygwin* | pw32* | os2* | cegcc*)
8180 # This hack is so that the source file can tell whether it is being
8181 # built for inclusion in a dll (and should export symbols for example).
8182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8183 # (--disable-auto-import) libraries
8184 lt_prog_compiler_pic='-DDLL_EXPORT'
8187 darwin* | rhapsody*)
8188 # PIC is the default on this platform
8189 # Common symbols not allowed in MH_DYLIB files
8190 lt_prog_compiler_pic='-fno-common'
8193 haiku*)
8194 # PIC is the default for Haiku.
8195 # The "-static" flag exists, but is broken.
8196 lt_prog_compiler_static=
8199 hpux*)
8200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8202 # sets the default TLS model and affects inlining.
8203 case $host_cpu in
8204 hppa*64*)
8205 # +Z the default
8208 lt_prog_compiler_pic='-fPIC'
8210 esac
8213 interix[3-9]*)
8214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215 # Instead, we relocate shared libraries at runtime.
8218 msdosdjgpp*)
8219 # Just because we use GCC doesn't mean we suddenly get shared libraries
8220 # on systems that don't support them.
8221 lt_prog_compiler_can_build_shared=no
8222 enable_shared=no
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8231 sysv4*MP*)
8232 if test -d /usr/nec; then
8233 lt_prog_compiler_pic=-Kconform_pic
8238 lt_prog_compiler_pic='-fPIC'
8240 esac
8242 case $cc_basename in
8243 nvcc*) # Cuda Compiler Driver 2.2
8244 lt_prog_compiler_wl='-Xlinker '
8245 lt_prog_compiler_pic='-Xcompiler -fPIC'
8247 esac
8248 else
8249 # PORTME Check for flag to pass linker flags through the system compiler.
8250 case $host_os in
8251 aix*)
8252 lt_prog_compiler_wl='-Wl,'
8253 if test "$host_cpu" = ia64; then
8254 # AIX 5 now supports IA64 processor
8255 lt_prog_compiler_static='-Bstatic'
8256 else
8257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8261 mingw* | cygwin* | pw32* | os2* | cegcc*)
8262 # This hack is so that the source file can tell whether it is being
8263 # built for inclusion in a dll (and should export symbols for example).
8264 lt_prog_compiler_pic='-DDLL_EXPORT'
8267 hpux9* | hpux10* | hpux11*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270 # not for PA HP-UX.
8271 case $host_cpu in
8272 hppa*64*|ia64*)
8273 # +Z the default
8276 lt_prog_compiler_pic='+Z'
8278 esac
8279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280 lt_prog_compiler_static='${wl}-a ${wl}archive'
8283 irix5* | irix6* | nonstopux*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC (with -KPIC) is the default.
8286 lt_prog_compiler_static='-non_shared'
8289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8290 case $cc_basename in
8291 # old Intel for x86_64 which still supported -KPIC.
8292 ecc*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-static'
8297 # icc used to be incompatible with GCC.
8298 # ICC 10 doesn't accept -KPIC any more.
8299 icc* | ifort*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-fPIC'
8302 lt_prog_compiler_static='-static'
8304 # Lahey Fortran 8.1.
8305 lf95*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='--shared'
8308 lt_prog_compiler_static='--static'
8310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8311 # Portland Group compilers (*not* the Pentium gcc compiler,
8312 # which looks to be a dead project)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fpic'
8315 lt_prog_compiler_static='-Bstatic'
8317 ccc*)
8318 lt_prog_compiler_wl='-Wl,'
8319 # All Alpha code is PIC.
8320 lt_prog_compiler_static='-non_shared'
8322 xl* | bgxl* | bgf* | mpixl*)
8323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-qpic'
8326 lt_prog_compiler_static='-qstaticlink'
8329 case `$CC -V 2>&1 | sed 5q` in
8330 *Sun\ F* | *Sun*Fortran*)
8331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl=''
8336 *Sun\ C*)
8337 # Sun C 5.9
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8342 esac
8344 esac
8347 newsos6)
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8352 *nto* | *qnx*)
8353 # QNX uses GNU C++, but need to define -shared option too, otherwise
8354 # it will coredump.
8355 lt_prog_compiler_pic='-fPIC -shared'
8358 osf3* | osf4* | osf5*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # All OSF/1 code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8364 rdos*)
8365 lt_prog_compiler_static='-non_shared'
8368 solaris*)
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 case $cc_basename in
8372 f77* | f90* | f95*)
8373 lt_prog_compiler_wl='-Qoption ld ';;
8375 lt_prog_compiler_wl='-Wl,';;
8376 esac
8379 sunos4*)
8380 lt_prog_compiler_wl='-Qoption ld '
8381 lt_prog_compiler_pic='-PIC'
8382 lt_prog_compiler_static='-Bstatic'
8385 sysv4 | sysv4.2uw2* | sysv4.3*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8391 sysv4*MP*)
8392 if test -d /usr/nec ;then
8393 lt_prog_compiler_pic='-Kconform_pic'
8394 lt_prog_compiler_static='-Bstatic'
8398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8404 unicos*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_can_build_shared=no
8409 uts4*)
8410 lt_prog_compiler_pic='-pic'
8411 lt_prog_compiler_static='-Bstatic'
8415 lt_prog_compiler_can_build_shared=no
8417 esac
8420 case $host_os in
8421 # For platforms which do not support PIC, -DPIC is meaningless:
8422 *djgpp*)
8423 lt_prog_compiler_pic=
8426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8428 esac
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8430 $as_echo "$lt_prog_compiler_pic" >&6; }
8438 # Check to make sure the PIC flag actually works.
8440 if test -n "$lt_prog_compiler_pic"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 lt_cv_prog_compiler_pic_works=no
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450 # Insert the option either (1) after the last *FLAGS variable, or
8451 # (2) before a word containing "conftest.", or (3) at the end.
8452 # Note that $ac_compile itself does not contain backslashes and begins
8453 # with a dollar sign (not a hyphen), so the echo should work correctly.
8454 # The option is referenced via a variable to avoid confusing sed.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>conftest.err)
8461 ac_status=$?
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s "$ac_outfile"; then
8465 # The compiler can only warn and ignore the option if not recognized
8466 # So say no if there are warnings other than the usual output.
8467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470 lt_cv_prog_compiler_pic_works=yes
8473 $RM conftest*
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480 case $lt_prog_compiler_pic in
8481 "" | " "*) ;;
8482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483 esac
8484 else
8485 lt_prog_compiler_pic=
8486 lt_prog_compiler_can_build_shared=no
8497 # Check to make sure the static flag actually works.
8499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_static_works=no
8506 save_LDFLAGS="$LDFLAGS"
8507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8510 # The linker can only warn and ignore the option if not recognized
8511 # So say no if there are warnings
8512 if test -s conftest.err; then
8513 # Append any errors to the config.log.
8514 cat conftest.err 1>&5
8515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517 if diff conftest.exp conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_static_works=yes
8520 else
8521 lt_cv_prog_compiler_static_works=yes
8524 $RM -r conftest*
8525 LDFLAGS="$save_LDFLAGS"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8533 else
8534 lt_prog_compiler_static=
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_c_o=no
8549 $RM -r conftest 2>/dev/null
8550 mkdir conftest
8551 cd conftest
8552 mkdir out
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555 lt_compiler_flag="-o out/conftest2.$ac_objext"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>out/conftest.err)
8566 ac_status=$?
8567 cat out/conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_c_o=yes
8579 chmod u+w . 2>&5
8580 $RM conftest*
8581 # SGI C++ compiler will create directory out/ii_files/ for
8582 # template instantiation
8583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584 $RM out/* && rmdir out
8585 cd ..
8586 $RM -r conftest
8587 $RM conftest*
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 lt_cv_prog_compiler_c_o=no
8604 $RM -r conftest 2>/dev/null
8605 mkdir conftest
8606 cd conftest
8607 mkdir out
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610 lt_compiler_flag="-o out/conftest2.$ac_objext"
8611 # Insert the option either (1) after the last *FLAGS variable, or
8612 # (2) before a word containing "conftest.", or (3) at the end.
8613 # Note that $ac_compile itself does not contain backslashes and begins
8614 # with a dollar sign (not a hyphen), so the echo should work correctly.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>out/conftest.err)
8621 ac_status=$?
8622 cat out/conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625 then
8626 # The compiler can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_c_o=yes
8634 chmod u+w . 2>&5
8635 $RM conftest*
8636 # SGI C++ compiler will create directory out/ii_files/ for
8637 # template instantiation
8638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639 $RM out/* && rmdir out
8640 cd ..
8641 $RM -r conftest
8642 $RM conftest*
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8651 hard_links="nottested"
8652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8653 # do not overwrite the value of need_locks provided by the user
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8655 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656 hard_links=yes
8657 $RM conftest*
8658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659 touch conftest.a
8660 ln conftest.a conftest.b 2>&5 || hard_links=no
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8663 $as_echo "$hard_links" >&6; }
8664 if test "$hard_links" = no; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667 need_locks=warn
8669 else
8670 need_locks=no
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8681 runpath_var=
8682 allow_undefined_flag=
8683 always_export_symbols=no
8684 archive_cmds=
8685 archive_expsym_cmds=
8686 compiler_needs_object=no
8687 enable_shared_with_static_runtimes=no
8688 export_dynamic_flag_spec=
8689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8690 hardcode_automatic=no
8691 hardcode_direct=no
8692 hardcode_direct_absolute=no
8693 hardcode_libdir_flag_spec=
8694 hardcode_libdir_flag_spec_ld=
8695 hardcode_libdir_separator=
8696 hardcode_minus_L=no
8697 hardcode_shlibpath_var=unsupported
8698 inherit_rpath=no
8699 link_all_deplibs=unknown
8700 module_cmds=
8701 module_expsym_cmds=
8702 old_archive_from_new_cmds=
8703 old_archive_from_expsyms_cmds=
8704 thread_safe_flag_spec=
8705 whole_archive_flag_spec=
8706 # include_expsyms should be a list of space-separated symbols to be *always*
8707 # included in the symbol list
8708 include_expsyms=
8709 # exclude_expsyms can be an extended regexp of symbols to exclude
8710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8712 # as well as any symbol that contains `d'.
8713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8715 # platforms (ab)use it in PIC code, but their linkers get confused if
8716 # the symbol is explicitly referenced. Since portable code cannot
8717 # rely on this symbol name, it's probably fine to never include it in
8718 # preloaded symbol tables.
8719 # Exclude shared library initialization/finalization symbols.
8720 extract_expsyms_cmds=
8722 case $host_os in
8723 cygwin* | mingw* | pw32* | cegcc*)
8724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8725 # When not using gcc, we currently assume that we are using
8726 # Microsoft Visual C++.
8727 if test "$GCC" != yes; then
8728 with_gnu_ld=no
8731 interix*)
8732 # we just hope/assume this is gcc and not c89 (= MSVC++)
8733 with_gnu_ld=yes
8735 openbsd*)
8736 with_gnu_ld=no
8738 esac
8740 ld_shlibs=yes
8742 # On some targets, GNU ld is compatible enough with the native linker
8743 # that we're better off using the native interface for both.
8744 lt_use_gnu_ld_interface=no
8745 if test "$with_gnu_ld" = yes; then
8746 case $host_os in
8747 aix*)
8748 # The AIX port of GNU ld has always aspired to compatibility
8749 # with the native linker. However, as the warning in the GNU ld
8750 # block says, versions before 2.19.5* couldn't really create working
8751 # shared libraries, regardless of the interface used.
8752 case `$LD -v 2>&1` in
8753 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8754 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8755 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8757 lt_use_gnu_ld_interface=yes
8759 esac
8762 lt_use_gnu_ld_interface=yes
8764 esac
8767 if test "$lt_use_gnu_ld_interface" = yes; then
8768 # If archive_cmds runs LD, not CC, wlarc should be empty
8769 wlarc='${wl}'
8771 # Set some defaults for GNU ld with shared library support. These
8772 # are reset later if shared libraries are not supported. Putting them
8773 # here allows them to be overridden if necessary.
8774 runpath_var=LD_RUN_PATH
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 export_dynamic_flag_spec='${wl}--export-dynamic'
8777 # ancient GNU ld didn't support --whole-archive et. al.
8778 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8780 else
8781 whole_archive_flag_spec=
8783 supports_anon_versioning=no
8784 case `$LD -v 2>&1` in
8785 *GNU\ gold*) supports_anon_versioning=yes ;;
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
8795 aix[3-9]*)
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8801 *** Warning: the GNU linker, at least up to release 2.19, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support. If you
8804 *** really care for shared libraries, you may want to install binutils
8805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8806 *** You will then need to restart the configuration process.
8808 _LT_EOF
8812 amigaos*)
8813 case $host_cpu in
8814 powerpc)
8815 # see comment about AmigaOS4 .so support
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 archive_expsym_cmds=''
8819 m68k)
8820 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)'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8824 esac
8827 beos*)
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 allow_undefined_flag=unsupported
8830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8831 # support --undefined. This deserves some investigation. FIXME
8832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 else
8834 ld_shlibs=no
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8840 # as there is no search path for DLLs.
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 export_dynamic_flag_spec='${wl}--export-all-symbols'
8843 allow_undefined_flag=unsupported
8844 always_export_symbols=no
8845 enable_shared_with_static_runtimes=yes
8846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850 # If the export-symbols file already is a .def file (1st line
8851 # is EXPORTS), use it as is; otherwise, prepend...
8852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853 cp $export_symbols $output_objdir/$soname.def;
8854 else
8855 echo EXPORTS > $output_objdir/$soname.def;
8856 cat $export_symbols >> $output_objdir/$soname.def;
8858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 else
8860 ld_shlibs=no
8864 haiku*)
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 link_all_deplibs=yes
8869 interix[3-9]*)
8870 hardcode_direct=no
8871 hardcode_shlibpath_var=no
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8875 # Instead, shared libraries are loaded at an image base (0x10000000 by
8876 # default) and relocated if they conflict, which is a slow very memory
8877 # consuming and fragmenting process. To avoid this, we pick a random,
8878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8881 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'
8884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8885 tmp_diet=no
8886 if test "$host_os" = linux-dietlibc; then
8887 case $cc_basename in
8888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8889 esac
8891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8892 && test "$tmp_diet" = no
8893 then
8894 tmp_addflag=
8895 tmp_sharedflag='-shared'
8896 case $cc_basename,$host_cpu in
8897 pgcc*) # Portland Group C compiler
8898 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'
8899 tmp_addflag=' $pic_flag'
8901 pgf77* | pgf90* | pgf95* | pgfortran*)
8902 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8906 tmp_addflag=' -i_dynamic' ;;
8907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8908 tmp_addflag=' -i_dynamic -nofor_main' ;;
8909 ifc* | ifort*) # Intel Fortran compiler
8910 tmp_addflag=' -nofor_main' ;;
8911 lf95*) # Lahey Fortran 8.1
8912 whole_archive_flag_spec=
8913 tmp_sharedflag='--shared' ;;
8914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8915 tmp_sharedflag='-qmkshrobj'
8916 tmp_addflag= ;;
8917 nvcc*) # Cuda Compiler Driver 2.2
8918 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'
8919 compiler_needs_object=yes
8921 esac
8922 case `$CC -V 2>&1 | sed 5q` in
8923 *Sun\ C*) # Sun C 5.9
8924 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'
8925 compiler_needs_object=yes
8926 tmp_sharedflag='-G' ;;
8927 *Sun\ F*) # Sun Fortran 8.3
8928 tmp_sharedflag='-G' ;;
8929 esac
8930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 if test "x$supports_anon_versioning" = xyes; then
8933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8935 echo "local: *; };" >> $output_objdir/$libname.ver~
8936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8939 case $cc_basename in
8940 xlf* | bgf* | bgxlf* | mpixlf*)
8941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8943 hardcode_libdir_flag_spec=
8944 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8945 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8946 if test "x$supports_anon_versioning" = xyes; then
8947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949 echo "local: *; };" >> $output_objdir/$libname.ver~
8950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8953 esac
8954 else
8955 ld_shlibs=no
8959 netbsd*)
8960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8962 wlarc=
8963 else
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 solaris*)
8970 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8975 *** create shared libraries on Solaris systems. Therefore, libtool
8976 *** is disabling shared libraries support. We urge you to upgrade GNU
8977 *** binutils to release 2.9.1 or newer. Another option is to modify
8978 *** your PATH or compiler configuration so that the native linker is
8979 *** used, and then restart.
8981 _LT_EOF
8982 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985 else
8986 ld_shlibs=no
8990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8991 case `$LD -v 2>&1` in
8992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8997 *** reliably create shared libraries on SCO systems. Therefore, libtool
8998 *** is disabling shared libraries support. We urge you to upgrade GNU
8999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9000 *** your PATH or compiler configuration so that the native linker is
9001 *** used, and then restart.
9003 _LT_EOF
9006 # For security reasons, it is highly recommended that you always
9007 # use absolute paths for naming shared libraries, and exclude the
9008 # DT_RUNPATH tag from executables and libraries. But doing so
9009 # requires that you compile everything twice, which is a pain.
9010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 else
9015 ld_shlibs=no
9018 esac
9021 sunos4*)
9022 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023 wlarc=
9024 hardcode_direct=yes
9025 hardcode_shlibpath_var=no
9029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9036 esac
9038 if test "$ld_shlibs" = no; then
9039 runpath_var=
9040 hardcode_libdir_flag_spec=
9041 export_dynamic_flag_spec=
9042 whole_archive_flag_spec=
9044 else
9045 # PORTME fill in a description of your system's linker (not GNU ld)
9046 case $host_os in
9047 aix3*)
9048 allow_undefined_flag=unsupported
9049 always_export_symbols=yes
9050 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'
9051 # Note: this linker hardcodes the directories in LIBPATH if there
9052 # are no directories specified by -L.
9053 hardcode_minus_L=yes
9054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9055 # Neither direct hardcoding nor static linking is supported with a
9056 # broken collect2.
9057 hardcode_direct=unsupported
9061 aix[4-9]*)
9062 if test "$host_cpu" = ia64; then
9063 # On IA64, the linker does run time linking by default, so we don't
9064 # have to do anything special.
9065 aix_use_runtimelinking=no
9066 exp_sym_flag='-Bexport'
9067 no_entry_flag=""
9068 else
9069 # If we're using GNU nm, then we don't want the "-C" option.
9070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9071 # Also, AIX nm treats weak defined symbols like other global
9072 # defined symbols, whereas GNU nm marks them as "W".
9073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074 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'
9075 else
9076 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'
9078 aix_use_runtimelinking=no
9080 # Test if we are trying to use run time linking or normal
9081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082 # need to do runtime linking.
9083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9084 for ld_flag in $LDFLAGS; do
9085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086 aix_use_runtimelinking=yes
9087 break
9089 done
9091 esac
9093 exp_sym_flag='-bexport'
9094 no_entry_flag='-bnoentry'
9097 # When large executables or shared objects are built, AIX ld can
9098 # have problems creating the table of contents. If linking a library
9099 # or program results in "error TOC overflow" add -mminimal-toc to
9100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103 archive_cmds=''
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108 file_list_spec='${wl}-f,'
9110 if test "$GCC" = yes; then
9111 case $host_os in aix4.[012]|aix4.[012].*)
9112 # We only want to do this on AIX 4.2 and lower, the check
9113 # below for broken collect2 doesn't work under 4.3+
9114 collect2name=`${CC} -print-prog-name=collect2`
9115 if test -f "$collect2name" &&
9116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117 then
9118 # We have reworked collect2
9120 else
9121 # We have old collect2
9122 hardcode_direct=unsupported
9123 # It fails to find uninstalled libraries when the uninstalled
9124 # path is not listed in the libpath. Setting hardcode_minus_L
9125 # to unsupported forces relinking
9126 hardcode_minus_L=yes
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_libdir_separator=
9131 esac
9132 shared_flag='-shared'
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag="$shared_flag "'${wl}-G'
9136 else
9137 # not using gcc
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9141 shared_flag='-G'
9142 else
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9145 else
9146 shared_flag='${wl}-bM:SRE'
9151 export_dynamic_flag_spec='${wl}-bexpall'
9152 # It seems that -bexpall does not export symbols beginning with
9153 # underscore (_), so it is better to generate a list of symbols to export.
9154 always_export_symbols=yes
9155 if test "$aix_use_runtimelinking" = yes; then
9156 # Warning - without using the other runtime loading flags (-brtl),
9157 # -berok will link without error, but may produce a broken library.
9158 allow_undefined_flag='-berok'
9159 # Determine the default libpath from the value encoded in an
9160 # empty executable.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9165 main ()
9169 return 0;
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9174 lt_aix_libpath_sed='
9175 /Import File Strings/,/^$/ {
9176 /^0/ {
9177 s/^0 *\(.*\)$/\1/
9181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182 # Check for a 64-bit object if we didn't find anything.
9183 if test -z "$aix_libpath"; then
9184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9192 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"
9193 else
9194 if test "$host_cpu" = ia64; then
9195 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9196 allow_undefined_flag="-z nodefs"
9197 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"
9198 else
9199 # Determine the default libpath from the value encoded in an
9200 # empty executable.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9205 main ()
9209 return 0;
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9214 lt_aix_libpath_sed='
9215 /Import File Strings/,/^$/ {
9216 /^0/ {
9217 s/^0 *\(.*\)$/\1/
9221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 # Check for a 64-bit object if we didn't find anything.
9223 if test -z "$aix_libpath"; then
9224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9232 # Warning - without using the other run time loading flags,
9233 # -berok will link without error, but may produce a broken library.
9234 no_undefined_flag=' ${wl}-bernotok'
9235 allow_undefined_flag=' ${wl}-berok'
9236 if test "$with_gnu_ld" = yes; then
9237 # We only use this code for GNU lds that support --whole-archive.
9238 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9239 else
9240 # Exported symbols can be pulled into shared objects from archives
9241 whole_archive_flag_spec='$convenience'
9243 archive_cmds_need_lc=yes
9244 # This is similar to how AIX traditionally builds its shared libraries.
9245 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'
9250 amigaos*)
9251 case $host_cpu in
9252 powerpc)
9253 # see comment about AmigaOS4 .so support
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds=''
9257 m68k)
9258 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)'
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_minus_L=yes
9262 esac
9265 bsdi[45]*)
9266 export_dynamic_flag_spec=-rdynamic
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # When not using gcc, we currently assume that we are using
9271 # Microsoft Visual C++.
9272 # hardcode_libdir_flag_spec is actually meaningless, as there is
9273 # no search path for DLLs.
9274 hardcode_libdir_flag_spec=' '
9275 allow_undefined_flag=unsupported
9276 # Tell ltmain to make .lib files, not .a files.
9277 libext=lib
9278 # Tell ltmain to make .dll files, not .so files.
9279 shrext_cmds=".dll"
9280 # FIXME: Setting linknames here is a bad hack.
9281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9282 # The linker will automatically build a .lib file if we build a DLL.
9283 old_archive_from_new_cmds='true'
9284 # FIXME: Should let the user specify the lib program.
9285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9286 fix_srcfile_path='`cygpath -w "$srcfile"`'
9287 enable_shared_with_static_runtimes=yes
9290 darwin* | rhapsody*)
9293 archive_cmds_need_lc=no
9294 hardcode_direct=no
9295 hardcode_automatic=yes
9296 hardcode_shlibpath_var=unsupported
9297 if test "$lt_cv_ld_force_load" = "yes"; then
9298 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\"`'
9299 else
9300 whole_archive_flag_spec=''
9302 link_all_deplibs=yes
9303 allow_undefined_flag="$_lt_dar_allow_undefined"
9304 case $cc_basename in
9305 ifort*) _lt_dar_can_shared=yes ;;
9306 *) _lt_dar_can_shared=$GCC ;;
9307 esac
9308 if test "$_lt_dar_can_shared" = "yes"; then
9309 output_verbose_link_cmd=func_echo_all
9310 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9311 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9312 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}"
9313 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}"
9315 else
9316 ld_shlibs=no
9321 dgux*)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 hardcode_shlibpath_var=no
9327 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9328 # support. Future versions do this automatically, but an explicit c++rt0.o
9329 # does not break anything, and helps significantly (at the cost of a little
9330 # extra space).
9331 freebsd2.2*)
9332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9338 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9339 freebsd2*)
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_direct=yes
9342 hardcode_minus_L=yes
9343 hardcode_shlibpath_var=no
9346 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9347 freebsd* | dragonfly*)
9348 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9349 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9354 hpux9*)
9355 if test "$GCC" = yes; then
9356 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'
9357 else
9358 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'
9360 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9361 hardcode_libdir_separator=:
9362 hardcode_direct=yes
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9367 export_dynamic_flag_spec='${wl}-E'
9370 hpux10*)
9371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9372 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373 else
9374 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9376 if test "$with_gnu_ld" = no; then
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_flag_spec_ld='+b $libdir'
9379 hardcode_libdir_separator=:
9380 hardcode_direct=yes
9381 hardcode_direct_absolute=yes
9382 export_dynamic_flag_spec='${wl}-E'
9383 # hardcode_minus_L: Not really in the search PATH,
9384 # but as the default location of the library.
9385 hardcode_minus_L=yes
9389 hpux11*)
9390 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391 case $host_cpu in
9392 hppa*64*)
9393 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 ia64*)
9396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401 esac
9402 else
9403 case $host_cpu in
9404 hppa*64*)
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 ia64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 # Older versions of the 11.00 compiler do not understand -b yet
9413 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9415 $as_echo_n "checking if $CC understands -b... " >&6; }
9416 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 lt_cv_prog_compiler__b=no
9420 save_LDFLAGS="$LDFLAGS"
9421 LDFLAGS="$LDFLAGS -b"
9422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9424 # The linker can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 if test -s conftest.err; then
9427 # Append any errors to the config.log.
9428 cat conftest.err 1>&5
9429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler__b=yes
9434 else
9435 lt_cv_prog_compiler__b=yes
9438 $RM -r conftest*
9439 LDFLAGS="$save_LDFLAGS"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9443 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9445 if test x"$lt_cv_prog_compiler__b" = xyes; then
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452 esac
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9472 esac
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int foo(void) {}
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 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'
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 LDFLAGS="$save_LDFLAGS"
9495 else
9496 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'
9497 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'
9499 archive_cmds_need_lc='no'
9500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502 inherit_rpath=yes
9503 link_all_deplibs=yes
9506 netbsd*)
9507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9509 else
9510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9512 hardcode_libdir_flag_spec='-R$libdir'
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9517 newsos6)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522 hardcode_shlibpath_var=no
9525 *nto* | *qnx*)
9528 openbsd*)
9529 if test -f /usr/libexec/ld.so; then
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 hardcode_direct_absolute=yes
9533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec='${wl}-E'
9538 else
9539 case $host_os in
9540 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548 esac
9550 else
9551 ld_shlibs=no
9555 os2*)
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_minus_L=yes
9558 allow_undefined_flag=unsupported
9559 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'
9560 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9563 osf3*)
9564 if test "$GCC" = yes; then
9565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9566 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'
9567 else
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 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'
9571 archive_cmds_need_lc='no'
9572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573 hardcode_libdir_separator=:
9576 osf4* | osf5*) # as osf3* with the addition of -msym flag
9577 if test "$GCC" = yes; then
9578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579 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'
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 else
9582 allow_undefined_flag=' -expect_unresolved \*'
9583 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'
9584 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~
9585 $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'
9587 # Both c and cxx compiler support -rpath directly
9588 hardcode_libdir_flag_spec='-rpath $libdir'
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_separator=:
9594 solaris*)
9595 no_undefined_flag=' -z defs'
9596 if test "$GCC" = yes; then
9597 wlarc='${wl}'
9598 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9601 else
9602 case `$CC -V 2>&1` in
9603 *"Compilers 5.0"*)
9604 wlarc=''
9605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9610 wlarc='${wl}'
9611 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9615 esac
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9619 case $host_os in
9620 solaris2.[0-5] | solaris2.[0-5].*) ;;
9622 # The compiler driver will combine and reorder linker options,
9623 # but understands `-z linker_flag'. GCC discards it without `$wl',
9624 # but is careful enough not to reorder.
9625 # Supported since Solaris 2.6 (maybe 2.5.1?)
9626 if test "$GCC" = yes; then
9627 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9628 else
9629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9632 esac
9633 link_all_deplibs=yes
9636 sunos4*)
9637 if test "x$host_vendor" = xsequent; then
9638 # Use $CC to link under sequent, because it throws in some extra .o
9639 # files that make .init and .fini sections work.
9640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_direct=yes
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9650 sysv4)
9651 case $host_vendor in
9652 sni)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=yes # is this really true???
9656 siemens)
9657 ## LD is ld it makes a PLAMLIB
9658 ## CC just makes a GrossModule.
9659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660 reload_cmds='$CC -r -o $output$reload_objs'
9661 hardcode_direct=no
9663 motorola)
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9667 esac
9668 runpath_var='LD_RUN_PATH'
9669 hardcode_shlibpath_var=no
9672 sysv4.3*)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_shlibpath_var=no
9675 export_dynamic_flag_spec='-Bexport'
9678 sysv4*MP*)
9679 if test -d /usr/nec; then
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 runpath_var=LD_RUN_PATH
9683 hardcode_runpath_var=yes
9684 ld_shlibs=yes
9688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689 no_undefined_flag='${wl}-z,text'
9690 archive_cmds_need_lc=no
9691 hardcode_shlibpath_var=no
9692 runpath_var='LD_RUN_PATH'
9694 if test "$GCC" = yes; then
9695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 sysv5* | sco3.2v5* | sco5v6*)
9704 # Note: We can NOT use -z defs as we might desire, because we do not
9705 # link with -lc, and that would cause any symbols used from libc to
9706 # always be unresolved, which means just about no library would
9707 # ever link correctly. If we're not using GNU ld we use -z text
9708 # though, which does catch some bad symbols but isn't as heavy-handed
9709 # as -z defs.
9710 no_undefined_flag='${wl}-z,text'
9711 allow_undefined_flag='${wl}-z,nodefs'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9715 hardcode_libdir_separator=':'
9716 link_all_deplibs=yes
9717 export_dynamic_flag_spec='${wl}-Bexport'
9718 runpath_var='LD_RUN_PATH'
9720 if test "$GCC" = yes; then
9721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 uts4*)
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_shlibpath_var=no
9736 ld_shlibs=no
9738 esac
9740 if test x$host_vendor = xsni; then
9741 case $host in
9742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743 export_dynamic_flag_spec='${wl}-Blargedynsym'
9745 esac
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test "$ld_shlibs" = no && can_build_shared=no
9753 with_gnu_ld=$with_gnu_ld
9770 # Do we need to explicitly link libc?
9772 case "x$archive_cmds_need_lc" in
9773 x|xyes)
9774 # Assume -lc should be added
9775 archive_cmds_need_lc=yes
9777 if test "$enable_shared" = yes && test "$GCC" = yes; then
9778 case $archive_cmds in
9779 *'~'*)
9780 # FIXME: we may have to deal with multi-command sequences.
9782 '$CC '*)
9783 # Test whether the compiler implicitly links with -lc since on some
9784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785 # to ld, don't add -lc before -lgcc.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 $RM conftest*
9792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9796 ac_status=$?
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; } 2>conftest.err; then
9799 soname=conftest
9800 lib=conftest
9801 libobjs=conftest.$ac_objext
9802 deplibs=
9803 wl=$lt_prog_compiler_wl
9804 pic_flag=$lt_prog_compiler_pic
9805 compiler_flags=-v
9806 linker_flags=-v
9807 verstring=
9808 output_objdir=.
9809 libname=conftest
9810 lt_save_allow_undefined_flag=$allow_undefined_flag
9811 allow_undefined_flag=
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814 ac_status=$?
9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; }
9817 then
9818 lt_cv_archive_cmds_need_lc=no
9819 else
9820 lt_cv_archive_cmds_need_lc=yes
9822 allow_undefined_flag=$lt_save_allow_undefined_flag
9823 else
9824 cat conftest.err 1>&5
9826 $RM conftest*
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9833 esac
9836 esac
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9997 if test "$GCC" = yes; then
9998 case $host_os in
9999 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10000 *) lt_awk_arg="/^libraries:/" ;;
10001 esac
10002 case $host_os in
10003 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10004 *) lt_sed_strip_eq="s,=/,/,g" ;;
10005 esac
10006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10007 case $lt_search_path_spec in
10008 *\;*)
10009 # if the path contains ";" then we assume it to be the separator
10010 # otherwise default to the standard path separator (i.e. ":") - it is
10011 # assumed that no part of a normal pathname contains ";" but that should
10012 # okay in the real world where ";" in dirpaths is itself problematic.
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10018 esac
10019 # Ok, now we have the path, separated by spaces, we can step through it
10020 # and add multilib dir if necessary.
10021 lt_tmp_lt_search_path_spec=
10022 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10023 for lt_sys_path in $lt_search_path_spec; do
10024 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10026 else
10027 test -d "$lt_sys_path" && \
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10030 done
10031 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10032 BEGIN {RS=" "; FS="/|\n";} {
10033 lt_foo="";
10034 lt_count=0;
10035 for (lt_i = NF; lt_i > 0; lt_i--) {
10036 if ($lt_i != "" && $lt_i != ".") {
10037 if ($lt_i == "..") {
10038 lt_count++;
10039 } else {
10040 if (lt_count == 0) {
10041 lt_foo="/" $lt_i lt_foo;
10042 } else {
10043 lt_count--;
10048 if (lt_foo != "") { lt_freq[lt_foo]++; }
10049 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10051 # AWK program above erroneously prepends '/' to C:/dos/paths
10052 # for these hosts.
10053 case $host_os in
10054 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10055 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10056 esac
10057 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10058 else
10059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10061 library_names_spec=
10062 libname_spec='lib$name'
10063 soname_spec=
10064 shrext_cmds=".so"
10065 postinstall_cmds=
10066 postuninstall_cmds=
10067 finish_cmds=
10068 finish_eval=
10069 shlibpath_var=
10070 shlibpath_overrides_runpath=unknown
10071 version_type=none
10072 dynamic_linker="$host_os ld.so"
10073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10074 need_lib_prefix=unknown
10075 hardcode_into_libs=no
10077 # when you set need_version to no, make sure it does not cause -set_version
10078 # flags to be left without arguments
10079 need_version=unknown
10081 case $host_os in
10082 aix3*)
10083 version_type=linux
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10085 shlibpath_var=LIBPATH
10087 # AIX 3 has no versioning support, so we append a major version to the name.
10088 soname_spec='${libname}${release}${shared_ext}$major'
10091 aix[4-9]*)
10092 version_type=linux
10093 need_lib_prefix=no
10094 need_version=no
10095 hardcode_into_libs=yes
10096 if test "$host_cpu" = ia64; then
10097 # AIX 5 supports IA64
10098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 else
10101 # With GCC up to 2.95.x, collect2 would create an import file
10102 # for dependence libraries. The import file would start with
10103 # the line `#! .'. This would cause the generated library to
10104 # depend on `.', always an invalid library. This was fixed in
10105 # development snapshots of GCC prior to 3.0.
10106 case $host_os in
10107 aix4 | aix4.[01] | aix4.[01].*)
10108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10109 echo ' yes '
10110 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10112 else
10113 can_build_shared=no
10116 esac
10117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10118 # soname into executable. Probably we can add versioning support to
10119 # collect2, so additional links can be useful in future.
10120 if test "$aix_use_runtimelinking" = yes; then
10121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10122 # instead of lib<name>.a to let people know that these are not
10123 # typical AIX shared libraries.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 else
10126 # We preserve .a as extension for shared libraries through AIX4.2
10127 # and later when we are not doing run time linking.
10128 library_names_spec='${libname}${release}.a $libname.a'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LIBPATH
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # Since July 2007 AmigaOS4 officially supports .so libraries.
10139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 m68k)
10143 library_names_spec='$libname.ixlibrary $libname.a'
10144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10145 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'
10147 esac
10150 beos*)
10151 library_names_spec='${libname}${shared_ext}'
10152 dynamic_linker="$host_os ld.so"
10153 shlibpath_var=LIBRARY_PATH
10156 bsdi[45]*)
10157 version_type=linux
10158 need_version=no
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10165 # the default ld.so.conf also contains /usr/contrib/lib and
10166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10167 # libtool to hard-code these into programs
10170 cygwin* | mingw* | pw32* | cegcc*)
10171 version_type=windows
10172 shrext_cmds=".dll"
10173 need_version=no
10174 need_lib_prefix=no
10176 case $GCC,$host_os in
10177 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10178 library_names_spec='$libname.dll.a'
10179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10180 postinstall_cmds='base_file=`basename \${file}`~
10181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10182 dldir=$destdir/`dirname \$dlpath`~
10183 test -d \$dldir || mkdir -p \$dldir~
10184 $install_prog $dir/$dlname \$dldir/$dlname~
10185 chmod a+x \$dldir/$dlname~
10186 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10187 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190 dlpath=$dir/\$dldll~
10191 $RM \$dlpath'
10192 shlibpath_overrides_runpath=yes
10194 case $host_os in
10195 cygwin*)
10196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10201 mingw* | cegcc*)
10202 # MinGW DLLs use traditional 'lib' prefix
10203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 pw32*)
10206 # pw32 DLLs use 'pw' prefix rather than 'lib'
10207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 esac
10213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10215 esac
10216 dynamic_linker='Win32 ld.exe'
10217 # FIXME: first we should search . and the directory the executable is in
10218 shlibpath_var=PATH
10221 darwin* | rhapsody*)
10222 dynamic_linker="$host_os dyld"
10223 version_type=darwin
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10227 soname_spec='${libname}${release}${major}$shared_ext'
10228 shlibpath_overrides_runpath=yes
10229 shlibpath_var=DYLD_LIBRARY_PATH
10230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236 dgux*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10245 freebsd* | dragonfly*)
10246 # DragonFly does not have aout. When/if they implement a new
10247 # versioning mechanism, adjust this.
10248 if test -x /usr/bin/objformat; then
10249 objformat=`/usr/bin/objformat`
10250 else
10251 case $host_os in
10252 freebsd[123]*) objformat=aout ;;
10253 *) objformat=elf ;;
10254 esac
10256 version_type=freebsd-$objformat
10257 case $version_type in
10258 freebsd-elf*)
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 need_version=no
10261 need_lib_prefix=no
10263 freebsd-*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10265 need_version=yes
10267 esac
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_os in
10270 freebsd2*)
10271 shlibpath_overrides_runpath=yes
10273 freebsd3.[01]* | freebsdelf3.[01]*)
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10282 *) # from 4.6 on, and DragonFly
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10286 esac
10289 gnu*)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 hardcode_into_libs=yes
10299 haiku*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 dynamic_linker="$host_os runtime_loader"
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10309 hardcode_into_libs=yes
10312 hpux9* | hpux10* | hpux11*)
10313 # Give a soname corresponding to the major version so that dld.sl refuses to
10314 # link against other versions.
10315 version_type=sunos
10316 need_lib_prefix=no
10317 need_version=no
10318 case $host_cpu in
10319 ia64*)
10320 shrext_cmds='.so'
10321 hardcode_into_libs=yes
10322 dynamic_linker="$host_os dld.so"
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 if test "X$HPUX_IA64_MODE" = X32; then
10328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10329 else
10330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10334 hppa*64*)
10335 shrext_cmds='.sl'
10336 hardcode_into_libs=yes
10337 dynamic_linker="$host_os dld.sl"
10338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10346 shrext_cmds='.sl'
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=SHLIB_PATH
10349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10353 esac
10354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10355 postinstall_cmds='chmod 555 $lib'
10356 # or fails outright, so override atomically:
10357 install_override_mode=555
10360 interix[3-9]*)
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10372 irix5* | irix6* | nonstopux*)
10373 case $host_os in
10374 nonstopux*) version_type=nonstopux ;;
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 version_type=linux
10378 else
10379 version_type=irix
10380 fi ;;
10381 esac
10382 need_lib_prefix=no
10383 need_version=no
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10386 case $host_os in
10387 irix5* | nonstopux*)
10388 libsuff= shlibsuff=
10391 case $LD in # libtool.m4 will add one of these switches to LD
10392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10393 libsuff= shlibsuff= libmagic=32-bit;;
10394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10395 libsuff=32 shlibsuff=N32 libmagic=N32;;
10396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10398 *) libsuff= shlibsuff= libmagic=never-match;;
10399 esac
10401 esac
10402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10406 hardcode_into_libs=yes
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10411 dynamic_linker=no
10414 # This must be Linux ELF.
10415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10416 version_type=linux
10417 need_lib_prefix=no
10418 need_version=no
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10425 # Some binutils ld are patched to set DT_RUNPATH
10426 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 lt_cv_shlibpath_overrides_runpath=no
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10438 main ()
10442 return 0;
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10447 lt_cv_shlibpath_overrides_runpath=yes
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LDFLAGS=$save_LDFLAGS
10453 libdir=$save_libdir
10457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10459 # This implies no fast_install, which is unacceptable.
10460 # Some rework will be needed to allow for fast_install
10461 # before this can be enabled.
10462 hardcode_into_libs=yes
10464 # Append ld.so.conf contents to the search path
10465 if test -f /etc/ld.so.conf; then
10466 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' ' '`
10467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10470 # We used to test for /lib/ld.so.1 and disable shared libraries on
10471 # powerpc, because MkLinux only supported shared libraries with the
10472 # GNU dynamic linker. Since this was broken with cross compilers,
10473 # most powerpc-linux boxes support dynamic linking these days and
10474 # people can always --disable-shared, the test was removed, and we
10475 # assume the GNU/Linux dynamic linker is in use.
10476 dynamic_linker='GNU/Linux ld.so'
10479 netbsd*)
10480 version_type=sunos
10481 need_lib_prefix=no
10482 need_version=no
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 dynamic_linker='NetBSD (a.out) ld.so'
10487 else
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='NetBSD ld.elf_so'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10497 newsos6)
10498 version_type=linux
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10504 *nto* | *qnx*)
10505 version_type=qnx
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=no
10512 hardcode_into_libs=yes
10513 dynamic_linker='ldqnx.so'
10516 openbsd*)
10517 version_type=sunos
10518 sys_lib_dlsearch_path_spec="/usr/lib"
10519 need_lib_prefix=no
10520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521 case $host_os in
10522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10523 *) need_version=no ;;
10524 esac
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529 case $host_os in
10530 openbsd2.[89] | openbsd2.[89].*)
10531 shlibpath_overrides_runpath=no
10534 shlibpath_overrides_runpath=yes
10536 esac
10537 else
10538 shlibpath_overrides_runpath=yes
10542 os2*)
10543 libname_spec='$name'
10544 shrext_cmds=".dll"
10545 need_lib_prefix=no
10546 library_names_spec='$libname${shared_ext} $libname.a'
10547 dynamic_linker='OS/2 ld.exe'
10548 shlibpath_var=LIBPATH
10551 osf3* | osf4* | osf5*)
10552 version_type=osf
10553 need_lib_prefix=no
10554 need_version=no
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10562 rdos*)
10563 dynamic_linker=no
10566 solaris*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 # ldd complains unless libraries are executable
10576 postinstall_cmds='chmod +x $lib'
10579 sunos4*)
10580 version_type=sunos
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10585 if test "$with_gnu_ld" = yes; then
10586 need_lib_prefix=no
10588 need_version=yes
10591 sysv4 | sysv4.3*)
10592 version_type=linux
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 case $host_vendor in
10597 sni)
10598 shlibpath_overrides_runpath=no
10599 need_lib_prefix=no
10600 runpath_var=LD_RUN_PATH
10602 siemens)
10603 need_lib_prefix=no
10605 motorola)
10606 need_lib_prefix=no
10607 need_version=no
10608 shlibpath_overrides_runpath=no
10609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10611 esac
10614 sysv4*MP*)
10615 if test -d /usr/nec ;then
10616 version_type=linux
10617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10618 soname_spec='$libname${shared_ext}.$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624 version_type=freebsd-elf
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 if test "$with_gnu_ld" = yes; then
10633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10634 else
10635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10636 case $host_os in
10637 sco3.2v5*)
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10640 esac
10642 sys_lib_dlsearch_path_spec='/usr/lib'
10645 tpf*)
10646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10647 version_type=linux
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=no
10653 hardcode_into_libs=yes
10656 uts4*)
10657 version_type=linux
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10664 dynamic_linker=no
10666 esac
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10668 $as_echo "$dynamic_linker" >&6; }
10669 test "$dynamic_linker" = no && can_build_shared=no
10671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672 if test "$GCC" = yes; then
10673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10776 hardcode_action=
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778 test -n "$runpath_var" ||
10779 test "X$hardcode_automatic" = "Xyes" ; then
10781 # We can hardcode non-existent directories.
10782 if test "$hardcode_direct" != no &&
10783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10784 # have to relink, otherwise we might link with an installed library
10785 # when we should be linking with a yet-to-be-installed one
10786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10787 test "$hardcode_minus_L" != no; then
10788 # Linking always hardcodes the temporary library directory.
10789 hardcode_action=relink
10790 else
10791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792 hardcode_action=immediate
10794 else
10795 # We cannot hardcode anything, or else we can only hardcode existing
10796 # directories.
10797 hardcode_action=unsupported
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10802 if test "$hardcode_action" = relink ||
10803 test "$inherit_rpath" = yes; then
10804 # Fast installation is not supported
10805 enable_fast_install=no
10806 elif test "$shlibpath_overrides_runpath" = yes ||
10807 test "$enable_shared" = no; then
10808 # Fast installation is not necessary
10809 enable_fast_install=needless
10817 if test "x$enable_dlopen" != xyes; then
10818 enable_dlopen=unknown
10819 enable_dlopen_self=unknown
10820 enable_dlopen_self_static=unknown
10821 else
10822 lt_cv_dlopen=no
10823 lt_cv_dlopen_libs=
10825 case $host_os in
10826 beos*)
10827 lt_cv_dlopen="load_add_on"
10828 lt_cv_dlopen_libs=
10829 lt_cv_dlopen_self=yes
10832 mingw* | pw32* | cegcc*)
10833 lt_cv_dlopen="LoadLibrary"
10834 lt_cv_dlopen_libs=
10837 cygwin*)
10838 lt_cv_dlopen="dlopen"
10839 lt_cv_dlopen_libs=
10842 darwin*)
10843 # if libdl is installed we need to link against it
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10862 main ()
10864 return dlopen ();
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dl_dlopen=yes
10871 else
10872 ac_cv_lib_dl_dlopen=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10882 else
10884 lt_cv_dlopen="dyld"
10885 lt_cv_dlopen_libs=
10886 lt_cv_dlopen_self=yes
10893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10894 if test "x$ac_cv_func_shl_load" = x""yes; then :
10895 lt_cv_dlopen="shl_load"
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10898 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char shl_load ();
10915 main ()
10917 return shl_load ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dld_shl_load=yes
10924 else
10925 ac_cv_lib_dld_shl_load=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10932 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10933 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10935 else
10936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10937 if test "x$ac_cv_func_dlopen" = x""yes; then :
10938 lt_cv_dlopen="dlopen"
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10958 main ()
10960 return dlopen ();
10962 return 0;
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dl_dlopen=yes
10967 else
10968 ac_cv_lib_dl_dlopen=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10980 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10981 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10997 main ()
10999 return dlopen ();
11001 return 0;
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_svld_dlopen=yes
11006 else
11007 ac_cv_lib_svld_dlopen=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11014 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11015 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11019 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11036 main ()
11038 return dld_link ();
11040 return 0;
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_dld_link=yes
11045 else
11046 ac_cv_lib_dld_dld_link=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11053 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11054 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11074 esac
11076 if test "x$lt_cv_dlopen" != xno; then
11077 enable_dlopen=yes
11078 else
11079 enable_dlopen=no
11082 case $lt_cv_dlopen in
11083 dlopen)
11084 save_CPPFLAGS="$CPPFLAGS"
11085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11087 save_LDFLAGS="$LDFLAGS"
11088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11090 save_LIBS="$LIBS"
11091 LIBS="$lt_cv_dlopen_libs $LIBS"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11094 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11095 if test "${lt_cv_dlopen_self+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 if test "$cross_compiling" = yes; then :
11099 lt_cv_dlopen_self=cross
11100 else
11101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102 lt_status=$lt_dlunknown
11103 cat > conftest.$ac_ext <<_LT_EOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11107 #if HAVE_DLFCN_H
11108 #include <dlfcn.h>
11109 #endif
11111 #include <stdio.h>
11113 #ifdef RTLD_GLOBAL
11114 # define LT_DLGLOBAL RTLD_GLOBAL
11115 #else
11116 # ifdef DL_GLOBAL
11117 # define LT_DLGLOBAL DL_GLOBAL
11118 # else
11119 # define LT_DLGLOBAL 0
11120 # endif
11121 #endif
11123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124 find out it does not work in some platform. */
11125 #ifndef LT_DLLAZY_OR_NOW
11126 # ifdef RTLD_LAZY
11127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11128 # else
11129 # ifdef DL_LAZY
11130 # define LT_DLLAZY_OR_NOW DL_LAZY
11131 # else
11132 # ifdef RTLD_NOW
11133 # define LT_DLLAZY_OR_NOW RTLD_NOW
11134 # else
11135 # ifdef DL_NOW
11136 # define LT_DLLAZY_OR_NOW DL_NOW
11137 # else
11138 # define LT_DLLAZY_OR_NOW 0
11139 # endif
11140 # endif
11141 # endif
11142 # endif
11143 #endif
11145 /* When -fvisbility=hidden is used, assume the code has been annotated
11146 correspondingly for the symbols needed. */
11147 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11148 void fnord () __attribute__((visibility("default")));
11149 #endif
11151 void fnord () { int i=42; }
11152 int main ()
11154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155 int status = $lt_dlunknown;
11157 if (self)
11159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11160 else
11162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 else puts (dlerror ());
11165 /* dlclose (self); */
11167 else
11168 puts (dlerror ());
11170 return status;
11172 _LT_EOF
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174 (eval $ac_link) 2>&5
11175 ac_status=$?
11176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11178 (./conftest; exit; ) >&5 2>/dev/null
11179 lt_status=$?
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11184 esac
11185 else :
11186 # compilation failed
11187 lt_cv_dlopen_self=no
11190 rm -fr conftest*
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11197 if test "x$lt_cv_dlopen_self" = xyes; then
11198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test "$cross_compiling" = yes; then :
11205 lt_cv_dlopen_self_static=cross
11206 else
11207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208 lt_status=$lt_dlunknown
11209 cat > conftest.$ac_ext <<_LT_EOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11213 #if HAVE_DLFCN_H
11214 #include <dlfcn.h>
11215 #endif
11217 #include <stdio.h>
11219 #ifdef RTLD_GLOBAL
11220 # define LT_DLGLOBAL RTLD_GLOBAL
11221 #else
11222 # ifdef DL_GLOBAL
11223 # define LT_DLGLOBAL DL_GLOBAL
11224 # else
11225 # define LT_DLGLOBAL 0
11226 # endif
11227 #endif
11229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230 find out it does not work in some platform. */
11231 #ifndef LT_DLLAZY_OR_NOW
11232 # ifdef RTLD_LAZY
11233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11234 # else
11235 # ifdef DL_LAZY
11236 # define LT_DLLAZY_OR_NOW DL_LAZY
11237 # else
11238 # ifdef RTLD_NOW
11239 # define LT_DLLAZY_OR_NOW RTLD_NOW
11240 # else
11241 # ifdef DL_NOW
11242 # define LT_DLLAZY_OR_NOW DL_NOW
11243 # else
11244 # define LT_DLLAZY_OR_NOW 0
11245 # endif
11246 # endif
11247 # endif
11248 # endif
11249 #endif
11251 /* When -fvisbility=hidden is used, assume the code has been annotated
11252 correspondingly for the symbols needed. */
11253 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11254 void fnord () __attribute__((visibility("default")));
11255 #endif
11257 void fnord () { int i=42; }
11258 int main ()
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11263 if (self)
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 else
11268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269 else puts (dlerror ());
11271 /* dlclose (self); */
11273 else
11274 puts (dlerror ());
11276 return status;
11278 _LT_EOF
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280 (eval $ac_link) 2>&5
11281 ac_status=$?
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11284 (./conftest; exit; ) >&5 2>/dev/null
11285 lt_status=$?
11286 case x$lt_status in
11287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11290 esac
11291 else :
11292 # compilation failed
11293 lt_cv_dlopen_self_static=no
11296 rm -fr conftest*
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11304 CPPFLAGS="$save_CPPFLAGS"
11305 LDFLAGS="$save_LDFLAGS"
11306 LIBS="$save_LIBS"
11308 esac
11310 case $lt_cv_dlopen_self in
11311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312 *) enable_dlopen_self=unknown ;;
11313 esac
11315 case $lt_cv_dlopen_self_static in
11316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11317 *) enable_dlopen_self_static=unknown ;;
11318 esac
11337 striplib=
11338 old_striplib=
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11345 $as_echo "yes" >&6; }
11346 else
11347 # FIXME - insert some real tests, host_os isn't really good enough
11348 case $host_os in
11349 darwin*)
11350 if test -n "$STRIP" ; then
11351 striplib="$STRIP -x"
11352 old_striplib="$STRIP -S"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11354 $as_echo "yes" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11364 esac
11378 # Report which library types will actually be built
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11382 $as_echo "$can_build_shared" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11385 $as_echo_n "checking whether to build shared libraries... " >&6; }
11386 test "$can_build_shared" = "no" && enable_shared=no
11388 # On AIX, shared libraries and static libraries use the same namespace, and
11389 # are all built from PIC.
11390 case $host_os in
11391 aix3*)
11392 test "$enable_shared" = yes && enable_static=no
11393 if test -n "$RANLIB"; then
11394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11395 postinstall_cmds='$RANLIB $lib'
11399 aix[4-9]*)
11400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401 test "$enable_shared" = yes && enable_static=no
11404 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11409 $as_echo_n "checking whether to build static libraries... " >&6; }
11410 # Make sure either enable_shared or enable_static is yes.
11411 test "$enable_shared" = yes || enable_static=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11413 $as_echo "$enable_static" >&6; }
11419 ac_ext=c
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11425 CC="$lt_save_CC"
11439 # Source file extension for Go test sources.
11440 ac_ext=go
11442 # Object file extension for compiled Go test sources.
11443 objext=o
11444 objext_GO=$objext
11446 # Code to be used in simple compile tests
11447 lt_simple_compile_test_code="package main; func main() { }"
11449 # Code to be used in simple link tests
11450 lt_simple_link_test_code='package main; func main() { }'
11452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11459 # If no C compiler was specified, use CC.
11460 LTCC=${LTCC-"$CC"}
11462 # If no C compiler flags were specified, use CFLAGS.
11463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11465 # Allow CC to be a program name with arguments.
11466 compiler=$CC
11469 # save warnings/boilerplate of simple test code
11470 ac_outfile=conftest.$ac_objext
11471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11473 _lt_compiler_boilerplate=`cat conftest.err`
11474 $RM conftest*
11476 ac_outfile=conftest.$ac_objext
11477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11479 _lt_linker_boilerplate=`cat conftest.err`
11480 $RM -r conftest*
11483 # Allow CC to be a program name with arguments.
11484 lt_save_CC="$CC"
11485 lt_save_GCC="$GCC"
11486 GCC=yes
11487 CC=${GOC-"gccgo"}
11488 compiler=$CC
11489 compiler_GO=$CC
11490 LD_GO="$LD"
11491 for cc_temp in $compiler""; do
11492 case $cc_temp in
11493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11495 \-*) ;;
11496 *) break;;
11497 esac
11498 done
11499 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11502 # Go did not exist at the time GCC didn't implicitly link libc in.
11503 archive_cmds_need_lc_GO=no
11505 old_archive_cmds_GO=$old_archive_cmds
11507 ## CAVEAT EMPTOR:
11508 ## There is no encapsulation within the following macros, do not change
11509 ## the running order or otherwise move them around unless you know exactly
11510 ## what you are doing...
11511 if test -n "$compiler"; then
11513 lt_prog_compiler_no_builtin_flag_GO=
11515 if test "$GCC" = yes; then
11516 case $cc_basename in
11517 nvcc*)
11518 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11520 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11521 esac
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 lt_cv_prog_compiler_rtti_exceptions=no
11529 ac_outfile=conftest.$ac_objext
11530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11531 lt_compiler_flag="-fno-rtti -fno-exceptions"
11532 # Insert the option either (1) after the last *FLAGS variable, or
11533 # (2) before a word containing "conftest.", or (3) at the end.
11534 # Note that $ac_compile itself does not contain backslashes and begins
11535 # with a dollar sign (not a hyphen), so the echo should work correctly.
11536 # The option is referenced via a variable to avoid confusing sed.
11537 lt_compile=`echo "$ac_compile" | $SED \
11538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11540 -e 's:$: $lt_compiler_flag:'`
11541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11542 (eval "$lt_compile" 2>conftest.err)
11543 ac_status=$?
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 if (exit $ac_status) && test -s "$ac_outfile"; then
11547 # The compiler can only warn and ignore the option if not recognized
11548 # So say no if there are warnings other than the usual output.
11549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11552 lt_cv_prog_compiler_rtti_exceptions=yes
11555 $RM conftest*
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11562 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11563 else
11571 lt_prog_compiler_wl_GO=
11572 lt_prog_compiler_pic_GO=
11573 lt_prog_compiler_static_GO=
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11578 if test "$GCC" = yes; then
11579 lt_prog_compiler_wl_GO='-Wl,'
11580 lt_prog_compiler_static_GO='-static'
11582 case $host_os in
11583 aix*)
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_GO='-Bstatic'
11591 amigaos*)
11592 case $host_cpu in
11593 powerpc)
11594 # see comment about AmigaOS4 .so support
11595 lt_prog_compiler_pic_GO='-fPIC'
11597 m68k)
11598 # FIXME: we need at least 68020 code to build shared libraries, but
11599 # adding the `-m68020' flag to GCC prevents building anything better,
11600 # like `-m68040'.
11601 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11603 esac
11606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11607 # PIC is the default for these OSes.
11610 mingw* | cygwin* | pw32* | os2* | cegcc*)
11611 # This hack is so that the source file can tell whether it is being
11612 # built for inclusion in a dll (and should export symbols for example).
11613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11614 # (--disable-auto-import) libraries
11615 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11618 darwin* | rhapsody*)
11619 # PIC is the default on this platform
11620 # Common symbols not allowed in MH_DYLIB files
11621 lt_prog_compiler_pic_GO='-fno-common'
11624 haiku*)
11625 # PIC is the default for Haiku.
11626 # The "-static" flag exists, but is broken.
11627 lt_prog_compiler_static_GO=
11630 hpux*)
11631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11633 # sets the default TLS model and affects inlining.
11634 case $host_cpu in
11635 hppa*64*)
11636 # +Z the default
11639 lt_prog_compiler_pic_GO='-fPIC'
11641 esac
11644 interix[3-9]*)
11645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11646 # Instead, we relocate shared libraries at runtime.
11649 msdosdjgpp*)
11650 # Just because we use GCC doesn't mean we suddenly get shared libraries
11651 # on systems that don't support them.
11652 lt_prog_compiler_can_build_shared_GO=no
11653 enable_shared=no
11656 *nto* | *qnx*)
11657 # QNX uses GNU C++, but need to define -shared option too, otherwise
11658 # it will coredump.
11659 lt_prog_compiler_pic_GO='-fPIC -shared'
11662 sysv4*MP*)
11663 if test -d /usr/nec; then
11664 lt_prog_compiler_pic_GO=-Kconform_pic
11669 lt_prog_compiler_pic_GO='-fPIC'
11671 esac
11673 case $cc_basename in
11674 nvcc*) # Cuda Compiler Driver 2.2
11675 lt_prog_compiler_wl_GO='-Xlinker '
11676 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11678 esac
11679 else
11680 # PORTME Check for flag to pass linker flags through the system compiler.
11681 case $host_os in
11682 aix*)
11683 lt_prog_compiler_wl_GO='-Wl,'
11684 if test "$host_cpu" = ia64; then
11685 # AIX 5 now supports IA64 processor
11686 lt_prog_compiler_static_GO='-Bstatic'
11687 else
11688 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11692 mingw* | cygwin* | pw32* | os2* | cegcc*)
11693 # This hack is so that the source file can tell whether it is being
11694 # built for inclusion in a dll (and should export symbols for example).
11695 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11698 hpux9* | hpux10* | hpux11*)
11699 lt_prog_compiler_wl_GO='-Wl,'
11700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11701 # not for PA HP-UX.
11702 case $host_cpu in
11703 hppa*64*|ia64*)
11704 # +Z the default
11707 lt_prog_compiler_pic_GO='+Z'
11709 esac
11710 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11711 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11714 irix5* | irix6* | nonstopux*)
11715 lt_prog_compiler_wl_GO='-Wl,'
11716 # PIC (with -KPIC) is the default.
11717 lt_prog_compiler_static_GO='-non_shared'
11720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11721 case $cc_basename in
11722 # old Intel for x86_64 which still supported -KPIC.
11723 ecc*)
11724 lt_prog_compiler_wl_GO='-Wl,'
11725 lt_prog_compiler_pic_GO='-KPIC'
11726 lt_prog_compiler_static_GO='-static'
11728 # icc used to be incompatible with GCC.
11729 # ICC 10 doesn't accept -KPIC any more.
11730 icc* | ifort*)
11731 lt_prog_compiler_wl_GO='-Wl,'
11732 lt_prog_compiler_pic_GO='-fPIC'
11733 lt_prog_compiler_static_GO='-static'
11735 # Lahey Fortran 8.1.
11736 lf95*)
11737 lt_prog_compiler_wl_GO='-Wl,'
11738 lt_prog_compiler_pic_GO='--shared'
11739 lt_prog_compiler_static_GO='--static'
11741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11742 # Portland Group compilers (*not* the Pentium gcc compiler,
11743 # which looks to be a dead project)
11744 lt_prog_compiler_wl_GO='-Wl,'
11745 lt_prog_compiler_pic_GO='-fpic'
11746 lt_prog_compiler_static_GO='-Bstatic'
11748 ccc*)
11749 lt_prog_compiler_wl_GO='-Wl,'
11750 # All Alpha code is PIC.
11751 lt_prog_compiler_static_GO='-non_shared'
11753 xl* | bgxl* | bgf* | mpixl*)
11754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 lt_prog_compiler_pic_GO='-qpic'
11757 lt_prog_compiler_static_GO='-qstaticlink'
11760 case `$CC -V 2>&1 | sed 5q` in
11761 *Sun\ F* | *Sun*Fortran*)
11762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11763 lt_prog_compiler_pic_GO='-KPIC'
11764 lt_prog_compiler_static_GO='-Bstatic'
11765 lt_prog_compiler_wl_GO=''
11767 *Sun\ C*)
11768 # Sun C 5.9
11769 lt_prog_compiler_pic_GO='-KPIC'
11770 lt_prog_compiler_static_GO='-Bstatic'
11771 lt_prog_compiler_wl_GO='-Wl,'
11773 esac
11775 esac
11778 newsos6)
11779 lt_prog_compiler_pic_GO='-KPIC'
11780 lt_prog_compiler_static_GO='-Bstatic'
11783 *nto* | *qnx*)
11784 # QNX uses GNU C++, but need to define -shared option too, otherwise
11785 # it will coredump.
11786 lt_prog_compiler_pic_GO='-fPIC -shared'
11789 osf3* | osf4* | osf5*)
11790 lt_prog_compiler_wl_GO='-Wl,'
11791 # All OSF/1 code is PIC.
11792 lt_prog_compiler_static_GO='-non_shared'
11795 rdos*)
11796 lt_prog_compiler_static_GO='-non_shared'
11799 solaris*)
11800 lt_prog_compiler_pic_GO='-KPIC'
11801 lt_prog_compiler_static_GO='-Bstatic'
11802 case $cc_basename in
11803 f77* | f90* | f95*)
11804 lt_prog_compiler_wl_GO='-Qoption ld ';;
11806 lt_prog_compiler_wl_GO='-Wl,';;
11807 esac
11810 sunos4*)
11811 lt_prog_compiler_wl_GO='-Qoption ld '
11812 lt_prog_compiler_pic_GO='-PIC'
11813 lt_prog_compiler_static_GO='-Bstatic'
11816 sysv4 | sysv4.2uw2* | sysv4.3*)
11817 lt_prog_compiler_wl_GO='-Wl,'
11818 lt_prog_compiler_pic_GO='-KPIC'
11819 lt_prog_compiler_static_GO='-Bstatic'
11822 sysv4*MP*)
11823 if test -d /usr/nec ;then
11824 lt_prog_compiler_pic_GO='-Kconform_pic'
11825 lt_prog_compiler_static_GO='-Bstatic'
11829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11830 lt_prog_compiler_wl_GO='-Wl,'
11831 lt_prog_compiler_pic_GO='-KPIC'
11832 lt_prog_compiler_static_GO='-Bstatic'
11835 unicos*)
11836 lt_prog_compiler_wl_GO='-Wl,'
11837 lt_prog_compiler_can_build_shared_GO=no
11840 uts4*)
11841 lt_prog_compiler_pic_GO='-pic'
11842 lt_prog_compiler_static_GO='-Bstatic'
11846 lt_prog_compiler_can_build_shared_GO=no
11848 esac
11851 case $host_os in
11852 # For platforms which do not support PIC, -DPIC is meaningless:
11853 *djgpp*)
11854 lt_prog_compiler_pic_GO=
11857 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11859 esac
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11861 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11866 # Check to make sure the PIC flag actually works.
11868 if test -n "$lt_prog_compiler_pic_GO"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11871 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 lt_cv_prog_compiler_pic_works_GO=no
11875 ac_outfile=conftest.$ac_objext
11876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11877 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11878 # Insert the option either (1) after the last *FLAGS variable, or
11879 # (2) before a word containing "conftest.", or (3) at the end.
11880 # Note that $ac_compile itself does not contain backslashes and begins
11881 # with a dollar sign (not a hyphen), so the echo should work correctly.
11882 # The option is referenced via a variable to avoid confusing sed.
11883 lt_compile=`echo "$ac_compile" | $SED \
11884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11886 -e 's:$: $lt_compiler_flag:'`
11887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11888 (eval "$lt_compile" 2>conftest.err)
11889 ac_status=$?
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 if (exit $ac_status) && test -s "$ac_outfile"; then
11893 # The compiler can only warn and ignore the option if not recognized
11894 # So say no if there are warnings other than the usual output.
11895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11898 lt_cv_prog_compiler_pic_works_GO=yes
11901 $RM conftest*
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11905 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11907 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11908 case $lt_prog_compiler_pic_GO in
11909 "" | " "*) ;;
11910 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11911 esac
11912 else
11913 lt_prog_compiler_pic_GO=
11914 lt_prog_compiler_can_build_shared_GO=no
11922 # Check to make sure the static flag actually works.
11924 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11927 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 lt_cv_prog_compiler_static_works_GO=no
11931 save_LDFLAGS="$LDFLAGS"
11932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11935 # The linker can only warn and ignore the option if not recognized
11936 # So say no if there are warnings
11937 if test -s conftest.err; then
11938 # Append any errors to the config.log.
11939 cat conftest.err 1>&5
11940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11942 if diff conftest.exp conftest.er2 >/dev/null; then
11943 lt_cv_prog_compiler_static_works_GO=yes
11945 else
11946 lt_cv_prog_compiler_static_works_GO=yes
11949 $RM -r conftest*
11950 LDFLAGS="$save_LDFLAGS"
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11954 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11956 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11958 else
11959 lt_prog_compiler_static_GO=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11967 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 lt_cv_prog_compiler_c_o_GO=no
11971 $RM -r conftest 2>/dev/null
11972 mkdir conftest
11973 cd conftest
11974 mkdir out
11975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11977 lt_compiler_flag="-o out/conftest2.$ac_objext"
11978 # Insert the option either (1) after the last *FLAGS variable, or
11979 # (2) before a word containing "conftest.", or (3) at the end.
11980 # Note that $ac_compile itself does not contain backslashes and begins
11981 # with a dollar sign (not a hyphen), so the echo should work correctly.
11982 lt_compile=`echo "$ac_compile" | $SED \
11983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11985 -e 's:$: $lt_compiler_flag:'`
11986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11987 (eval "$lt_compile" 2>out/conftest.err)
11988 ac_status=$?
11989 cat out/conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11992 then
11993 # The compiler can only warn and ignore the option if not recognized
11994 # So say no if there are warnings
11995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11998 lt_cv_prog_compiler_c_o_GO=yes
12001 chmod u+w . 2>&5
12002 $RM conftest*
12003 # SGI C++ compiler will create directory out/ii_files/ for
12004 # template instantiation
12005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12006 $RM out/* && rmdir out
12007 cd ..
12008 $RM -r conftest
12009 $RM conftest*
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12013 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12019 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 lt_cv_prog_compiler_c_o_GO=no
12023 $RM -r conftest 2>/dev/null
12024 mkdir conftest
12025 cd conftest
12026 mkdir out
12027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12029 lt_compiler_flag="-o out/conftest2.$ac_objext"
12030 # Insert the option either (1) after the last *FLAGS variable, or
12031 # (2) before a word containing "conftest.", or (3) at the end.
12032 # Note that $ac_compile itself does not contain backslashes and begins
12033 # with a dollar sign (not a hyphen), so the echo should work correctly.
12034 lt_compile=`echo "$ac_compile" | $SED \
12035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12037 -e 's:$: $lt_compiler_flag:'`
12038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12039 (eval "$lt_compile" 2>out/conftest.err)
12040 ac_status=$?
12041 cat out/conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12044 then
12045 # The compiler can only warn and ignore the option if not recognized
12046 # So say no if there are warnings
12047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12050 lt_cv_prog_compiler_c_o_GO=yes
12053 chmod u+w . 2>&5
12054 $RM conftest*
12055 # SGI C++ compiler will create directory out/ii_files/ for
12056 # template instantiation
12057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12058 $RM out/* && rmdir out
12059 cd ..
12060 $RM -r conftest
12061 $RM conftest*
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12065 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12070 hard_links="nottested"
12071 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12072 # do not overwrite the value of need_locks provided by the user
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12074 $as_echo_n "checking if we can lock with hard links... " >&6; }
12075 hard_links=yes
12076 $RM conftest*
12077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12078 touch conftest.a
12079 ln conftest.a conftest.b 2>&5 || hard_links=no
12080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12082 $as_echo "$hard_links" >&6; }
12083 if test "$hard_links" = no; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12086 need_locks=warn
12088 else
12089 need_locks=no
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12097 runpath_var=
12098 allow_undefined_flag_GO=
12099 always_export_symbols_GO=no
12100 archive_cmds_GO=
12101 archive_expsym_cmds_GO=
12102 compiler_needs_object_GO=no
12103 enable_shared_with_static_runtimes_GO=no
12104 export_dynamic_flag_spec_GO=
12105 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12106 hardcode_automatic_GO=no
12107 hardcode_direct_GO=no
12108 hardcode_direct_absolute_GO=no
12109 hardcode_libdir_flag_spec_GO=
12110 hardcode_libdir_flag_spec_ld_GO=
12111 hardcode_libdir_separator_GO=
12112 hardcode_minus_L_GO=no
12113 hardcode_shlibpath_var_GO=unsupported
12114 inherit_rpath_GO=no
12115 link_all_deplibs_GO=unknown
12116 module_cmds_GO=
12117 module_expsym_cmds_GO=
12118 old_archive_from_new_cmds_GO=
12119 old_archive_from_expsyms_cmds_GO=
12120 thread_safe_flag_spec_GO=
12121 whole_archive_flag_spec_GO=
12122 # include_expsyms should be a list of space-separated symbols to be *always*
12123 # included in the symbol list
12124 include_expsyms_GO=
12125 # exclude_expsyms can be an extended regexp of symbols to exclude
12126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12128 # as well as any symbol that contains `d'.
12129 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12131 # platforms (ab)use it in PIC code, but their linkers get confused if
12132 # the symbol is explicitly referenced. Since portable code cannot
12133 # rely on this symbol name, it's probably fine to never include it in
12134 # preloaded symbol tables.
12135 # Exclude shared library initialization/finalization symbols.
12136 extract_expsyms_cmds=
12138 case $host_os in
12139 cygwin* | mingw* | pw32* | cegcc*)
12140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12141 # When not using gcc, we currently assume that we are using
12142 # Microsoft Visual C++.
12143 if test "$GCC" != yes; then
12144 with_gnu_ld=no
12147 interix*)
12148 # we just hope/assume this is gcc and not c89 (= MSVC++)
12149 with_gnu_ld=yes
12151 openbsd*)
12152 with_gnu_ld=no
12154 esac
12156 ld_shlibs_GO=yes
12158 # On some targets, GNU ld is compatible enough with the native linker
12159 # that we're better off using the native interface for both.
12160 lt_use_gnu_ld_interface=no
12161 if test "$with_gnu_ld" = yes; then
12162 case $host_os in
12163 aix*)
12164 # The AIX port of GNU ld has always aspired to compatibility
12165 # with the native linker. However, as the warning in the GNU ld
12166 # block says, versions before 2.19.5* couldn't really create working
12167 # shared libraries, regardless of the interface used.
12168 case `$LD -v 2>&1` in
12169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12171 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12173 lt_use_gnu_ld_interface=yes
12175 esac
12178 lt_use_gnu_ld_interface=yes
12180 esac
12183 if test "$lt_use_gnu_ld_interface" = yes; then
12184 # If archive_cmds runs LD, not CC, wlarc should be empty
12185 wlarc='${wl}'
12187 # Set some defaults for GNU ld with shared library support. These
12188 # are reset later if shared libraries are not supported. Putting them
12189 # here allows them to be overridden if necessary.
12190 runpath_var=LD_RUN_PATH
12191 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12192 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12193 # ancient GNU ld didn't support --whole-archive et. al.
12194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12195 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12196 else
12197 whole_archive_flag_spec_GO=
12199 supports_anon_versioning=no
12200 case `$LD -v 2>&1` in
12201 *GNU\ gold*) supports_anon_versioning=yes ;;
12202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12205 *\ 2.11.*) ;; # other 2.11 versions
12206 *) supports_anon_versioning=yes ;;
12207 esac
12209 # See if GNU ld supports shared libraries.
12210 case $host_os in
12211 aix[3-9]*)
12212 # On AIX/PPC, the GNU linker is very broken
12213 if test "$host_cpu" != ia64; then
12214 ld_shlibs_GO=no
12215 cat <<_LT_EOF 1>&2
12217 *** Warning: the GNU linker, at least up to release 2.19, is reported
12218 *** to be unable to reliably create shared libraries on AIX.
12219 *** Therefore, libtool is disabling shared libraries support. If you
12220 *** really care for shared libraries, you may want to install binutils
12221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12222 *** You will then need to restart the configuration process.
12224 _LT_EOF
12228 amigaos*)
12229 case $host_cpu in
12230 powerpc)
12231 # see comment about AmigaOS4 .so support
12232 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12233 archive_expsym_cmds_GO=''
12235 m68k)
12236 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)'
12237 hardcode_libdir_flag_spec_GO='-L$libdir'
12238 hardcode_minus_L_GO=yes
12240 esac
12243 beos*)
12244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12245 allow_undefined_flag_GO=unsupported
12246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12247 # support --undefined. This deserves some investigation. FIXME
12248 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249 else
12250 ld_shlibs_GO=no
12254 cygwin* | mingw* | pw32* | cegcc*)
12255 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12256 # as there is no search path for DLLs.
12257 hardcode_libdir_flag_spec_GO='-L$libdir'
12258 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12259 allow_undefined_flag_GO=unsupported
12260 always_export_symbols_GO=no
12261 enable_shared_with_static_runtimes_GO=yes
12262 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12265 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12266 # If the export-symbols file already is a .def file (1st line
12267 # is EXPORTS), use it as is; otherwise, prepend...
12268 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12269 cp $export_symbols $output_objdir/$soname.def;
12270 else
12271 echo EXPORTS > $output_objdir/$soname.def;
12272 cat $export_symbols >> $output_objdir/$soname.def;
12274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12275 else
12276 ld_shlibs_GO=no
12280 haiku*)
12281 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282 link_all_deplibs_GO=yes
12285 interix[3-9]*)
12286 hardcode_direct_GO=no
12287 hardcode_shlibpath_var_GO=no
12288 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12289 export_dynamic_flag_spec_GO='${wl}-E'
12290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12291 # Instead, shared libraries are loaded at an image base (0x10000000 by
12292 # default) and relocated if they conflict, which is a slow very memory
12293 # consuming and fragmenting process. To avoid this, we pick a random,
12294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12296 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'
12297 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'
12300 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12301 tmp_diet=no
12302 if test "$host_os" = linux-dietlibc; then
12303 case $cc_basename in
12304 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12305 esac
12307 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12308 && test "$tmp_diet" = no
12309 then
12310 tmp_addflag=
12311 tmp_sharedflag='-shared'
12312 case $cc_basename,$host_cpu in
12313 pgcc*) # Portland Group C compiler
12314 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'
12315 tmp_addflag=' $pic_flag'
12317 pgf77* | pgf90* | pgf95* | pgfortran*)
12318 # Portland Group f77 and f90 compilers
12319 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'
12320 tmp_addflag=' $pic_flag -Mnomain' ;;
12321 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12322 tmp_addflag=' -i_dynamic' ;;
12323 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12324 tmp_addflag=' -i_dynamic -nofor_main' ;;
12325 ifc* | ifort*) # Intel Fortran compiler
12326 tmp_addflag=' -nofor_main' ;;
12327 lf95*) # Lahey Fortran 8.1
12328 whole_archive_flag_spec_GO=
12329 tmp_sharedflag='--shared' ;;
12330 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12331 tmp_sharedflag='-qmkshrobj'
12332 tmp_addflag= ;;
12333 nvcc*) # Cuda Compiler Driver 2.2
12334 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'
12335 compiler_needs_object_GO=yes
12337 esac
12338 case `$CC -V 2>&1 | sed 5q` in
12339 *Sun\ C*) # Sun C 5.9
12340 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'
12341 compiler_needs_object_GO=yes
12342 tmp_sharedflag='-G' ;;
12343 *Sun\ F*) # Sun Fortran 8.3
12344 tmp_sharedflag='-G' ;;
12345 esac
12346 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348 if test "x$supports_anon_versioning" = xyes; then
12349 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12351 echo "local: *; };" >> $output_objdir/$libname.ver~
12352 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12355 case $cc_basename in
12356 xlf* | bgf* | bgxlf* | mpixlf*)
12357 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12358 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12359 hardcode_libdir_flag_spec_GO=
12360 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12361 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12362 if test "x$supports_anon_versioning" = xyes; then
12363 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365 echo "local: *; };" >> $output_objdir/$libname.ver~
12366 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12369 esac
12370 else
12371 ld_shlibs_GO=no
12375 netbsd*)
12376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12378 wlarc=
12379 else
12380 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12381 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12385 solaris*)
12386 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12387 ld_shlibs_GO=no
12388 cat <<_LT_EOF 1>&2
12390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12391 *** create shared libraries on Solaris systems. Therefore, libtool
12392 *** is disabling shared libraries support. We urge you to upgrade GNU
12393 *** binutils to release 2.9.1 or newer. Another option is to modify
12394 *** your PATH or compiler configuration so that the native linker is
12395 *** used, and then restart.
12397 _LT_EOF
12398 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12399 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12401 else
12402 ld_shlibs_GO=no
12406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12407 case `$LD -v 2>&1` in
12408 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12409 ld_shlibs_GO=no
12410 cat <<_LT_EOF 1>&2
12412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12413 *** reliably create shared libraries on SCO systems. Therefore, libtool
12414 *** is disabling shared libraries support. We urge you to upgrade GNU
12415 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12416 *** your PATH or compiler configuration so that the native linker is
12417 *** used, and then restart.
12419 _LT_EOF
12422 # For security reasons, it is highly recommended that you always
12423 # use absolute paths for naming shared libraries, and exclude the
12424 # DT_RUNPATH tag from executables and libraries. But doing so
12425 # requires that you compile everything twice, which is a pain.
12426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12427 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12428 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12430 else
12431 ld_shlibs_GO=no
12434 esac
12437 sunos4*)
12438 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12439 wlarc=
12440 hardcode_direct_GO=yes
12441 hardcode_shlibpath_var_GO=no
12445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12446 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12448 else
12449 ld_shlibs_GO=no
12452 esac
12454 if test "$ld_shlibs_GO" = no; then
12455 runpath_var=
12456 hardcode_libdir_flag_spec_GO=
12457 export_dynamic_flag_spec_GO=
12458 whole_archive_flag_spec_GO=
12460 else
12461 # PORTME fill in a description of your system's linker (not GNU ld)
12462 case $host_os in
12463 aix3*)
12464 allow_undefined_flag_GO=unsupported
12465 always_export_symbols_GO=yes
12466 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'
12467 # Note: this linker hardcodes the directories in LIBPATH if there
12468 # are no directories specified by -L.
12469 hardcode_minus_L_GO=yes
12470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12471 # Neither direct hardcoding nor static linking is supported with a
12472 # broken collect2.
12473 hardcode_direct_GO=unsupported
12477 aix[4-9]*)
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12483 no_entry_flag=""
12484 else
12485 # If we're using GNU nm, then we don't want the "-C" option.
12486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12487 # Also, AIX nm treats weak defined symbols like other global
12488 # defined symbols, whereas GNU nm marks them as "W".
12489 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12490 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'
12491 else
12492 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'
12494 aix_use_runtimelinking=no
12496 # Test if we are trying to use run time linking or normal
12497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12498 # need to do runtime linking.
12499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12500 for ld_flag in $LDFLAGS; do
12501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12502 aix_use_runtimelinking=yes
12503 break
12505 done
12507 esac
12509 exp_sym_flag='-bexport'
12510 no_entry_flag='-bnoentry'
12513 # When large executables or shared objects are built, AIX ld can
12514 # have problems creating the table of contents. If linking a library
12515 # or program results in "error TOC overflow" add -mminimal-toc to
12516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12519 archive_cmds_GO=''
12520 hardcode_direct_GO=yes
12521 hardcode_direct_absolute_GO=yes
12522 hardcode_libdir_separator_GO=':'
12523 link_all_deplibs_GO=yes
12524 file_list_spec_GO='${wl}-f,'
12526 if test "$GCC" = yes; then
12527 case $host_os in aix4.[012]|aix4.[012].*)
12528 # We only want to do this on AIX 4.2 and lower, the check
12529 # below for broken collect2 doesn't work under 4.3+
12530 collect2name=`${CC} -print-prog-name=collect2`
12531 if test -f "$collect2name" &&
12532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12533 then
12534 # We have reworked collect2
12536 else
12537 # We have old collect2
12538 hardcode_direct_GO=unsupported
12539 # It fails to find uninstalled libraries when the uninstalled
12540 # path is not listed in the libpath. Setting hardcode_minus_L
12541 # to unsupported forces relinking
12542 hardcode_minus_L_GO=yes
12543 hardcode_libdir_flag_spec_GO='-L$libdir'
12544 hardcode_libdir_separator_GO=
12547 esac
12548 shared_flag='-shared'
12549 if test "$aix_use_runtimelinking" = yes; then
12550 shared_flag="$shared_flag "'${wl}-G'
12552 else
12553 # not using gcc
12554 if test "$host_cpu" = ia64; then
12555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12556 # chokes on -Wl,-G. The following line is correct:
12557 shared_flag='-G'
12558 else
12559 if test "$aix_use_runtimelinking" = yes; then
12560 shared_flag='${wl}-G'
12561 else
12562 shared_flag='${wl}-bM:SRE'
12567 export_dynamic_flag_spec_GO='${wl}-bexpall'
12568 # It seems that -bexpall does not export symbols beginning with
12569 # underscore (_), so it is better to generate a list of symbols to export.
12570 always_export_symbols_GO=yes
12571 if test "$aix_use_runtimelinking" = yes; then
12572 # Warning - without using the other runtime loading flags (-brtl),
12573 # -berok will link without error, but may produce a broken library.
12574 allow_undefined_flag_GO='-berok'
12575 # Determine the default libpath from the value encoded in an
12576 # empty executable.
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12581 main ()
12585 return 0;
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12590 lt_aix_libpath_sed='
12591 /Import File Strings/,/^$/ {
12592 /^0/ {
12593 s/^0 *\(.*\)$/\1/
12597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598 # Check for a 64-bit object if we didn't find anything.
12599 if test -z "$aix_libpath"; then
12600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12607 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12608 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"
12609 else
12610 if test "$host_cpu" = ia64; then
12611 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12612 allow_undefined_flag_GO="-z nodefs"
12613 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"
12614 else
12615 # Determine the default libpath from the value encoded in an
12616 # empty executable.
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12621 main ()
12625 return 0;
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12630 lt_aix_libpath_sed='
12631 /Import File Strings/,/^$/ {
12632 /^0/ {
12633 s/^0 *\(.*\)$/\1/
12637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638 # Check for a 64-bit object if we didn't find anything.
12639 if test -z "$aix_libpath"; then
12640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12647 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12648 # Warning - without using the other run time loading flags,
12649 # -berok will link without error, but may produce a broken library.
12650 no_undefined_flag_GO=' ${wl}-bernotok'
12651 allow_undefined_flag_GO=' ${wl}-berok'
12652 if test "$with_gnu_ld" = yes; then
12653 # We only use this code for GNU lds that support --whole-archive.
12654 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12655 else
12656 # Exported symbols can be pulled into shared objects from archives
12657 whole_archive_flag_spec_GO='$convenience'
12659 archive_cmds_need_lc_GO=yes
12660 # This is similar to how AIX traditionally builds its shared libraries.
12661 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'
12666 amigaos*)
12667 case $host_cpu in
12668 powerpc)
12669 # see comment about AmigaOS4 .so support
12670 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 archive_expsym_cmds_GO=''
12673 m68k)
12674 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)'
12675 hardcode_libdir_flag_spec_GO='-L$libdir'
12676 hardcode_minus_L_GO=yes
12678 esac
12681 bsdi[45]*)
12682 export_dynamic_flag_spec_GO=-rdynamic
12685 cygwin* | mingw* | pw32* | cegcc*)
12686 # When not using gcc, we currently assume that we are using
12687 # Microsoft Visual C++.
12688 # hardcode_libdir_flag_spec is actually meaningless, as there is
12689 # no search path for DLLs.
12690 hardcode_libdir_flag_spec_GO=' '
12691 allow_undefined_flag_GO=unsupported
12692 # Tell ltmain to make .lib files, not .a files.
12693 libext=lib
12694 # Tell ltmain to make .dll files, not .so files.
12695 shrext_cmds=".dll"
12696 # FIXME: Setting linknames here is a bad hack.
12697 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12698 # The linker will automatically build a .lib file if we build a DLL.
12699 old_archive_from_new_cmds_GO='true'
12700 # FIXME: Should let the user specify the lib program.
12701 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12702 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12703 enable_shared_with_static_runtimes_GO=yes
12706 darwin* | rhapsody*)
12709 archive_cmds_need_lc_GO=no
12710 hardcode_direct_GO=no
12711 hardcode_automatic_GO=yes
12712 hardcode_shlibpath_var_GO=unsupported
12713 if test "$lt_cv_ld_force_load" = "yes"; then
12714 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\"`'
12715 else
12716 whole_archive_flag_spec_GO=''
12718 link_all_deplibs_GO=yes
12719 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12720 case $cc_basename in
12721 ifort*) _lt_dar_can_shared=yes ;;
12722 *) _lt_dar_can_shared=$GCC ;;
12723 esac
12724 if test "$_lt_dar_can_shared" = "yes"; then
12725 output_verbose_link_cmd=func_echo_all
12726 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}"
12727 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12728 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}"
12729 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}"
12731 else
12732 ld_shlibs_GO=no
12737 dgux*)
12738 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739 hardcode_libdir_flag_spec_GO='-L$libdir'
12740 hardcode_shlibpath_var_GO=no
12743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12744 # support. Future versions do this automatically, but an explicit c++rt0.o
12745 # does not break anything, and helps significantly (at the cost of a little
12746 # extra space).
12747 freebsd2.2*)
12748 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12749 hardcode_libdir_flag_spec_GO='-R$libdir'
12750 hardcode_direct_GO=yes
12751 hardcode_shlibpath_var_GO=no
12754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12755 freebsd2*)
12756 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12757 hardcode_direct_GO=yes
12758 hardcode_minus_L_GO=yes
12759 hardcode_shlibpath_var_GO=no
12762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12763 freebsd* | dragonfly*)
12764 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12765 hardcode_libdir_flag_spec_GO='-R$libdir'
12766 hardcode_direct_GO=yes
12767 hardcode_shlibpath_var_GO=no
12770 hpux9*)
12771 if test "$GCC" = yes; then
12772 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'
12773 else
12774 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'
12776 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_GO=:
12778 hardcode_direct_GO=yes
12780 # hardcode_minus_L: Not really in the search PATH,
12781 # but as the default location of the library.
12782 hardcode_minus_L_GO=yes
12783 export_dynamic_flag_spec_GO='${wl}-E'
12786 hpux10*)
12787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12788 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12789 else
12790 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12792 if test "$with_gnu_ld" = no; then
12793 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12795 hardcode_libdir_separator_GO=:
12796 hardcode_direct_GO=yes
12797 hardcode_direct_absolute_GO=yes
12798 export_dynamic_flag_spec_GO='${wl}-E'
12799 # hardcode_minus_L: Not really in the search PATH,
12800 # but as the default location of the library.
12801 hardcode_minus_L_GO=yes
12805 hpux11*)
12806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12807 case $host_cpu in
12808 hppa*64*)
12809 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12811 ia64*)
12812 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12815 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12817 esac
12818 else
12819 case $host_cpu in
12820 hppa*64*)
12821 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 ia64*)
12824 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12829 esac
12831 if test "$with_gnu_ld" = no; then
12832 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12833 hardcode_libdir_separator_GO=:
12835 case $host_cpu in
12836 hppa*64*|ia64*)
12837 hardcode_direct_GO=no
12838 hardcode_shlibpath_var_GO=no
12841 hardcode_direct_GO=yes
12842 hardcode_direct_absolute_GO=yes
12843 export_dynamic_flag_spec_GO='${wl}-E'
12845 # hardcode_minus_L: Not really in the search PATH,
12846 # but as the default location of the library.
12847 hardcode_minus_L_GO=yes
12849 esac
12853 irix5* | irix6* | nonstopux*)
12854 if test "$GCC" = yes; then
12855 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'
12856 # Try to use the -exported_symbol ld option, if it does not
12857 # work, assume that -exports_file does not work either and
12858 # implicitly export all symbols.
12859 save_LDFLAGS="$LDFLAGS"
12860 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 int foo(void) {}
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 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'
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LDFLAGS="$save_LDFLAGS"
12872 else
12873 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'
12874 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'
12876 archive_cmds_need_lc_GO='no'
12877 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_GO=:
12879 inherit_rpath_GO=yes
12880 link_all_deplibs_GO=yes
12883 netbsd*)
12884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12885 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12886 else
12887 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12889 hardcode_libdir_flag_spec_GO='-R$libdir'
12890 hardcode_direct_GO=yes
12891 hardcode_shlibpath_var_GO=no
12894 newsos6)
12895 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_direct_GO=yes
12897 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12898 hardcode_libdir_separator_GO=:
12899 hardcode_shlibpath_var_GO=no
12902 *nto* | *qnx*)
12905 openbsd*)
12906 if test -f /usr/libexec/ld.so; then
12907 hardcode_direct_GO=yes
12908 hardcode_shlibpath_var_GO=no
12909 hardcode_direct_absolute_GO=yes
12910 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12911 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12912 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12913 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12914 export_dynamic_flag_spec_GO='${wl}-E'
12915 else
12916 case $host_os in
12917 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12918 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_libdir_flag_spec_GO='-R$libdir'
12922 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12923 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12925 esac
12927 else
12928 ld_shlibs_GO=no
12932 os2*)
12933 hardcode_libdir_flag_spec_GO='-L$libdir'
12934 hardcode_minus_L_GO=yes
12935 allow_undefined_flag_GO=unsupported
12936 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'
12937 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12940 osf3*)
12941 if test "$GCC" = yes; then
12942 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12943 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'
12944 else
12945 allow_undefined_flag_GO=' -expect_unresolved \*'
12946 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'
12948 archive_cmds_need_lc_GO='no'
12949 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12950 hardcode_libdir_separator_GO=:
12953 osf4* | osf5*) # as osf3* with the addition of -msym flag
12954 if test "$GCC" = yes; then
12955 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12956 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'
12957 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12958 else
12959 allow_undefined_flag_GO=' -expect_unresolved \*'
12960 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'
12961 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~
12962 $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'
12964 # Both c and cxx compiler support -rpath directly
12965 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12967 archive_cmds_need_lc_GO='no'
12968 hardcode_libdir_separator_GO=:
12971 solaris*)
12972 no_undefined_flag_GO=' -z defs'
12973 if test "$GCC" = yes; then
12974 wlarc='${wl}'
12975 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12976 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12977 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12978 else
12979 case `$CC -V 2>&1` in
12980 *"Compilers 5.0"*)
12981 wlarc=''
12982 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12987 wlarc='${wl}'
12988 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12990 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12992 esac
12994 hardcode_libdir_flag_spec_GO='-R$libdir'
12995 hardcode_shlibpath_var_GO=no
12996 case $host_os in
12997 solaris2.[0-5] | solaris2.[0-5].*) ;;
12999 # The compiler driver will combine and reorder linker options,
13000 # but understands `-z linker_flag'. GCC discards it without `$wl',
13001 # but is careful enough not to reorder.
13002 # Supported since Solaris 2.6 (maybe 2.5.1?)
13003 if test "$GCC" = yes; then
13004 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13005 else
13006 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13009 esac
13010 link_all_deplibs_GO=yes
13013 sunos4*)
13014 if test "x$host_vendor" = xsequent; then
13015 # Use $CC to link under sequent, because it throws in some extra .o
13016 # files that make .init and .fini sections work.
13017 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13018 else
13019 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13021 hardcode_libdir_flag_spec_GO='-L$libdir'
13022 hardcode_direct_GO=yes
13023 hardcode_minus_L_GO=yes
13024 hardcode_shlibpath_var_GO=no
13027 sysv4)
13028 case $host_vendor in
13029 sni)
13030 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_direct_GO=yes # is this really true???
13033 siemens)
13034 ## LD is ld it makes a PLAMLIB
13035 ## CC just makes a GrossModule.
13036 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13037 reload_cmds_GO='$CC -r -o $output$reload_objs'
13038 hardcode_direct_GO=no
13040 motorola)
13041 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13044 esac
13045 runpath_var='LD_RUN_PATH'
13046 hardcode_shlibpath_var_GO=no
13049 sysv4.3*)
13050 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13051 hardcode_shlibpath_var_GO=no
13052 export_dynamic_flag_spec_GO='-Bexport'
13055 sysv4*MP*)
13056 if test -d /usr/nec; then
13057 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13058 hardcode_shlibpath_var_GO=no
13059 runpath_var=LD_RUN_PATH
13060 hardcode_runpath_var=yes
13061 ld_shlibs_GO=yes
13065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13066 no_undefined_flag_GO='${wl}-z,text'
13067 archive_cmds_need_lc_GO=no
13068 hardcode_shlibpath_var_GO=no
13069 runpath_var='LD_RUN_PATH'
13071 if test "$GCC" = yes; then
13072 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 else
13075 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 sysv5* | sco3.2v5* | sco5v6*)
13081 # Note: We can NOT use -z defs as we might desire, because we do not
13082 # link with -lc, and that would cause any symbols used from libc to
13083 # always be unresolved, which means just about no library would
13084 # ever link correctly. If we're not using GNU ld we use -z text
13085 # though, which does catch some bad symbols but isn't as heavy-handed
13086 # as -z defs.
13087 no_undefined_flag_GO='${wl}-z,text'
13088 allow_undefined_flag_GO='${wl}-z,nodefs'
13089 archive_cmds_need_lc_GO=no
13090 hardcode_shlibpath_var_GO=no
13091 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13092 hardcode_libdir_separator_GO=':'
13093 link_all_deplibs_GO=yes
13094 export_dynamic_flag_spec_GO='${wl}-Bexport'
13095 runpath_var='LD_RUN_PATH'
13097 if test "$GCC" = yes; then
13098 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 else
13101 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 uts4*)
13107 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108 hardcode_libdir_flag_spec_GO='-L$libdir'
13109 hardcode_shlibpath_var_GO=no
13113 ld_shlibs_GO=no
13115 esac
13117 if test x$host_vendor = xsni; then
13118 case $host in
13119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13120 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13122 esac
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13127 $as_echo "$ld_shlibs_GO" >&6; }
13128 test "$ld_shlibs_GO" = no && can_build_shared=no
13130 with_gnu_ld_GO=$with_gnu_ld
13138 # Do we need to explicitly link libc?
13140 case "x$archive_cmds_need_lc_GO" in
13141 x|xyes)
13142 # Assume -lc should be added
13143 archive_cmds_need_lc_GO=yes
13145 if test "$enable_shared" = yes && test "$GCC" = yes; then
13146 case $archive_cmds_GO in
13147 *'~'*)
13148 # FIXME: we may have to deal with multi-command sequences.
13150 '$CC '*)
13151 # Test whether the compiler implicitly links with -lc since on some
13152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13153 # to ld, don't add -lc before -lgcc.
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13156 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 $RM conftest*
13160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13163 (eval $ac_compile) 2>&5
13164 ac_status=$?
13165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; } 2>conftest.err; then
13167 soname=conftest
13168 lib=conftest
13169 libobjs=conftest.$ac_objext
13170 deplibs=
13171 wl=$lt_prog_compiler_wl_GO
13172 pic_flag=$lt_prog_compiler_pic_GO
13173 compiler_flags=-v
13174 linker_flags=-v
13175 verstring=
13176 output_objdir=.
13177 libname=conftest
13178 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13179 allow_undefined_flag_GO=
13180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13181 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }
13185 then
13186 lt_cv_archive_cmds_need_lc_GO=no
13187 else
13188 lt_cv_archive_cmds_need_lc_GO=yes
13190 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13191 else
13192 cat conftest.err 1>&5
13194 $RM conftest*
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13198 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13199 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13201 esac
13204 esac
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13271 hardcode_action_GO=
13272 if test -n "$hardcode_libdir_flag_spec_GO" ||
13273 test -n "$runpath_var_GO" ||
13274 test "X$hardcode_automatic_GO" = "Xyes" ; then
13276 # We can hardcode non-existent directories.
13277 if test "$hardcode_direct_GO" != no &&
13278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13279 # have to relink, otherwise we might link with an installed library
13280 # when we should be linking with a yet-to-be-installed one
13281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13282 test "$hardcode_minus_L_GO" != no; then
13283 # Linking always hardcodes the temporary library directory.
13284 hardcode_action_GO=relink
13285 else
13286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13287 hardcode_action_GO=immediate
13289 else
13290 # We cannot hardcode anything, or else we can only hardcode existing
13291 # directories.
13292 hardcode_action_GO=unsupported
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13295 $as_echo "$hardcode_action_GO" >&6; }
13297 if test "$hardcode_action_GO" = relink ||
13298 test "$inherit_rpath_GO" = yes; then
13299 # Fast installation is not supported
13300 enable_fast_install=no
13301 elif test "$shlibpath_overrides_runpath" = yes ||
13302 test "$enable_shared" = no; then
13303 # Fast installation is not necessary
13304 enable_fast_install=needless
13315 ac_ext=c
13316 ac_cpp='$CPP $CPPFLAGS'
13317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13322 GCC=$lt_save_GCC
13323 CC="$lt_save_CC"
13328 ac_config_commands="$ac_config_commands libtool"
13333 # Only expand once:
13339 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13342 for ac_prog in gawk mawk nawk awk
13344 # Extract the first word of "$ac_prog", so it can be a program name with args.
13345 set dummy $ac_prog; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_AWK+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$AWK"; then
13352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_prog_AWK="$ac_prog"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13365 done
13366 done
13367 IFS=$as_save_IFS
13371 AWK=$ac_cv_prog_AWK
13372 if test -n "$AWK"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13374 $as_echo "$AWK" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13381 test -n "$AWK" && break
13382 done
13385 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13388 WERROR="-Werror"
13391 glibgo_toolexecdir=no
13392 glibgo_toolexeclibdir=no
13393 glibgo_prefixdir=$prefix
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13396 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13397 # Check whether --enable-version-specific-runtime-libs was given.
13398 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13399 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13400 yes) version_specific_libs=yes ;;
13401 no) version_specific_libs=no ;;
13402 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13403 esac
13404 else
13405 version_specific_libs=no
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13409 $as_echo "$version_specific_libs" >&6; }
13411 # Version-specific runtime libs processing.
13412 if test $version_specific_libs = yes; then
13413 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13414 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13417 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13418 # Install a library built with a cross compiler in tooldir, not libdir.
13419 if test x"$glibgo_toolexecdir" = x"no"; then
13420 if test -n "$with_cross_host" &&
13421 test x"$with_cross_host" != x"no"; then
13422 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13423 glibgo_toolexeclibdir='${toolexecdir}/lib'
13424 else
13425 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13426 glibgo_toolexeclibdir='${libdir}'
13428 multi_os_directory=`$CC -print-multi-os-directory`
13429 case $multi_os_directory in
13430 .) ;; # Avoid trailing /.
13431 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13432 esac
13439 # See if the user wants to configure without libffi. Some
13440 # architectures don't support it. FIXME: We should set a default
13441 # based on the host.
13443 # Check whether --with-libffi was given.
13444 if test "${with_libffi+set}" = set; then :
13445 withval=$with_libffi; :
13446 else
13447 with_libffi=${with_libffi_default-yes}
13451 LIBFFI=
13452 LIBFFIINCS=
13453 if test "$with_libffi" != no; then
13455 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13457 LIBFFI=../libffi/libffi_convenience.la
13458 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13463 # Used to tell GNU make to include a file without telling automake to
13464 # include it.
13465 go_include="-include"
13468 is_darwin=no
13469 is_freebsd=no
13470 is_irix=no
13471 is_linux=no
13472 is_netbsd=no
13473 is_rtems=no
13474 is_solaris=no
13475 GOOS=unknown
13476 case ${host} in
13477 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13478 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13479 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13480 *-*-linux*) is_linux=yes; GOOS=linux ;;
13481 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13482 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13483 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13484 esac
13485 if test $is_darwin = yes; then
13486 LIBGO_IS_DARWIN_TRUE=
13487 LIBGO_IS_DARWIN_FALSE='#'
13488 else
13489 LIBGO_IS_DARWIN_TRUE='#'
13490 LIBGO_IS_DARWIN_FALSE=
13493 if test $is_freebsd = yes; then
13494 LIBGO_IS_FREEBSD_TRUE=
13495 LIBGO_IS_FREEBSD_FALSE='#'
13496 else
13497 LIBGO_IS_FREEBSD_TRUE='#'
13498 LIBGO_IS_FREEBSD_FALSE=
13501 if test $is_irix = yes; then
13502 LIBGO_IS_IRIX_TRUE=
13503 LIBGO_IS_IRIX_FALSE='#'
13504 else
13505 LIBGO_IS_IRIX_TRUE='#'
13506 LIBGO_IS_IRIX_FALSE=
13509 if test $is_linux = yes; then
13510 LIBGO_IS_LINUX_TRUE=
13511 LIBGO_IS_LINUX_FALSE='#'
13512 else
13513 LIBGO_IS_LINUX_TRUE='#'
13514 LIBGO_IS_LINUX_FALSE=
13517 if test $is_netbsd = yes; then
13518 LIBGO_IS_NETBSD_TRUE=
13519 LIBGO_IS_NETBSD_FALSE='#'
13520 else
13521 LIBGO_IS_NETBSD_TRUE='#'
13522 LIBGO_IS_NETBSD_FALSE=
13525 if test $is_rtems = yes; then
13526 LIBGO_IS_RTEMS_TRUE=
13527 LIBGO_IS_RTEMS_FALSE='#'
13528 else
13529 LIBGO_IS_RTEMS_TRUE='#'
13530 LIBGO_IS_RTEMS_FALSE=
13533 if test $is_solaris = yes; then
13534 LIBGO_IS_SOLARIS_TRUE=
13535 LIBGO_IS_SOLARIS_FALSE='#'
13536 else
13537 LIBGO_IS_SOLARIS_TRUE='#'
13538 LIBGO_IS_SOLARIS_FALSE=
13543 is_386=no
13544 is_alpha=no
13545 is_arm=no
13546 is_m68k=no
13547 mips_abi=unknown
13548 is_ppc=no
13549 is_ppc64=no
13550 is_sparc=no
13551 is_sparc64=no
13552 is_x86_64=no
13553 GOARCH=unknown
13554 case ${host} in
13555 alpha*-*-*)
13556 is_alpha=yes
13557 GOARCH=alpha
13559 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13560 is_arm=yes
13561 GOARCH=arm
13563 i[34567]86-*-* | x86_64-*-*)
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13567 #ifdef __x86_64__
13568 #error 64-bit
13569 #endif
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572 is_386=yes
13573 else
13574 is_x86_64=yes
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 if test "$is_386" = "yes"; then
13578 GOARCH=386
13579 else
13580 GOARCH=amd64
13583 m68k*-*-*)
13584 is_m68k=yes
13585 GOARCH=m68k
13587 mips*-*-*)
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13591 #if _MIPS_SIM != _ABIO32
13592 #error not o32
13593 #endif
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596 mips_abi="o32"
13597 else
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 #if _MIPS_SIM != _ABIN32
13602 #error not n32
13603 #endif
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 mips_abi="n32"
13607 else
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13611 #if _MIPS_SIM != _ABI64
13612 #error not n64
13613 #endif
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 mips_abi="n64"
13617 else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13621 #if _MIPS_SIM != _ABIO64
13622 #error not o64
13623 #endif
13624 _ACEOF
13625 if ac_fn_c_try_compile "$LINENO"; then :
13626 mips_abi="o64"
13627 else
13628 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13629 mips_abi="n32"
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 case "$mips_abi" in
13639 "o32") GOARCH=mipso32 ;;
13640 "n32") GOARCH=mipsn32 ;;
13641 "n64") GOARCH=mipsn64 ;;
13642 "o64") GOARCH=mipso64 ;;
13643 esac
13645 rs6000*-*-* | powerpc*-*-*)
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13649 #ifdef _ARCH_PPC64
13650 #error 64-bit
13651 #endif
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 is_ppc=yes
13655 else
13656 is_ppc64=yes
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 if test "$is_ppc" = "yes"; then
13660 GOARCH=ppc
13661 else
13662 GOARCH=ppc64
13665 sparc*-*-*)
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13669 #if defined(__sparcv9) || defined(__arch64__)
13670 #error 64-bit
13671 #endif
13672 _ACEOF
13673 if ac_fn_c_try_compile "$LINENO"; then :
13674 is_sparc=yes
13675 else
13676 is_sparc64=yes
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 if test "$is_sparc" = "yes"; then
13680 GOARCH=sparc
13681 else
13682 GOARCH=sparc64
13685 esac
13686 if test $is_386 = yes; then
13687 LIBGO_IS_386_TRUE=
13688 LIBGO_IS_386_FALSE='#'
13689 else
13690 LIBGO_IS_386_TRUE='#'
13691 LIBGO_IS_386_FALSE=
13694 if test $is_alpha = yes; then
13695 LIBGO_IS_ALPHA_TRUE=
13696 LIBGO_IS_ALPHA_FALSE='#'
13697 else
13698 LIBGO_IS_ALPHA_TRUE='#'
13699 LIBGO_IS_ALPHA_FALSE=
13702 if test $is_arm = yes; then
13703 LIBGO_IS_ARM_TRUE=
13704 LIBGO_IS_ARM_FALSE='#'
13705 else
13706 LIBGO_IS_ARM_TRUE='#'
13707 LIBGO_IS_ARM_FALSE=
13710 if test $is_m68k = yes; then
13711 LIBGO_IS_M68K_TRUE=
13712 LIBGO_IS_M68K_FALSE='#'
13713 else
13714 LIBGO_IS_M68K_TRUE='#'
13715 LIBGO_IS_M68K_FALSE=
13718 if test $mips_abi != unknown; then
13719 LIBGO_IS_MIPS_TRUE=
13720 LIBGO_IS_MIPS_FALSE='#'
13721 else
13722 LIBGO_IS_MIPS_TRUE='#'
13723 LIBGO_IS_MIPS_FALSE=
13726 if test $mips_abi = o32; then
13727 LIBGO_IS_MIPSO32_TRUE=
13728 LIBGO_IS_MIPSO32_FALSE='#'
13729 else
13730 LIBGO_IS_MIPSO32_TRUE='#'
13731 LIBGO_IS_MIPSO32_FALSE=
13734 if test $mips_abi = n32; then
13735 LIBGO_IS_MIPSN32_TRUE=
13736 LIBGO_IS_MIPSN32_FALSE='#'
13737 else
13738 LIBGO_IS_MIPSN32_TRUE='#'
13739 LIBGO_IS_MIPSN32_FALSE=
13742 if test $mips_abi = n64; then
13743 LIBGO_IS_MIPSN64_TRUE=
13744 LIBGO_IS_MIPSN64_FALSE='#'
13745 else
13746 LIBGO_IS_MIPSN64_TRUE='#'
13747 LIBGO_IS_MIPSN64_FALSE=
13750 if test $mips_abi = o64; then
13751 LIBGO_IS_MIPSO64_TRUE=
13752 LIBGO_IS_MIPSO64_FALSE='#'
13753 else
13754 LIBGO_IS_MIPSO64_TRUE='#'
13755 LIBGO_IS_MIPSO64_FALSE=
13758 if test $is_ppc = yes; then
13759 LIBGO_IS_PPC_TRUE=
13760 LIBGO_IS_PPC_FALSE='#'
13761 else
13762 LIBGO_IS_PPC_TRUE='#'
13763 LIBGO_IS_PPC_FALSE=
13766 if test $is_ppc64 = yes; then
13767 LIBGO_IS_PPC64_TRUE=
13768 LIBGO_IS_PPC64_FALSE='#'
13769 else
13770 LIBGO_IS_PPC64_TRUE='#'
13771 LIBGO_IS_PPC64_FALSE=
13774 if test $is_sparc = yes; then
13775 LIBGO_IS_SPARC_TRUE=
13776 LIBGO_IS_SPARC_FALSE='#'
13777 else
13778 LIBGO_IS_SPARC_TRUE='#'
13779 LIBGO_IS_SPARC_FALSE=
13782 if test $is_sparc64 = yes; then
13783 LIBGO_IS_SPARC64_TRUE=
13784 LIBGO_IS_SPARC64_FALSE='#'
13785 else
13786 LIBGO_IS_SPARC64_TRUE='#'
13787 LIBGO_IS_SPARC64_FALSE=
13790 if test $is_x86_64 = yes; then
13791 LIBGO_IS_X86_64_TRUE=
13792 LIBGO_IS_X86_64_FALSE='#'
13793 else
13794 LIBGO_IS_X86_64_TRUE='#'
13795 LIBGO_IS_X86_64_FALSE=
13800 GO_LIBCALL_OS_FILE=
13801 GO_LIBCALL_OS_ARCH_FILE=
13802 GO_SYSCALL_OS_FILE=
13803 GO_SYSCALL_OS_ARCH_FILE=
13804 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13805 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13807 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13808 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13810 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13811 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13813 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13814 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13821 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13822 case "$target" in
13823 mips-sgi-irix6.5*)
13824 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13825 # msghdr in <sys/socket.h>.
13826 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13828 *-*-solaris2.[89])
13829 # Solaris 8/9 need this so struct msghdr gets the msg_control
13830 # etc. fields in <sys/socket.h> (_XPG4_2).
13831 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13833 *-*-solaris2.1[01])
13834 # Solaris 10+ needs this so struct msghdr gets the msg_control
13835 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13836 # above doesn't work with C99.
13837 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13839 esac
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13843 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13844 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 CFLAGS_hold=$CFLAGS
13848 CFLAGS="$CFLAGS -fsplit-stack"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 int i;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854 libgo_cv_c_split_stack_supported=yes
13855 else
13856 libgo_cv_c_split_stack_supported=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 CFLAGS=$CFLAGS_hold
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13862 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13863 if test "$libgo_cv_c_split_stack_supported" = yes; then
13864 SPLIT_STACK=-fsplit-stack
13866 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13868 else
13869 SPLIT_STACK=
13872 if test "$libgo_cv_c_split_stack_supported" = yes; then
13873 USING_SPLIT_STACK_TRUE=
13874 USING_SPLIT_STACK_FALSE='#'
13875 else
13876 USING_SPLIT_STACK_TRUE='#'
13877 USING_SPLIT_STACK_FALSE=
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13882 $as_echo_n "checking whether linker supports split stack... " >&6; }
13883 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 libgo_cv_c_linker_supports_split_stack=no
13887 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13888 libgo_cv_c_linker_supports_split_stack=yes
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13892 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13893 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13895 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13899 MATH_LIBS=
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13901 $as_echo_n "checking for sqrt in -lm... " >&6; }
13902 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13904 else
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lm $LIBS"
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char sqrt ();
13918 main ()
13920 return sqrt ();
13922 return 0;
13924 _ACEOF
13925 if ac_fn_c_try_link "$LINENO"; then :
13926 ac_cv_lib_m_sqrt=yes
13927 else
13928 ac_cv_lib_m_sqrt=no
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13935 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13936 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13937 MATH_LIBS=-lm
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13943 $as_echo_n "checking for socket libraries... " >&6; }
13944 if test "${libgo_cv_lib_sockets+set}" = set; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 libgo_cv_lib_sockets=
13948 libgo_check_both=no
13949 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13950 if test "x$ac_cv_func_connect" = x""yes; then :
13951 libgo_check_socket=no
13952 else
13953 libgo_check_socket=yes
13956 if test "$libgo_check_socket" = "yes"; then
13957 unset ac_cv_func_connect
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13959 $as_echo_n "checking for main in -lsocket... " >&6; }
13960 if test "${ac_cv_lib_socket_main+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 ac_check_lib_save_LIBS=$LIBS
13964 LIBS="-lsocket $LIBS"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13970 main ()
13972 return main ();
13974 return 0;
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 ac_cv_lib_socket_main=yes
13979 else
13980 ac_cv_lib_socket_main=no
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 LIBS=$ac_check_lib_save_LIBS
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13987 $as_echo "$ac_cv_lib_socket_main" >&6; }
13988 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13989 libgo_cv_lib_sockets="-lsocket"
13990 else
13991 libgo_check_both=yes
13995 if test "$libgo_check_both" = "yes"; then
13996 libgo_old_libs=$LIBS
13997 LIBS="$LIBS -lsocket -lnsl"
13998 unset ac_cv_func_accept
13999 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14000 if test "x$ac_cv_func_accept" = x""yes; then :
14001 libgo_check_nsl=no
14002 libgo_cv_lib_sockets="-lsocket -lnsl"
14005 unset ac_cv_func_accept
14006 LIBS=$libgo_old_libs
14008 unset ac_cv_func_gethostbyname
14009 libgo_old_libs="$LIBS"
14010 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14011 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14013 else
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14015 $as_echo_n "checking for main in -lnsl... " >&6; }
14016 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-lnsl $LIBS"
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14026 main ()
14028 return main ();
14030 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_nsl_main=yes
14035 else
14036 ac_cv_lib_nsl_main=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14043 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14044 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14045 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14050 unset ac_cv_func_gethostbyname
14051 LIBS=$libgo_old_libs
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14055 $as_echo "$libgo_cv_lib_sockets" >&6; }
14056 NET_LIBS="$libgo_cv_lib_sockets"
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14060 $as_echo_n "checking whether -pthread is supported... " >&6; }
14061 if test "${libgo_cv_lib_pthread+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 CFLAGS_hold=$CFLAGS
14065 CFLAGS="$CFLAGS -pthread"
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 int i;
14069 _ACEOF
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071 libgo_cv_lib_pthread=yes
14072 else
14073 libgo_cv_lib_pthread=no
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 CFLAGS=$CFLAGS_hold
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14079 $as_echo "$libgo_cv_lib_pthread" >&6; }
14080 PTHREAD_CFLAGS=
14081 if test "$libgo_cv_lib_pthread" = yes; then
14082 PTHREAD_CFLAGS=-pthread
14086 PTHREAD_LIBS=
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14088 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14089 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 ac_check_lib_save_LIBS=$LIBS
14093 LIBS="-lpthread $LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char pthread_create ();
14105 main ()
14107 return pthread_create ();
14109 return 0;
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 ac_cv_lib_pthread_pthread_create=yes
14114 else
14115 ac_cv_lib_pthread_pthread_create=no
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14122 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14123 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14124 PTHREAD_LIBS=-lpthread
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14130 $as_echo_n "checking for library containing sched_yield... " >&6; }
14131 if test "${ac_cv_search_sched_yield+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 ac_func_search_save_LIBS=$LIBS
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char sched_yield ();
14146 main ()
14148 return sched_yield ();
14150 return 0;
14152 _ACEOF
14153 for ac_lib in '' rt; do
14154 if test -z "$ac_lib"; then
14155 ac_res="none required"
14156 else
14157 ac_res=-l$ac_lib
14158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_search_sched_yield=$ac_res
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext
14165 if test "${ac_cv_search_sched_yield+set}" = set; then :
14166 break
14168 done
14169 if test "${ac_cv_search_sched_yield+set}" = set; then :
14171 else
14172 ac_cv_search_sched_yield=no
14174 rm conftest.$ac_ext
14175 LIBS=$ac_func_search_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14178 $as_echo "$ac_cv_search_sched_yield" >&6; }
14179 ac_res=$ac_cv_search_sched_yield
14180 if test "$ac_res" != no; then :
14181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14188 if test "${ac_cv_c_bigendian+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 ac_cv_c_bigendian=unknown
14192 # See if we're dealing with a universal compiler.
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 #ifndef __APPLE_CC__
14196 not a universal capable compiler
14197 #endif
14198 typedef int dummy;
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"; then :
14203 # Check for potential -arch flags. It is not universal unless
14204 # there are at least two -arch flags with different values.
14205 ac_arch=
14206 ac_prev=
14207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14208 if test -n "$ac_prev"; then
14209 case $ac_word in
14210 i?86 | x86_64 | ppc | ppc64)
14211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14212 ac_arch=$ac_word
14213 else
14214 ac_cv_c_bigendian=universal
14215 break
14218 esac
14219 ac_prev=
14220 elif test "x$ac_word" = "x-arch"; then
14221 ac_prev=arch
14223 done
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 if test $ac_cv_c_bigendian = unknown; then
14227 # See if sys/param.h defines the BYTE_ORDER macro.
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 #include <sys/types.h>
14231 #include <sys/param.h>
14234 main ()
14236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14238 && LITTLE_ENDIAN)
14239 bogus endian macros
14240 #endif
14243 return 0;
14245 _ACEOF
14246 if ac_fn_c_try_compile "$LINENO"; then :
14247 # It does; now see whether it defined to BIG_ENDIAN or not.
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <sys/types.h>
14251 #include <sys/param.h>
14254 main ()
14256 #if BYTE_ORDER != BIG_ENDIAN
14257 not big endian
14258 #endif
14261 return 0;
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"; then :
14265 ac_cv_c_bigendian=yes
14266 else
14267 ac_cv_c_bigendian=no
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 if test $ac_cv_c_bigendian = unknown; then
14274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #include <limits.h>
14280 main ()
14282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14283 bogus endian macros
14284 #endif
14287 return 0;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291 # It does; now see whether it defined to _BIG_ENDIAN or not.
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294 #include <limits.h>
14297 main ()
14299 #ifndef _BIG_ENDIAN
14300 not big endian
14301 #endif
14304 return 0;
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308 ac_cv_c_bigendian=yes
14309 else
14310 ac_cv_c_bigendian=no
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 if test $ac_cv_c_bigendian = unknown; then
14317 # Compile a test program.
14318 if test "$cross_compiling" = yes; then :
14319 # Try to guess by grepping values from an object file.
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 short int ascii_mm[] =
14323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14324 short int ascii_ii[] =
14325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14326 int use_ascii (int i) {
14327 return ascii_mm[i] + ascii_ii[i];
14329 short int ebcdic_ii[] =
14330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14331 short int ebcdic_mm[] =
14332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14333 int use_ebcdic (int i) {
14334 return ebcdic_mm[i] + ebcdic_ii[i];
14336 extern int foo;
14339 main ()
14341 return use_ascii (foo) == use_ebcdic (foo);
14343 return 0;
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14348 ac_cv_c_bigendian=yes
14350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14351 if test "$ac_cv_c_bigendian" = unknown; then
14352 ac_cv_c_bigendian=no
14353 else
14354 # finding both strings is unlikely to happen, but who knows?
14355 ac_cv_c_bigendian=unknown
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 $ac_includes_default
14365 main ()
14368 /* Are we little or big endian? From Harbison&Steele. */
14369 union
14371 long int l;
14372 char c[sizeof (long int)];
14373 } u;
14374 u.l = 1;
14375 return u.c[sizeof (long int) - 1] == 1;
14378 return 0;
14380 _ACEOF
14381 if ac_fn_c_try_run "$LINENO"; then :
14382 ac_cv_c_bigendian=no
14383 else
14384 ac_cv_c_bigendian=yes
14386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14387 conftest.$ac_objext conftest.beam conftest.$ac_ext
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14393 $as_echo "$ac_cv_c_bigendian" >&6; }
14394 case $ac_cv_c_bigendian in #(
14395 yes)
14396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14397 ;; #(
14399 ;; #(
14400 universal)
14402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14404 ;; #(
14406 as_fn_error "unknown endianness
14407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14408 esac
14413 # Check whether --with-system-libunwind was given.
14414 if test "${with_system_libunwind+set}" = set; then :
14415 withval=$with_system_libunwind;
14418 # If system-libunwind was not specifically set, pick a default setting.
14419 if test x$with_system_libunwind = x; then
14420 case ${target} in
14421 ia64-*-hpux*) with_system_libunwind=yes ;;
14422 *) with_system_libunwind=no ;;
14423 esac
14425 # Based on system-libunwind and target, do we have ipinfo?
14426 if test x$with_system_libunwind = xyes; then
14427 case ${target} in
14428 ia64-*-*) have_unwind_getipinfo=no ;;
14429 *) have_unwind_getipinfo=yes ;;
14430 esac
14431 else
14432 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14434 case ${target} in
14435 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14436 *) have_unwind_getipinfo=yes ;;
14437 esac
14441 if test x$have_unwind_getipinfo = xyes; then
14443 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14448 # Check whether --enable-sjlj-exceptions was given.
14449 if test "${enable_sjlj_exceptions+set}" = set; then :
14450 enableval=$enable_sjlj_exceptions; case "$enableval" in
14451 yes|no|auto) ;;
14452 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14453 esac
14454 else
14455 enable_sjlj_exceptions=auto
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14460 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14461 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14467 void bar ();
14468 void clean (int *);
14469 void foo ()
14471 int i __attribute__ ((cleanup (clean)));
14472 bar();
14475 _ACEOF
14476 CFLAGS_hold=$CFLAGS
14477 CFLAGS="--save-temps -fexceptions"
14478 libgo_cv_lib_sjlj_exceptions=unknown
14479 if ac_fn_c_try_compile; then :
14480 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14481 libgo_cv_lib_sjlj_exceptions=yes
14482 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14483 libgo_cv_lib_sjlj_exceptions=no
14486 CFLAGS=$CFLAGS_hold
14487 rm -f conftest*
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14491 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14493 if test "$enable_sjlj_exceptions" = "auto"; then
14494 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14497 case $enable_sjlj_exceptions in
14498 yes)
14500 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14506 as_fn_error "unable to detect exception model" "$LINENO" 5
14508 esac
14510 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h
14511 do :
14512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14514 eval as_val=\$$as_ac_Header
14515 if test "x$as_val" = x""yes; then :
14516 cat >>confdefs.h <<_ACEOF
14517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518 _ACEOF
14522 done
14525 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14526 do :
14527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14529 #include <sys/socket.h>
14530 #endif
14533 eval as_val=\$$as_ac_Header
14534 if test "x$as_val" = x""yes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14537 _ACEOF
14541 done
14544 if test "$ac_cv_header_sys_mman_h" = yes; then
14545 HAVE_SYS_MMAN_H_TRUE=
14546 HAVE_SYS_MMAN_H_FALSE='#'
14547 else
14548 HAVE_SYS_MMAN_H_TRUE='#'
14549 HAVE_SYS_MMAN_H_FALSE=
14553 for ac_func in strerror_r strsignal wait4 mincore setenv
14554 do :
14555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14556 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14557 eval as_val=\$$as_ac_var
14558 if test "x$as_val" = x""yes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14561 _ACEOF
14564 done
14566 if test "$ac_cv_func_strerror_r" = yes; then
14567 HAVE_STRERROR_R_TRUE=
14568 HAVE_STRERROR_R_FALSE='#'
14569 else
14570 HAVE_STRERROR_R_TRUE='#'
14571 HAVE_STRERROR_R_FALSE=
14574 if test "$ac_cv_func_wait4" = yes; then
14575 HAVE_WAIT4_TRUE=
14576 HAVE_WAIT4_FALSE='#'
14577 else
14578 HAVE_WAIT4_TRUE='#'
14579 HAVE_WAIT4_FALSE=
14583 for ac_func in epoll_create1 faccessat fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_rm_watch mkdirat mknodat openat renameat splice tee unlinkat unshare
14584 do :
14585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14587 eval as_val=\$$as_ac_var
14588 if test "x$as_val" = x""yes; then :
14589 cat >>confdefs.h <<_ACEOF
14590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14591 _ACEOF
14594 done
14596 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14597 if test "x$ac_cv_type_loff_t" = x""yes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_LOFF_T 1
14601 _ACEOF
14607 CFLAGS_hold="$CFLAGS"
14608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14609 LIBS_hold="$LIBS"
14610 LIBS="$LIBS $PTHREAD_LIBS"
14611 for ac_func in sem_timedwait
14612 do :
14613 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14614 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_SEM_TIMEDWAIT 1
14617 _ACEOF
14620 done
14622 CFLAGS="$CFLAGS_hold"
14623 LIBS="$LIBS_hold"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14626 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14627 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14634 uint32 i;
14635 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14637 _ACEOF
14638 if ac_fn_c_try_link "$LINENO"; then :
14639 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14640 else
14641 libgo_cv_func___sync_bool_compare_and_swap_4=no
14643 rm -f core conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14647 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14648 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14650 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14655 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14656 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14662 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14663 uint32 i;
14664 int main() { return __sync_fetch_and_add (&i, 1); }
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"; then :
14668 libgo_cv_func___sync_fetch_and_add_4=yes
14669 else
14670 libgo_cv_func___sync_fetch_and_add_4=no
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14676 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14677 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14679 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14684 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14685 if test "${libgo_cv_c_stringops+set}" = set; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 CFLAGS_hold=$CFLAGS
14689 CFLAGS="$CFLAGS -minline-all-stringops"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 int i;
14693 _ACEOF
14694 if ac_fn_c_try_compile "$LINENO"; then :
14695 libgo_cv_c_stringops=yes
14696 else
14697 libgo_cv_c_stringops=no
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 CFLAGS=$CFLAGS_hold
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14703 $as_echo "$libgo_cv_c_stringops" >&6; }
14704 STRINGOPS_FLAG=
14705 if test "$libgo_cv_c_stringops" = yes; then
14706 STRINGOPS_FLAG=-minline-all-stringops
14710 CFLAGS_hold=$CFLAGS
14711 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14712 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14713 if test "x$ac_cv_type_off64_t" = x""yes; then :
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_OFF64_T 1
14717 _ACEOF
14722 CFLAGS=$CFLAGS_hold
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14725 $as_echo_n "checking epoll_event size... " >&6; }
14726 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14731 else
14732 libgo_cv_c_epoll_event_size=0
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14737 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14738 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14742 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14743 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14747 #include <sys/epoll.h>"; then :
14749 else
14750 libgo_cv_c_epoll_event_fd_offset=0
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14755 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14756 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14759 cat >confcache <<\_ACEOF
14760 # This file is a shell script that caches the results of configure
14761 # tests run on this system so they can be shared between configure
14762 # scripts and configure runs, see configure's option --config-cache.
14763 # It is not useful on other systems. If it contains results you don't
14764 # want to keep, you may remove or edit it.
14766 # config.status only pays attention to the cache file if you give it
14767 # the --recheck option to rerun configure.
14769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14771 # following values.
14773 _ACEOF
14775 # The following way of writing the cache mishandles newlines in values,
14776 # but we know of no workaround that is simple, portable, and efficient.
14777 # So, we kill variables containing newlines.
14778 # Ultrix sh set writes to stderr and can't be redirected directly,
14779 # and sets the high bit in the cache file unless we assign to the vars.
14781 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14782 eval ac_val=\$$ac_var
14783 case $ac_val in #(
14784 *${as_nl}*)
14785 case $ac_var in #(
14786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14788 esac
14789 case $ac_var in #(
14790 _ | IFS | as_nl) ;; #(
14791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14792 *) { eval $ac_var=; unset $ac_var;} ;;
14793 esac ;;
14794 esac
14795 done
14797 (set) 2>&1 |
14798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14799 *${as_nl}ac_space=\ *)
14800 # `set' does not quote correctly, so add quotes: double-quote
14801 # substitution turns \\\\ into \\, and sed turns \\ into \.
14802 sed -n \
14803 "s/'/'\\\\''/g;
14804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14805 ;; #(
14807 # `set' quotes correctly as required by POSIX, so do not add quotes.
14808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14810 esac |
14811 sort
14813 sed '
14814 /^ac_cv_env_/b end
14815 t clear
14816 :clear
14817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14818 t end
14819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14820 :end' >>confcache
14821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14822 if test -w "$cache_file"; then
14823 test "x$cache_file" != "x/dev/null" &&
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14825 $as_echo "$as_me: updating cache $cache_file" >&6;}
14826 cat confcache >$cache_file
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14829 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14832 rm -f confcache
14834 if test ${multilib} = yes; then
14835 multilib_arg="--enable-multilib"
14836 else
14837 multilib_arg=
14840 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14843 ac_config_commands="$ac_config_commands default"
14846 cat >confcache <<\_ACEOF
14847 # This file is a shell script that caches the results of configure
14848 # tests run on this system so they can be shared between configure
14849 # scripts and configure runs, see configure's option --config-cache.
14850 # It is not useful on other systems. If it contains results you don't
14851 # want to keep, you may remove or edit it.
14853 # config.status only pays attention to the cache file if you give it
14854 # the --recheck option to rerun configure.
14856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14858 # following values.
14860 _ACEOF
14862 # The following way of writing the cache mishandles newlines in values,
14863 # but we know of no workaround that is simple, portable, and efficient.
14864 # So, we kill variables containing newlines.
14865 # Ultrix sh set writes to stderr and can't be redirected directly,
14866 # and sets the high bit in the cache file unless we assign to the vars.
14868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14869 eval ac_val=\$$ac_var
14870 case $ac_val in #(
14871 *${as_nl}*)
14872 case $ac_var in #(
14873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14875 esac
14876 case $ac_var in #(
14877 _ | IFS | as_nl) ;; #(
14878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14879 *) { eval $ac_var=; unset $ac_var;} ;;
14880 esac ;;
14881 esac
14882 done
14884 (set) 2>&1 |
14885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14886 *${as_nl}ac_space=\ *)
14887 # `set' does not quote correctly, so add quotes: double-quote
14888 # substitution turns \\\\ into \\, and sed turns \\ into \.
14889 sed -n \
14890 "s/'/'\\\\''/g;
14891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14892 ;; #(
14894 # `set' quotes correctly as required by POSIX, so do not add quotes.
14895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14897 esac |
14898 sort
14900 sed '
14901 /^ac_cv_env_/b end
14902 t clear
14903 :clear
14904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14905 t end
14906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14907 :end' >>confcache
14908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14909 if test -w "$cache_file"; then
14910 test "x$cache_file" != "x/dev/null" &&
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14912 $as_echo "$as_me: updating cache $cache_file" >&6;}
14913 cat confcache >$cache_file
14914 else
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14919 rm -f confcache
14921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14922 # Let make expand exec_prefix.
14923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14925 DEFS=-DHAVE_CONFIG_H
14927 ac_libobjs=
14928 ac_ltlibobjs=
14929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14930 # 1. Remove the extension, and $U if already installed.
14931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14932 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14934 # will be set to the directory where LIBOBJS objects are built.
14935 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14936 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14937 done
14938 LIBOBJS=$ac_libobjs
14940 LTLIBOBJS=$ac_ltlibobjs
14943 if test -n "$EXEEXT"; then
14944 am__EXEEXT_TRUE=
14945 am__EXEEXT_FALSE='#'
14946 else
14947 am__EXEEXT_TRUE='#'
14948 am__EXEEXT_FALSE=
14951 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14952 as_fn_error "conditional \"AMDEP\" was never defined.
14953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14956 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14960 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14964 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14968 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14972 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14976 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
14980 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14984 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14988 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14992 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14996 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15000 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15004 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15008 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15012 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15016 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15020 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15024 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15028 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15032 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15036 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15040 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15044 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15048 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15053 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15057 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15061 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15065 : ${CONFIG_STATUS=./config.status}
15066 ac_write_fail=0
15067 ac_clean_files_save=$ac_clean_files
15068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15071 as_write_fail=0
15072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15073 #! $SHELL
15074 # Generated by $as_me.
15075 # Run this file to recreate the current configuration.
15076 # Compiler output produced by configure, useful for debugging
15077 # configure, is in config.log if it exists.
15079 debug=false
15080 ac_cs_recheck=false
15081 ac_cs_silent=false
15083 SHELL=\${CONFIG_SHELL-$SHELL}
15084 export SHELL
15085 _ASEOF
15086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15087 ## -------------------- ##
15088 ## M4sh Initialization. ##
15089 ## -------------------- ##
15091 # Be more Bourne compatible
15092 DUALCASE=1; export DUALCASE # for MKS sh
15093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15094 emulate sh
15095 NULLCMD=:
15096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15097 # is contrary to our usage. Disable this feature.
15098 alias -g '${1+"$@"}'='"$@"'
15099 setopt NO_GLOB_SUBST
15100 else
15101 case `(set -o) 2>/dev/null` in #(
15102 *posix*) :
15103 set -o posix ;; #(
15104 *) :
15106 esac
15110 as_nl='
15112 export as_nl
15113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15117 # Prefer a ksh shell builtin over an external printf program on Solaris,
15118 # but without wasting forks for bash or zsh.
15119 if test -z "$BASH_VERSION$ZSH_VERSION" \
15120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15121 as_echo='print -r --'
15122 as_echo_n='print -rn --'
15123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='printf %s\n'
15125 as_echo_n='printf %s'
15126 else
15127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15129 as_echo_n='/usr/ucb/echo -n'
15130 else
15131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15132 as_echo_n_body='eval
15133 arg=$1;
15134 case $arg in #(
15135 *"$as_nl"*)
15136 expr "X$arg" : "X\\(.*\\)$as_nl";
15137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15138 esac;
15139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15141 export as_echo_n_body
15142 as_echo_n='sh -c $as_echo_n_body as_echo'
15144 export as_echo_body
15145 as_echo='sh -c $as_echo_body as_echo'
15148 # The user is always right.
15149 if test "${PATH_SEPARATOR+set}" != set; then
15150 PATH_SEPARATOR=:
15151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15153 PATH_SEPARATOR=';'
15158 # IFS
15159 # We need space, tab and new line, in precisely that order. Quoting is
15160 # there to prevent editors from complaining about space-tab.
15161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15162 # splitting by setting IFS to empty value.)
15163 IFS=" "" $as_nl"
15165 # Find who we are. Look in the path if we contain no directory separator.
15166 case $0 in #((
15167 *[\\/]* ) as_myself=$0 ;;
15168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15169 for as_dir in $PATH
15171 IFS=$as_save_IFS
15172 test -z "$as_dir" && as_dir=.
15173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15174 done
15175 IFS=$as_save_IFS
15178 esac
15179 # We did not find ourselves, most probably we were run as `sh COMMAND'
15180 # in which case we are not to be found in the path.
15181 if test "x$as_myself" = x; then
15182 as_myself=$0
15184 if test ! -f "$as_myself"; then
15185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15186 exit 1
15189 # Unset variables that we do not need and which cause bugs (e.g. in
15190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15191 # suppresses any "Segmentation fault" message there. '((' could
15192 # trigger a bug in pdksh 5.2.14.
15193 for as_var in BASH_ENV ENV MAIL MAILPATH
15194 do eval test x\${$as_var+set} = xset \
15195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15196 done
15197 PS1='$ '
15198 PS2='> '
15199 PS4='+ '
15201 # NLS nuisances.
15202 LC_ALL=C
15203 export LC_ALL
15204 LANGUAGE=C
15205 export LANGUAGE
15207 # CDPATH.
15208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15211 # as_fn_error ERROR [LINENO LOG_FD]
15212 # ---------------------------------
15213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15215 # script with status $?, using 1 if that was 0.
15216 as_fn_error ()
15218 as_status=$?; test $as_status -eq 0 && as_status=1
15219 if test "$3"; then
15220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15223 $as_echo "$as_me: error: $1" >&2
15224 as_fn_exit $as_status
15225 } # as_fn_error
15228 # as_fn_set_status STATUS
15229 # -----------------------
15230 # Set $? to STATUS, without forking.
15231 as_fn_set_status ()
15233 return $1
15234 } # as_fn_set_status
15236 # as_fn_exit STATUS
15237 # -----------------
15238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15239 as_fn_exit ()
15241 set +e
15242 as_fn_set_status $1
15243 exit $1
15244 } # as_fn_exit
15246 # as_fn_unset VAR
15247 # ---------------
15248 # Portably unset VAR.
15249 as_fn_unset ()
15251 { eval $1=; unset $1;}
15253 as_unset=as_fn_unset
15254 # as_fn_append VAR VALUE
15255 # ----------------------
15256 # Append the text in VALUE to the end of the definition contained in VAR. Take
15257 # advantage of any shell optimizations that allow amortized linear growth over
15258 # repeated appends, instead of the typical quadratic growth present in naive
15259 # implementations.
15260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15261 eval 'as_fn_append ()
15263 eval $1+=\$2
15265 else
15266 as_fn_append ()
15268 eval $1=\$$1\$2
15270 fi # as_fn_append
15272 # as_fn_arith ARG...
15273 # ------------------
15274 # Perform arithmetic evaluation on the ARGs, and store the result in the
15275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15276 # must be portable across $(()) and expr.
15277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15278 eval 'as_fn_arith ()
15280 as_val=$(( $* ))
15282 else
15283 as_fn_arith ()
15285 as_val=`expr "$@" || test $? -eq 1`
15287 fi # as_fn_arith
15290 if expr a : '\(a\)' >/dev/null 2>&1 &&
15291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15292 as_expr=expr
15293 else
15294 as_expr=false
15297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15298 as_basename=basename
15299 else
15300 as_basename=false
15303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15304 as_dirname=dirname
15305 else
15306 as_dirname=false
15309 as_me=`$as_basename -- "$0" ||
15310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15311 X"$0" : 'X\(//\)$' \| \
15312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15313 $as_echo X/"$0" |
15314 sed '/^.*\/\([^/][^/]*\)\/*$/{
15315 s//\1/
15318 /^X\/\(\/\/\)$/{
15319 s//\1/
15322 /^X\/\(\/\).*/{
15323 s//\1/
15326 s/.*/./; q'`
15328 # Avoid depending upon Character Ranges.
15329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15332 as_cr_digits='0123456789'
15333 as_cr_alnum=$as_cr_Letters$as_cr_digits
15335 ECHO_C= ECHO_N= ECHO_T=
15336 case `echo -n x` in #(((((
15337 -n*)
15338 case `echo 'xy\c'` in
15339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15340 xy) ECHO_C='\c';;
15341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15342 ECHO_T=' ';;
15343 esac;;
15345 ECHO_N='-n';;
15346 esac
15348 rm -f conf$$ conf$$.exe conf$$.file
15349 if test -d conf$$.dir; then
15350 rm -f conf$$.dir/conf$$.file
15351 else
15352 rm -f conf$$.dir
15353 mkdir conf$$.dir 2>/dev/null
15355 if (echo >conf$$.file) 2>/dev/null; then
15356 if ln -s conf$$.file conf$$ 2>/dev/null; then
15357 as_ln_s='ln -s'
15358 # ... but there are two gotchas:
15359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15361 # In both cases, we have to default to `cp -p'.
15362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15363 as_ln_s='cp -p'
15364 elif ln conf$$.file conf$$ 2>/dev/null; then
15365 as_ln_s=ln
15366 else
15367 as_ln_s='cp -p'
15369 else
15370 as_ln_s='cp -p'
15372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15373 rmdir conf$$.dir 2>/dev/null
15376 # as_fn_mkdir_p
15377 # -------------
15378 # Create "$as_dir" as a directory, including parents if necessary.
15379 as_fn_mkdir_p ()
15382 case $as_dir in #(
15383 -*) as_dir=./$as_dir;;
15384 esac
15385 test -d "$as_dir" || eval $as_mkdir_p || {
15386 as_dirs=
15387 while :; do
15388 case $as_dir in #(
15389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15390 *) as_qdir=$as_dir;;
15391 esac
15392 as_dirs="'$as_qdir' $as_dirs"
15393 as_dir=`$as_dirname -- "$as_dir" ||
15394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15395 X"$as_dir" : 'X\(//\)[^/]' \| \
15396 X"$as_dir" : 'X\(//\)$' \| \
15397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15398 $as_echo X"$as_dir" |
15399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15400 s//\1/
15403 /^X\(\/\/\)[^/].*/{
15404 s//\1/
15407 /^X\(\/\/\)$/{
15408 s//\1/
15411 /^X\(\/\).*/{
15412 s//\1/
15415 s/.*/./; q'`
15416 test -d "$as_dir" && break
15417 done
15418 test -z "$as_dirs" || eval "mkdir $as_dirs"
15419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15422 } # as_fn_mkdir_p
15423 if mkdir -p . 2>/dev/null; then
15424 as_mkdir_p='mkdir -p "$as_dir"'
15425 else
15426 test -d ./-p && rmdir ./-p
15427 as_mkdir_p=false
15430 if test -x / >/dev/null 2>&1; then
15431 as_test_x='test -x'
15432 else
15433 if ls -dL / >/dev/null 2>&1; then
15434 as_ls_L_option=L
15435 else
15436 as_ls_L_option=
15438 as_test_x='
15439 eval sh -c '\''
15440 if test -d "$1"; then
15441 test -d "$1/.";
15442 else
15443 case $1 in #(
15444 -*)set "./$1";;
15445 esac;
15446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15447 ???[sx]*):;;*)false;;esac;fi
15448 '\'' sh
15451 as_executable_p=$as_test_x
15453 # Sed expression to map a string onto a valid CPP name.
15454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15456 # Sed expression to map a string onto a valid variable name.
15457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15460 exec 6>&1
15461 ## ----------------------------------- ##
15462 ## Main body of $CONFIG_STATUS script. ##
15463 ## ----------------------------------- ##
15464 _ASEOF
15465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468 # Save the log message, to keep $0 and so on meaningful, and to
15469 # report actual input values of CONFIG_FILES etc. instead of their
15470 # values after options handling.
15471 ac_log="
15472 This file was extended by package-unused $as_me version-unused, which was
15473 generated by GNU Autoconf 2.64. Invocation command line was
15475 CONFIG_FILES = $CONFIG_FILES
15476 CONFIG_HEADERS = $CONFIG_HEADERS
15477 CONFIG_LINKS = $CONFIG_LINKS
15478 CONFIG_COMMANDS = $CONFIG_COMMANDS
15479 $ $0 $@
15481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15484 _ACEOF
15486 case $ac_config_files in *"
15487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15488 esac
15490 case $ac_config_headers in *"
15491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15492 esac
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 # Files that config.status was made for.
15497 config_files="$ac_config_files"
15498 config_headers="$ac_config_headers"
15499 config_commands="$ac_config_commands"
15501 _ACEOF
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504 ac_cs_usage="\
15505 \`$as_me' instantiates files and other configuration actions
15506 from templates according to the current configuration. Unless the files
15507 and actions are specified as TAGs, all are instantiated by default.
15509 Usage: $0 [OPTION]... [TAG]...
15511 -h, --help print this help, then exit
15512 -V, --version print version number and configuration settings, then exit
15513 -q, --quiet, --silent
15514 do not print progress messages
15515 -d, --debug don't remove temporary files
15516 --recheck update $as_me by reconfiguring in the same conditions
15517 --file=FILE[:TEMPLATE]
15518 instantiate the configuration file FILE
15519 --header=FILE[:TEMPLATE]
15520 instantiate the configuration header FILE
15522 Configuration files:
15523 $config_files
15525 Configuration headers:
15526 $config_headers
15528 Configuration commands:
15529 $config_commands
15531 Report bugs to the package provider."
15533 _ACEOF
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 ac_cs_version="\\
15536 package-unused config.status version-unused
15537 configured by $0, generated by GNU Autoconf 2.64,
15538 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15540 Copyright (C) 2009 Free Software Foundation, Inc.
15541 This config.status script is free software; the Free Software Foundation
15542 gives unlimited permission to copy, distribute and modify it."
15544 ac_pwd='$ac_pwd'
15545 srcdir='$srcdir'
15546 INSTALL='$INSTALL'
15547 MKDIR_P='$MKDIR_P'
15548 AWK='$AWK'
15549 test -n "\$AWK" || AWK=awk
15550 _ACEOF
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 # The default lists apply if the user does not specify any file.
15554 ac_need_defaults=:
15555 while test $# != 0
15557 case $1 in
15558 --*=*)
15559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15561 ac_shift=:
15564 ac_option=$1
15565 ac_optarg=$2
15566 ac_shift=shift
15568 esac
15570 case $ac_option in
15571 # Handling of the options.
15572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15573 ac_cs_recheck=: ;;
15574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15575 $as_echo "$ac_cs_version"; exit ;;
15576 --debug | --debu | --deb | --de | --d | -d )
15577 debug=: ;;
15578 --file | --fil | --fi | --f )
15579 $ac_shift
15580 case $ac_optarg in
15581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15582 esac
15583 as_fn_append CONFIG_FILES " '$ac_optarg'"
15584 ac_need_defaults=false;;
15585 --header | --heade | --head | --hea )
15586 $ac_shift
15587 case $ac_optarg in
15588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15589 esac
15590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15591 ac_need_defaults=false;;
15592 --he | --h)
15593 # Conflict between --help and --header
15594 as_fn_error "ambiguous option: \`$1'
15595 Try \`$0 --help' for more information.";;
15596 --help | --hel | -h )
15597 $as_echo "$ac_cs_usage"; exit ;;
15598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15600 ac_cs_silent=: ;;
15602 # This is an error.
15603 -*) as_fn_error "unrecognized option: \`$1'
15604 Try \`$0 --help' for more information." ;;
15606 *) as_fn_append ac_config_targets " $1"
15607 ac_need_defaults=false ;;
15609 esac
15610 shift
15611 done
15613 ac_configure_extra_args=
15615 if $ac_cs_silent; then
15616 exec 6>/dev/null
15617 ac_configure_extra_args="$ac_configure_extra_args --silent"
15620 _ACEOF
15621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15622 if \$ac_cs_recheck; then
15623 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15624 shift
15625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15626 CONFIG_SHELL='$SHELL'
15627 export CONFIG_SHELL
15628 exec "\$@"
15631 _ACEOF
15632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15633 exec 5>>config.log
15635 echo
15636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15637 ## Running $as_me. ##
15638 _ASBOX
15639 $as_echo "$ac_log"
15640 } >&5
15642 _ACEOF
15643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 # INIT-COMMANDS
15648 srcdir="$srcdir"
15649 host="$host"
15650 target="$target"
15651 with_multisubdir="$with_multisubdir"
15652 with_multisrctop="$with_multisrctop"
15653 with_target_subdir="$with_target_subdir"
15654 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15655 multi_basedir="$multi_basedir"
15656 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15657 CC="$CC"
15658 CXX="$CXX"
15659 GFORTRAN="$GFORTRAN"
15660 GCJ="$GCJ"
15661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15664 # The HP-UX ksh and POSIX shell print the target directory to stdout
15665 # if CDPATH is set.
15666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15668 sed_quote_subst='$sed_quote_subst'
15669 double_quote_subst='$double_quote_subst'
15670 delay_variable_subst='$delay_variable_subst'
15671 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15672 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15673 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15674 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15675 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15676 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15677 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15678 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15679 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15680 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15681 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15682 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15683 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15684 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15685 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15686 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15687 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15688 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15689 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15690 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15691 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15692 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15693 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15694 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15695 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15696 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15697 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15698 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15699 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15700 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15701 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15702 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15703 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15704 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15705 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15706 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15707 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15708 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15709 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15710 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15711 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15712 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15713 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15714 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15715 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15716 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15717 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15718 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15719 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"`'
15720 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15721 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15722 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15723 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15724 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15725 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15726 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15727 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15728 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15729 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15730 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15731 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15732 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15733 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15734 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15735 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15736 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15737 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15738 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15739 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15740 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15741 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15742 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15743 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15744 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15745 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15746 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15747 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15748 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15749 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15750 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15751 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15752 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15753 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15754 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15755 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15756 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15757 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15758 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15759 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15760 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15761 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15762 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15763 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15764 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15765 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15766 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15767 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15768 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15769 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15770 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15771 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15772 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15773 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15774 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15775 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15776 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15777 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15778 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15779 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15780 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15781 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15782 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15783 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15784 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15785 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15786 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15787 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15788 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15789 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15790 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15791 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15792 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15793 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15794 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15795 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15796 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15797 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15798 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15799 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15800 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15801 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15802 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15803 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15804 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15805 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15806 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15807 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15808 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15809 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15810 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15811 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15812 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15813 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15814 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15815 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15816 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15817 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15818 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15819 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15820 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15821 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15822 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15823 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15824 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15825 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15826 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15827 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15828 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15829 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15830 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15831 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15832 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15833 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15835 LTCC='$LTCC'
15836 LTCFLAGS='$LTCFLAGS'
15837 compiler='$compiler_DEFAULT'
15839 # A function that is used when there is no print builtin or printf.
15840 func_fallback_echo ()
15842 eval 'cat <<_LTECHO_EOF
15844 _LTECHO_EOF'
15847 # Quote evaled strings.
15848 for var in SED \
15849 GREP \
15850 EGREP \
15851 FGREP \
15852 SHELL \
15853 ECHO \
15854 LD \
15855 NM \
15856 LN_S \
15857 lt_SP2NL \
15858 lt_NL2SP \
15859 reload_flag \
15860 OBJDUMP \
15861 deplibs_check_method \
15862 file_magic_cmd \
15863 AR \
15864 AR_FLAGS \
15865 STRIP \
15866 RANLIB \
15867 CC \
15868 CFLAGS \
15869 compiler \
15870 lt_cv_sys_global_symbol_pipe \
15871 lt_cv_sys_global_symbol_to_cdecl \
15872 lt_cv_sys_global_symbol_to_c_name_address \
15873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15874 lt_prog_compiler_no_builtin_flag \
15875 lt_prog_compiler_wl \
15876 lt_prog_compiler_pic \
15877 lt_prog_compiler_static \
15878 lt_cv_prog_compiler_c_o \
15879 need_locks \
15880 DSYMUTIL \
15881 NMEDIT \
15882 LIPO \
15883 OTOOL \
15884 OTOOL64 \
15885 shrext_cmds \
15886 export_dynamic_flag_spec \
15887 whole_archive_flag_spec \
15888 compiler_needs_object \
15889 with_gnu_ld \
15890 allow_undefined_flag \
15891 no_undefined_flag \
15892 hardcode_libdir_flag_spec \
15893 hardcode_libdir_flag_spec_ld \
15894 hardcode_libdir_separator \
15895 fix_srcfile_path \
15896 exclude_expsyms \
15897 include_expsyms \
15898 file_list_spec \
15899 variables_saved_for_relink \
15900 libname_spec \
15901 library_names_spec \
15902 soname_spec \
15903 install_override_mode \
15904 finish_eval \
15905 old_striplib \
15906 striplib \
15907 LD_GO \
15908 reload_flag_GO \
15909 compiler_GO \
15910 lt_prog_compiler_no_builtin_flag_GO \
15911 lt_prog_compiler_wl_GO \
15912 lt_prog_compiler_pic_GO \
15913 lt_prog_compiler_static_GO \
15914 lt_cv_prog_compiler_c_o_GO \
15915 export_dynamic_flag_spec_GO \
15916 whole_archive_flag_spec_GO \
15917 compiler_needs_object_GO \
15918 with_gnu_ld_GO \
15919 allow_undefined_flag_GO \
15920 no_undefined_flag_GO \
15921 hardcode_libdir_flag_spec_GO \
15922 hardcode_libdir_flag_spec_ld_GO \
15923 hardcode_libdir_separator_GO \
15924 fix_srcfile_path_GO \
15925 exclude_expsyms_GO \
15926 include_expsyms_GO \
15927 file_list_spec_GO; do
15928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15929 *[\\\\\\\`\\"\\\$]*)
15930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15935 esac
15936 done
15938 # Double-quote double-evaled strings.
15939 for var in reload_cmds \
15940 old_postinstall_cmds \
15941 old_postuninstall_cmds \
15942 old_archive_cmds \
15943 extract_expsyms_cmds \
15944 old_archive_from_new_cmds \
15945 old_archive_from_expsyms_cmds \
15946 archive_cmds \
15947 archive_expsym_cmds \
15948 module_cmds \
15949 module_expsym_cmds \
15950 export_symbols_cmds \
15951 prelink_cmds \
15952 postinstall_cmds \
15953 postuninstall_cmds \
15954 finish_cmds \
15955 sys_lib_search_path_spec \
15956 sys_lib_dlsearch_path_spec \
15957 reload_cmds_GO \
15958 old_archive_cmds_GO \
15959 old_archive_from_new_cmds_GO \
15960 old_archive_from_expsyms_cmds_GO \
15961 archive_cmds_GO \
15962 archive_expsym_cmds_GO \
15963 module_cmds_GO \
15964 module_expsym_cmds_GO \
15965 export_symbols_cmds_GO \
15966 prelink_cmds_GO; do
15967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15968 *[\\\\\\\`\\"\\\$]*)
15969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15974 esac
15975 done
15977 ac_aux_dir='$ac_aux_dir'
15978 xsi_shell='$xsi_shell'
15979 lt_shell_append='$lt_shell_append'
15981 # See if we are running on zsh, and set the options which allow our
15982 # commands through without removal of \ escapes INIT.
15983 if test -n "\${ZSH_VERSION+set}" ; then
15984 setopt NO_GLOB_SUBST
15988 PACKAGE='$PACKAGE'
15989 VERSION='$VERSION'
15990 TIMESTAMP='$TIMESTAMP'
15991 RM='$RM'
15992 ofile='$ofile'
15999 # Variables needed in config.status (file generation) which aren't already
16000 # passed by autoconf.
16001 SUBDIRS="$SUBDIRS"
16004 _ACEOF
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16008 # Handling of arguments.
16009 for ac_config_target in $ac_config_targets
16011 case $ac_config_target in
16012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16013 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16014 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16015 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16017 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16018 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16020 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16021 esac
16022 done
16025 # If the user did not use the arguments to specify the items to instantiate,
16026 # then the envvar interface is used. Set only those that are not.
16027 # We use the long form for the default assignment because of an extremely
16028 # bizarre bug on SunOS 4.1.3.
16029 if $ac_need_defaults; then
16030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16035 # Have a temporary directory for convenience. Make it in the build tree
16036 # simply because there is no reason against having it here, and in addition,
16037 # creating and moving files from /tmp can sometimes cause problems.
16038 # Hook for its removal unless debugging.
16039 # Note that there is a small window in which the directory will not be cleaned:
16040 # after its creation but before its name has been assigned to `$tmp'.
16041 $debug ||
16043 tmp=
16044 trap 'exit_status=$?
16045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16047 trap 'as_fn_exit 1' 1 2 13 15
16049 # Create a (secure) tmp directory for tmp files.
16052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16053 test -n "$tmp" && test -d "$tmp"
16054 } ||
16056 tmp=./conf$$-$RANDOM
16057 (umask 077 && mkdir "$tmp")
16058 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16060 # Set up the scripts for CONFIG_FILES section.
16061 # No need to generate them if there are no CONFIG_FILES.
16062 # This happens for instance with `./config.status config.h'.
16063 if test -n "$CONFIG_FILES"; then
16066 ac_cr=`echo X | tr X '\015'`
16067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16068 # But we know of no other shell where ac_cr would be empty at this
16069 # point, so we can use a bashism as a fallback.
16070 if test "x$ac_cr" = x; then
16071 eval ac_cr=\$\'\\r\'
16073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16075 ac_cs_awk_cr='\r'
16076 else
16077 ac_cs_awk_cr=$ac_cr
16080 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16081 _ACEOF
16085 echo "cat >conf$$subs.awk <<_ACEOF" &&
16086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16087 echo "_ACEOF"
16088 } >conf$$subs.sh ||
16089 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16091 ac_delim='%!_!# '
16092 for ac_last_try in false false false false false :; do
16093 . ./conf$$subs.sh ||
16094 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16097 if test $ac_delim_n = $ac_delim_num; then
16098 break
16099 elif $ac_last_try; then
16100 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16101 else
16102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16104 done
16105 rm -f conf$$subs.sh
16107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16108 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16109 _ACEOF
16110 sed -n '
16112 s/^/S["/; s/!.*/"]=/
16115 s/^[^!]*!//
16116 :repl
16117 t repl
16118 s/'"$ac_delim"'$//
16119 t delim
16122 s/\(.\{148\}\).*/\1/
16123 t more1
16124 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16127 b repl
16128 :more1
16129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16132 s/.\{148\}//
16133 t nl
16134 :delim
16136 s/\(.\{148\}\).*/\1/
16137 t more2
16138 s/["\\]/\\&/g; s/^/"/; s/$/"/
16141 :more2
16142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16145 s/.\{148\}//
16146 t delim
16147 ' <conf$$subs.awk | sed '
16148 /^[^""]/{
16150 s/\n//
16152 ' >>$CONFIG_STATUS || ac_write_fail=1
16153 rm -f conf$$subs.awk
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 _ACAWK
16156 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16157 for (key in S) S_is_set[key] = 1
16158 FS = "\a"
16162 line = $ 0
16163 nfields = split(line, field, "@")
16164 substed = 0
16165 len = length(field[1])
16166 for (i = 2; i < nfields; i++) {
16167 key = field[i]
16168 keylen = length(key)
16169 if (S_is_set[key]) {
16170 value = S[key]
16171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16172 len += length(value) + length(field[++i])
16173 substed = 1
16174 } else
16175 len += 1 + keylen
16178 print line
16181 _ACAWK
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16186 else
16188 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16189 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16190 _ACEOF
16192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16194 # trailing colons and then remove the whole line if VPATH becomes empty
16195 # (actually we leave an empty line to preserve line numbers).
16196 if test "x$srcdir" = x.; then
16197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16198 s/:*\$(srcdir):*/:/
16199 s/:*\${srcdir}:*/:/
16200 s/:*@srcdir@:*/:/
16201 s/^\([^=]*=[ ]*\):*/\1/
16202 s/:*$//
16203 s/^[^=]*=[ ]*$//
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16208 fi # test -n "$CONFIG_FILES"
16210 # Set up the scripts for CONFIG_HEADERS section.
16211 # No need to generate them if there are no CONFIG_HEADERS.
16212 # This happens for instance with `./config.status Makefile'.
16213 if test -n "$CONFIG_HEADERS"; then
16214 cat >"$tmp/defines.awk" <<\_ACAWK ||
16215 BEGIN {
16216 _ACEOF
16218 # Transform confdefs.h into an awk script `defines.awk', embedded as
16219 # here-document in config.status, that substitutes the proper values into
16220 # config.h.in to produce config.h.
16222 # Create a delimiter string that does not exist in confdefs.h, to ease
16223 # handling of long lines.
16224 ac_delim='%!_!# '
16225 for ac_last_try in false false :; do
16226 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16227 if test -z "$ac_t"; then
16228 break
16229 elif $ac_last_try; then
16230 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16231 else
16232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16234 done
16236 # For the awk script, D is an array of macro values keyed by name,
16237 # likewise P contains macro parameters if any. Preserve backslash
16238 # newline sequences.
16240 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16241 sed -n '
16242 s/.\{148\}/&'"$ac_delim"'/g
16243 t rset
16244 :rset
16245 s/^[ ]*#[ ]*define[ ][ ]*/ /
16246 t def
16248 :def
16249 s/\\$//
16250 t bsnl
16251 s/["\\]/\\&/g
16252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16253 D["\1"]=" \3"/p
16254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16256 :bsnl
16257 s/["\\]/\\&/g
16258 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16259 D["\1"]=" \3\\\\\\n"\\/p
16260 t cont
16261 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16262 t cont
16264 :cont
16266 s/.\{148\}/&'"$ac_delim"'/g
16267 t clear
16268 :clear
16269 s/\\$//
16270 t bsnlc
16271 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16273 :bsnlc
16274 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16275 b cont
16276 ' <confdefs.h | sed '
16277 s/'"$ac_delim"'/"\\\
16278 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 for (key in D) D_is_set[key] = 1
16282 FS = "\a"
16284 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16285 line = \$ 0
16286 split(line, arg, " ")
16287 if (arg[1] == "#") {
16288 defundef = arg[2]
16289 mac1 = arg[3]
16290 } else {
16291 defundef = substr(arg[1], 2)
16292 mac1 = arg[2]
16294 split(mac1, mac2, "(") #)
16295 macro = mac2[1]
16296 prefix = substr(line, 1, index(line, defundef) - 1)
16297 if (D_is_set[macro]) {
16298 # Preserve the white space surrounding the "#".
16299 print prefix "define", macro P[macro] D[macro]
16300 next
16301 } else {
16302 # Replace #undef with comments. This is necessary, for example,
16303 # in the case of _POSIX_SOURCE, which is predefined and required
16304 # on some systems where configure will not decide to define it.
16305 if (defundef == "undef") {
16306 print "/*", prefix defundef, macro, "*/"
16307 next
16311 { print }
16312 _ACAWK
16313 _ACEOF
16314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16315 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16316 fi # test -n "$CONFIG_HEADERS"
16319 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16320 shift
16321 for ac_tag
16323 case $ac_tag in
16324 :[FHLC]) ac_mode=$ac_tag; continue;;
16325 esac
16326 case $ac_mode$ac_tag in
16327 :[FHL]*:*);;
16328 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16329 :[FH]-) ac_tag=-:-;;
16330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16331 esac
16332 ac_save_IFS=$IFS
16333 IFS=:
16334 set x $ac_tag
16335 IFS=$ac_save_IFS
16336 shift
16337 ac_file=$1
16338 shift
16340 case $ac_mode in
16341 :L) ac_source=$1;;
16342 :[FH])
16343 ac_file_inputs=
16344 for ac_f
16346 case $ac_f in
16347 -) ac_f="$tmp/stdin";;
16348 *) # Look for the file first in the build tree, then in the source tree
16349 # (if the path is not absolute). The absolute path cannot be DOS-style,
16350 # because $ac_f cannot contain `:'.
16351 test -f "$ac_f" ||
16352 case $ac_f in
16353 [\\/$]*) false;;
16354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16355 esac ||
16356 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16357 esac
16358 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16359 as_fn_append ac_file_inputs " '$ac_f'"
16360 done
16362 # Let's still pretend it is `configure' which instantiates (i.e., don't
16363 # use $as_me), people would be surprised to read:
16364 # /* config.h. Generated by config.status. */
16365 configure_input='Generated from '`
16366 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16367 `' by configure.'
16368 if test x"$ac_file" != x-; then
16369 configure_input="$ac_file. $configure_input"
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16371 $as_echo "$as_me: creating $ac_file" >&6;}
16373 # Neutralize special characters interpreted by sed in replacement strings.
16374 case $configure_input in #(
16375 *\&* | *\|* | *\\* )
16376 ac_sed_conf_input=`$as_echo "$configure_input" |
16377 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16378 *) ac_sed_conf_input=$configure_input;;
16379 esac
16381 case $ac_tag in
16382 *:-:* | *:-) cat >"$tmp/stdin" \
16383 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16384 esac
16386 esac
16388 ac_dir=`$as_dirname -- "$ac_file" ||
16389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16390 X"$ac_file" : 'X\(//\)[^/]' \| \
16391 X"$ac_file" : 'X\(//\)$' \| \
16392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16393 $as_echo X"$ac_file" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16395 s//\1/
16398 /^X\(\/\/\)[^/].*/{
16399 s//\1/
16402 /^X\(\/\/\)$/{
16403 s//\1/
16406 /^X\(\/\).*/{
16407 s//\1/
16410 s/.*/./; q'`
16411 as_dir="$ac_dir"; as_fn_mkdir_p
16412 ac_builddir=.
16414 case "$ac_dir" in
16415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16418 # A ".." for each directory in $ac_dir_suffix.
16419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16420 case $ac_top_builddir_sub in
16421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16423 esac ;;
16424 esac
16425 ac_abs_top_builddir=$ac_pwd
16426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16427 # for backward compatibility:
16428 ac_top_builddir=$ac_top_build_prefix
16430 case $srcdir in
16431 .) # We are building in place.
16432 ac_srcdir=.
16433 ac_top_srcdir=$ac_top_builddir_sub
16434 ac_abs_top_srcdir=$ac_pwd ;;
16435 [\\/]* | ?:[\\/]* ) # Absolute name.
16436 ac_srcdir=$srcdir$ac_dir_suffix;
16437 ac_top_srcdir=$srcdir
16438 ac_abs_top_srcdir=$srcdir ;;
16439 *) # Relative name.
16440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16441 ac_top_srcdir=$ac_top_build_prefix$srcdir
16442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16443 esac
16444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16447 case $ac_mode in
16450 # CONFIG_FILE
16453 case $INSTALL in
16454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16455 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16456 esac
16457 ac_MKDIR_P=$MKDIR_P
16458 case $MKDIR_P in
16459 [\\/$]* | ?:[\\/]* ) ;;
16460 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16461 esac
16462 _ACEOF
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465 # If the template does not know about datarootdir, expand it.
16466 # FIXME: This hack should be removed a few years after 2.60.
16467 ac_datarootdir_hack=; ac_datarootdir_seen=
16468 ac_sed_dataroot='
16469 /datarootdir/ {
16473 /@datadir@/p
16474 /@docdir@/p
16475 /@infodir@/p
16476 /@localedir@/p
16477 /@mandir@/p'
16478 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16479 *datarootdir*) ac_datarootdir_seen=yes;;
16480 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16482 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485 ac_datarootdir_hack='
16486 s&@datadir@&$datadir&g
16487 s&@docdir@&$docdir&g
16488 s&@infodir@&$infodir&g
16489 s&@localedir@&$localedir&g
16490 s&@mandir@&$mandir&g
16491 s&\\\${datarootdir}&$datarootdir&g' ;;
16492 esac
16493 _ACEOF
16495 # Neutralize VPATH when `$srcdir' = `.'.
16496 # Shell code in configure.ac might set extrasub.
16497 # FIXME: do we really want to maintain this feature?
16498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16499 ac_sed_extra="$ac_vpsub
16500 $extrasub
16501 _ACEOF
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16505 s|@configure_input@|$ac_sed_conf_input|;t t
16506 s&@top_builddir@&$ac_top_builddir_sub&;t t
16507 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16508 s&@srcdir@&$ac_srcdir&;t t
16509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16510 s&@top_srcdir@&$ac_top_srcdir&;t t
16511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16512 s&@builddir@&$ac_builddir&;t t
16513 s&@abs_builddir@&$ac_abs_builddir&;t t
16514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16515 s&@INSTALL@&$ac_INSTALL&;t t
16516 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16517 $ac_datarootdir_hack
16519 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16520 || as_fn_error "could not create $ac_file" "$LINENO" 5
16522 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16523 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16524 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16526 which seems to be undefined. Please make sure it is defined." >&5
16527 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16528 which seems to be undefined. Please make sure it is defined." >&2;}
16530 rm -f "$tmp/stdin"
16531 case $ac_file in
16532 -) cat "$tmp/out" && rm -f "$tmp/out";;
16533 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16534 esac \
16535 || as_fn_error "could not create $ac_file" "$LINENO" 5
16539 # CONFIG_HEADER
16541 if test x"$ac_file" != x-; then
16543 $as_echo "/* $configure_input */" \
16544 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16545 } >"$tmp/config.h" \
16546 || as_fn_error "could not create $ac_file" "$LINENO" 5
16547 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16549 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16550 else
16551 rm -f "$ac_file"
16552 mv "$tmp/config.h" "$ac_file" \
16553 || as_fn_error "could not create $ac_file" "$LINENO" 5
16555 else
16556 $as_echo "/* $configure_input */" \
16557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16558 || as_fn_error "could not create -" "$LINENO" 5
16560 # Compute "$ac_file"'s index in $config_headers.
16561 _am_arg="$ac_file"
16562 _am_stamp_count=1
16563 for _am_header in $config_headers :; do
16564 case $_am_header in
16565 $_am_arg | $_am_arg:* )
16566 break ;;
16568 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16569 esac
16570 done
16571 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16572 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16573 X"$_am_arg" : 'X\(//\)[^/]' \| \
16574 X"$_am_arg" : 'X\(//\)$' \| \
16575 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16576 $as_echo X"$_am_arg" |
16577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16578 s//\1/
16581 /^X\(\/\/\)[^/].*/{
16582 s//\1/
16585 /^X\(\/\/\)$/{
16586 s//\1/
16589 /^X\(\/\).*/{
16590 s//\1/
16593 s/.*/./; q'`/stamp-h$_am_stamp_count
16596 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16597 $as_echo "$as_me: executing $ac_file commands" >&6;}
16599 esac
16602 case $ac_file$ac_mode in
16603 "default-1":C)
16604 # Only add multilib support code if we just rebuilt the top-level
16605 # Makefile.
16606 case " $CONFIG_FILES " in
16607 *" Makefile "*)
16608 ac_file=Makefile . ${multi_basedir}/config-ml.in
16610 esac ;;
16611 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16612 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16613 # are listed without --file. Let's play safe and only enable the eval
16614 # if we detect the quoting.
16615 case $CONFIG_FILES in
16616 *\'*) eval set x "$CONFIG_FILES" ;;
16617 *) set x $CONFIG_FILES ;;
16618 esac
16619 shift
16620 for mf
16622 # Strip MF so we end up with the name of the file.
16623 mf=`echo "$mf" | sed -e 's/:.*$//'`
16624 # Check whether this is an Automake generated Makefile or not.
16625 # We used to match only the files named `Makefile.in', but
16626 # some people rename them; so instead we look at the file content.
16627 # Grep'ing the first line is not enough: some people post-process
16628 # each Makefile.in and add a new line on top of each file to say so.
16629 # Grep'ing the whole file is not good either: AIX grep has a line
16630 # limit of 2048, but all sed's we know have understand at least 4000.
16631 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16632 dirpart=`$as_dirname -- "$mf" ||
16633 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$mf" : 'X\(//\)[^/]' \| \
16635 X"$mf" : 'X\(//\)$' \| \
16636 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16637 $as_echo X"$mf" |
16638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639 s//\1/
16642 /^X\(\/\/\)[^/].*/{
16643 s//\1/
16646 /^X\(\/\/\)$/{
16647 s//\1/
16650 /^X\(\/\).*/{
16651 s//\1/
16654 s/.*/./; q'`
16655 else
16656 continue
16658 # Extract the definition of DEPDIR, am__include, and am__quote
16659 # from the Makefile without running `make'.
16660 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16661 test -z "$DEPDIR" && continue
16662 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16663 test -z "am__include" && continue
16664 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16665 # When using ansi2knr, U may be empty or an underscore; expand it
16666 U=`sed -n 's/^U = //p' < "$mf"`
16667 # Find all dependency output files, they are included files with
16668 # $(DEPDIR) in their names. We invoke sed twice because it is the
16669 # simplest approach to changing $(DEPDIR) to its actual value in the
16670 # expansion.
16671 for file in `sed -n "
16672 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16673 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16674 # Make sure the directory exists.
16675 test -f "$dirpart/$file" && continue
16676 fdir=`$as_dirname -- "$file" ||
16677 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16678 X"$file" : 'X\(//\)[^/]' \| \
16679 X"$file" : 'X\(//\)$' \| \
16680 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16681 $as_echo X"$file" |
16682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16683 s//\1/
16686 /^X\(\/\/\)[^/].*/{
16687 s//\1/
16690 /^X\(\/\/\)$/{
16691 s//\1/
16694 /^X\(\/\).*/{
16695 s//\1/
16698 s/.*/./; q'`
16699 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16700 # echo "creating $dirpart/$file"
16701 echo '# dummy' > "$dirpart/$file"
16702 done
16703 done
16706 "libtool":C)
16708 # See if we are running on zsh, and set the options which allow our
16709 # commands through without removal of \ escapes.
16710 if test -n "${ZSH_VERSION+set}" ; then
16711 setopt NO_GLOB_SUBST
16714 cfgfile="${ofile}T"
16715 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16716 $RM "$cfgfile"
16718 cat <<_LT_EOF >> "$cfgfile"
16719 #! $SHELL
16721 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16722 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16726 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16727 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16728 # Written by Gordon Matzigkeit, 1996
16730 # This file is part of GNU Libtool.
16732 # GNU Libtool is free software; you can redistribute it and/or
16733 # modify it under the terms of the GNU General Public License as
16734 # published by the Free Software Foundation; either version 2 of
16735 # the License, or (at your option) any later version.
16737 # As a special exception to the GNU General Public License,
16738 # if you distribute this file as part of a program or library that
16739 # is built using GNU Libtool, you may include this file under the
16740 # same distribution terms that you use for the rest of that program.
16742 # GNU Libtool is distributed in the hope that it will be useful,
16743 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16745 # GNU General Public License for more details.
16747 # You should have received a copy of the GNU General Public License
16748 # along with GNU Libtool; see the file COPYING. If not, a copy
16749 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16750 # obtained by writing to the Free Software Foundation, Inc.,
16751 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16754 # The names of the tagged configurations supported by this script.
16755 available_tags="GO "
16757 # ### BEGIN LIBTOOL CONFIG
16759 # A sed program that does not truncate output.
16760 SED=$lt_SED
16762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16763 Xsed="\$SED -e 1s/^X//"
16765 # A grep program that handles long lines.
16766 GREP=$lt_GREP
16768 # An ERE matcher.
16769 EGREP=$lt_EGREP
16771 # A literal string matcher.
16772 FGREP=$lt_FGREP
16774 # Shell to use when invoking shell scripts.
16775 SHELL=$lt_SHELL
16777 # An echo program that protects backslashes.
16778 ECHO=$lt_ECHO
16780 # Which release of libtool.m4 was used?
16781 macro_version=$macro_version
16782 macro_revision=$macro_revision
16784 # Whether or not to build shared libraries.
16785 build_libtool_libs=$enable_shared
16787 # Whether or not to build static libraries.
16788 build_old_libs=$enable_static
16790 # What type of objects to build.
16791 pic_mode=$pic_mode
16793 # Whether or not to optimize for fast installation.
16794 fast_install=$enable_fast_install
16796 # The host system.
16797 host_alias=$host_alias
16798 host=$host
16799 host_os=$host_os
16801 # The build system.
16802 build_alias=$build_alias
16803 build=$build
16804 build_os=$build_os
16806 # A BSD- or MS-compatible name lister.
16807 NM=$lt_NM
16809 # Whether we need soft or hard links.
16810 LN_S=$lt_LN_S
16812 # What is the maximum length of a command?
16813 max_cmd_len=$max_cmd_len
16815 # Object file suffix (normally "o").
16816 objext=$ac_objext
16818 # Executable file suffix (normally "").
16819 exeext=$exeext
16821 # whether the shell understands "unset".
16822 lt_unset=$lt_unset
16824 # turn spaces into newlines.
16825 SP2NL=$lt_lt_SP2NL
16827 # turn newlines into spaces.
16828 NL2SP=$lt_lt_NL2SP
16830 # An object symbol dumper.
16831 OBJDUMP=$lt_OBJDUMP
16833 # Method to check whether dependent libraries are shared objects.
16834 deplibs_check_method=$lt_deplibs_check_method
16836 # Command to use when deplibs_check_method == "file_magic".
16837 file_magic_cmd=$lt_file_magic_cmd
16839 # The archiver.
16840 AR=$lt_AR
16841 AR_FLAGS=$lt_AR_FLAGS
16843 # A symbol stripping program.
16844 STRIP=$lt_STRIP
16846 # Commands used to install an old-style archive.
16847 RANLIB=$lt_RANLIB
16848 old_postinstall_cmds=$lt_old_postinstall_cmds
16849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16851 # Whether to use a lock for old archive extraction.
16852 lock_old_archive_extraction=$lock_old_archive_extraction
16854 # A C compiler.
16855 LTCC=$lt_CC
16857 # LTCC compiler flags.
16858 LTCFLAGS=$lt_CFLAGS
16860 # Take the output of nm and produce a listing of raw symbols and C names.
16861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16863 # Transform the output of nm in a proper C declaration.
16864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16866 # Transform the output of nm in a C name address pair.
16867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16869 # Transform the output of nm in a C name address pair when lib prefix is needed.
16870 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16872 # The name of the directory that contains temporary libtool files.
16873 objdir=$objdir
16875 # Used to examine libraries when file_magic_cmd begins with "file".
16876 MAGIC_CMD=$MAGIC_CMD
16878 # Must we lock files when doing compilation?
16879 need_locks=$lt_need_locks
16881 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16882 DSYMUTIL=$lt_DSYMUTIL
16884 # Tool to change global to local symbols on Mac OS X.
16885 NMEDIT=$lt_NMEDIT
16887 # Tool to manipulate fat objects and archives on Mac OS X.
16888 LIPO=$lt_LIPO
16890 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16891 OTOOL=$lt_OTOOL
16893 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16894 OTOOL64=$lt_OTOOL64
16896 # Old archive suffix (normally "a").
16897 libext=$libext
16899 # Shared library suffix (normally ".so").
16900 shrext_cmds=$lt_shrext_cmds
16902 # The commands to extract the exported symbol list from a shared archive.
16903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16905 # Variables whose values should be saved in libtool wrapper scripts and
16906 # restored at link time.
16907 variables_saved_for_relink=$lt_variables_saved_for_relink
16909 # Do we need the "lib" prefix for modules?
16910 need_lib_prefix=$need_lib_prefix
16912 # Do we need a version for libraries?
16913 need_version=$need_version
16915 # Library versioning type.
16916 version_type=$version_type
16918 # Shared library runtime path variable.
16919 runpath_var=$runpath_var
16921 # Shared library path variable.
16922 shlibpath_var=$shlibpath_var
16924 # Is shlibpath searched before the hard-coded library search path?
16925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16927 # Format of library name prefix.
16928 libname_spec=$lt_libname_spec
16930 # List of archive names. First name is the real one, the rest are links.
16931 # The last name is the one that the linker finds with -lNAME
16932 library_names_spec=$lt_library_names_spec
16934 # The coded name of the library, if different from the real name.
16935 soname_spec=$lt_soname_spec
16937 # Permission mode override for installation of shared libraries.
16938 install_override_mode=$lt_install_override_mode
16940 # Command to use after installation of a shared archive.
16941 postinstall_cmds=$lt_postinstall_cmds
16943 # Command to use after uninstallation of a shared archive.
16944 postuninstall_cmds=$lt_postuninstall_cmds
16946 # Commands used to finish a libtool library installation in a directory.
16947 finish_cmds=$lt_finish_cmds
16949 # As "finish_cmds", except a single script fragment to be evaled but
16950 # not shown.
16951 finish_eval=$lt_finish_eval
16953 # Whether we should hardcode library paths into libraries.
16954 hardcode_into_libs=$hardcode_into_libs
16956 # Compile-time system search path for libraries.
16957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16959 # Run-time system search path for libraries.
16960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16962 # Whether dlopen is supported.
16963 dlopen_support=$enable_dlopen
16965 # Whether dlopen of programs is supported.
16966 dlopen_self=$enable_dlopen_self
16968 # Whether dlopen of statically linked programs is supported.
16969 dlopen_self_static=$enable_dlopen_self_static
16971 # Commands to strip libraries.
16972 old_striplib=$lt_old_striplib
16973 striplib=$lt_striplib
16976 # The linker used to build libraries.
16977 LD=$lt_LD
16979 # How to create reloadable object files.
16980 reload_flag=$lt_reload_flag
16981 reload_cmds=$lt_reload_cmds
16983 # Commands used to build an old-style archive.
16984 old_archive_cmds=$lt_old_archive_cmds
16986 # A language specific compiler.
16987 CC=$lt_compiler
16989 # Is the compiler the GNU compiler?
16990 with_gcc=$GCC
16992 # Compiler flag to turn off builtin functions.
16993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16995 # How to pass a linker flag through the compiler.
16996 wl=$lt_lt_prog_compiler_wl
16998 # Additional compiler flags for building library objects.
16999 pic_flag=$lt_lt_prog_compiler_pic
17001 # Compiler flag to prevent dynamic linking.
17002 link_static_flag=$lt_lt_prog_compiler_static
17004 # Does compiler simultaneously support -c and -o options?
17005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17007 # Whether or not to add -lc for building shared libraries.
17008 build_libtool_need_lc=$archive_cmds_need_lc
17010 # Whether or not to disallow shared libs when runtime libs are static.
17011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17013 # Compiler flag to allow reflexive dlopens.
17014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17016 # Compiler flag to generate shared objects directly from archives.
17017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17019 # Whether the compiler copes with passing no objects directly.
17020 compiler_needs_object=$lt_compiler_needs_object
17022 # Create an old-style archive from a shared archive.
17023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17025 # Create a temporary old-style archive to link instead of a shared archive.
17026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17028 # Commands used to build a shared archive.
17029 archive_cmds=$lt_archive_cmds
17030 archive_expsym_cmds=$lt_archive_expsym_cmds
17032 # Commands used to build a loadable module if different from building
17033 # a shared archive.
17034 module_cmds=$lt_module_cmds
17035 module_expsym_cmds=$lt_module_expsym_cmds
17037 # Whether we are building with GNU ld or not.
17038 with_gnu_ld=$lt_with_gnu_ld
17040 # Flag that allows shared libraries with undefined symbols to be built.
17041 allow_undefined_flag=$lt_allow_undefined_flag
17043 # Flag that enforces no undefined symbols.
17044 no_undefined_flag=$lt_no_undefined_flag
17046 # Flag to hardcode \$libdir into a binary during linking.
17047 # This must work even if \$libdir does not exist
17048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17050 # If ld is used when linking, flag to hardcode \$libdir into a binary
17051 # during linking. This must work even if \$libdir does not exist.
17052 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17054 # Whether we need a single "-rpath" flag with a separated argument.
17055 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17058 # DIR into the resulting binary.
17059 hardcode_direct=$hardcode_direct
17061 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17062 # DIR into the resulting binary and the resulting library dependency is
17063 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17064 # library is relocated.
17065 hardcode_direct_absolute=$hardcode_direct_absolute
17067 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17068 # into the resulting binary.
17069 hardcode_minus_L=$hardcode_minus_L
17071 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17072 # into the resulting binary.
17073 hardcode_shlibpath_var=$hardcode_shlibpath_var
17075 # Set to "yes" if building a shared library automatically hardcodes DIR
17076 # into the library and all subsequent libraries and executables linked
17077 # against it.
17078 hardcode_automatic=$hardcode_automatic
17080 # Set to yes if linker adds runtime paths of dependent libraries
17081 # to runtime path list.
17082 inherit_rpath=$inherit_rpath
17084 # Whether libtool must link a program against all its dependency libraries.
17085 link_all_deplibs=$link_all_deplibs
17087 # Fix the shell variable \$srcfile for the compiler.
17088 fix_srcfile_path=$lt_fix_srcfile_path
17090 # Set to "yes" if exported symbols are required.
17091 always_export_symbols=$always_export_symbols
17093 # The commands to list exported symbols.
17094 export_symbols_cmds=$lt_export_symbols_cmds
17096 # Symbols that should not be listed in the preloaded symbols.
17097 exclude_expsyms=$lt_exclude_expsyms
17099 # Symbols that must always be exported.
17100 include_expsyms=$lt_include_expsyms
17102 # Commands necessary for linking programs (against libraries) with templates.
17103 prelink_cmds=$lt_prelink_cmds
17105 # Specify filename containing input files.
17106 file_list_spec=$lt_file_list_spec
17108 # How to hardcode a shared library path into an executable.
17109 hardcode_action=$hardcode_action
17111 # ### END LIBTOOL CONFIG
17113 _LT_EOF
17115 case $host_os in
17116 aix3*)
17117 cat <<\_LT_EOF >> "$cfgfile"
17118 # AIX sometimes has problems with the GCC collect2 program. For some
17119 # reason, if we set the COLLECT_NAMES environment variable, the problems
17120 # vanish in a puff of smoke.
17121 if test "X${COLLECT_NAMES+set}" != Xset; then
17122 COLLECT_NAMES=
17123 export COLLECT_NAMES
17125 _LT_EOF
17127 esac
17130 ltmain="$ac_aux_dir/ltmain.sh"
17133 # We use sed instead of cat because bash on DJGPP gets confused if
17134 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17135 # text mode, it properly converts lines to CR/LF. This bash problem
17136 # is reportedly fixed, but why not run on old versions too?
17137 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17138 || (rm -f "$cfgfile"; exit 1)
17140 case $xsi_shell in
17141 yes)
17142 cat << \_LT_EOF >> "$cfgfile"
17144 # func_dirname file append nondir_replacement
17145 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17146 # otherwise set result to NONDIR_REPLACEMENT.
17147 func_dirname ()
17149 case ${1} in
17150 */*) func_dirname_result="${1%/*}${2}" ;;
17151 * ) func_dirname_result="${3}" ;;
17152 esac
17155 # func_basename file
17156 func_basename ()
17158 func_basename_result="${1##*/}"
17161 # func_dirname_and_basename file append nondir_replacement
17162 # perform func_basename and func_dirname in a single function
17163 # call:
17164 # dirname: Compute the dirname of FILE. If nonempty,
17165 # add APPEND to the result, otherwise set result
17166 # to NONDIR_REPLACEMENT.
17167 # value returned in "$func_dirname_result"
17168 # basename: Compute filename of FILE.
17169 # value retuned in "$func_basename_result"
17170 # Implementation must be kept synchronized with func_dirname
17171 # and func_basename. For efficiency, we do not delegate to
17172 # those functions but instead duplicate the functionality here.
17173 func_dirname_and_basename ()
17175 case ${1} in
17176 */*) func_dirname_result="${1%/*}${2}" ;;
17177 * ) func_dirname_result="${3}" ;;
17178 esac
17179 func_basename_result="${1##*/}"
17182 # func_stripname prefix suffix name
17183 # strip PREFIX and SUFFIX off of NAME.
17184 # PREFIX and SUFFIX must not contain globbing or regex special
17185 # characters, hashes, percent signs, but SUFFIX may contain a leading
17186 # dot (in which case that matches only a dot).
17187 func_stripname ()
17189 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17190 # positional parameters, so assign one to ordinary parameter first.
17191 func_stripname_result=${3}
17192 func_stripname_result=${func_stripname_result#"${1}"}
17193 func_stripname_result=${func_stripname_result%"${2}"}
17196 # func_opt_split
17197 func_opt_split ()
17199 func_opt_split_opt=${1%%=*}
17200 func_opt_split_arg=${1#*=}
17203 # func_lo2o object
17204 func_lo2o ()
17206 case ${1} in
17207 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17208 *) func_lo2o_result=${1} ;;
17209 esac
17212 # func_xform libobj-or-source
17213 func_xform ()
17215 func_xform_result=${1%.*}.lo
17218 # func_arith arithmetic-term...
17219 func_arith ()
17221 func_arith_result=$(( $* ))
17224 # func_len string
17225 # STRING may not start with a hyphen.
17226 func_len ()
17228 func_len_result=${#1}
17231 _LT_EOF
17233 *) # Bourne compatible functions.
17234 cat << \_LT_EOF >> "$cfgfile"
17236 # func_dirname file append nondir_replacement
17237 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17238 # otherwise set result to NONDIR_REPLACEMENT.
17239 func_dirname ()
17241 # Extract subdirectory from the argument.
17242 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17243 if test "X$func_dirname_result" = "X${1}"; then
17244 func_dirname_result="${3}"
17245 else
17246 func_dirname_result="$func_dirname_result${2}"
17250 # func_basename file
17251 func_basename ()
17253 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17257 # func_stripname prefix suffix name
17258 # strip PREFIX and SUFFIX off of NAME.
17259 # PREFIX and SUFFIX must not contain globbing or regex special
17260 # characters, hashes, percent signs, but SUFFIX may contain a leading
17261 # dot (in which case that matches only a dot).
17262 # func_strip_suffix prefix name
17263 func_stripname ()
17265 case ${2} in
17266 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17267 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17268 esac
17271 # sed scripts:
17272 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17273 my_sed_long_arg='1s/^-[^=]*=//'
17275 # func_opt_split
17276 func_opt_split ()
17278 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17279 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17282 # func_lo2o object
17283 func_lo2o ()
17285 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17288 # func_xform libobj-or-source
17289 func_xform ()
17291 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17294 # func_arith arithmetic-term...
17295 func_arith ()
17297 func_arith_result=`expr "$@"`
17300 # func_len string
17301 # STRING may not start with a hyphen.
17302 func_len ()
17304 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17307 _LT_EOF
17308 esac
17310 case $lt_shell_append in
17311 yes)
17312 cat << \_LT_EOF >> "$cfgfile"
17314 # func_append var value
17315 # Append VALUE to the end of shell variable VAR.
17316 func_append ()
17318 eval "$1+=\$2"
17320 _LT_EOF
17323 cat << \_LT_EOF >> "$cfgfile"
17325 # func_append var value
17326 # Append VALUE to the end of shell variable VAR.
17327 func_append ()
17329 eval "$1=\$$1\$2"
17332 _LT_EOF
17334 esac
17337 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17338 || (rm -f "$cfgfile"; exit 1)
17340 mv -f "$cfgfile" "$ofile" ||
17341 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17342 chmod +x "$ofile"
17345 cat <<_LT_EOF >> "$ofile"
17347 # ### BEGIN LIBTOOL TAG CONFIG: GO
17349 # The linker used to build libraries.
17350 LD=$lt_LD_GO
17352 # How to create reloadable object files.
17353 reload_flag=$lt_reload_flag_GO
17354 reload_cmds=$lt_reload_cmds_GO
17356 # Commands used to build an old-style archive.
17357 old_archive_cmds=$lt_old_archive_cmds_GO
17359 # A language specific compiler.
17360 CC=$lt_compiler_GO
17362 # Is the compiler the GNU compiler?
17363 with_gcc=$GCC_GO
17365 # Compiler flag to turn off builtin functions.
17366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17368 # How to pass a linker flag through the compiler.
17369 wl=$lt_lt_prog_compiler_wl_GO
17371 # Additional compiler flags for building library objects.
17372 pic_flag=$lt_lt_prog_compiler_pic_GO
17374 # Compiler flag to prevent dynamic linking.
17375 link_static_flag=$lt_lt_prog_compiler_static_GO
17377 # Does compiler simultaneously support -c and -o options?
17378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17380 # Whether or not to add -lc for building shared libraries.
17381 build_libtool_need_lc=$archive_cmds_need_lc_GO
17383 # Whether or not to disallow shared libs when runtime libs are static.
17384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17386 # Compiler flag to allow reflexive dlopens.
17387 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17389 # Compiler flag to generate shared objects directly from archives.
17390 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17392 # Whether the compiler copes with passing no objects directly.
17393 compiler_needs_object=$lt_compiler_needs_object_GO
17395 # Create an old-style archive from a shared archive.
17396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17398 # Create a temporary old-style archive to link instead of a shared archive.
17399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17401 # Commands used to build a shared archive.
17402 archive_cmds=$lt_archive_cmds_GO
17403 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17405 # Commands used to build a loadable module if different from building
17406 # a shared archive.
17407 module_cmds=$lt_module_cmds_GO
17408 module_expsym_cmds=$lt_module_expsym_cmds_GO
17410 # Whether we are building with GNU ld or not.
17411 with_gnu_ld=$lt_with_gnu_ld_GO
17413 # Flag that allows shared libraries with undefined symbols to be built.
17414 allow_undefined_flag=$lt_allow_undefined_flag_GO
17416 # Flag that enforces no undefined symbols.
17417 no_undefined_flag=$lt_no_undefined_flag_GO
17419 # Flag to hardcode \$libdir into a binary during linking.
17420 # This must work even if \$libdir does not exist
17421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17423 # If ld is used when linking, flag to hardcode \$libdir into a binary
17424 # during linking. This must work even if \$libdir does not exist.
17425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17427 # Whether we need a single "-rpath" flag with a separated argument.
17428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17430 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17431 # DIR into the resulting binary.
17432 hardcode_direct=$hardcode_direct_GO
17434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17435 # DIR into the resulting binary and the resulting library dependency is
17436 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17437 # library is relocated.
17438 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17440 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17441 # into the resulting binary.
17442 hardcode_minus_L=$hardcode_minus_L_GO
17444 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17445 # into the resulting binary.
17446 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17448 # Set to "yes" if building a shared library automatically hardcodes DIR
17449 # into the library and all subsequent libraries and executables linked
17450 # against it.
17451 hardcode_automatic=$hardcode_automatic_GO
17453 # Set to yes if linker adds runtime paths of dependent libraries
17454 # to runtime path list.
17455 inherit_rpath=$inherit_rpath_GO
17457 # Whether libtool must link a program against all its dependency libraries.
17458 link_all_deplibs=$link_all_deplibs_GO
17460 # Fix the shell variable \$srcfile for the compiler.
17461 fix_srcfile_path=$lt_fix_srcfile_path_GO
17463 # Set to "yes" if exported symbols are required.
17464 always_export_symbols=$always_export_symbols_GO
17466 # The commands to list exported symbols.
17467 export_symbols_cmds=$lt_export_symbols_cmds_GO
17469 # Symbols that should not be listed in the preloaded symbols.
17470 exclude_expsyms=$lt_exclude_expsyms_GO
17472 # Symbols that must always be exported.
17473 include_expsyms=$lt_include_expsyms_GO
17475 # Commands necessary for linking programs (against libraries) with templates.
17476 prelink_cmds=$lt_prelink_cmds_GO
17478 # Specify filename containing input files.
17479 file_list_spec=$lt_file_list_spec_GO
17481 # How to hardcode a shared library path into an executable.
17482 hardcode_action=$hardcode_action_GO
17484 # ### END LIBTOOL TAG CONFIG: GO
17485 _LT_EOF
17488 "default":C) if test -n "$CONFIG_FILES"; then
17489 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17490 # that multilib installs will end up installed in the correct place.
17491 # The testsuite needs it for multilib-aware ABI baseline files.
17492 # To work around this not being passed down from config-ml.in ->
17493 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17494 # append it here. Only modify Makefiles that have just been created.
17496 # Also, get rid of this simulated-VPATH thing that automake does.
17497 cat > vpsed << \_EOF
17498 s!`test -f '$<' || echo '$(srcdir)/'`!!
17499 _EOF
17500 for i in $SUBDIRS; do
17501 case $CONFIG_FILES in
17502 *${i}/Makefile*)
17503 #echo "Adding MULTISUBDIR to $i/Makefile"
17504 sed -f vpsed $i/Makefile > tmp
17505 grep '^MULTISUBDIR =' Makefile >> tmp
17506 mv tmp $i/Makefile
17508 esac
17509 done
17510 rm vpsed
17514 esac
17515 done # for ac_tag
17518 as_fn_exit 0
17519 _ACEOF
17520 ac_clean_files=$ac_clean_files_save
17522 test $ac_write_fail = 0 ||
17523 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17526 # configure is writing to config.log, and then calls config.status.
17527 # config.status does its own redirection, appending to config.log.
17528 # Unfortunately, on DOS this fails, as config.log is still kept open
17529 # by configure, so config.status won't be able to write to it; its
17530 # output is simply discarded. So we exec the FD to /dev/null,
17531 # effectively closing config.log, so it can be properly (re)opened and
17532 # appended to by config.status. When coming back to configure, we
17533 # need to make the FD available again.
17534 if test "$no_create" != yes; then
17535 ac_cs_success=:
17536 ac_config_status_args=
17537 test "$silent" = yes &&
17538 ac_config_status_args="$ac_config_status_args --quiet"
17539 exec 5>/dev/null
17540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17541 exec 5>>config.log
17542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17543 # would make configure fail if this is the last instruction.
17544 $ac_cs_success || as_fn_exit $?
17546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}