PR rtl-optimization/78355
[official-gcc.git] / libgo / configure
blobd4ed950838e20d70ad5a638d0ebff9d763fa82be
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 HAVE_STAT_TIMESPEC_FALSE
606 HAVE_STAT_TIMESPEC_TRUE
607 STRUCT_EPOLL_EVENT_FD_OFFSET
608 SIZEOF_STRUCT_EPOLL_EVENT
609 MATH_FLAG
610 STRINGOPS_FLAG
611 HAVE_WAIT4_FALSE
612 HAVE_WAIT4_TRUE
613 HAVE_STRERROR_R_FALSE
614 HAVE_STRERROR_R_TRUE
615 HAVE_SYS_MMAN_H_FALSE
616 HAVE_SYS_MMAN_H_TRUE
617 PTHREAD_LIBS
618 PTHREAD_CFLAGS
619 NET_LIBS
620 MATH_LIBS
621 GOC_IS_LLGO_FALSE
622 GOC_IS_LLGO_TRUE
623 GO_SPLIT_STACK
624 USING_SPLIT_STACK_FALSE
625 USING_SPLIT_STACK_TRUE
626 SPLIT_STACK
627 OSCFLAGS
628 GO_SYSCALL_OS_ARCH_FILE
629 GO_SYSCALL_OS_FILE
630 GO_LIBCALL_OS_ARCH_FILE
631 GO_LIBCALL_OS_FILE
632 ALLGOARCHFAMILY
633 ALLGOARCH
634 GOARCH_MINFRAMESIZE
635 GOARCH_HUGEPAGESIZE
636 GOARCH_INT64ALIGN
637 GOARCH_PCQUANTUM
638 GOARCH_PHYSPAGESIZE
639 GOARCH_CACHELINESIZE
640 GOARCH_BIGENDIAN
641 GOARCH_FAMILY
642 GOARCH
643 USE_DEJAGNU
644 ALLGOOS
645 GOOS
646 LIBGO_IS_BSD_FALSE
647 LIBGO_IS_BSD_TRUE
648 LIBGO_IS_SOLARIS_FALSE
649 LIBGO_IS_SOLARIS_TRUE
650 LIBGO_IS_RTEMS_FALSE
651 LIBGO_IS_RTEMS_TRUE
652 LIBGO_IS_DRAGONFLY_FALSE
653 LIBGO_IS_DRAGONFLY_TRUE
654 LIBGO_IS_OPENBSD_FALSE
655 LIBGO_IS_OPENBSD_TRUE
656 LIBGO_IS_NETBSD_FALSE
657 LIBGO_IS_NETBSD_TRUE
658 LIBGO_IS_LINUX_FALSE
659 LIBGO_IS_LINUX_TRUE
660 LIBGO_IS_IRIX_FALSE
661 LIBGO_IS_IRIX_TRUE
662 LIBGO_IS_FREEBSD_FALSE
663 LIBGO_IS_FREEBSD_TRUE
664 LIBGO_IS_DARWIN_FALSE
665 LIBGO_IS_DARWIN_TRUE
666 go_include
667 LIBATOMIC
668 LIBFFIINCS
669 LIBFFI
670 nover_glibgo_toolexeclibdir
671 glibgo_toolexeclibdir
672 glibgo_toolexecdir
673 WERROR
674 WARN_FLAGS
675 CC_FOR_BUILD
676 enable_static
677 enable_shared
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
685 OBJDUMP
686 LN_S
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LIBTOOL
691 OBJCOPY
692 RANLIB
694 FGREP
695 EGREP
696 GREP
698 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 GOCFLAGS
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 multi_basedir
756 libtool_VERSION
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_multilib
799 enable_dependency_tracking
800 enable_maintainer_mode
801 with_gnu_ld
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 enable_libtool_lock
807 enable_werror
808 enable_version_specific_runtime_libs
809 with_libffi
810 with_libatomic
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CPPFLAGS'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223 esac
1224 done
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1310 /^X\(\/\/\)$/{
1311 s//\1/
1314 /^X\(\/\).*/{
1315 s//\1/
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1323 else
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1413 cat <<\_ACEOF
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424 _ACEOF
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of package-unused version-unused:";;
1430 esac
1431 cat <<\_ACEOF
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-multilib build many library versions (default)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-werror turns on -Werror [default=yes]
1448 --enable-version-specific-runtime-libs
1449 Specify that runtime libraries should be installed
1450 in a compiler-specific directory
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1456 --with-pic try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --without-libffi don't use libffi
1459 --without-libatomic don't use libatomic
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 GOC Go compiler command
1470 GOCFLAGS Go compiler flags
1471 CPP C preprocessor
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to the package provider.
1477 _ACEOF
1478 ac_status=$?
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 continue
1487 ac_builddir=.
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1505 case $srcdir in
1506 .) # We are building in place.
1507 ac_srcdir=.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 package-unused configure version-unused
1540 generated by GNU Autoconf 2.64
1542 Copyright (C) 2009 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1584 ac_retval=1
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 return $ac_retval
1589 } # ac_fn_c_try_compile
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_link ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext conftest$ac_exeext
1598 if { { ac_try="$ac_link"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest$ac_exeext && {
1617 test "$cross_compiling" = yes ||
1618 $as_test_x conftest$ac_exeext
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=1
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 return $ac_retval
1635 } # ac_fn_c_try_link
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655 eval "$3=yes"
1656 else
1657 eval "$3=no"
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 } # ac_fn_c_check_header_compile
1668 # ac_fn_c_try_cpp LINENO
1669 # ----------------------
1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_cpp ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } >/dev/null && {
1690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=1
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 return $ac_retval
1703 } # ac_fn_c_try_cpp
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
1745 } # ac_fn_c_try_run
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below.
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767 <limits.h> exists even on freestanding compilers. */
1769 #ifdef __STDC__
1770 # include <limits.h>
1771 #else
1772 # include <assert.h>
1773 #endif
1775 #undef $2
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1792 main ()
1794 return $2 ();
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"; then :
1800 eval "$3=yes"
1801 else
1802 eval "$3=no"
1804 rm -f core conftest.err conftest.$ac_objext \
1805 conftest$ac_exeext conftest.$ac_ext
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_func
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1818 # accordingly.
1819 ac_fn_c_check_header_mongrel ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 $as_echo_n "(cached) " >&6
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 else
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1842 else
1843 ac_header_compiler=no
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1858 else
1859 ac_header_preproc=no
1861 rm -f conftest.err conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 yes:no: )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 no:yes:* )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 eval "$3=\$ac_header_compiler"
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1902 # -------------------------------------------
1903 # Tests whether TYPE exists after having included INCLUDES, setting cache
1904 # variable VAR accordingly.
1905 ac_fn_c_check_type ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 eval "$3=no"
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1918 main ()
1920 if (sizeof ($2))
1921 return 0;
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 main ()
1933 if (sizeof (($2)))
1934 return 0;
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1941 else
1942 eval "$3=yes"
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_type
1955 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1956 # --------------------------------------------
1957 # Tries to find the compile-time value of EXPR in a program that includes
1958 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1959 # computed
1960 ac_fn_c_compute_int ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if test "$cross_compiling" = yes; then
1964 # Depending upon the size, compute the lo and hi bounds.
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1969 main ()
1971 static int test_array [1 - 2 * !(($2) >= 0)];
1972 test_array [0] = 0
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_lo=0 ac_mid=0
1980 while :; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 main ()
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 test_array [0] = 0
1991 return 0;
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_hi=$ac_mid; break
1996 else
1997 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998 if test $ac_lo -le $ac_mid; then
1999 ac_lo= ac_hi=
2000 break
2002 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 done
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static int test_array [1 - 2 * !(($2) < 0)];
2014 test_array [0] = 0
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_hi=-1 ac_mid=-1
2022 while :; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_lo=$ac_mid; break
2038 else
2039 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2040 if test $ac_mid -le $ac_hi; then
2041 ac_lo= ac_hi=
2042 break
2044 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 else
2049 ac_lo= ac_hi=
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 # Binary search between lo and hi bounds.
2055 while test "x$ac_lo" != "x$ac_hi"; do
2056 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid
2072 else
2073 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 done
2077 case $ac_lo in #((
2078 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079 '') ac_retval=1 ;;
2080 esac
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2085 static long int longval () { return $2; }
2086 static unsigned long int ulongval () { return $2; }
2087 #include <stdio.h>
2088 #include <stdlib.h>
2090 main ()
2093 FILE *f = fopen ("conftest.val", "w");
2094 if (! f)
2095 return 1;
2096 if (($2) < 0)
2098 long int i = longval ();
2099 if (i != ($2))
2100 return 1;
2101 fprintf (f, "%ld", i);
2103 else
2105 unsigned long int i = ulongval ();
2106 if (i != ($2))
2107 return 1;
2108 fprintf (f, "%lu", i);
2110 /* Do not output a trailing newline, as this causes \r\n confusion
2111 on some platforms. */
2112 return ferror (f) || fclose (f) != 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_run "$LINENO"; then :
2119 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120 else
2121 ac_retval=1
2123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2124 conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 rm -f conftest.val
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 return $ac_retval
2131 } # ac_fn_c_compute_int
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2136 It was created by package-unused $as_me version-unused, which was
2137 generated by GNU Autoconf 2.64. Invocation command line was
2139 $ $0 $@
2141 _ACEOF
2142 exec 5>>config.log
2144 cat <<_ASUNAME
2145 ## --------- ##
2146 ## Platform. ##
2147 ## --------- ##
2149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2159 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2162 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2163 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2164 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166 _ASUNAME
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 $as_echo "PATH: $as_dir"
2174 done
2175 IFS=$as_save_IFS
2177 } >&5
2179 cat >&5 <<_ACEOF
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2186 _ACEOF
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2200 for ac_arg
2202 case $ac_arg in
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2206 continue ;;
2207 *\'*)
2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 esac
2210 case $ac_pass in
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213 as_fn_append ac_configure_args1 " '$ac_arg'"
2214 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal.
2216 else
2217 case $ac_arg in
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224 esac
2226 -* ) ac_must_keep_next=true ;;
2227 esac
2229 as_fn_append ac_configure_args " '$ac_arg'"
2231 esac
2232 done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log. We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243 # Save into config.log some information that might help in debugging.
2245 echo
2247 cat <<\_ASBOX
2248 ## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##
2251 _ASBOX
2252 echo
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in #(
2258 *${as_nl}*)
2259 case $ac_var in #(
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262 esac
2263 case $ac_var in #(
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2267 esac ;;
2268 esac
2269 done
2270 (set) 2>&1 |
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2273 sed -n \
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276 ;; #(
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280 esac |
2281 sort
2283 echo
2285 cat <<\_ASBOX
2286 ## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##
2289 _ASBOX
2290 echo
2291 for ac_var in $ac_subst_vars
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2301 if test -n "$ac_subst_files"; then
2302 cat <<\_ASBOX
2303 ## ------------------- ##
2304 ## File substitutions. ##
2305 ## ------------------- ##
2306 _ASBOX
2307 echo
2308 for ac_var in $ac_subst_files
2310 eval ac_val=\$$ac_var
2311 case $ac_val in
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 esac
2314 $as_echo "$ac_var='\''$ac_val'\''"
2315 done | sort
2316 echo
2319 if test -s confdefs.h; then
2320 cat <<\_ASBOX
2321 ## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##
2324 _ASBOX
2325 echo
2326 cat confdefs.h
2327 echo
2329 test "$ac_signal" != 0 &&
2330 $as_echo "$as_me: caught signal $ac_signal"
2331 $as_echo "$as_me: exit $exit_status"
2332 } >&5
2333 rm -f core *.core core.conftest.* &&
2334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2335 exit $exit_status
2337 for ac_signal in 1 2 13 15; do
2338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2339 done
2340 ac_signal=0
2342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2343 rm -f -r conftest* confdefs.h
2345 $as_echo "/* confdefs.h */" > confdefs.h
2347 # Predefined preprocessor variables.
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_NAME "$PACKAGE_NAME"
2351 _ACEOF
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355 _ACEOF
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2359 _ACEOF
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_STRING "$PACKAGE_STRING"
2363 _ACEOF
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367 _ACEOF
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_URL "$PACKAGE_URL"
2371 _ACEOF
2374 # Let the site file select an alternate cache file if it wants to.
2375 # Prefer an explicitly selected file to automatically selected ones.
2376 ac_site_file1=NONE
2377 ac_site_file2=NONE
2378 if test -n "$CONFIG_SITE"; then
2379 ac_site_file1=$CONFIG_SITE
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2383 else
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 test "x$ac_site_file" = xNONE && continue
2390 if test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2394 . "$ac_site_file"
2396 done
2398 if test -r "$cache_file"; then
2399 # Some versions of bash will fail to source /dev/null (special
2400 # files actually), so we avoid doing that.
2401 if test -f "$cache_file"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403 $as_echo "$as_me: loading cache $cache_file" >&6;}
2404 case $cache_file in
2405 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406 *) . "./$cache_file";;
2407 esac
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411 $as_echo "$as_me: creating cache $cache_file" >&6;}
2412 >$cache_file
2415 # Check that the precious variables saved in the cache have kept the same
2416 # value.
2417 ac_cache_corrupted=false
2418 for ac_var in $ac_precious_vars; do
2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420 eval ac_new_set=\$ac_env_${ac_var}_set
2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422 eval ac_new_val=\$ac_env_${ac_var}_value
2423 case $ac_old_set,$ac_new_set in
2424 set,)
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2428 ,set)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,);;
2434 if test "x$ac_old_val" != "x$ac_new_val"; then
2435 # differences in whitespace do not lead to failure.
2436 ac_old_val_w=`echo x $ac_old_val`
2437 ac_new_val_w=`echo x $ac_new_val`
2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441 ac_cache_corrupted=:
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445 eval $ac_var=\$ac_old_val
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 fi;;
2452 esac
2453 # Pass precious variables to config.status.
2454 if test "$ac_new_set" = set; then
2455 case $ac_new_val in
2456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 *) ac_arg=$ac_var=$ac_new_val ;;
2458 esac
2459 case " $ac_configure_args " in
2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462 esac
2464 done
2465 if $ac_cache_corrupted; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472 ## -------------------- ##
2473 ## Main body of script. ##
2474 ## -------------------- ##
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484 ac_config_headers="$ac_config_headers config.h"
2487 libtool_VERSION=10:0:0
2490 # Default to --enable-multilib
2491 # Check whether --enable-multilib was given.
2492 if test "${enable_multilib+set}" = set; then :
2493 enableval=$enable_multilib; case "$enableval" in
2494 yes) multilib=yes ;;
2495 no) multilib=no ;;
2496 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2497 esac
2498 else
2499 multilib=yes
2503 # We may get other options which we leave undocumented:
2504 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2505 # See config-ml.in if you want the gory details.
2507 if test "$srcdir" = "."; then
2508 if test "$with_target_subdir" != "."; then
2509 multi_basedir="$srcdir/$with_multisrctop../.."
2510 else
2511 multi_basedir="$srcdir/$with_multisrctop.."
2513 else
2514 multi_basedir="$srcdir/.."
2518 # Even if the default multilib is not a cross compilation,
2519 # it may be that some of the other multilibs are.
2520 if test $cross_compiling = no && test $multilib = yes \
2521 && test "x${with_multisubdir}" != x ; then
2522 cross_compiling=maybe
2525 ac_config_commands="$ac_config_commands default-1"
2528 ac_aux_dir=
2529 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2530 for ac_t in install-sh install.sh shtool; do
2531 if test -f "$ac_dir/$ac_t"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/$ac_t -c"
2534 break 2
2536 done
2537 done
2538 if test -z "$ac_aux_dir"; then
2539 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556 $as_echo_n "checking build system type... " >&6; }
2557 if test "${ac_cv_build+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 ac_build_alias=$build_alias
2561 test "x$ac_build_alias" = x &&
2562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563 test "x$ac_build_alias" = x &&
2564 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570 $as_echo "$ac_cv_build" >&6; }
2571 case $ac_cv_build in
2572 *-*-*) ;;
2573 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2574 esac
2575 build=$ac_cv_build
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_build
2578 shift
2579 build_cpu=$1
2580 build_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 build_os=$*
2585 IFS=$ac_save_IFS
2586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590 $as_echo_n "checking host system type... " >&6; }
2591 if test "${ac_cv_host+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test "x$host_alias" = x; then
2595 ac_cv_host=$ac_cv_build
2596 else
2597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603 $as_echo "$ac_cv_host" >&6; }
2604 case $ac_cv_host in
2605 *-*-*) ;;
2606 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2607 esac
2608 host=$ac_cv_host
2609 ac_save_IFS=$IFS; IFS='-'
2610 set x $ac_cv_host
2611 shift
2612 host_cpu=$1
2613 host_vendor=$2
2614 shift; shift
2615 # Remember, the first character of IFS is used to create $*,
2616 # except with old shells:
2617 host_os=$*
2618 IFS=$ac_save_IFS
2619 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2623 $as_echo_n "checking target system type... " >&6; }
2624 if test "${ac_cv_target+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test "x$target_alias" = x; then
2628 ac_cv_target=$ac_cv_host
2629 else
2630 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2631 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2636 $as_echo "$ac_cv_target" >&6; }
2637 case $ac_cv_target in
2638 *-*-*) ;;
2639 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2640 esac
2641 target=$ac_cv_target
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_target
2644 shift
2645 target_cpu=$1
2646 target_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 target_os=$*
2651 IFS=$ac_save_IFS
2652 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2655 # The aliases save the names the user supplied, while $host etc.
2656 # will get canonicalized.
2657 test -n "$target_alias" &&
2658 test "$program_prefix$program_suffix$program_transform_name" = \
2659 NONENONEs,x,x, &&
2660 program_prefix=${target_alias}-
2662 target_alias=${target_alias-$host_alias}
2664 am__api_version='1.11'
2666 # Find a good install program. We prefer a C program (faster),
2667 # so one script is as good as another. But avoid the broken or
2668 # incompatible versions:
2669 # SysV /etc/install, /usr/sbin/install
2670 # SunOS /usr/etc/install
2671 # IRIX /sbin/install
2672 # AIX /bin/install
2673 # AmigaOS /C/install, which installs bootblocks on floppy discs
2674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2677 # OS/2's system install, which has a completely different semantic
2678 # ./install, which can be erroneously created by make from ./install.sh.
2679 # Reject install programs that cannot install multiple files.
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2681 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2682 if test -z "$INSTALL"; then
2683 if test "${ac_cv_path_install+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 # Account for people who put trailing slashes in PATH elements.
2692 case $as_dir/ in #((
2693 ./ | .// | /[cC]/* | \
2694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2695 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2696 /usr/ucb/* ) ;;
2698 # OSF1 and SCO ODT 3.0 have their own names for install.
2699 # Don't use installbsd from OSF since it installs stuff as root
2700 # by default.
2701 for ac_prog in ginstall scoinst install; do
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2704 if test $ac_prog = install &&
2705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # AIX install. It has an incompatible calling convention.
2708 elif test $ac_prog = install &&
2709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # program-specific install script used by HP pwplus--don't use.
2712 else
2713 rm -rf conftest.one conftest.two conftest.dir
2714 echo one > conftest.one
2715 echo two > conftest.two
2716 mkdir conftest.dir
2717 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2718 test -s conftest.one && test -s conftest.two &&
2719 test -s conftest.dir/conftest.one &&
2720 test -s conftest.dir/conftest.two
2721 then
2722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2723 break 3
2727 done
2728 done
2730 esac
2732 done
2733 IFS=$as_save_IFS
2735 rm -rf conftest.one conftest.two conftest.dir
2738 if test "${ac_cv_path_install+set}" = set; then
2739 INSTALL=$ac_cv_path_install
2740 else
2741 # As a last resort, use the slow shell script. Don't cache a
2742 # value for INSTALL within a source directory, because that will
2743 # break other packages using the cache if that directory is
2744 # removed, or if the value is a relative name.
2745 INSTALL=$ac_install_sh
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2749 $as_echo "$INSTALL" >&6; }
2751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752 # It thinks the first close brace ends the variable substitution.
2753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2760 $as_echo_n "checking whether build environment is sane... " >&6; }
2761 # Just in case
2762 sleep 1
2763 echo timestamp > conftest.file
2764 # Reject unsafe characters in $srcdir or the absolute working directory
2765 # name. Accept space and tab only in the latter.
2766 am_lf='
2768 case `pwd` in
2769 *[\\\"\#\$\&\'\`$am_lf]*)
2770 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2771 esac
2772 case $srcdir in
2773 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2774 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2775 esac
2777 # Do `set' in a subshell so we don't clobber the current shell's
2778 # arguments. Must try -L first in case configure is actually a
2779 # symlink; some systems play weird games with the mod time of symlinks
2780 # (eg FreeBSD returns the mod time of the symlink's containing
2781 # directory).
2782 if (
2783 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2784 if test "$*" = "X"; then
2785 # -L didn't work.
2786 set X `ls -t "$srcdir/configure" conftest.file`
2788 rm -f conftest.file
2789 if test "$*" != "X $srcdir/configure conftest.file" \
2790 && test "$*" != "X conftest.file $srcdir/configure"; then
2792 # If neither matched, then we have a broken ls. This can happen
2793 # if, for instance, CONFIG_SHELL is bash and it inherits a
2794 # broken ls alias from the environment. This has actually
2795 # happened. Such a system could not be considered "sane".
2796 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2797 alias in your environment" "$LINENO" 5
2800 test "$2" = conftest.file
2802 then
2803 # Ok.
2805 else
2806 as_fn_error "newly created file is older than distributed files!
2807 Check your system clock" "$LINENO" 5
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 $as_echo "yes" >&6; }
2811 test "$program_prefix" != NONE &&
2812 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2813 # Use a double $ so make ignores it.
2814 test "$program_suffix" != NONE &&
2815 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2816 # Double any \ or $.
2817 # By default was `s,x,x', remove it if useless.
2818 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2819 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2824 if test x"${MISSING+set}" != xset; then
2825 case $am_aux_dir in
2826 *\ * | *\ *)
2827 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2829 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2830 esac
2832 # Use eval to expand $SHELL
2833 if eval "$MISSING --run true"; then
2834 am_missing_run="$MISSING --run "
2835 else
2836 am_missing_run=
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2838 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2841 if test x"${install_sh}" != xset; then
2842 case $am_aux_dir in
2843 *\ * | *\ *)
2844 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2846 install_sh="\${SHELL} $am_aux_dir/install-sh"
2847 esac
2850 # Installed binaries are usually stripped using `strip' when the user
2851 # run `make install-strip'. However `strip' might not be the right
2852 # tool to use in cross-compilation environments, therefore Automake
2853 # will honor the `STRIP' environment variable to overrule this program.
2854 if test "$cross_compiling" != no; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}strip; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_STRIP+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$STRIP"; then
2864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 STRIP=$ac_cv_prog_STRIP
2884 if test -n "$STRIP"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2886 $as_echo "$STRIP" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2894 if test -z "$ac_cv_prog_STRIP"; then
2895 ac_ct_STRIP=$STRIP
2896 # Extract the first word of "strip", so it can be a program name with args.
2897 set dummy strip; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$ac_ct_STRIP"; then
2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_STRIP="strip"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2924 if test -n "$ac_ct_STRIP"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2926 $as_echo "$ac_ct_STRIP" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2932 if test "x$ac_ct_STRIP" = x; then
2933 STRIP=":"
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2940 esac
2941 STRIP=$ac_ct_STRIP
2943 else
2944 STRIP="$ac_cv_prog_STRIP"
2948 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2951 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2952 if test -z "$MKDIR_P"; then
2953 if test "${ac_cv_path_mkdir+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_prog in mkdir gmkdir; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2964 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2965 'mkdir (GNU coreutils) '* | \
2966 'mkdir (coreutils) '* | \
2967 'mkdir (fileutils) '4.1*)
2968 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2969 break 3;;
2970 esac
2971 done
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 if test "${ac_cv_path_mkdir+set}" = set; then
2979 MKDIR_P="$ac_cv_path_mkdir -p"
2980 else
2981 # As a last resort, use the slow shell script. Don't cache a
2982 # value for MKDIR_P within a source directory, because that will
2983 # break other packages using the cache if that directory is
2984 # removed, or if the value is a relative name.
2985 test -d ./--version && rmdir ./--version
2986 MKDIR_P="$ac_install_sh -d"
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2990 $as_echo "$MKDIR_P" >&6; }
2992 mkdir_p="$MKDIR_P"
2993 case $mkdir_p in
2994 [\\/$]* | ?:[\\/]*) ;;
2995 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2996 esac
2998 for ac_prog in gawk mawk nawk awk
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_AWK+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$AWK"; then
3008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_AWK="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3023 IFS=$as_save_IFS
3027 AWK=$ac_cv_prog_AWK
3028 if test -n "$AWK"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3030 $as_echo "$AWK" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$AWK" && break
3038 done
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042 set x ${MAKE-make}
3043 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 cat >conftest.make <<\_ACEOF
3048 SHELL = /bin/sh
3049 all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051 _ACEOF
3052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058 esac
3059 rm -f conftest.make
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064 SET_MAKE=
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3074 am__leading_dot=.
3075 else
3076 am__leading_dot=_
3078 rmdir .tst 2>/dev/null
3080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status; then
3086 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3090 # test whether we have cygpath
3091 if test -z "$CYGPATH_W"; then
3092 if (cygpath --version) >/dev/null 2>/dev/null; then
3093 CYGPATH_W='cygpath -w'
3094 else
3095 CYGPATH_W=echo
3100 # Define the identity of the package.
3101 PACKAGE='libgo'
3102 VERSION='version-unused'
3105 # Some tools Automake needs.
3107 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3110 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3113 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3116 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3119 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3121 # We need awk for the "check" target. The system "awk" is bad on
3122 # some platforms.
3123 # Always define AMTAR for backward compatibility. Yes, it's still used
3124 # in the wild :-( We should find a proper way to deprecate it ...
3125 AMTAR='$${TAR-tar}'
3127 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3182 if test -z "$ac_cv_prog_CC"; then
3183 ac_ct_CC=$CC
3184 # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$ac_ct_CC"; then
3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_ac_ct_CC="gcc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3207 IFS=$as_save_IFS
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3220 if test "x$ac_ct_CC" = x; then
3221 CC=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229 CC=$ac_ct_CC
3231 else
3232 CC="$ac_cv_prog_CC"
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="${ac_tool_prefix}cc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3276 if test -z "$CC"; then
3277 # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296 ac_prog_rejected=yes
3297 continue
3299 ac_cv_prog_CC="cc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3307 if test $ac_prog_rejected = yes; then
3308 # We found a bogon in the path, so make sure we never use it.
3309 set dummy $ac_cv_prog_CC
3310 shift
3311 if test $# != 0; then
3312 # We chose a different compiler from the bogus one.
3313 # However, it has the same basename, so the bogon will be chosen
3314 # first if we set CC to just the basename; use the full file name.
3315 shift
3316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in cl.exe
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3357 done
3358 done
3359 IFS=$as_save_IFS
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3373 test -n "$CC" && break
3374 done
3376 if test -z "$CC"; then
3377 ac_ct_CC=$CC
3378 for ac_prog in cl.exe
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_ac_ct_CC="$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3417 test -n "$ac_ct_CC" && break
3418 done
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." "$LINENO" 5; }
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446 { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454 ac_status=$?
3455 if test -s conftest.err; then
3456 sed '10a\
3457 ... rest of stderr output deleted ...
3458 10q' conftest.err >conftest.er1
3459 cat conftest.er1 >&5
3460 rm -f conftest.er1 conftest.err
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3464 done
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <stdio.h>
3470 main ()
3472 FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
3476 return 0;
3478 _ACEOF
3479 ac_clean_files_save=$ac_clean_files
3480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3481 # Try to create an executable without -o first, disregard a.out.
3482 # It will help us diagnose broken compilers, and finding out an intuition
3483 # of exeext.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3485 $as_echo_n "checking for C compiler default output file name... " >&6; }
3486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3488 # The possible output files:
3489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491 ac_rmfiles=
3492 for ac_file in $ac_files
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497 esac
3498 done
3499 rm -f $ac_rmfiles
3501 if { { ac_try="$ac_link_default"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link_default") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515 # so that the user can short-circuit this test for compilers unknown to
3516 # Autoconf.
3517 for ac_file in $ac_files ''
3519 test -f "$ac_file" || continue
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523 [ab].out )
3524 # We found the default executable, but exeext='' is most
3525 # certainly right.
3526 break;;
3527 *.* )
3528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529 then :; else
3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 # We set ac_cv_exeext here because the later test for it is not
3533 # safe: cross compilers may not add the suffix if given an `-o'
3534 # argument, so we may need to know it at that point already.
3535 # Even if this section looks crufty: it has the advantage of
3536 # actually working.
3537 break;;
3539 break;;
3540 esac
3541 done
3542 test "$ac_cv_exeext" = no && ac_cv_exeext=
3544 else
3545 ac_file=''
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3548 $as_echo "$ac_file" >&6; }
3549 if test -z "$ac_file"; then :
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 { as_fn_set_status 77
3556 as_fn_error "C compiler cannot create executables
3557 See \`config.log' for more details." "$LINENO" 5; }; }
3559 ac_exeext=$ac_cv_exeext
3561 # Check that the compiler produces executables we can run. If not, either
3562 # the compiler is broken, or we cross compile.
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3564 $as_echo_n "checking whether the C compiler works... " >&6; }
3565 # If not cross compiling, check that we can run a simple program.
3566 if test "$cross_compiling" != yes; then
3567 if { ac_try='./$ac_file'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3578 cross_compiling=no
3579 else
3580 if test "$cross_compiling" = maybe; then
3581 cross_compiling=yes
3582 else
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details." "$LINENO" 5; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 $as_echo "yes" >&6; }
3594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3601 $as_echo "$cross_compiling" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3604 $as_echo_n "checking for suffix of executables... " >&6; }
3605 if { { ac_try="$ac_link"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }; then :
3616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3618 # work properly (i.e., refer to `conftest.exe'), while it won't with
3619 # `rm'.
3620 for ac_file in conftest.exe conftest conftest.*; do
3621 test -f "$ac_file" || continue
3622 case $ac_file in
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 break;;
3626 * ) break;;
3627 esac
3628 done
3629 else
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error "cannot compute suffix of executables: cannot compile and link
3633 See \`config.log' for more details." "$LINENO" 5; }
3635 rm -f conftest$ac_cv_exeext
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3637 $as_echo "$ac_cv_exeext" >&6; }
3639 rm -f conftest.$ac_ext
3640 EXEEXT=$ac_cv_exeext
3641 ac_exeext=$EXEEXT
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3643 $as_echo_n "checking for suffix of object files... " >&6; }
3644 if test "${ac_cv_objext+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3651 main ()
3655 return 0;
3657 _ACEOF
3658 rm -f conftest.o conftest.obj
3659 if { { ac_try="$ac_compile"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_compile") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 for ac_file in conftest.o conftest.obj conftest.*; do
3671 test -f "$ac_file" || continue;
3672 case $ac_file in
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3675 break;;
3676 esac
3677 done
3678 else
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error "cannot compute suffix of object files: cannot compile
3685 See \`config.log' for more details." "$LINENO" 5; }
3687 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3690 $as_echo "$ac_cv_objext" >&6; }
3691 OBJEXT=$ac_cv_objext
3692 ac_objext=$OBJEXT
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3694 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3695 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3704 #ifndef __GNUC__
3705 choke me
3706 #endif
3709 return 0;
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_compiler_gnu=yes
3714 else
3715 ac_compiler_gnu=no
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3722 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3723 if test $ac_compiler_gnu = yes; then
3724 GCC=yes
3725 else
3726 GCC=
3728 ac_test_CFLAGS=${CFLAGS+set}
3729 ac_save_CFLAGS=$CFLAGS
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3731 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3732 if test "${ac_cv_prog_cc_g+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 ac_save_c_werror_flag=$ac_c_werror_flag
3736 ac_c_werror_flag=yes
3737 ac_cv_prog_cc_g=no
3738 CFLAGS="-g"
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3743 main ()
3747 return 0;
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_g=yes
3752 else
3753 CFLAGS=""
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3758 main ()
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3767 else
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3774 main ()
3778 return 0;
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3801 else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #include <stdarg.h>
3818 #include <stdio.h>
3819 #include <sys/types.h>
3820 #include <sys/stat.h>
3821 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3822 struct buf { int x; };
3823 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3824 static char *e (p, i)
3825 char **p;
3826 int i;
3828 return p[i];
3830 static char *f (char * (*g) (char **, int), char **p, ...)
3832 char *s;
3833 va_list v;
3834 va_start (v,p);
3835 s = g (p, va_arg (v,int));
3836 va_end (v);
3837 return s;
3840 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3841 function prototypes and stuff, but not '\xHH' hex character constants.
3842 These don't provoke an error unfortunately, instead are silently treated
3843 as 'x'. The following induces an error, until -std is added to get
3844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3845 array size at least. It's necessary to write '\x00'==0 to get something
3846 that's true only with -std. */
3847 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3850 inside strings and character constants. */
3851 #define FOO(x) 'x'
3852 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854 int test (int i, double x);
3855 struct s1 {int (*f) (int a);};
3856 struct s2 {int (*f) (double a);};
3857 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3858 int argc;
3859 char **argv;
3861 main ()
3863 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 return 0;
3867 _ACEOF
3868 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3869 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 CC="$ac_save_CC $ac_arg"
3872 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_c89=$ac_arg
3875 rm -f core conftest.err conftest.$ac_objext
3876 test "x$ac_cv_prog_cc_c89" != "xno" && break
3877 done
3878 rm -f conftest.$ac_ext
3879 CC=$ac_save_CC
3882 # AC_CACHE_VAL
3883 case "x$ac_cv_prog_cc_c89" in
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3886 $as_echo "none needed" >&6; } ;;
3887 xno)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3889 $as_echo "unsupported" >&6; } ;;
3891 CC="$CC $ac_cv_prog_cc_c89"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3893 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3894 esac
3895 if test "x$ac_cv_prog_cc_c89" != xno; then :
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 DEPDIR="${am__leading_dot}deps"
3906 ac_config_commands="$ac_config_commands depfiles"
3909 am_make=${MAKE-make}
3910 cat > confinc << 'END'
3911 am__doit:
3912 @echo this is the am__doit target
3913 .PHONY: am__doit
3915 # If we don't find an include directive, just comment out the code.
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3917 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3918 am__include="#"
3919 am__quote=
3920 _am_result=none
3921 # First try GNU make style include.
3922 echo "include confinc" > confmf
3923 # Ignore all kinds of additional output from `make'.
3924 case `$am_make -s -f confmf 2> /dev/null` in #(
3925 *the\ am__doit\ target*)
3926 am__include=include
3927 am__quote=
3928 _am_result=GNU
3930 esac
3931 # Now try BSD make style include.
3932 if test "$am__include" = "#"; then
3933 echo '.include "confinc"' > confmf
3934 case `$am_make -s -f confmf 2> /dev/null` in #(
3935 *the\ am__doit\ target*)
3936 am__include=.include
3937 am__quote="\""
3938 _am_result=BSD
3940 esac
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3945 $as_echo "$_am_result" >&6; }
3946 rm -f confinc confmf
3948 # Check whether --enable-dependency-tracking was given.
3949 if test "${enable_dependency_tracking+set}" = set; then :
3950 enableval=$enable_dependency_tracking;
3953 if test "x$enable_dependency_tracking" != xno; then
3954 am_depcomp="$ac_aux_dir/depcomp"
3955 AMDEPBACKSLASH='\'
3956 am__nodep='_no'
3958 if test "x$enable_dependency_tracking" != xno; then
3959 AMDEP_TRUE=
3960 AMDEP_FALSE='#'
3961 else
3962 AMDEP_TRUE='#'
3963 AMDEP_FALSE=
3968 depcc="$CC" am_compiler_list=
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971 $as_echo_n "checking dependency style of $depcc... " >&6; }
3972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976 # We make a subdir and do the tests there. Otherwise we can end up
3977 # making bogus files that we don't know about and never remove. For
3978 # instance it was reported that on HP-UX the gcc test will end up
3979 # making a dummy file named `D' -- because `-MD' means `put the output
3980 # in D'.
3981 rm -rf conftest.dir
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016 # Solaris 8's {/usr,}/bin/sh.
4017 touch sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle `-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4032 nosideeffect)
4033 # after this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4042 # This compiler won't grok `-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4072 done
4074 cd ..
4075 rm -rf conftest.dir
4076 else
4077 am_cv_CC_dependencies_compiler_type=none
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090 else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4096 ac_ext=go
4097 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4098 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compile_gnu=yes
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_GOC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$GOC"; then
4109 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
4128 GOC=$ac_cv_prog_GOC
4129 if test -n "$GOC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4131 $as_echo "$GOC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4139 if test -z "$ac_cv_prog_GOC"; then
4140 ac_ct_GOC=$GOC
4141 # Extract the first word of "gccgo", so it can be a program name with args.
4142 set dummy gccgo; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$ac_ct_GOC"; then
4149 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_GOC="gccgo"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4168 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4169 if test -n "$ac_ct_GOC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4171 $as_echo "$ac_ct_GOC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4177 if test "x$ac_ct_GOC" = x; then
4178 GOC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 GOC=$ac_ct_GOC
4188 else
4189 GOC="$ac_cv_prog_GOC"
4192 if test -z "$GOC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_prog_GOC+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$GOC"; then
4202 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 GOC=$ac_cv_prog_GOC
4222 if test -n "$GOC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4224 $as_echo "$GOC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4233 if test -z "$GOC"; then
4234 # Extract the first word of "gccgo", so it can be a program name with args.
4235 set dummy gccgo; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_GOC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$GOC"; then
4242 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4243 else
4244 ac_prog_rejected=no
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4253 ac_prog_rejected=yes
4254 continue
4256 ac_cv_prog_GOC="gccgo"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4264 if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_GOC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set GOC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4278 GOC=$ac_cv_prog_GOC
4279 if test -n "$GOC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4281 $as_echo "$GOC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4291 # Provide some information about the compiler.
4292 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4293 set X $ac_compile
4294 ac_compiler=$2
4295 { { ac_try="$ac_compiler --version >&5"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler --version >&5") 2>conftest.err
4303 ac_status=$?
4304 if test -s conftest.err; then
4305 sed '10a\
4306 ... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4309 rm -f conftest.er1 conftest.err
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4313 GOCFLAGS="-g -O2"
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4326 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4327 # Check whether --enable-maintainer-mode was given.
4328 if test "${enable_maintainer_mode+set}" = set; then :
4329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4330 else
4331 USE_MAINTAINER_MODE=no
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4335 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4336 if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339 else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4344 MAINT=$MAINTAINER_MODE_TRUE
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4349 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4350 if test "${ac_cv_path_SED+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4354 for ac_i in 1 2 3 4 5 6 7; do
4355 ac_script="$ac_script$as_nl$ac_script"
4356 done
4357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4358 { ac_script=; unset ac_script;}
4359 if test -z "$SED"; then
4360 ac_path_SED_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in sed gsed; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4371 # Check for GNU ac_path_SED and select it if it is found.
4372 # Check for GNU $ac_path_SED
4373 case `"$ac_path_SED" --version 2>&1` in
4374 *GNU*)
4375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4377 ac_count=0
4378 $as_echo_n 0123456789 >"conftest.in"
4379 while :
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo '' >> "conftest.nl"
4385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 as_fn_arith $ac_count + 1 && ac_count=$as_val
4388 if test $ac_count -gt ${ac_path_SED_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_SED="$ac_path_SED"
4391 ac_path_SED_max=$ac_count
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4395 done
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4397 esac
4399 $ac_path_SED_found && break 3
4400 done
4401 done
4402 done
4403 IFS=$as_save_IFS
4404 if test -z "$ac_cv_path_SED"; then
4405 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4407 else
4408 ac_cv_path_SED=$SED
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4413 $as_echo "$ac_cv_path_SED" >&6; }
4414 SED="$ac_cv_path_SED"
4415 rm -f conftest.sed
4417 test -z "$SED" && SED=sed
4418 Xsed="$SED -e 1s/^X//"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432 if test "${ac_cv_path_GREP+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -z "$GREP"; then
4436 ac_path_GREP_found=false
4437 # Loop through the user's path and test for each of PROGNAME-LIST
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_prog in grep ggrep; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4447 # Check for GNU ac_path_GREP and select it if it is found.
4448 # Check for GNU $ac_path_GREP
4449 case `"$ac_path_GREP" --version 2>&1` in
4450 *GNU*)
4451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453 ac_count=0
4454 $as_echo_n 0123456789 >"conftest.in"
4455 while :
4457 cat "conftest.in" "conftest.in" >"conftest.tmp"
4458 mv "conftest.tmp" "conftest.in"
4459 cp "conftest.in" "conftest.nl"
4460 $as_echo 'GREP' >> "conftest.nl"
4461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463 as_fn_arith $ac_count + 1 && ac_count=$as_val
4464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465 # Best one so far, save it but keep looking for a better one
4466 ac_cv_path_GREP="$ac_path_GREP"
4467 ac_path_GREP_max=$ac_count
4469 # 10*(2^10) chars as input seems more than enough
4470 test $ac_count -gt 10 && break
4471 done
4472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473 esac
4475 $ac_path_GREP_found && break 3
4476 done
4477 done
4478 done
4479 IFS=$as_save_IFS
4480 if test -z "$ac_cv_path_GREP"; then
4481 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483 else
4484 ac_cv_path_GREP=$GREP
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4489 $as_echo "$ac_cv_path_GREP" >&6; }
4490 GREP="$ac_cv_path_GREP"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4494 $as_echo_n "checking for egrep... " >&6; }
4495 if test "${ac_cv_path_EGREP+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4499 then ac_cv_path_EGREP="$GREP -E"
4500 else
4501 if test -z "$EGREP"; then
4502 ac_path_EGREP_found=false
4503 # Loop through the user's path and test for each of PROGNAME-LIST
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_prog in egrep; do
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4512 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4513 # Check for GNU ac_path_EGREP and select it if it is found.
4514 # Check for GNU $ac_path_EGREP
4515 case `"$ac_path_EGREP" --version 2>&1` in
4516 *GNU*)
4517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519 ac_count=0
4520 $as_echo_n 0123456789 >"conftest.in"
4521 while :
4523 cat "conftest.in" "conftest.in" >"conftest.tmp"
4524 mv "conftest.tmp" "conftest.in"
4525 cp "conftest.in" "conftest.nl"
4526 $as_echo 'EGREP' >> "conftest.nl"
4527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4529 as_fn_arith $ac_count + 1 && ac_count=$as_val
4530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4531 # Best one so far, save it but keep looking for a better one
4532 ac_cv_path_EGREP="$ac_path_EGREP"
4533 ac_path_EGREP_max=$ac_count
4535 # 10*(2^10) chars as input seems more than enough
4536 test $ac_count -gt 10 && break
4537 done
4538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 esac
4541 $ac_path_EGREP_found && break 3
4542 done
4543 done
4544 done
4545 IFS=$as_save_IFS
4546 if test -z "$ac_cv_path_EGREP"; then
4547 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 else
4550 ac_cv_path_EGREP=$EGREP
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4556 $as_echo "$ac_cv_path_EGREP" >&6; }
4557 EGREP="$ac_cv_path_EGREP"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4561 $as_echo_n "checking for fgrep... " >&6; }
4562 if test "${ac_cv_path_FGREP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4566 then ac_cv_path_FGREP="$GREP -F"
4567 else
4568 if test -z "$FGREP"; then
4569 ac_path_FGREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in fgrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4580 # Check for GNU ac_path_FGREP and select it if it is found.
4581 # Check for GNU $ac_path_FGREP
4582 case `"$ac_path_FGREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'FGREP' >> "conftest.nl"
4594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_FGREP="$ac_path_FGREP"
4600 ac_path_FGREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608 $ac_path_FGREP_found && break 3
4609 done
4610 done
4611 done
4612 IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_FGREP"; then
4614 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 else
4617 ac_cv_path_FGREP=$FGREP
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4623 $as_echo "$ac_cv_path_FGREP" >&6; }
4624 FGREP="$ac_cv_path_FGREP"
4627 test -z "$GREP" && GREP=grep
4645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4650 $as_echo_n "checking how to print strings... " >&6; }
4651 # Test print first, because it will be a builtin if present.
4652 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4654 ECHO='print -r --'
4655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4656 ECHO='printf %s\n'
4657 else
4658 # Use this function as a fallback that always works.
4659 func_fallback_echo ()
4661 eval 'cat <<_LTECHO_EOF
4663 _LTECHO_EOF'
4665 ECHO='func_fallback_echo'
4668 # func_echo_all arg...
4669 # Invoke $ECHO with all args, space-separated.
4670 func_echo_all ()
4672 $ECHO ""
4675 case "$ECHO" in
4676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4677 $as_echo "printf" >&6; } ;;
4678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4679 $as_echo "print -r" >&6; } ;;
4680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4681 $as_echo "cat" >&6; } ;;
4682 esac
4699 # Check whether --with-gnu-ld was given.
4700 if test "${with_gnu_ld+set}" = set; then :
4701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4702 else
4703 with_gnu_ld=no
4706 ac_prog=ld
4707 if test "$GCC" = yes; then
4708 # Check if gcc -print-prog-name=ld gives a path.
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4710 $as_echo_n "checking for ld used by $CC... " >&6; }
4711 case $host in
4712 *-*-mingw*)
4713 # gcc leaves a trailing carriage return which upsets mingw
4714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4717 esac
4718 case $ac_prog in
4719 # Accept absolute paths.
4720 [\\/]* | ?:[\\/]*)
4721 re_direlt='/[^/][^/]*/\.\./'
4722 # Canonicalize the pathname of ld
4723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4726 done
4727 test -z "$LD" && LD="$ac_prog"
4730 # If it fails, then pretend we aren't using GCC.
4731 ac_prog=ld
4734 # If it is relative, then search for the first ld in PATH.
4735 with_gnu_ld=unknown
4737 esac
4738 elif test "$with_gnu_ld" = yes; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4740 $as_echo_n "checking for GNU ld... " >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4743 $as_echo_n "checking for non-GNU ld... " >&6; }
4745 if test "${lt_cv_path_LD+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -z "$LD"; then
4749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4750 for ac_dir in $PATH; do
4751 IFS="$lt_save_ifs"
4752 test -z "$ac_dir" && ac_dir=.
4753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4754 lt_cv_path_LD="$ac_dir/$ac_prog"
4755 # Check to see if the program is GNU ld. I'd rather use --version,
4756 # but apparently some variants of GNU ld only accept -v.
4757 # Break only if it was the GNU/non-GNU ld that we prefer.
4758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4759 *GNU* | *'with BFD'*)
4760 test "$with_gnu_ld" != no && break
4763 test "$with_gnu_ld" != yes && break
4765 esac
4767 done
4768 IFS="$lt_save_ifs"
4769 else
4770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4774 LD="$lt_cv_path_LD"
4775 if test -n "$LD"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4777 $as_echo "$LD" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4782 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4789 case `$LD -v 2>&1 </dev/null` in
4790 *GNU* | *'with BFD'*)
4791 lt_cv_prog_gnu_ld=yes
4794 lt_cv_prog_gnu_ld=no
4796 esac
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4800 with_gnu_ld=$lt_cv_prog_gnu_ld
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$RANLIB"; then
4819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 RANLIB=$ac_cv_prog_RANLIB
4839 if test -n "$RANLIB"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4841 $as_echo "$RANLIB" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4849 if test -z "$ac_cv_prog_RANLIB"; then
4850 ac_ct_RANLIB=$RANLIB
4851 # Extract the first word of "ranlib", so it can be a program name with args.
4852 set dummy ranlib; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_RANLIB"; then
4859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_RANLIB="ranlib"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4879 if test -n "$ac_ct_RANLIB"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4881 $as_echo "$ac_ct_RANLIB" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4887 if test "x$ac_ct_RANLIB" = x; then
4888 RANLIB=":"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 RANLIB=$ac_ct_RANLIB
4898 else
4899 RANLIB="$ac_cv_prog_RANLIB"
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$OBJCOPY"; then
4911 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 OBJCOPY=$ac_cv_prog_OBJCOPY
4931 if test -n "$OBJCOPY"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4933 $as_echo "$OBJCOPY" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4941 if test -z "$ac_cv_prog_OBJCOPY"; then
4942 ac_ct_OBJCOPY=$OBJCOPY
4943 # Extract the first word of "objcopy", so it can be a program name with args.
4944 set dummy objcopy; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$ac_ct_OBJCOPY"; then
4951 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4971 if test -n "$ac_ct_OBJCOPY"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4973 $as_echo "$ac_ct_OBJCOPY" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4979 if test "x$ac_ct_OBJCOPY" = x; then
4980 OBJCOPY="missing-objcopy"
4981 else
4982 case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986 ac_tool_warned=yes ;;
4987 esac
4988 OBJCOPY=$ac_ct_OBJCOPY
4990 else
4991 OBJCOPY="$ac_cv_prog_OBJCOPY"
4995 enable_dlopen=yes
4999 case `pwd` in
5000 *\ * | *\ *)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5003 esac
5007 macro_version='2.2.7a'
5008 macro_revision='1.3134'
5022 ltmain="$ac_aux_dir/ltmain.sh"
5024 # Backslashify metacharacters that are still active within
5025 # double-quoted strings.
5026 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5028 # Same as above, but do not quote variable references.
5029 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5031 # Sed substitution to delay expansion of an escaped shell variable in a
5032 # double_quote_subst'ed string.
5033 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5035 # Sed substitution to delay expansion of an escaped single quote.
5036 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5038 # Sed substitution to avoid accidental globbing in evaled expressions
5039 no_glob_subst='s/\*/\\\*/g'
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5042 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5043 if test "${lt_cv_path_NM+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$NM"; then
5047 # Let the user override the test.
5048 lt_cv_path_NM="$NM"
5049 else
5050 lt_nm_to_check="${ac_tool_prefix}nm"
5051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052 lt_nm_to_check="$lt_nm_to_check nm"
5054 for lt_tmp_nm in $lt_nm_to_check; do
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 tmp_nm="$ac_dir/$lt_tmp_nm"
5060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5061 # Check to see if the nm accepts a BSD-compat flag.
5062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5063 # nm: unknown option "B" ignored
5064 # Tru64's nm complains that /dev/null is an invalid object file
5065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 */dev/null* | *'Invalid file or object type'*)
5067 lt_cv_path_NM="$tmp_nm -B"
5068 break
5071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5072 */dev/null*)
5073 lt_cv_path_NM="$tmp_nm -p"
5074 break
5077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5078 continue # so that we can try to find one that supports BSD flags
5080 esac
5082 esac
5084 done
5085 IFS="$lt_save_ifs"
5086 done
5087 : ${lt_cv_path_NM=no}
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5091 $as_echo "$lt_cv_path_NM" >&6; }
5092 if test "$lt_cv_path_NM" != "no"; then
5093 NM="$lt_cv_path_NM"
5094 else
5095 # Didn't find any BSD compatible name lister, look for dumpbin.
5096 if test -n "$DUMPBIN"; then :
5097 # Let the user override the test.
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in dumpbin "link -dump"
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$DUMPBIN"; then
5110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5123 done
5124 done
5125 IFS=$as_save_IFS
5129 DUMPBIN=$ac_cv_prog_DUMPBIN
5130 if test -n "$DUMPBIN"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5132 $as_echo "$DUMPBIN" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 test -n "$DUMPBIN" && break
5140 done
5142 if test -z "$DUMPBIN"; then
5143 ac_ct_DUMPBIN=$DUMPBIN
5144 for ac_prog in dumpbin "link -dump"
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$ac_ct_DUMPBIN"; then
5154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5174 if test -n "$ac_ct_DUMPBIN"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5176 $as_echo "$ac_ct_DUMPBIN" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 test -n "$ac_ct_DUMPBIN" && break
5184 done
5186 if test "x$ac_ct_DUMPBIN" = x; then
5187 DUMPBIN=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 DUMPBIN=$ac_ct_DUMPBIN
5199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5200 *COFF*)
5201 DUMPBIN="$DUMPBIN -symbols"
5204 DUMPBIN=:
5206 esac
5209 if test "$DUMPBIN" != ":"; then
5210 NM="$DUMPBIN"
5213 test -z "$NM" && NM=nm
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5221 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5222 if test "${lt_cv_nm_interface+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 lt_cv_nm_interface="BSD nm"
5226 echo "int some_variable = 0;" > conftest.$ac_ext
5227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5228 (eval "$ac_compile" 2>conftest.err)
5229 cat conftest.err >&5
5230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5234 cat conftest.out >&5
5235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5236 lt_cv_nm_interface="MS dumpbin"
5238 rm -f conftest*
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5241 $as_echo "$lt_cv_nm_interface" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5244 $as_echo_n "checking whether ln -s works... " >&6; }
5245 LN_S=$as_ln_s
5246 if test "$LN_S" = "ln -s"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248 $as_echo "yes" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5251 $as_echo "no, using $LN_S" >&6; }
5254 # find the maximum length of command line arguments
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5257 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5261 teststring="ABCD"
5263 case $build_os in
5264 msdosdjgpp*)
5265 # On DJGPP, this test can blow up pretty badly due to problems in libc
5266 # (any single argument exceeding 2000 bytes causes a buffer overrun
5267 # during glob expansion). Even if it were fixed, the result of this
5268 # check would be larger than it should be.
5269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5272 gnu*)
5273 # Under GNU Hurd, this test is not required because there is
5274 # no limit to the length of command line arguments.
5275 # Libtool will interpret -1 as no limit whatsoever
5276 lt_cv_sys_max_cmd_len=-1;
5279 cygwin* | mingw* | cegcc*)
5280 # On Win9x/ME, this test blows up -- it succeeds, but takes
5281 # about 5 minutes as the teststring grows exponentially.
5282 # Worse, since 9x/ME are not pre-emptively multitasking,
5283 # you end up with a "frozen" computer, even though with patience
5284 # the test eventually succeeds (with a max line length of 256k).
5285 # Instead, let's just punt: use the minimum linelength reported by
5286 # all of the supported platforms: 8192 (on NT/2K/XP).
5287 lt_cv_sys_max_cmd_len=8192;
5290 mint*)
5291 # On MiNT this can take a long time and run out of memory.
5292 lt_cv_sys_max_cmd_len=8192;
5295 amigaos*)
5296 # On AmigaOS with pdksh, this test takes hours, literally.
5297 # So we just punt and use a minimum line length of 8192.
5298 lt_cv_sys_max_cmd_len=8192;
5301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5302 # This has been around since 386BSD, at least. Likely further.
5303 if test -x /sbin/sysctl; then
5304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5305 elif test -x /usr/sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5307 else
5308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5310 # And add a safety zone
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5315 interix*)
5316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5317 lt_cv_sys_max_cmd_len=196608
5320 osf*)
5321 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5322 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5323 # nice to cause kernel panics so lets avoid the loop below.
5324 # First set a reasonable default.
5325 lt_cv_sys_max_cmd_len=16384
5327 if test -x /sbin/sysconfig; then
5328 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5329 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5330 esac
5333 sco3.2v5*)
5334 lt_cv_sys_max_cmd_len=102400
5336 sysv5* | sco5v6* | sysv4.2uw2*)
5337 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5338 if test -n "$kargmax"; then
5339 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5340 else
5341 lt_cv_sys_max_cmd_len=32768
5345 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5346 if test -n "$lt_cv_sys_max_cmd_len"; then
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 else
5350 # Make teststring a little bigger before we do anything with it.
5351 # a 1K string should be a reasonable start.
5352 for i in 1 2 3 4 5 6 7 8 ; do
5353 teststring=$teststring$teststring
5354 done
5355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5356 # If test is not a shell built-in, we'll probably end up computing a
5357 # maximum length that is only half of the actual maximum length, but
5358 # we can't tell.
5359 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5361 test $i != 17 # 1/2 MB should be enough
5363 i=`expr $i + 1`
5364 teststring=$teststring$teststring
5365 done
5366 # Only check the string length outside the loop.
5367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368 teststring=
5369 # Add a significant safety factor because C++ compilers can tack on
5370 # massive amounts of additional arguments before passing them to the
5371 # linker. It appears as though 1/2 is a usable value.
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5375 esac
5379 if test -n $lt_cv_sys_max_cmd_len ; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5381 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5384 $as_echo "none" >&6; }
5386 max_cmd_len=$lt_cv_sys_max_cmd_len
5393 : ${CP="cp -f"}
5394 : ${MV="mv -f"}
5395 : ${RM="rm -f"}
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5398 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5399 # Try some XSI features
5400 xsi_shell=no
5401 ( _lt_dummy="a/b/c"
5402 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5403 = c,a/b,, \
5404 && eval 'test $(( 1 + 1 )) -eq 2 \
5405 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5406 && xsi_shell=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5408 $as_echo "$xsi_shell" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5412 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5413 lt_shell_append=no
5414 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5415 >/dev/null 2>&1 \
5416 && lt_shell_append=yes
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5418 $as_echo "$lt_shell_append" >&6; }
5421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5422 lt_unset=unset
5423 else
5424 lt_unset=false
5431 # test EBCDIC or ASCII
5432 case `echo X|tr X '\101'` in
5433 A) # ASCII based system
5434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5435 lt_SP2NL='tr \040 \012'
5436 lt_NL2SP='tr \015\012 \040\040'
5438 *) # EBCDIC based system
5439 lt_SP2NL='tr \100 \n'
5440 lt_NL2SP='tr \r\n \100\100'
5442 esac
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5453 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5454 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 lt_cv_ld_reload_flag='-r'
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5460 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5461 reload_flag=$lt_cv_ld_reload_flag
5462 case $reload_flag in
5463 "" | " "*) ;;
5464 *) reload_flag=" $reload_flag" ;;
5465 esac
5466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467 case $host_os in
5468 darwin*)
5469 if test "$GCC" = yes; then
5470 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5471 else
5472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475 esac
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5487 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$OBJDUMP"; then
5494 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 OBJDUMP=$ac_cv_prog_OBJDUMP
5514 if test -n "$OBJDUMP"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5516 $as_echo "$OBJDUMP" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5524 if test -z "$ac_cv_prog_OBJDUMP"; then
5525 ac_ct_OBJDUMP=$OBJDUMP
5526 # Extract the first word of "objdump", so it can be a program name with args.
5527 set dummy objdump; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$ac_ct_OBJDUMP"; then
5534 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5554 if test -n "$ac_ct_OBJDUMP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5556 $as_echo "$ac_ct_OBJDUMP" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5562 if test "x$ac_ct_OBJDUMP" = x; then
5563 OBJDUMP="false"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 OBJDUMP=$ac_ct_OBJDUMP
5573 else
5574 OBJDUMP="$ac_cv_prog_OBJDUMP"
5577 test -z "$OBJDUMP" && OBJDUMP=objdump
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5588 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5589 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 lt_cv_file_magic_cmd='$MAGIC_CMD'
5593 lt_cv_file_magic_test_file=
5594 lt_cv_deplibs_check_method='unknown'
5595 # Need to set the preceding variable on all platforms that support
5596 # interlibrary dependencies.
5597 # 'none' -- dependencies not supported.
5598 # `unknown' -- same as none, but documents that we really don't know.
5599 # 'pass_all' -- all dependencies passed with no checks.
5600 # 'test_compile' -- check by making test program.
5601 # 'file_magic [[regex]]' -- check by looking for files in library path
5602 # which responds to the $file_magic_cmd with a given extended regex.
5603 # If you have `file' or equivalent on your system and you're not sure
5604 # whether `pass_all' will *always* work, you probably want this one.
5606 case $host_os in
5607 aix[4-9]*)
5608 lt_cv_deplibs_check_method=pass_all
5611 beos*)
5612 lt_cv_deplibs_check_method=pass_all
5615 bsdi[45]*)
5616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5617 lt_cv_file_magic_cmd='/usr/bin/file -L'
5618 lt_cv_file_magic_test_file=/shlib/libc.so
5621 cygwin*)
5622 # func_win32_libid is a shell function defined in ltmain.sh
5623 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5624 lt_cv_file_magic_cmd='func_win32_libid'
5627 mingw* | pw32*)
5628 # Base MSYS/MinGW do not provide the 'file' command needed by
5629 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5630 # unless we find 'file', for example because we are cross-compiling.
5631 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5632 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5634 lt_cv_file_magic_cmd='func_win32_libid'
5635 else
5636 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5637 lt_cv_file_magic_cmd='$OBJDUMP -f'
5641 cegcc*)
5642 # use the weaker test based on 'objdump'. See mingw*.
5643 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5647 darwin* | rhapsody*)
5648 lt_cv_deplibs_check_method=pass_all
5651 freebsd* | dragonfly*)
5652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5653 case $host_cpu in
5654 i*86 )
5655 # Not sure whether the presence of OpenBSD here was a mistake.
5656 # Let's accept both of them until this is cleared up.
5657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5658 lt_cv_file_magic_cmd=/usr/bin/file
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5661 esac
5662 else
5663 lt_cv_deplibs_check_method=pass_all
5667 gnu*)
5668 lt_cv_deplibs_check_method=pass_all
5671 haiku*)
5672 lt_cv_deplibs_check_method=pass_all
5675 hpux10.20* | hpux11*)
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 case $host_cpu in
5678 ia64*)
5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5680 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5682 hppa*64*)
5683 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]'
5684 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5688 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5690 esac
5693 interix[3-9]*)
5694 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5698 irix5* | irix6* | nonstopux*)
5699 case $LD in
5700 *-32|*"-32 ") libmagic=32-bit;;
5701 *-n32|*"-n32 ") libmagic=N32;;
5702 *-64|*"-64 ") libmagic=64-bit;;
5703 *) libmagic=never-match;;
5704 esac
5705 lt_cv_deplibs_check_method=pass_all
5708 # This must be Linux ELF.
5709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5710 lt_cv_deplibs_check_method=pass_all
5713 netbsd*)
5714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716 else
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721 newos6*)
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5723 lt_cv_file_magic_cmd=/usr/bin/file
5724 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5727 *nto* | *qnx*)
5728 lt_cv_deplibs_check_method=pass_all
5731 openbsd*)
5732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5734 else
5735 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739 osf3* | osf4* | osf5*)
5740 lt_cv_deplibs_check_method=pass_all
5743 rdos*)
5744 lt_cv_deplibs_check_method=pass_all
5747 solaris*)
5748 lt_cv_deplibs_check_method=pass_all
5751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5752 lt_cv_deplibs_check_method=pass_all
5755 sysv4 | sysv4.3*)
5756 case $host_vendor in
5757 motorola)
5758 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]'
5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5761 ncr)
5762 lt_cv_deplibs_check_method=pass_all
5764 sequent)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5768 sni)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5771 lt_cv_file_magic_test_file=/lib/libc.so
5773 siemens)
5774 lt_cv_deplibs_check_method=pass_all
5777 lt_cv_deplibs_check_method=pass_all
5779 esac
5782 tpf*)
5783 lt_cv_deplibs_check_method=pass_all
5785 esac
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5789 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5790 file_magic_cmd=$lt_cv_file_magic_cmd
5791 deplibs_check_method=$lt_cv_deplibs_check_method
5792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5805 if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}ar; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_prog_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if test -n "$AR"; then
5814 ac_cv_prog_AR="$AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_AR="${ac_tool_prefix}ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5833 AR=$ac_cv_prog_AR
5834 if test -n "$AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5836 $as_echo "$AR" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5844 if test -z "$ac_cv_prog_AR"; then
5845 ac_ct_AR=$AR
5846 # Extract the first word of "ar", so it can be a program name with args.
5847 set dummy ar; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$ac_ct_AR"; then
5854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_ac_ct_AR="ar"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5874 if test -n "$ac_ct_AR"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5876 $as_echo "$ac_ct_AR" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5882 if test "x$ac_ct_AR" = x; then
5883 AR="false"
5884 else
5885 case $cross_compiling:$ac_tool_warned in
5886 yes:)
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889 ac_tool_warned=yes ;;
5890 esac
5891 AR=$ac_ct_AR
5893 else
5894 AR="$ac_cv_prog_AR"
5897 test -z "$AR" && AR=ar
5898 test -z "$AR_FLAGS" && AR_FLAGS=cru
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5934 IFS=$as_save_IFS
5938 STRIP=$ac_cv_prog_STRIP
5939 if test -n "$STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5941 $as_echo "$STRIP" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5949 if test -z "$ac_cv_prog_STRIP"; then
5950 ac_ct_STRIP=$STRIP
5951 # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5972 done
5973 done
5974 IFS=$as_save_IFS
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5981 $as_echo "$ac_ct_STRIP" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5987 if test "x$ac_ct_STRIP" = x; then
5988 STRIP=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 STRIP=$ac_ct_STRIP
5998 else
5999 STRIP="$ac_cv_prog_STRIP"
6002 test -z "$STRIP" && STRIP=:
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$RANLIB"; then
6018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6031 done
6032 done
6033 IFS=$as_save_IFS
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6040 $as_echo "$RANLIB" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_RANLIB"; then
6049 ac_ct_RANLIB=$RANLIB
6050 # Extract the first word of "ranlib", so it can be a program name with args.
6051 set dummy ranlib; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$ac_ct_RANLIB"; then
6058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_RANLIB="ranlib"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6071 done
6072 done
6073 IFS=$as_save_IFS
6077 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078 if test -n "$ac_ct_RANLIB"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6080 $as_echo "$ac_ct_RANLIB" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_RANLIB" = x; then
6087 RANLIB=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095 RANLIB=$ac_ct_RANLIB
6097 else
6098 RANLIB="$ac_cv_prog_RANLIB"
6101 test -z "$RANLIB" && RANLIB=:
6108 # Determine commands to create old-style static archives.
6109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6110 old_postinstall_cmds='chmod 644 $oldlib'
6111 old_postuninstall_cmds=
6113 if test -n "$RANLIB"; then
6114 case $host_os in
6115 openbsd*)
6116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6121 esac
6122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6125 case $host_os in
6126 darwin*)
6127 lock_old_archive_extraction=yes ;;
6129 lock_old_archive_extraction=no ;;
6130 esac
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6173 # If no C compiler flags were specified, use CFLAGS.
6174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6176 # Allow CC to be a program name with arguments.
6177 compiler=$CC
6180 # Check for command to grab the raw symbol name followed by C symbol from nm.
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6182 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6183 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6187 # These are sane defaults that work on at least a few old systems.
6188 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6190 # Character class describing NM global symbol codes.
6191 symcode='[BCDEGRST]'
6193 # Regexp to match symbols that can be accessed directly from C.
6194 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6196 # Define system-specific variables.
6197 case $host_os in
6198 aix*)
6199 symcode='[BCDT]'
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 symcode='[ABCDGISTW]'
6204 hpux*)
6205 if test "$host_cpu" = ia64; then
6206 symcode='[ABCDEGRST]'
6209 irix* | nonstopux*)
6210 symcode='[BCDEGRST]'
6212 osf*)
6213 symcode='[BCDEGQRST]'
6215 solaris*)
6216 symcode='[BDRT]'
6218 sco3.2v5*)
6219 symcode='[DT]'
6221 sysv4.2uw2*)
6222 symcode='[DT]'
6224 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6225 symcode='[ABDT]'
6227 sysv4)
6228 symcode='[DFNSTU]'
6230 esac
6232 # If we're using GNU nm, then use its standard symbol codes.
6233 case `$NM -V 2>&1` in
6234 *GNU* | *'with BFD'*)
6235 symcode='[ABCDGIRSTW]' ;;
6236 esac
6238 # Transform an extracted symbol line into a proper C declaration.
6239 # Some systems (esp. on ia64) link data and code symbols differently,
6240 # so use this general approach.
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6245 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'"
6247 # Handle CRLF in mingw tool chain
6248 opt_cr=
6249 case $build_os in
6250 mingw*)
6251 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6253 esac
6255 # Try without a prefix underscore, then with it.
6256 for ac_symprfx in "" "_"; do
6258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259 symxfrm="\\1 $ac_symprfx\\2 \\2"
6261 # Write the raw and C identifiers.
6262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6263 # Fake it for dumpbin and say T for any non-static function
6264 # and D for any global variable.
6265 # Also find C++ and __fastcall symbols from MSVC++,
6266 # which start with @ or ?.
6267 lt_cv_sys_global_symbol_pipe="$AWK '"\
6268 " {last_section=section; section=\$ 3};"\
6269 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6270 " \$ 0!~/External *\|/{next};"\
6271 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6272 " {if(hide[section]) next};"\
6273 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6274 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6275 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6276 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6277 " ' prfx=^$ac_symprfx"
6278 else
6279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6282 # Check to see that the pipe works correctly.
6283 pipe_works=no
6285 rm -f conftest*
6286 cat > conftest.$ac_ext <<_LT_EOF
6287 #ifdef __cplusplus
6288 extern "C" {
6289 #endif
6290 char nm_test_var;
6291 void nm_test_func(void);
6292 void nm_test_func(void){}
6293 #ifdef __cplusplus
6295 #endif
6296 int main(){nm_test_var='a';nm_test_func();return(0);}
6297 _LT_EOF
6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6300 (eval $ac_compile) 2>&5
6301 ac_status=$?
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; }; then
6304 # Now try to grab the symbols.
6305 nlist=conftest.nm
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6307 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; } && test -s "$nlist"; then
6311 # Try sorting and uniquifying the output.
6312 if sort "$nlist" | uniq > "$nlist"T; then
6313 mv -f "$nlist"T "$nlist"
6314 else
6315 rm -f "$nlist"T
6318 # Make sure that we snagged all the symbols we need.
6319 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6320 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6321 cat <<_LT_EOF > conftest.$ac_ext
6322 #ifdef __cplusplus
6323 extern "C" {
6324 #endif
6326 _LT_EOF
6327 # Now generate the symbol file.
6328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6330 cat <<_LT_EOF >> conftest.$ac_ext
6332 /* The mapping between symbol names and symbols. */
6333 const struct {
6334 const char *name;
6335 void *address;
6337 lt__PROGRAM__LTX_preloaded_symbols[] =
6339 { "@PROGRAM@", (void *) 0 },
6340 _LT_EOF
6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6342 cat <<\_LT_EOF >> conftest.$ac_ext
6343 {0, (void *) 0}
6346 /* This works around a problem in FreeBSD linker */
6347 #ifdef FREEBSD_WORKAROUND
6348 static const void *lt_preloaded_setup() {
6349 return lt__PROGRAM__LTX_preloaded_symbols;
6351 #endif
6353 #ifdef __cplusplus
6355 #endif
6356 _LT_EOF
6357 # Now try linking the two files.
6358 mv conftest.$ac_objext conftstm.$ac_objext
6359 lt_save_LIBS="$LIBS"
6360 lt_save_CFLAGS="$CFLAGS"
6361 LIBS="conftstm.$ac_objext"
6362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6364 (eval $ac_link) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6368 pipe_works=yes
6370 LIBS="$lt_save_LIBS"
6371 CFLAGS="$lt_save_CFLAGS"
6372 else
6373 echo "cannot find nm_test_func in $nlist" >&5
6375 else
6376 echo "cannot find nm_test_var in $nlist" >&5
6378 else
6379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6381 else
6382 echo "$progname: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6385 rm -rf conftest* conftst*
6387 # Do not use the global_symbol_pipe unless it works.
6388 if test "$pipe_works" = yes; then
6389 break
6390 else
6391 lt_cv_sys_global_symbol_pipe=
6393 done
6397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398 lt_cv_sys_global_symbol_to_cdecl=
6400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6402 $as_echo "failed" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6405 $as_echo "ok" >&6; }
6430 # Check whether --enable-libtool-lock was given.
6431 if test "${enable_libtool_lock+set}" = set; then :
6432 enableval=$enable_libtool_lock;
6435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6437 # Some flags need to be propagated to the compiler or linker for good
6438 # libtool support.
6439 case $host in
6440 ia64-*-hpux*)
6441 # Find out which ABI we are using.
6442 echo 'int i;' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *ELF-32*)
6450 HPUX_IA64_MODE="32"
6452 *ELF-64*)
6453 HPUX_IA64_MODE="64"
6455 esac
6457 rm -rf conftest*
6459 *-*-irix6*)
6460 # Find out which ABI we are using.
6461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 if test "$lt_cv_prog_gnu_ld" = yes; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -melf32bsmip"
6472 *N32*)
6473 LD="${LD-ld} -melf32bmipn32"
6475 *64-bit*)
6476 LD="${LD-ld} -melf64bmip"
6478 esac
6479 else
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *32-bit*)
6482 LD="${LD-ld} -32"
6484 *N32*)
6485 LD="${LD-ld} -n32"
6487 *64-bit*)
6488 LD="${LD-ld} -64"
6490 esac
6493 rm -rf conftest*
6496 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6497 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6498 # Find out which ABI we are using.
6499 echo 'int i;' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 case `/usr/bin/file conftest.o` in
6506 *32-bit*)
6507 case $host in
6508 x86_64-*kfreebsd*-gnu)
6509 LD="${LD-ld} -m elf_i386_fbsd"
6511 x86_64-*linux*)
6512 case `/usr/bin/file conftest.o` in
6513 *x86-64*)
6514 LD="${LD-ld} -m elf32_x86_64"
6517 LD="${LD-ld} -m elf_i386"
6519 esac
6521 powerpc64le-*linux*)
6522 LD="${LD-ld} -m elf32lppclinux"
6524 powerpc64-*linux*)
6525 LD="${LD-ld} -m elf32ppclinux"
6527 s390x-*linux*)
6528 LD="${LD-ld} -m elf_s390"
6530 sparc64-*linux*)
6531 LD="${LD-ld} -m elf32_sparc"
6533 esac
6535 *64-bit*)
6536 case $host in
6537 x86_64-*kfreebsd*-gnu)
6538 LD="${LD-ld} -m elf_x86_64_fbsd"
6540 x86_64-*linux*)
6541 LD="${LD-ld} -m elf_x86_64"
6543 powerpcle-*linux*)
6544 LD="${LD-ld} -m elf64lppc"
6546 powerpc-*linux*)
6547 LD="${LD-ld} -m elf64ppc"
6549 s390*-*linux*|s390*-*tpf*)
6550 LD="${LD-ld} -m elf64_s390"
6552 sparc*-*linux*)
6553 LD="${LD-ld} -m elf64_sparc"
6555 esac
6557 esac
6559 rm -rf conftest*
6562 *-*-sco3.2v5*)
6563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6564 SAVE_CFLAGS="$CFLAGS"
6565 CFLAGS="$CFLAGS -belf"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6567 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6568 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6581 main ()
6585 return 0;
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 lt_cv_cc_needs_belf=yes
6590 else
6591 lt_cv_cc_needs_belf=no
6593 rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
6595 ac_ext=c
6596 ac_cpp='$CPP $CPPFLAGS'
6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6603 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6606 CFLAGS="$SAVE_CFLAGS"
6609 sparc*-*solaris*)
6610 # Find out which ABI we are using.
6611 echo 'int i;' > conftest.$ac_ext
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 case `/usr/bin/file conftest.o` in
6618 *64-bit*)
6619 case $lt_cv_prog_gnu_ld in
6620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6623 LD="${LD-ld} -64"
6626 esac
6628 esac
6630 rm -rf conftest*
6632 esac
6634 need_locks="$enable_libtool_lock"
6637 case $host_os in
6638 rhapsody* | darwin*)
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$DSYMUTIL"; then
6648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6668 if test -n "$DSYMUTIL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6670 $as_echo "$DSYMUTIL" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_DSYMUTIL"; then
6679 ac_ct_DSYMUTIL=$DSYMUTIL
6680 # Extract the first word of "dsymutil", so it can be a program name with args.
6681 set dummy dsymutil; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$ac_ct_DSYMUTIL"; then
6688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6710 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_DSYMUTIL" = x; then
6717 DSYMUTIL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 DSYMUTIL=$ac_ct_DSYMUTIL
6727 else
6728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$NMEDIT"; then
6740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 NMEDIT=$ac_cv_prog_NMEDIT
6760 if test -n "$NMEDIT"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6762 $as_echo "$NMEDIT" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_NMEDIT"; then
6771 ac_ct_NMEDIT=$NMEDIT
6772 # Extract the first word of "nmedit", so it can be a program name with args.
6773 set dummy nmedit; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_NMEDIT"; then
6780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6800 if test -n "$ac_ct_NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6802 $as_echo "$ac_ct_NMEDIT" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_NMEDIT" = x; then
6809 NMEDIT=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 NMEDIT=$ac_ct_NMEDIT
6819 else
6820 NMEDIT="$ac_cv_prog_NMEDIT"
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_LIPO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$LIPO"; then
6832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6851 LIPO=$ac_cv_prog_LIPO
6852 if test -n "$LIPO"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6854 $as_echo "$LIPO" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6862 if test -z "$ac_cv_prog_LIPO"; then
6863 ac_ct_LIPO=$LIPO
6864 # Extract the first word of "lipo", so it can be a program name with args.
6865 set dummy lipo; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$ac_ct_LIPO"; then
6872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_LIPO="lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6891 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6892 if test -n "$ac_ct_LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6894 $as_echo "$ac_ct_LIPO" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6900 if test "x$ac_ct_LIPO" = x; then
6901 LIPO=":"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909 LIPO=$ac_ct_LIPO
6911 else
6912 LIPO="$ac_cv_prog_LIPO"
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}otool; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$OTOOL"; then
6924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 OTOOL=$ac_cv_prog_OTOOL
6944 if test -n "$OTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6946 $as_echo "$OTOOL" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6954 if test -z "$ac_cv_prog_OTOOL"; then
6955 ac_ct_OTOOL=$OTOOL
6956 # Extract the first word of "otool", so it can be a program name with args.
6957 set dummy otool; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$ac_ct_OTOOL"; then
6964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_OTOOL="otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6984 if test -n "$ac_ct_OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6986 $as_echo "$ac_ct_OTOOL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6992 if test "x$ac_ct_OTOOL" = x; then
6993 OTOOL=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999 ac_tool_warned=yes ;;
7000 esac
7001 OTOOL=$ac_ct_OTOOL
7003 else
7004 OTOOL="$ac_cv_prog_OTOOL"
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$OTOOL64"; then
7016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 OTOOL64=$ac_cv_prog_OTOOL64
7036 if test -n "$OTOOL64"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7038 $as_echo "$OTOOL64" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7046 if test -z "$ac_cv_prog_OTOOL64"; then
7047 ac_ct_OTOOL64=$OTOOL64
7048 # Extract the first word of "otool64", so it can be a program name with args.
7049 set dummy otool64; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_OTOOL64"; then
7056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_OTOOL64="otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7076 if test -n "$ac_ct_OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7078 $as_echo "$ac_ct_OTOOL64" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7084 if test "x$ac_ct_OTOOL64" = x; then
7085 OTOOL64=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 OTOOL64=$ac_ct_OTOOL64
7095 else
7096 OTOOL64="$ac_cv_prog_OTOOL64"
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7126 $as_echo_n "checking for -single_module linker flag... " >&6; }
7127 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 lt_cv_apple_cc_single_mod=no
7131 if test -z "${LT_MULTI_MODULE}"; then
7132 # By default we will add the -single_module flag. You can override
7133 # by either setting the environment variable LT_MULTI_MODULE
7134 # non-empty at configure time, or by adding -multi_module to the
7135 # link flags.
7136 rm -rf libconftest.dylib*
7137 echo "int foo(void){return 1;}" > conftest.c
7138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7139 -dynamiclib -Wl,-single_module conftest.c" >&5
7140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7142 _lt_result=$?
7143 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7144 lt_cv_apple_cc_single_mod=yes
7145 else
7146 cat conftest.err >&5
7148 rm -rf libconftest.dylib*
7149 rm -f conftest.*
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7153 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7155 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7156 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 lt_cv_ld_exported_symbols_list=no
7160 save_LDFLAGS=$LDFLAGS
7161 echo "_main" > conftest.sym
7162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7167 main ()
7171 return 0;
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175 lt_cv_ld_exported_symbols_list=yes
7176 else
7177 lt_cv_ld_exported_symbols_list=no
7179 rm -f core conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 LDFLAGS="$save_LDFLAGS"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7185 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7187 $as_echo_n "checking for -force_load linker flag... " >&6; }
7188 if test "${lt_cv_ld_force_load+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 lt_cv_ld_force_load=no
7192 cat > conftest.c << _LT_EOF
7193 int forced_loaded() { return 2;}
7194 _LT_EOF
7195 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7196 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7197 echo "$AR cru libconftest.a conftest.o" >&5
7198 $AR cru libconftest.a conftest.o 2>&5
7199 cat > conftest.c << _LT_EOF
7200 int main() { return 0;}
7201 _LT_EOF
7202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7204 _lt_result=$?
7205 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7206 lt_cv_ld_force_load=yes
7207 else
7208 cat conftest.err >&5
7210 rm -f conftest.err libconftest.a conftest conftest.c
7211 rm -rf conftest.dSYM
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7215 $as_echo "$lt_cv_ld_force_load" >&6; }
7216 case $host_os in
7217 rhapsody* | darwin1.[012])
7218 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7219 darwin1.*)
7220 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7221 darwin*) # darwin 5.x on
7222 # if running on 10.5 or later, the deployment target defaults
7223 # to the OS version, if on x86, and 10.4, the deployment
7224 # target defaults to 10.4. Don't you love it?
7225 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7226 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228 10.[012][,.]*)
7229 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7230 10.*)
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7232 esac
7234 esac
7235 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7236 _lt_dar_single_mod='$single_module'
7238 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7239 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7240 else
7241 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7243 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7244 _lt_dsymutil='~$DSYMUTIL $lib || :'
7245 else
7246 _lt_dsymutil=
7249 esac
7251 ac_ext=c
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7257 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7258 # On Suns, sometimes $CPP names a directory.
7259 if test -n "$CPP" && test -d "$CPP"; then
7260 CPP=
7262 if test -z "$CPP"; then
7263 if test "${ac_cv_prog_CPP+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 # Double quotes because CPP needs to be expanded
7267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7269 ac_preproc_ok=false
7270 for ac_c_preproc_warn_flag in '' yes
7272 # Use a header file that comes with gcc, so configuring glibc
7273 # with a fresh cross-compiler works.
7274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 # <limits.h> exists even on freestanding compilers.
7276 # On the NeXT, cc -E runs the code through the compiler's parser,
7277 # not just through cpp. "Syntax error" is here to catch this case.
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 #ifdef __STDC__
7281 # include <limits.h>
7282 #else
7283 # include <assert.h>
7284 #endif
7285 Syntax error
7286 _ACEOF
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7289 else
7290 # Broken: fails on valid input.
7291 continue
7293 rm -f conftest.err conftest.$ac_ext
7295 # OK, works on sane cases. Now check whether nonexistent headers
7296 # can be detected and how.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <ac_nonexistent.h>
7300 _ACEOF
7301 if ac_fn_c_try_cpp "$LINENO"; then :
7302 # Broken: success on invalid input.
7303 continue
7304 else
7305 # Passes both tests.
7306 ac_preproc_ok=:
7307 break
7309 rm -f conftest.err conftest.$ac_ext
7311 done
7312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313 rm -f conftest.err conftest.$ac_ext
7314 if $ac_preproc_ok; then :
7315 break
7318 done
7319 ac_cv_prog_CPP=$CPP
7322 CPP=$ac_cv_prog_CPP
7323 else
7324 ac_cv_prog_CPP=$CPP
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7327 $as_echo "$CPP" >&6; }
7328 ac_preproc_ok=false
7329 for ac_c_preproc_warn_flag in '' yes
7331 # Use a header file that comes with gcc, so configuring glibc
7332 # with a fresh cross-compiler works.
7333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334 # <limits.h> exists even on freestanding compilers.
7335 # On the NeXT, cc -E runs the code through the compiler's parser,
7336 # not just through cpp. "Syntax error" is here to catch this case.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #ifdef __STDC__
7340 # include <limits.h>
7341 #else
7342 # include <assert.h>
7343 #endif
7344 Syntax error
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7348 else
7349 # Broken: fails on valid input.
7350 continue
7352 rm -f conftest.err conftest.$ac_ext
7354 # OK, works on sane cases. Now check whether nonexistent headers
7355 # can be detected and how.
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 #include <ac_nonexistent.h>
7359 _ACEOF
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7361 # Broken: success on invalid input.
7362 continue
7363 else
7364 # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7368 rm -f conftest.err conftest.$ac_ext
7370 done
7371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372 rm -f conftest.err conftest.$ac_ext
7373 if $ac_preproc_ok; then :
7375 else
7376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7378 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7379 See \`config.log' for more details." "$LINENO" 5; }
7382 ac_ext=c
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7390 $as_echo_n "checking for ANSI C header files... " >&6; }
7391 if test "${ac_cv_header_stdc+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 #include <stdlib.h>
7397 #include <stdarg.h>
7398 #include <string.h>
7399 #include <float.h>
7402 main ()
7406 return 0;
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 ac_cv_header_stdc=yes
7411 else
7412 ac_cv_header_stdc=no
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 if test $ac_cv_header_stdc = yes; then
7417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 #include <string.h>
7422 _ACEOF
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424 $EGREP "memchr" >/dev/null 2>&1; then :
7426 else
7427 ac_cv_header_stdc=no
7429 rm -f conftest*
7433 if test $ac_cv_header_stdc = yes; then
7434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <stdlib.h>
7439 _ACEOF
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441 $EGREP "free" >/dev/null 2>&1; then :
7443 else
7444 ac_cv_header_stdc=no
7446 rm -f conftest*
7450 if test $ac_cv_header_stdc = yes; then
7451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7452 if test "$cross_compiling" = yes; then :
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ctype.h>
7458 #include <stdlib.h>
7459 #if ((' ' & 0x0FF) == 0x020)
7460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7462 #else
7463 # define ISLOWER(c) \
7464 (('a' <= (c) && (c) <= 'i') \
7465 || ('j' <= (c) && (c) <= 'r') \
7466 || ('s' <= (c) && (c) <= 'z'))
7467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7468 #endif
7470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7472 main ()
7474 int i;
7475 for (i = 0; i < 256; i++)
7476 if (XOR (islower (i), ISLOWER (i))
7477 || toupper (i) != TOUPPER (i))
7478 return 2;
7479 return 0;
7481 _ACEOF
7482 if ac_fn_c_try_run "$LINENO"; then :
7484 else
7485 ac_cv_header_stdc=no
7487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7488 conftest.$ac_objext conftest.beam conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7494 $as_echo "$ac_cv_header_stdc" >&6; }
7495 if test $ac_cv_header_stdc = yes; then
7497 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7503 inttypes.h stdint.h unistd.h
7504 do :
7505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7508 eval as_val=\$$as_ac_Header
7509 if test "x$as_val" = x""yes; then :
7510 cat >>confdefs.h <<_ACEOF
7511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512 _ACEOF
7516 done
7519 for ac_header in dlfcn.h
7520 do :
7521 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7523 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DLFCN_H 1
7526 _ACEOF
7530 done
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_GOC+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$GOC"; then
7541 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 GOC=$ac_cv_prog_GOC
7561 if test -n "$GOC"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7563 $as_echo "$GOC" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_GOC"; then
7572 ac_ct_GOC=$GOC
7573 # Extract the first word of "gccgo", so it can be a program name with args.
7574 set dummy gccgo; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$ac_ct_GOC"; then
7581 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_GOC="gccgo"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7594 done
7595 done
7596 IFS=$as_save_IFS
7600 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7601 if test -n "$ac_ct_GOC"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7603 $as_echo "$ac_ct_GOC" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_GOC" = x; then
7610 GOC=""
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618 GOC=$ac_ct_GOC
7620 else
7621 GOC="$ac_cv_prog_GOC"
7629 # Set options
7634 enable_win32_dll=no
7637 # Check whether --enable-shared was given.
7638 if test "${enable_shared+set}" = set; then :
7639 enableval=$enable_shared; p=${PACKAGE-default}
7640 case $enableval in
7641 yes) enable_shared=yes ;;
7642 no) enable_shared=no ;;
7644 enable_shared=no
7645 # Look at the argument we got. We use all the common list separators.
7646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647 for pkg in $enableval; do
7648 IFS="$lt_save_ifs"
7649 if test "X$pkg" = "X$p"; then
7650 enable_shared=yes
7652 done
7653 IFS="$lt_save_ifs"
7655 esac
7656 else
7657 enable_shared=yes
7668 # Check whether --enable-static was given.
7669 if test "${enable_static+set}" = set; then :
7670 enableval=$enable_static; p=${PACKAGE-default}
7671 case $enableval in
7672 yes) enable_static=yes ;;
7673 no) enable_static=no ;;
7675 enable_static=no
7676 # Look at the argument we got. We use all the common list separators.
7677 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7678 for pkg in $enableval; do
7679 IFS="$lt_save_ifs"
7680 if test "X$pkg" = "X$p"; then
7681 enable_static=yes
7683 done
7684 IFS="$lt_save_ifs"
7686 esac
7687 else
7688 enable_static=yes
7700 # Check whether --with-pic was given.
7701 if test "${with_pic+set}" = set; then :
7702 withval=$with_pic; pic_mode="$withval"
7703 else
7704 pic_mode=default
7708 test -z "$pic_mode" && pic_mode=default
7716 # Check whether --enable-fast-install was given.
7717 if test "${enable_fast_install+set}" = set; then :
7718 enableval=$enable_fast_install; p=${PACKAGE-default}
7719 case $enableval in
7720 yes) enable_fast_install=yes ;;
7721 no) enable_fast_install=no ;;
7723 enable_fast_install=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7726 for pkg in $enableval; do
7727 IFS="$lt_save_ifs"
7728 if test "X$pkg" = "X$p"; then
7729 enable_fast_install=yes
7731 done
7732 IFS="$lt_save_ifs"
7734 esac
7735 else
7736 enable_fast_install=yes
7749 # This can be used to rebuild libtool when needed
7750 LIBTOOL_DEPS="$ltmain"
7752 # Always use our own libtool.
7753 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7780 test -z "$LN_S" && LN_S="ln -s"
7795 if test -n "${ZSH_VERSION+set}" ; then
7796 setopt NO_GLOB_SUBST
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7800 $as_echo_n "checking for objdir... " >&6; }
7801 if test "${lt_cv_objdir+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 rm -f .libs 2>/dev/null
7805 mkdir .libs 2>/dev/null
7806 if test -d .libs; then
7807 lt_cv_objdir=.libs
7808 else
7809 # MS-DOS does not allow filenames that begin with a dot.
7810 lt_cv_objdir=_libs
7812 rmdir .libs 2>/dev/null
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7815 $as_echo "$lt_cv_objdir" >&6; }
7816 objdir=$lt_cv_objdir
7822 cat >>confdefs.h <<_ACEOF
7823 #define LT_OBJDIR "$lt_cv_objdir/"
7824 _ACEOF
7829 case $host_os in
7830 aix3*)
7831 # AIX sometimes has problems with the GCC collect2 program. For some
7832 # reason, if we set the COLLECT_NAMES environment variable, the problems
7833 # vanish in a puff of smoke.
7834 if test "X${COLLECT_NAMES+set}" != Xset; then
7835 COLLECT_NAMES=
7836 export COLLECT_NAMES
7839 esac
7841 # Global variables:
7842 ofile=libtool
7843 can_build_shared=yes
7845 # All known linkers require a `.a' archive for static linking (except MSVC,
7846 # which needs '.lib').
7847 libext=a
7849 with_gnu_ld="$lt_cv_prog_gnu_ld"
7851 old_CC="$CC"
7852 old_CFLAGS="$CFLAGS"
7854 # Set sane defaults for various variables
7855 test -z "$CC" && CC=cc
7856 test -z "$LTCC" && LTCC=$CC
7857 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7858 test -z "$LD" && LD=ld
7859 test -z "$ac_objext" && ac_objext=o
7861 for cc_temp in $compiler""; do
7862 case $cc_temp in
7863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7865 \-*) ;;
7866 *) break;;
7867 esac
7868 done
7869 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7872 # Only perform the check for file, if the check method requires it
7873 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7874 case $deplibs_check_method in
7875 file_magic*)
7876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 case $MAGIC_CMD in
7883 [\\/*] | ?:[\\/]*)
7884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7887 lt_save_MAGIC_CMD="$MAGIC_CMD"
7888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7890 for ac_dir in $ac_dummy; do
7891 IFS="$lt_save_ifs"
7892 test -z "$ac_dir" && ac_dir=.
7893 if test -f $ac_dir/${ac_tool_prefix}file; then
7894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7895 if test -n "$file_magic_test_file"; then
7896 case $deplibs_check_method in
7897 "file_magic "*)
7898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7901 $EGREP "$file_magic_regex" > /dev/null; then
7903 else
7904 cat <<_LT_EOF 1>&2
7906 *** Warning: the command libtool uses to detect shared libraries,
7907 *** $file_magic_cmd, produces output that libtool cannot recognize.
7908 *** The result is that libtool may fail to recognize shared libraries
7909 *** as such. This will affect the creation of libtool libraries that
7910 *** depend on shared libraries, but programs linked with such libtool
7911 *** libraries will work regardless of this problem. Nevertheless, you
7912 *** may want to report the problem to your system manager and/or to
7913 *** bug-libtool@gnu.org
7915 _LT_EOF
7916 fi ;;
7917 esac
7919 break
7921 done
7922 IFS="$lt_save_ifs"
7923 MAGIC_CMD="$lt_save_MAGIC_CMD"
7925 esac
7928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929 if test -n "$MAGIC_CMD"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7931 $as_echo "$MAGIC_CMD" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7941 if test -z "$lt_cv_path_MAGIC_CMD"; then
7942 if test -n "$ac_tool_prefix"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7944 $as_echo_n "checking for file... " >&6; }
7945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 case $MAGIC_CMD in
7949 [\\/*] | ?:[\\/]*)
7950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7953 lt_save_MAGIC_CMD="$MAGIC_CMD"
7954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7956 for ac_dir in $ac_dummy; do
7957 IFS="$lt_save_ifs"
7958 test -z "$ac_dir" && ac_dir=.
7959 if test -f $ac_dir/file; then
7960 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7961 if test -n "$file_magic_test_file"; then
7962 case $deplibs_check_method in
7963 "file_magic "*)
7964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7967 $EGREP "$file_magic_regex" > /dev/null; then
7969 else
7970 cat <<_LT_EOF 1>&2
7972 *** Warning: the command libtool uses to detect shared libraries,
7973 *** $file_magic_cmd, produces output that libtool cannot recognize.
7974 *** The result is that libtool may fail to recognize shared libraries
7975 *** as such. This will affect the creation of libtool libraries that
7976 *** depend on shared libraries, but programs linked with such libtool
7977 *** libraries will work regardless of this problem. Nevertheless, you
7978 *** may want to report the problem to your system manager and/or to
7979 *** bug-libtool@gnu.org
7981 _LT_EOF
7982 fi ;;
7983 esac
7985 break
7987 done
7988 IFS="$lt_save_ifs"
7989 MAGIC_CMD="$lt_save_MAGIC_CMD"
7991 esac
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if test -n "$MAGIC_CMD"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7997 $as_echo "$MAGIC_CMD" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8004 else
8005 MAGIC_CMD=:
8011 esac
8013 # Use C for the default configuration in the libtool script
8015 lt_save_CC="$CC"
8016 ac_ext=c
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023 # Source file extension for C test sources.
8024 ac_ext=c
8026 # Object file extension for compiled C test sources.
8027 objext=o
8028 objext=$objext
8030 # Code to be used in simple compile tests
8031 lt_simple_compile_test_code="int some_variable = 0;"
8033 # Code to be used in simple link tests
8034 lt_simple_link_test_code='int main(){return(0);}'
8042 # If no C compiler was specified, use CC.
8043 LTCC=${LTCC-"$CC"}
8045 # If no C compiler flags were specified, use CFLAGS.
8046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8048 # Allow CC to be a program name with arguments.
8049 compiler=$CC
8051 # Save the default compiler, since it gets overwritten when the other
8052 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8053 compiler_DEFAULT=$CC
8055 # save warnings/boilerplate of simple test code
8056 ac_outfile=conftest.$ac_objext
8057 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8058 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8059 _lt_compiler_boilerplate=`cat conftest.err`
8060 $RM conftest*
8062 ac_outfile=conftest.$ac_objext
8063 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8064 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065 _lt_linker_boilerplate=`cat conftest.err`
8066 $RM -r conftest*
8069 ## CAVEAT EMPTOR:
8070 ## There is no encapsulation within the following macros, do not change
8071 ## the running order or otherwise move them around unless you know exactly
8072 ## what you are doing...
8073 if test -n "$compiler"; then
8075 lt_prog_compiler_no_builtin_flag=
8077 if test "$GCC" = yes; then
8078 case $cc_basename in
8079 nvcc*)
8080 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8082 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8083 esac
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8086 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 lt_cv_prog_compiler_rtti_exceptions=no
8091 ac_outfile=conftest.$ac_objext
8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8093 lt_compiler_flag="-fno-rtti -fno-exceptions"
8094 # Insert the option either (1) after the last *FLAGS variable, or
8095 # (2) before a word containing "conftest.", or (3) at the end.
8096 # Note that $ac_compile itself does not contain backslashes and begins
8097 # with a dollar sign (not a hyphen), so the echo should work correctly.
8098 # The option is referenced via a variable to avoid confusing sed.
8099 lt_compile=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8104 (eval "$lt_compile" 2>conftest.err)
8105 ac_status=$?
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 if (exit $ac_status) && test -s "$ac_outfile"; then
8109 # The compiler can only warn and ignore the option if not recognized
8110 # So say no if there are warnings other than the usual output.
8111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8114 lt_cv_prog_compiler_rtti_exceptions=yes
8117 $RM conftest*
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8123 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8125 else
8136 lt_prog_compiler_wl=
8137 lt_prog_compiler_pic=
8138 lt_prog_compiler_static=
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8143 if test "$GCC" = yes; then
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_static='-static'
8147 case $host_os in
8148 aix*)
8149 # All AIX code is PIC.
8150 if test "$host_cpu" = ia64; then
8151 # AIX 5 now supports IA64 processor
8152 lt_prog_compiler_static='-Bstatic'
8154 lt_prog_compiler_pic='-fPIC'
8157 amigaos*)
8158 case $host_cpu in
8159 powerpc)
8160 # see comment about AmigaOS4 .so support
8161 lt_prog_compiler_pic='-fPIC'
8163 m68k)
8164 # FIXME: we need at least 68020 code to build shared libraries, but
8165 # adding the `-m68020' flag to GCC prevents building anything better,
8166 # like `-m68040'.
8167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8169 esac
8172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8173 # PIC is the default for these OSes.
8176 mingw* | cygwin* | pw32* | os2* | cegcc*)
8177 # This hack is so that the source file can tell whether it is being
8178 # built for inclusion in a dll (and should export symbols for example).
8179 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8180 # (--disable-auto-import) libraries
8181 lt_prog_compiler_pic='-DDLL_EXPORT'
8184 darwin* | rhapsody*)
8185 # PIC is the default on this platform
8186 # Common symbols not allowed in MH_DYLIB files
8187 lt_prog_compiler_pic='-fno-common'
8190 haiku*)
8191 # PIC is the default for Haiku.
8192 # The "-static" flag exists, but is broken.
8193 lt_prog_compiler_static=
8196 hpux*)
8197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8199 # sets the default TLS model and affects inlining.
8200 case $host_cpu in
8201 hppa*64*)
8202 # +Z the default
8205 lt_prog_compiler_pic='-fPIC'
8207 esac
8210 interix[3-9]*)
8211 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8212 # Instead, we relocate shared libraries at runtime.
8215 msdosdjgpp*)
8216 # Just because we use GCC doesn't mean we suddenly get shared libraries
8217 # on systems that don't support them.
8218 lt_prog_compiler_can_build_shared=no
8219 enable_shared=no
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
8228 sysv4*MP*)
8229 if test -d /usr/nec; then
8230 lt_prog_compiler_pic=-Kconform_pic
8235 lt_prog_compiler_pic='-fPIC'
8237 esac
8239 case $cc_basename in
8240 nvcc*) # Cuda Compiler Driver 2.2
8241 lt_prog_compiler_wl='-Xlinker '
8242 lt_prog_compiler_pic='-Xcompiler -fPIC'
8244 esac
8245 else
8246 # PORTME Check for flag to pass linker flags through the system compiler.
8247 case $host_os in
8248 aix*)
8249 lt_prog_compiler_wl='-Wl,'
8250 if test "$host_cpu" = ia64; then
8251 # AIX 5 now supports IA64 processor
8252 lt_prog_compiler_static='-Bstatic'
8253 else
8254 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8258 mingw* | cygwin* | pw32* | os2* | cegcc*)
8259 # This hack is so that the source file can tell whether it is being
8260 # built for inclusion in a dll (and should export symbols for example).
8261 lt_prog_compiler_pic='-DDLL_EXPORT'
8264 hpux9* | hpux10* | hpux11*)
8265 lt_prog_compiler_wl='-Wl,'
8266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8267 # not for PA HP-UX.
8268 case $host_cpu in
8269 hppa*64*|ia64*)
8270 # +Z the default
8273 lt_prog_compiler_pic='+Z'
8275 esac
8276 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8277 lt_prog_compiler_static='${wl}-a ${wl}archive'
8280 irix5* | irix6* | nonstopux*)
8281 lt_prog_compiler_wl='-Wl,'
8282 # PIC (with -KPIC) is the default.
8283 lt_prog_compiler_static='-non_shared'
8286 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8287 case $cc_basename in
8288 # old Intel for x86_64 which still supported -KPIC.
8289 ecc*)
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_pic='-KPIC'
8292 lt_prog_compiler_static='-static'
8294 # icc used to be incompatible with GCC.
8295 # ICC 10 doesn't accept -KPIC any more.
8296 icc* | ifort*)
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-fPIC'
8299 lt_prog_compiler_static='-static'
8301 # Lahey Fortran 8.1.
8302 lf95*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='--shared'
8305 lt_prog_compiler_static='--static'
8307 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8308 # Portland Group compilers (*not* the Pentium gcc compiler,
8309 # which looks to be a dead project)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-fpic'
8312 lt_prog_compiler_static='-Bstatic'
8314 ccc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # All Alpha code is PIC.
8317 lt_prog_compiler_static='-non_shared'
8319 xl* | bgxl* | bgf* | mpixl*)
8320 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-qpic'
8323 lt_prog_compiler_static='-qstaticlink'
8326 case `$CC -V 2>&1 | sed 5q` in
8327 *Sun\ F* | *Sun*Fortran*)
8328 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-Bstatic'
8331 lt_prog_compiler_wl=''
8333 *Sun\ C*)
8334 # Sun C 5.9
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl='-Wl,'
8339 esac
8341 esac
8344 newsos6)
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8349 *nto* | *qnx*)
8350 # QNX uses GNU C++, but need to define -shared option too, otherwise
8351 # it will coredump.
8352 lt_prog_compiler_pic='-fPIC -shared'
8355 osf3* | osf4* | osf5*)
8356 lt_prog_compiler_wl='-Wl,'
8357 # All OSF/1 code is PIC.
8358 lt_prog_compiler_static='-non_shared'
8361 rdos*)
8362 lt_prog_compiler_static='-non_shared'
8365 solaris*)
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 case $cc_basename in
8369 f77* | f90* | f95*)
8370 lt_prog_compiler_wl='-Qoption ld ';;
8372 lt_prog_compiler_wl='-Wl,';;
8373 esac
8376 sunos4*)
8377 lt_prog_compiler_wl='-Qoption ld '
8378 lt_prog_compiler_pic='-PIC'
8379 lt_prog_compiler_static='-Bstatic'
8382 sysv4 | sysv4.2uw2* | sysv4.3*)
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-Bstatic'
8388 sysv4*MP*)
8389 if test -d /usr/nec ;then
8390 lt_prog_compiler_pic='-Kconform_pic'
8391 lt_prog_compiler_static='-Bstatic'
8395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8401 unicos*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_can_build_shared=no
8406 uts4*)
8407 lt_prog_compiler_pic='-pic'
8408 lt_prog_compiler_static='-Bstatic'
8412 lt_prog_compiler_can_build_shared=no
8414 esac
8417 case $host_os in
8418 # For platforms which do not support PIC, -DPIC is meaningless:
8419 *djgpp*)
8420 lt_prog_compiler_pic=
8423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8425 esac
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8427 $as_echo "$lt_prog_compiler_pic" >&6; }
8435 # Check to make sure the PIC flag actually works.
8437 if test -n "$lt_prog_compiler_pic"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8440 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 lt_cv_prog_compiler_pic_works=no
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8447 # Insert the option either (1) after the last *FLAGS variable, or
8448 # (2) before a word containing "conftest.", or (3) at the end.
8449 # Note that $ac_compile itself does not contain backslashes and begins
8450 # with a dollar sign (not a hyphen), so the echo should work correctly.
8451 # The option is referenced via a variable to avoid confusing sed.
8452 lt_compile=`echo "$ac_compile" | $SED \
8453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455 -e 's:$: $lt_compiler_flag:'`
8456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8457 (eval "$lt_compile" 2>conftest.err)
8458 ac_status=$?
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 if (exit $ac_status) && test -s "$ac_outfile"; then
8462 # The compiler can only warn and ignore the option if not recognized
8463 # So say no if there are warnings other than the usual output.
8464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8467 lt_cv_prog_compiler_pic_works=yes
8470 $RM conftest*
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8474 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8476 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8477 case $lt_prog_compiler_pic in
8478 "" | " "*) ;;
8479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8480 esac
8481 else
8482 lt_prog_compiler_pic=
8483 lt_prog_compiler_can_build_shared=no
8494 # Check to make sure the static flag actually works.
8496 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8498 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8499 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 lt_cv_prog_compiler_static_works=no
8503 save_LDFLAGS="$LDFLAGS"
8504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8505 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8507 # The linker can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
8509 if test -s conftest.err; then
8510 # Append any errors to the config.log.
8511 cat conftest.err 1>&5
8512 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514 if diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_static_works=yes
8517 else
8518 lt_cv_prog_compiler_static_works=yes
8521 $RM -r conftest*
8522 LDFLAGS="$save_LDFLAGS"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8526 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8528 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8530 else
8531 lt_prog_compiler_static=
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8542 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 lt_cv_prog_compiler_c_o=no
8546 $RM -r conftest 2>/dev/null
8547 mkdir conftest
8548 cd conftest
8549 mkdir out
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552 lt_compiler_flag="-o out/conftest2.$ac_objext"
8553 # Insert the option either (1) after the last *FLAGS variable, or
8554 # (2) before a word containing "conftest.", or (3) at the end.
8555 # Note that $ac_compile itself does not contain backslashes and begins
8556 # with a dollar sign (not a hyphen), so the echo should work correctly.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>out/conftest.err)
8563 ac_status=$?
8564 cat out/conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8567 then
8568 # The compiler can only warn and ignore the option if not recognized
8569 # So say no if there are warnings
8570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8573 lt_cv_prog_compiler_c_o=yes
8576 chmod u+w . 2>&5
8577 $RM conftest*
8578 # SGI C++ compiler will create directory out/ii_files/ for
8579 # template instantiation
8580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8581 $RM out/* && rmdir out
8582 cd ..
8583 $RM -r conftest
8584 $RM conftest*
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8588 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 lt_cv_prog_compiler_c_o=no
8601 $RM -r conftest 2>/dev/null
8602 mkdir conftest
8603 cd conftest
8604 mkdir out
8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607 lt_compiler_flag="-o out/conftest2.$ac_objext"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 lt_compile=`echo "$ac_compile" | $SED \
8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615 -e 's:$: $lt_compiler_flag:'`
8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8617 (eval "$lt_compile" 2>out/conftest.err)
8618 ac_status=$?
8619 cat out/conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8622 then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
8625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_c_o=yes
8631 chmod u+w . 2>&5
8632 $RM conftest*
8633 # SGI C++ compiler will create directory out/ii_files/ for
8634 # template instantiation
8635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8636 $RM out/* && rmdir out
8637 cd ..
8638 $RM -r conftest
8639 $RM conftest*
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648 hard_links="nottested"
8649 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8650 # do not overwrite the value of need_locks provided by the user
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8652 $as_echo_n "checking if we can lock with hard links... " >&6; }
8653 hard_links=yes
8654 $RM conftest*
8655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8656 touch conftest.a
8657 ln conftest.a conftest.b 2>&5 || hard_links=no
8658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8660 $as_echo "$hard_links" >&6; }
8661 if test "$hard_links" = no; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8663 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8664 need_locks=warn
8666 else
8667 need_locks=no
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8678 runpath_var=
8679 allow_undefined_flag=
8680 always_export_symbols=no
8681 archive_cmds=
8682 archive_expsym_cmds=
8683 compiler_needs_object=no
8684 enable_shared_with_static_runtimes=no
8685 export_dynamic_flag_spec=
8686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8687 hardcode_automatic=no
8688 hardcode_direct=no
8689 hardcode_direct_absolute=no
8690 hardcode_libdir_flag_spec=
8691 hardcode_libdir_flag_spec_ld=
8692 hardcode_libdir_separator=
8693 hardcode_minus_L=no
8694 hardcode_shlibpath_var=unsupported
8695 inherit_rpath=no
8696 link_all_deplibs=unknown
8697 module_cmds=
8698 module_expsym_cmds=
8699 old_archive_from_new_cmds=
8700 old_archive_from_expsyms_cmds=
8701 thread_safe_flag_spec=
8702 whole_archive_flag_spec=
8703 # include_expsyms should be a list of space-separated symbols to be *always*
8704 # included in the symbol list
8705 include_expsyms=
8706 # exclude_expsyms can be an extended regexp of symbols to exclude
8707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8709 # as well as any symbol that contains `d'.
8710 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8712 # platforms (ab)use it in PIC code, but their linkers get confused if
8713 # the symbol is explicitly referenced. Since portable code cannot
8714 # rely on this symbol name, it's probably fine to never include it in
8715 # preloaded symbol tables.
8716 # Exclude shared library initialization/finalization symbols.
8717 extract_expsyms_cmds=
8719 case $host_os in
8720 cygwin* | mingw* | pw32* | cegcc*)
8721 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8722 # When not using gcc, we currently assume that we are using
8723 # Microsoft Visual C++.
8724 if test "$GCC" != yes; then
8725 with_gnu_ld=no
8728 interix*)
8729 # we just hope/assume this is gcc and not c89 (= MSVC++)
8730 with_gnu_ld=yes
8732 openbsd*)
8733 with_gnu_ld=no
8735 esac
8737 ld_shlibs=yes
8739 # On some targets, GNU ld is compatible enough with the native linker
8740 # that we're better off using the native interface for both.
8741 lt_use_gnu_ld_interface=no
8742 if test "$with_gnu_ld" = yes; then
8743 case $host_os in
8744 aix*)
8745 # The AIX port of GNU ld has always aspired to compatibility
8746 # with the native linker. However, as the warning in the GNU ld
8747 # block says, versions before 2.19.5* couldn't really create working
8748 # shared libraries, regardless of the interface used.
8749 case `$LD -v 2>&1` in
8750 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8751 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8752 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8754 lt_use_gnu_ld_interface=yes
8756 esac
8759 lt_use_gnu_ld_interface=yes
8761 esac
8764 if test "$lt_use_gnu_ld_interface" = yes; then
8765 # If archive_cmds runs LD, not CC, wlarc should be empty
8766 wlarc='${wl}'
8768 # Set some defaults for GNU ld with shared library support. These
8769 # are reset later if shared libraries are not supported. Putting them
8770 # here allows them to be overridden if necessary.
8771 runpath_var=LD_RUN_PATH
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 export_dynamic_flag_spec='${wl}--export-dynamic'
8774 # ancient GNU ld didn't support --whole-archive et. al.
8775 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8776 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8777 else
8778 whole_archive_flag_spec=
8780 supports_anon_versioning=no
8781 case `$LD -v 2>&1` in
8782 *GNU\ gold*) supports_anon_versioning=yes ;;
8783 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8786 *\ 2.11.*) ;; # other 2.11 versions
8787 *) supports_anon_versioning=yes ;;
8788 esac
8790 # See if GNU ld supports shared libraries.
8791 case $host_os in
8792 aix[3-9]*)
8793 # On AIX/PPC, the GNU linker is very broken
8794 if test "$host_cpu" != ia64; then
8795 ld_shlibs=no
8796 cat <<_LT_EOF 1>&2
8798 *** Warning: the GNU linker, at least up to release 2.19, is reported
8799 *** to be unable to reliably create shared libraries on AIX.
8800 *** Therefore, libtool is disabling shared libraries support. If you
8801 *** really care for shared libraries, you may want to install binutils
8802 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8803 *** You will then need to restart the configuration process.
8805 _LT_EOF
8809 amigaos*)
8810 case $host_cpu in
8811 powerpc)
8812 # see comment about AmigaOS4 .so support
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 archive_expsym_cmds=''
8816 m68k)
8817 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)'
8818 hardcode_libdir_flag_spec='-L$libdir'
8819 hardcode_minus_L=yes
8821 esac
8824 beos*)
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 allow_undefined_flag=unsupported
8827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8828 # support --undefined. This deserves some investigation. FIXME
8829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 else
8831 ld_shlibs=no
8835 cygwin* | mingw* | pw32* | cegcc*)
8836 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8837 # as there is no search path for DLLs.
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 export_dynamic_flag_spec='${wl}--export-all-symbols'
8840 allow_undefined_flag=unsupported
8841 always_export_symbols=no
8842 enable_shared_with_static_runtimes=yes
8843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8845 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8847 # If the export-symbols file already is a .def file (1st line
8848 # is EXPORTS), use it as is; otherwise, prepend...
8849 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8850 cp $export_symbols $output_objdir/$soname.def;
8851 else
8852 echo EXPORTS > $output_objdir/$soname.def;
8853 cat $export_symbols >> $output_objdir/$soname.def;
8855 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8856 else
8857 ld_shlibs=no
8861 haiku*)
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863 link_all_deplibs=yes
8866 interix[3-9]*)
8867 hardcode_direct=no
8868 hardcode_shlibpath_var=no
8869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8870 export_dynamic_flag_spec='${wl}-E'
8871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8872 # Instead, shared libraries are loaded at an image base (0x10000000 by
8873 # default) and relocated if they conflict, which is a slow very memory
8874 # consuming and fragmenting process. To avoid this, we pick a random,
8875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8878 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'
8881 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8882 tmp_diet=no
8883 if test "$host_os" = linux-dietlibc; then
8884 case $cc_basename in
8885 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8886 esac
8888 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8889 && test "$tmp_diet" = no
8890 then
8891 tmp_addflag=
8892 tmp_sharedflag='-shared'
8893 case $cc_basename,$host_cpu in
8894 pgcc*) # Portland Group C compiler
8895 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'
8896 tmp_addflag=' $pic_flag'
8898 pgf77* | pgf90* | pgf95* | pgfortran*)
8899 # Portland Group f77 and f90 compilers
8900 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'
8901 tmp_addflag=' $pic_flag -Mnomain' ;;
8902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8903 tmp_addflag=' -i_dynamic' ;;
8904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8905 tmp_addflag=' -i_dynamic -nofor_main' ;;
8906 ifc* | ifort*) # Intel Fortran compiler
8907 tmp_addflag=' -nofor_main' ;;
8908 lf95*) # Lahey Fortran 8.1
8909 whole_archive_flag_spec=
8910 tmp_sharedflag='--shared' ;;
8911 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8912 tmp_sharedflag='-qmkshrobj'
8913 tmp_addflag= ;;
8914 nvcc*) # Cuda Compiler Driver 2.2
8915 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8916 compiler_needs_object=yes
8918 esac
8919 case `$CC -V 2>&1 | sed 5q` in
8920 *Sun\ C*) # Sun C 5.9
8921 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'
8922 compiler_needs_object=yes
8923 tmp_sharedflag='-G' ;;
8924 *Sun\ F*) # Sun Fortran 8.3
8925 tmp_sharedflag='-G' ;;
8926 esac
8927 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 if test "x$supports_anon_versioning" = xyes; then
8930 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8932 echo "local: *; };" >> $output_objdir/$libname.ver~
8933 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8936 case $cc_basename in
8937 xlf* | bgf* | bgxlf* | mpixlf*)
8938 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8939 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8940 hardcode_libdir_flag_spec=
8941 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8942 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8943 if test "x$supports_anon_versioning" = xyes; then
8944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8946 echo "local: *; };" >> $output_objdir/$libname.ver~
8947 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8950 esac
8951 else
8952 ld_shlibs=no
8956 netbsd*)
8957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8959 wlarc=
8960 else
8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 solaris*)
8967 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8968 ld_shlibs=no
8969 cat <<_LT_EOF 1>&2
8971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8972 *** create shared libraries on Solaris systems. Therefore, libtool
8973 *** is disabling shared libraries support. We urge you to upgrade GNU
8974 *** binutils to release 2.9.1 or newer. Another option is to modify
8975 *** your PATH or compiler configuration so that the native linker is
8976 *** used, and then restart.
8978 _LT_EOF
8979 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 else
8983 ld_shlibs=no
8987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8988 case `$LD -v 2>&1` in
8989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8990 ld_shlibs=no
8991 cat <<_LT_EOF 1>&2
8993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8994 *** reliably create shared libraries on SCO systems. Therefore, libtool
8995 *** is disabling shared libraries support. We urge you to upgrade GNU
8996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8997 *** your PATH or compiler configuration so that the native linker is
8998 *** used, and then restart.
9000 _LT_EOF
9003 # For security reasons, it is highly recommended that you always
9004 # use absolute paths for naming shared libraries, and exclude the
9005 # DT_RUNPATH tag from executables and libraries. But doing so
9006 # requires that you compile everything twice, which is a pain.
9007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011 else
9012 ld_shlibs=no
9015 esac
9018 sunos4*)
9019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9020 wlarc=
9021 hardcode_direct=yes
9022 hardcode_shlibpath_var=no
9026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9033 esac
9035 if test "$ld_shlibs" = no; then
9036 runpath_var=
9037 hardcode_libdir_flag_spec=
9038 export_dynamic_flag_spec=
9039 whole_archive_flag_spec=
9041 else
9042 # PORTME fill in a description of your system's linker (not GNU ld)
9043 case $host_os in
9044 aix3*)
9045 allow_undefined_flag=unsupported
9046 always_export_symbols=yes
9047 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'
9048 # Note: this linker hardcodes the directories in LIBPATH if there
9049 # are no directories specified by -L.
9050 hardcode_minus_L=yes
9051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9052 # Neither direct hardcoding nor static linking is supported with a
9053 # broken collect2.
9054 hardcode_direct=unsupported
9058 aix[4-9]*)
9059 if test "$host_cpu" = ia64; then
9060 # On IA64, the linker does run time linking by default, so we don't
9061 # have to do anything special.
9062 aix_use_runtimelinking=no
9063 exp_sym_flag='-Bexport'
9064 no_entry_flag=""
9065 else
9066 # If we're using GNU nm, then we don't want the "-C" option.
9067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9068 # Also, AIX nm treats weak defined symbols like other global
9069 # defined symbols, whereas GNU nm marks them as "W".
9070 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9071 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'
9072 else
9073 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'
9075 aix_use_runtimelinking=no
9077 # Test if we are trying to use run time linking or normal
9078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9079 # need to do runtime linking.
9080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9081 for ld_flag in $LDFLAGS; do
9082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9083 aix_use_runtimelinking=yes
9084 break
9086 done
9088 esac
9090 exp_sym_flag='-bexport'
9091 no_entry_flag='-bnoentry'
9094 # When large executables or shared objects are built, AIX ld can
9095 # have problems creating the table of contents. If linking a library
9096 # or program results in "error TOC overflow" add -mminimal-toc to
9097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9100 archive_cmds=''
9101 hardcode_direct=yes
9102 hardcode_direct_absolute=yes
9103 hardcode_libdir_separator=':'
9104 link_all_deplibs=yes
9105 file_list_spec='${wl}-f,'
9107 if test "$GCC" = yes; then
9108 case $host_os in aix4.[012]|aix4.[012].*)
9109 # We only want to do this on AIX 4.2 and lower, the check
9110 # below for broken collect2 doesn't work under 4.3+
9111 collect2name=`${CC} -print-prog-name=collect2`
9112 if test -f "$collect2name" &&
9113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9114 then
9115 # We have reworked collect2
9117 else
9118 # We have old collect2
9119 hardcode_direct=unsupported
9120 # It fails to find uninstalled libraries when the uninstalled
9121 # path is not listed in the libpath. Setting hardcode_minus_L
9122 # to unsupported forces relinking
9123 hardcode_minus_L=yes
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_libdir_separator=
9128 esac
9129 shared_flag='-shared'
9130 if test "$aix_use_runtimelinking" = yes; then
9131 shared_flag="$shared_flag "'${wl}-G'
9133 else
9134 # not using gcc
9135 if test "$host_cpu" = ia64; then
9136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9137 # chokes on -Wl,-G. The following line is correct:
9138 shared_flag='-G'
9139 else
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag='${wl}-G'
9142 else
9143 shared_flag='${wl}-bM:SRE'
9148 export_dynamic_flag_spec='${wl}-bexpall'
9149 # It seems that -bexpall does not export symbols beginning with
9150 # underscore (_), so it is better to generate a list of symbols to export.
9151 always_export_symbols=yes
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # Warning - without using the other runtime loading flags (-brtl),
9154 # -berok will link without error, but may produce a broken library.
9155 allow_undefined_flag='-berok'
9156 # Determine the default libpath from the value encoded in an
9157 # empty executable.
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9162 main ()
9166 return 0;
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9171 lt_aix_libpath_sed='
9172 /Import File Strings/,/^$/ {
9173 /^0/ {
9174 s/^0 *\(.*\)$/\1/
9178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179 # Check for a 64-bit object if we didn't find anything.
9180 if test -z "$aix_libpath"; then
9181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9188 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9189 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"
9190 else
9191 if test "$host_cpu" = ia64; then
9192 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9193 allow_undefined_flag="-z nodefs"
9194 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"
9195 else
9196 # Determine the default libpath from the value encoded in an
9197 # empty executable.
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9202 main ()
9206 return 0;
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9211 lt_aix_libpath_sed='
9212 /Import File Strings/,/^$/ {
9213 /^0/ {
9214 s/^0 *\(.*\)$/\1/
9218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219 # Check for a 64-bit object if we didn't find anything.
9220 if test -z "$aix_libpath"; then
9221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9229 # Warning - without using the other run time loading flags,
9230 # -berok will link without error, but may produce a broken library.
9231 no_undefined_flag=' ${wl}-bernotok'
9232 allow_undefined_flag=' ${wl}-berok'
9233 if test "$with_gnu_ld" = yes; then
9234 # We only use this code for GNU lds that support --whole-archive.
9235 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9236 else
9237 # Exported symbols can be pulled into shared objects from archives
9238 whole_archive_flag_spec='$convenience'
9240 archive_cmds_need_lc=yes
9241 # This is similar to how AIX traditionally builds its shared libraries.
9242 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'
9247 amigaos*)
9248 case $host_cpu in
9249 powerpc)
9250 # see comment about AmigaOS4 .so support
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds=''
9254 m68k)
9255 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)'
9256 hardcode_libdir_flag_spec='-L$libdir'
9257 hardcode_minus_L=yes
9259 esac
9262 bsdi[45]*)
9263 export_dynamic_flag_spec=-rdynamic
9266 cygwin* | mingw* | pw32* | cegcc*)
9267 # When not using gcc, we currently assume that we are using
9268 # Microsoft Visual C++.
9269 # hardcode_libdir_flag_spec is actually meaningless, as there is
9270 # no search path for DLLs.
9271 hardcode_libdir_flag_spec=' '
9272 allow_undefined_flag=unsupported
9273 # Tell ltmain to make .lib files, not .a files.
9274 libext=lib
9275 # Tell ltmain to make .dll files, not .so files.
9276 shrext_cmds=".dll"
9277 # FIXME: Setting linknames here is a bad hack.
9278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9279 # The linker will automatically build a .lib file if we build a DLL.
9280 old_archive_from_new_cmds='true'
9281 # FIXME: Should let the user specify the lib program.
9282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9283 fix_srcfile_path='`cygpath -w "$srcfile"`'
9284 enable_shared_with_static_runtimes=yes
9287 darwin* | rhapsody*)
9290 archive_cmds_need_lc=no
9291 hardcode_direct=no
9292 hardcode_automatic=yes
9293 hardcode_shlibpath_var=unsupported
9294 if test "$lt_cv_ld_force_load" = "yes"; then
9295 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\"`'
9296 else
9297 whole_archive_flag_spec=''
9299 link_all_deplibs=yes
9300 allow_undefined_flag="$_lt_dar_allow_undefined"
9301 case $cc_basename in
9302 ifort*) _lt_dar_can_shared=yes ;;
9303 *) _lt_dar_can_shared=$GCC ;;
9304 esac
9305 if test "$_lt_dar_can_shared" = "yes"; then
9306 output_verbose_link_cmd=func_echo_all
9307 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9308 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9309 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}"
9310 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}"
9312 else
9313 ld_shlibs=no
9318 dgux*)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 hardcode_shlibpath_var=no
9324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9325 # support. Future versions do this automatically, but an explicit c++rt0.o
9326 # does not break anything, and helps significantly (at the cost of a little
9327 # extra space).
9328 freebsd2.2*)
9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9336 freebsd2.*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_direct=yes
9339 hardcode_minus_L=yes
9340 hardcode_shlibpath_var=no
9343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9344 freebsd* | dragonfly*)
9345 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_direct=yes
9348 hardcode_shlibpath_var=no
9351 hpux9*)
9352 if test "$GCC" = yes; then
9353 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'
9354 else
9355 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'
9357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358 hardcode_libdir_separator=:
9359 hardcode_direct=yes
9361 # hardcode_minus_L: Not really in the search PATH,
9362 # but as the default location of the library.
9363 hardcode_minus_L=yes
9364 export_dynamic_flag_spec='${wl}-E'
9367 hpux10*)
9368 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 else
9371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9373 if test "$with_gnu_ld" = no; then
9374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375 hardcode_libdir_flag_spec_ld='+b $libdir'
9376 hardcode_libdir_separator=:
9377 hardcode_direct=yes
9378 hardcode_direct_absolute=yes
9379 export_dynamic_flag_spec='${wl}-E'
9380 # hardcode_minus_L: Not really in the search PATH,
9381 # but as the default location of the library.
9382 hardcode_minus_L=yes
9386 hpux11*)
9387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9388 case $host_cpu in
9389 hppa*64*)
9390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 ia64*)
9393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 esac
9399 else
9400 case $host_cpu in
9401 hppa*64*)
9402 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 ia64*)
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409 # Older versions of the 11.00 compiler do not understand -b yet
9410 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9412 $as_echo_n "checking if $CC understands -b... " >&6; }
9413 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 lt_cv_prog_compiler__b=no
9417 save_LDFLAGS="$LDFLAGS"
9418 LDFLAGS="$LDFLAGS -b"
9419 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9421 # The linker can only warn and ignore the option if not recognized
9422 # So say no if there are warnings
9423 if test -s conftest.err; then
9424 # Append any errors to the config.log.
9425 cat conftest.err 1>&5
9426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9428 if diff conftest.exp conftest.er2 >/dev/null; then
9429 lt_cv_prog_compiler__b=yes
9431 else
9432 lt_cv_prog_compiler__b=yes
9435 $RM -r conftest*
9436 LDFLAGS="$save_LDFLAGS"
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9440 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9442 if test x"$lt_cv_prog_compiler__b" = xyes; then
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 else
9445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9449 esac
9451 if test "$with_gnu_ld" = no; then
9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9453 hardcode_libdir_separator=:
9455 case $host_cpu in
9456 hppa*64*|ia64*)
9457 hardcode_direct=no
9458 hardcode_shlibpath_var=no
9461 hardcode_direct=yes
9462 hardcode_direct_absolute=yes
9463 export_dynamic_flag_spec='${wl}-E'
9465 # hardcode_minus_L: Not really in the search PATH,
9466 # but as the default location of the library.
9467 hardcode_minus_L=yes
9469 esac
9473 irix5* | irix6* | nonstopux*)
9474 if test "$GCC" = yes; then
9475 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'
9476 # Try to use the -exported_symbol ld option, if it does not
9477 # work, assume that -exports_file does not work either and
9478 # implicitly export all symbols.
9479 save_LDFLAGS="$LDFLAGS"
9480 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 int foo(void) {}
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 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'
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 LDFLAGS="$save_LDFLAGS"
9492 else
9493 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'
9494 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'
9496 archive_cmds_need_lc='no'
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 hardcode_libdir_separator=:
9499 inherit_rpath=yes
9500 link_all_deplibs=yes
9503 netbsd*)
9504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9506 else
9507 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9509 hardcode_libdir_flag_spec='-R$libdir'
9510 hardcode_direct=yes
9511 hardcode_shlibpath_var=no
9514 newsos6)
9515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_direct=yes
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 hardcode_shlibpath_var=no
9522 *nto* | *qnx*)
9525 openbsd*)
9526 if test -f /usr/libexec/ld.so; then
9527 hardcode_direct=yes
9528 hardcode_shlibpath_var=no
9529 hardcode_direct_absolute=yes
9530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9534 export_dynamic_flag_spec='${wl}-E'
9535 else
9536 case $host_os in
9537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec='-R$libdir'
9542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9545 esac
9547 else
9548 ld_shlibs=no
9552 os2*)
9553 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_minus_L=yes
9555 allow_undefined_flag=unsupported
9556 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'
9557 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9560 osf3*)
9561 if test "$GCC" = yes; then
9562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9563 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'
9564 else
9565 allow_undefined_flag=' -expect_unresolved \*'
9566 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'
9568 archive_cmds_need_lc='no'
9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9570 hardcode_libdir_separator=:
9573 osf4* | osf5*) # as osf3* with the addition of -msym flag
9574 if test "$GCC" = yes; then
9575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9576 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'
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 else
9579 allow_undefined_flag=' -expect_unresolved \*'
9580 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'
9581 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~
9582 $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'
9584 # Both c and cxx compiler support -rpath directly
9585 hardcode_libdir_flag_spec='-rpath $libdir'
9587 archive_cmds_need_lc='no'
9588 hardcode_libdir_separator=:
9591 solaris*)
9592 no_undefined_flag=' -z defs'
9593 if test "$GCC" = yes; then
9594 wlarc='${wl}'
9595 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9597 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9598 else
9599 case `$CC -V 2>&1` in
9600 *"Compilers 5.0"*)
9601 wlarc=''
9602 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9607 wlarc='${wl}'
9608 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9612 esac
9614 hardcode_libdir_flag_spec='-R$libdir'
9615 hardcode_shlibpath_var=no
9616 case $host_os in
9617 solaris2.[0-5] | solaris2.[0-5].*) ;;
9619 # The compiler driver will combine and reorder linker options,
9620 # but understands `-z linker_flag'. GCC discards it without `$wl',
9621 # but is careful enough not to reorder.
9622 # Supported since Solaris 2.6 (maybe 2.5.1?)
9623 if test "$GCC" = yes; then
9624 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9625 else
9626 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9629 esac
9630 link_all_deplibs=yes
9633 sunos4*)
9634 if test "x$host_vendor" = xsequent; then
9635 # Use $CC to link under sequent, because it throws in some extra .o
9636 # files that make .init and .fini sections work.
9637 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638 else
9639 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_libdir_flag_spec='-L$libdir'
9642 hardcode_direct=yes
9643 hardcode_minus_L=yes
9644 hardcode_shlibpath_var=no
9647 sysv4)
9648 case $host_vendor in
9649 sni)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_direct=yes # is this really true???
9653 siemens)
9654 ## LD is ld it makes a PLAMLIB
9655 ## CC just makes a GrossModule.
9656 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9657 reload_cmds='$CC -r -o $output$reload_objs'
9658 hardcode_direct=no
9660 motorola)
9661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9664 esac
9665 runpath_var='LD_RUN_PATH'
9666 hardcode_shlibpath_var=no
9669 sysv4.3*)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_shlibpath_var=no
9672 export_dynamic_flag_spec='-Bexport'
9675 sysv4*MP*)
9676 if test -d /usr/nec; then
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_shlibpath_var=no
9679 runpath_var=LD_RUN_PATH
9680 hardcode_runpath_var=yes
9681 ld_shlibs=yes
9685 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9686 no_undefined_flag='${wl}-z,text'
9687 archive_cmds_need_lc=no
9688 hardcode_shlibpath_var=no
9689 runpath_var='LD_RUN_PATH'
9691 if test "$GCC" = yes; then
9692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 else
9695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 sysv5* | sco3.2v5* | sco5v6*)
9701 # Note: We can NOT use -z defs as we might desire, because we do not
9702 # link with -lc, and that would cause any symbols used from libc to
9703 # always be unresolved, which means just about no library would
9704 # ever link correctly. If we're not using GNU ld we use -z text
9705 # though, which does catch some bad symbols but isn't as heavy-handed
9706 # as -z defs.
9707 no_undefined_flag='${wl}-z,text'
9708 allow_undefined_flag='${wl}-z,nodefs'
9709 archive_cmds_need_lc=no
9710 hardcode_shlibpath_var=no
9711 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9712 hardcode_libdir_separator=':'
9713 link_all_deplibs=yes
9714 export_dynamic_flag_spec='${wl}-Bexport'
9715 runpath_var='LD_RUN_PATH'
9717 if test "$GCC" = yes; then
9718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 else
9721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 uts4*)
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_shlibpath_var=no
9733 ld_shlibs=no
9735 esac
9737 if test x$host_vendor = xsni; then
9738 case $host in
9739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9740 export_dynamic_flag_spec='${wl}-Blargedynsym'
9742 esac
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9747 $as_echo "$ld_shlibs" >&6; }
9748 test "$ld_shlibs" = no && can_build_shared=no
9750 with_gnu_ld=$with_gnu_ld
9767 # Do we need to explicitly link libc?
9769 case "x$archive_cmds_need_lc" in
9770 x|xyes)
9771 # Assume -lc should be added
9772 archive_cmds_need_lc=yes
9774 if test "$enable_shared" = yes && test "$GCC" = yes; then
9775 case $archive_cmds in
9776 *'~'*)
9777 # FIXME: we may have to deal with multi-command sequences.
9779 '$CC '*)
9780 # Test whether the compiler implicitly links with -lc since on some
9781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9782 # to ld, don't add -lc before -lgcc.
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9784 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9785 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 $RM conftest*
9789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9792 (eval $ac_compile) 2>&5
9793 ac_status=$?
9794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9795 test $ac_status = 0; } 2>conftest.err; then
9796 soname=conftest
9797 lib=conftest
9798 libobjs=conftest.$ac_objext
9799 deplibs=
9800 wl=$lt_prog_compiler_wl
9801 pic_flag=$lt_prog_compiler_pic
9802 compiler_flags=-v
9803 linker_flags=-v
9804 verstring=
9805 output_objdir=.
9806 libname=conftest
9807 lt_save_allow_undefined_flag=$allow_undefined_flag
9808 allow_undefined_flag=
9809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9810 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9811 ac_status=$?
9812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9813 test $ac_status = 0; }
9814 then
9815 lt_cv_archive_cmds_need_lc=no
9816 else
9817 lt_cv_archive_cmds_need_lc=yes
9819 allow_undefined_flag=$lt_save_allow_undefined_flag
9820 else
9821 cat conftest.err 1>&5
9823 $RM conftest*
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9827 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9828 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9830 esac
9833 esac
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9992 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9994 if test "$GCC" = yes; then
9995 case $host_os in
9996 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9997 *) lt_awk_arg="/^libraries:/" ;;
9998 esac
9999 case $host_os in
10000 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10001 *) lt_sed_strip_eq="s,=/,/,g" ;;
10002 esac
10003 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10004 case $lt_search_path_spec in
10005 *\;*)
10006 # if the path contains ";" then we assume it to be the separator
10007 # otherwise default to the standard path separator (i.e. ":") - it is
10008 # assumed that no part of a normal pathname contains ";" but that should
10009 # okay in the real world where ";" in dirpaths is itself problematic.
10010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10015 esac
10016 # Ok, now we have the path, separated by spaces, we can step through it
10017 # and add multilib dir if necessary.
10018 lt_tmp_lt_search_path_spec=
10019 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10020 for lt_sys_path in $lt_search_path_spec; do
10021 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10023 else
10024 test -d "$lt_sys_path" && \
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10027 done
10028 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10029 BEGIN {RS=" "; FS="/|\n";} {
10030 lt_foo="";
10031 lt_count=0;
10032 for (lt_i = NF; lt_i > 0; lt_i--) {
10033 if ($lt_i != "" && $lt_i != ".") {
10034 if ($lt_i == "..") {
10035 lt_count++;
10036 } else {
10037 if (lt_count == 0) {
10038 lt_foo="/" $lt_i lt_foo;
10039 } else {
10040 lt_count--;
10045 if (lt_foo != "") { lt_freq[lt_foo]++; }
10046 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10048 # AWK program above erroneously prepends '/' to C:/dos/paths
10049 # for these hosts.
10050 case $host_os in
10051 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10052 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10053 esac
10054 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10055 else
10056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10058 library_names_spec=
10059 libname_spec='lib$name'
10060 soname_spec=
10061 shrext_cmds=".so"
10062 postinstall_cmds=
10063 postuninstall_cmds=
10064 finish_cmds=
10065 finish_eval=
10066 shlibpath_var=
10067 shlibpath_overrides_runpath=unknown
10068 version_type=none
10069 dynamic_linker="$host_os ld.so"
10070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10071 need_lib_prefix=unknown
10072 hardcode_into_libs=no
10074 # when you set need_version to no, make sure it does not cause -set_version
10075 # flags to be left without arguments
10076 need_version=unknown
10078 case $host_os in
10079 aix3*)
10080 version_type=linux
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10082 shlibpath_var=LIBPATH
10084 # AIX 3 has no versioning support, so we append a major version to the name.
10085 soname_spec='${libname}${release}${shared_ext}$major'
10088 aix[4-9]*)
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 hardcode_into_libs=yes
10093 if test "$host_cpu" = ia64; then
10094 # AIX 5 supports IA64
10095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 else
10098 # With GCC up to 2.95.x, collect2 would create an import file
10099 # for dependence libraries. The import file would start with
10100 # the line `#! .'. This would cause the generated library to
10101 # depend on `.', always an invalid library. This was fixed in
10102 # development snapshots of GCC prior to 3.0.
10103 case $host_os in
10104 aix4 | aix4.[01] | aix4.[01].*)
10105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10106 echo ' yes '
10107 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10109 else
10110 can_build_shared=no
10113 esac
10114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10115 # soname into executable. Probably we can add versioning support to
10116 # collect2, so additional links can be useful in future.
10117 if test "$aix_use_runtimelinking" = yes; then
10118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10119 # instead of lib<name>.a to let people know that these are not
10120 # typical AIX shared libraries.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 else
10123 # We preserve .a as extension for shared libraries through AIX4.2
10124 # and later when we are not doing run time linking.
10125 library_names_spec='${libname}${release}.a $libname.a'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10128 shlibpath_var=LIBPATH
10132 amigaos*)
10133 case $host_cpu in
10134 powerpc)
10135 # Since July 2007 AmigaOS4 officially supports .so libraries.
10136 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 m68k)
10140 library_names_spec='$libname.ixlibrary $libname.a'
10141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10142 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'
10144 esac
10147 beos*)
10148 library_names_spec='${libname}${shared_ext}'
10149 dynamic_linker="$host_os ld.so"
10150 shlibpath_var=LIBRARY_PATH
10153 bsdi[45]*)
10154 version_type=linux
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10162 # the default ld.so.conf also contains /usr/contrib/lib and
10163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10164 # libtool to hard-code these into programs
10167 cygwin* | mingw* | pw32* | cegcc*)
10168 version_type=windows
10169 shrext_cmds=".dll"
10170 need_version=no
10171 need_lib_prefix=no
10173 case $GCC,$host_os in
10174 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10175 library_names_spec='$libname.dll.a'
10176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10177 postinstall_cmds='base_file=`basename \${file}`~
10178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10179 dldir=$destdir/`dirname \$dlpath`~
10180 test -d \$dldir || mkdir -p \$dldir~
10181 $install_prog $dir/$dlname \$dldir/$dlname~
10182 chmod a+x \$dldir/$dlname~
10183 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10184 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10187 dlpath=$dir/\$dldll~
10188 $RM \$dlpath'
10189 shlibpath_overrides_runpath=yes
10191 case $host_os in
10192 cygwin*)
10193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10198 mingw* | cegcc*)
10199 # MinGW DLLs use traditional 'lib' prefix
10200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 pw32*)
10203 # pw32 DLLs use 'pw' prefix rather than 'lib'
10204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10206 esac
10210 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10212 esac
10213 dynamic_linker='Win32 ld.exe'
10214 # FIXME: first we should search . and the directory the executable is in
10215 shlibpath_var=PATH
10218 darwin* | rhapsody*)
10219 dynamic_linker="$host_os dyld"
10220 version_type=darwin
10221 need_lib_prefix=no
10222 need_version=no
10223 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10224 soname_spec='${libname}${release}${major}$shared_ext'
10225 shlibpath_overrides_runpath=yes
10226 shlibpath_var=DYLD_LIBRARY_PATH
10227 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10229 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10233 dgux*)
10234 version_type=linux
10235 need_lib_prefix=no
10236 need_version=no
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10242 freebsd* | dragonfly*)
10243 # DragonFly does not have aout. When/if they implement a new
10244 # versioning mechanism, adjust this.
10245 if test -x /usr/bin/objformat; then
10246 objformat=`/usr/bin/objformat`
10247 else
10248 case $host_os in
10249 freebsd[23].*) objformat=aout ;;
10250 *) objformat=elf ;;
10251 esac
10253 version_type=freebsd-$objformat
10254 case $version_type in
10255 freebsd-elf*)
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10257 need_version=no
10258 need_lib_prefix=no
10260 freebsd-*)
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10262 need_version=yes
10264 esac
10265 shlibpath_var=LD_LIBRARY_PATH
10266 case $host_os in
10267 freebsd2.*)
10268 shlibpath_overrides_runpath=yes
10270 freebsd3.[01]* | freebsdelf3.[01]*)
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10276 shlibpath_overrides_runpath=no
10277 hardcode_into_libs=yes
10279 *) # from 4.6 on, and DragonFly
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10283 esac
10286 gnu*)
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 hardcode_into_libs=yes
10296 haiku*)
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 dynamic_linker="$host_os runtime_loader"
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LIBRARY_PATH
10304 shlibpath_overrides_runpath=yes
10305 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10306 hardcode_into_libs=yes
10309 hpux9* | hpux10* | hpux11*)
10310 # Give a soname corresponding to the major version so that dld.sl refuses to
10311 # link against other versions.
10312 version_type=sunos
10313 need_lib_prefix=no
10314 need_version=no
10315 case $host_cpu in
10316 ia64*)
10317 shrext_cmds='.so'
10318 hardcode_into_libs=yes
10319 dynamic_linker="$host_os dld.so"
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 if test "X$HPUX_IA64_MODE" = X32; then
10325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10326 else
10327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331 hppa*64*)
10332 shrext_cmds='.sl'
10333 hardcode_into_libs=yes
10334 dynamic_linker="$host_os dld.sl"
10335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 shrext_cmds='.sl'
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=SHLIB_PATH
10346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10350 esac
10351 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10352 postinstall_cmds='chmod 555 $lib'
10353 # or fails outright, so override atomically:
10354 install_override_mode=555
10357 interix[3-9]*)
10358 version_type=linux
10359 need_lib_prefix=no
10360 need_version=no
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=no
10366 hardcode_into_libs=yes
10369 irix5* | irix6* | nonstopux*)
10370 case $host_os in
10371 nonstopux*) version_type=nonstopux ;;
10373 if test "$lt_cv_prog_gnu_ld" = yes; then
10374 version_type=linux
10375 else
10376 version_type=irix
10377 fi ;;
10378 esac
10379 need_lib_prefix=no
10380 need_version=no
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10383 case $host_os in
10384 irix5* | nonstopux*)
10385 libsuff= shlibsuff=
10388 case $LD in # libtool.m4 will add one of these switches to LD
10389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10390 libsuff= shlibsuff= libmagic=32-bit;;
10391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10392 libsuff=32 shlibsuff=N32 libmagic=N32;;
10393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10395 *) libsuff= shlibsuff= libmagic=never-match;;
10396 esac
10398 esac
10399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10400 shlibpath_overrides_runpath=no
10401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10403 hardcode_into_libs=yes
10406 # No shared lib support for Linux oldld, aout, or coff.
10407 linux*oldld* | linux*aout* | linux*coff*)
10408 dynamic_linker=no
10411 # This must be Linux ELF.
10412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10413 version_type=linux
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10422 # Some binutils ld are patched to set DT_RUNPATH
10423 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 lt_cv_shlibpath_overrides_runpath=no
10427 save_LDFLAGS=$LDFLAGS
10428 save_libdir=$libdir
10429 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10430 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10435 main ()
10439 return 0;
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"; then :
10443 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10444 lt_cv_shlibpath_overrides_runpath=yes
10447 rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LDFLAGS=$save_LDFLAGS
10450 libdir=$save_libdir
10454 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10456 # This implies no fast_install, which is unacceptable.
10457 # Some rework will be needed to allow for fast_install
10458 # before this can be enabled.
10459 hardcode_into_libs=yes
10461 # Append ld.so.conf contents to the search path
10462 if test -f /etc/ld.so.conf; then
10463 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' ' '`
10464 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10467 # We used to test for /lib/ld.so.1 and disable shared libraries on
10468 # powerpc, because MkLinux only supported shared libraries with the
10469 # GNU dynamic linker. Since this was broken with cross compilers,
10470 # most powerpc-linux boxes support dynamic linking these days and
10471 # people can always --disable-shared, the test was removed, and we
10472 # assume the GNU/Linux dynamic linker is in use.
10473 dynamic_linker='GNU/Linux ld.so'
10476 netbsd*)
10477 version_type=sunos
10478 need_lib_prefix=no
10479 need_version=no
10480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10483 dynamic_linker='NetBSD (a.out) ld.so'
10484 else
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 dynamic_linker='NetBSD ld.elf_so'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=yes
10491 hardcode_into_libs=yes
10494 newsos6)
10495 version_type=linux
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10501 *nto* | *qnx*)
10502 version_type=qnx
10503 need_lib_prefix=no
10504 need_version=no
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=no
10509 hardcode_into_libs=yes
10510 dynamic_linker='ldqnx.so'
10513 openbsd*)
10514 version_type=sunos
10515 sys_lib_dlsearch_path_spec="/usr/lib"
10516 need_lib_prefix=no
10517 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10518 case $host_os in
10519 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10520 *) need_version=no ;;
10521 esac
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10526 case $host_os in
10527 openbsd2.[89] | openbsd2.[89].*)
10528 shlibpath_overrides_runpath=no
10531 shlibpath_overrides_runpath=yes
10533 esac
10534 else
10535 shlibpath_overrides_runpath=yes
10539 os2*)
10540 libname_spec='$name'
10541 shrext_cmds=".dll"
10542 need_lib_prefix=no
10543 library_names_spec='$libname${shared_ext} $libname.a'
10544 dynamic_linker='OS/2 ld.exe'
10545 shlibpath_var=LIBPATH
10548 osf3* | osf4* | osf5*)
10549 version_type=osf
10550 need_lib_prefix=no
10551 need_version=no
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10556 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10559 rdos*)
10560 dynamic_linker=no
10563 solaris*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=yes
10571 hardcode_into_libs=yes
10572 # ldd complains unless libraries are executable
10573 postinstall_cmds='chmod +x $lib'
10576 sunos4*)
10577 version_type=sunos
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10582 if test "$with_gnu_ld" = yes; then
10583 need_lib_prefix=no
10585 need_version=yes
10588 sysv4 | sysv4.3*)
10589 version_type=linux
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 case $host_vendor in
10594 sni)
10595 shlibpath_overrides_runpath=no
10596 need_lib_prefix=no
10597 runpath_var=LD_RUN_PATH
10599 siemens)
10600 need_lib_prefix=no
10602 motorola)
10603 need_lib_prefix=no
10604 need_version=no
10605 shlibpath_overrides_runpath=no
10606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10608 esac
10611 sysv4*MP*)
10612 if test -d /usr/nec ;then
10613 version_type=linux
10614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10615 soname_spec='$libname${shared_ext}.$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10621 version_type=freebsd-elf
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=yes
10628 hardcode_into_libs=yes
10629 if test "$with_gnu_ld" = yes; then
10630 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10631 else
10632 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10633 case $host_os in
10634 sco3.2v5*)
10635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10637 esac
10639 sys_lib_dlsearch_path_spec='/usr/lib'
10642 tpf*)
10643 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10644 version_type=linux
10645 need_lib_prefix=no
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=no
10650 hardcode_into_libs=yes
10653 uts4*)
10654 version_type=linux
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 shlibpath_var=LD_LIBRARY_PATH
10661 dynamic_linker=no
10663 esac
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10665 $as_echo "$dynamic_linker" >&6; }
10666 test "$dynamic_linker" = no && can_build_shared=no
10668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10669 if test "$GCC" = yes; then
10670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10673 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10674 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10676 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10677 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10772 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10773 hardcode_action=
10774 if test -n "$hardcode_libdir_flag_spec" ||
10775 test -n "$runpath_var" ||
10776 test "X$hardcode_automatic" = "Xyes" ; then
10778 # We can hardcode non-existent directories.
10779 if test "$hardcode_direct" != no &&
10780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10781 # have to relink, otherwise we might link with an installed library
10782 # when we should be linking with a yet-to-be-installed one
10783 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10784 test "$hardcode_minus_L" != no; then
10785 # Linking always hardcodes the temporary library directory.
10786 hardcode_action=relink
10787 else
10788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10789 hardcode_action=immediate
10791 else
10792 # We cannot hardcode anything, or else we can only hardcode existing
10793 # directories.
10794 hardcode_action=unsupported
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10797 $as_echo "$hardcode_action" >&6; }
10799 if test "$hardcode_action" = relink ||
10800 test "$inherit_rpath" = yes; then
10801 # Fast installation is not supported
10802 enable_fast_install=no
10803 elif test "$shlibpath_overrides_runpath" = yes ||
10804 test "$enable_shared" = no; then
10805 # Fast installation is not necessary
10806 enable_fast_install=needless
10814 if test "x$enable_dlopen" != xyes; then
10815 enable_dlopen=unknown
10816 enable_dlopen_self=unknown
10817 enable_dlopen_self_static=unknown
10818 else
10819 lt_cv_dlopen=no
10820 lt_cv_dlopen_libs=
10822 case $host_os in
10823 beos*)
10824 lt_cv_dlopen="load_add_on"
10825 lt_cv_dlopen_libs=
10826 lt_cv_dlopen_self=yes
10829 mingw* | pw32* | cegcc*)
10830 lt_cv_dlopen="LoadLibrary"
10831 lt_cv_dlopen_libs=
10834 cygwin*)
10835 lt_cv_dlopen="dlopen"
10836 lt_cv_dlopen_libs=
10839 darwin*)
10840 # if libdl is installed we need to link against it
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10842 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-ldl $LIBS"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char dlopen ();
10859 main ()
10861 return dlopen ();
10863 return 0;
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 ac_cv_lib_dl_dlopen=yes
10868 else
10869 ac_cv_lib_dl_dlopen=no
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10876 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10877 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10879 else
10881 lt_cv_dlopen="dyld"
10882 lt_cv_dlopen_libs=
10883 lt_cv_dlopen_self=yes
10890 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10891 if test "x$ac_cv_func_shl_load" = x""yes; then :
10892 lt_cv_dlopen="shl_load"
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10895 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10896 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-ldld $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char shl_load ();
10912 main ()
10914 return shl_load ();
10916 return 0;
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 ac_cv_lib_dld_shl_load=yes
10921 else
10922 ac_cv_lib_dld_shl_load=no
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10929 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10930 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10931 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10932 else
10933 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10934 if test "x$ac_cv_func_dlopen" = x""yes; then :
10935 lt_cv_dlopen="dlopen"
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10938 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10939 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-ldl $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 char dlopen ();
10955 main ()
10957 return dlopen ();
10959 return 0;
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_dl_dlopen=yes
10964 else
10965 ac_cv_lib_dl_dlopen=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10973 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10977 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-lsvld $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dlopen ();
10994 main ()
10996 return dlopen ();
10998 return 0;
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_lib_svld_dlopen=yes
11003 else
11004 ac_cv_lib_svld_dlopen=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11011 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11012 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11016 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-ldld $LIBS"
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 char dld_link ();
11033 main ()
11035 return dld_link ();
11037 return 0;
11039 _ACEOF
11040 if ac_fn_c_try_link "$LINENO"; then :
11041 ac_cv_lib_dld_dld_link=yes
11042 else
11043 ac_cv_lib_dld_dld_link=no
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11050 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11051 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11052 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11071 esac
11073 if test "x$lt_cv_dlopen" != xno; then
11074 enable_dlopen=yes
11075 else
11076 enable_dlopen=no
11079 case $lt_cv_dlopen in
11080 dlopen)
11081 save_CPPFLAGS="$CPPFLAGS"
11082 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11084 save_LDFLAGS="$LDFLAGS"
11085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11087 save_LIBS="$LIBS"
11088 LIBS="$lt_cv_dlopen_libs $LIBS"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11091 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11092 if test "${lt_cv_dlopen_self+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 if test "$cross_compiling" = yes; then :
11096 lt_cv_dlopen_self=cross
11097 else
11098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11099 lt_status=$lt_dlunknown
11100 cat > conftest.$ac_ext <<_LT_EOF
11101 #line 11101 "configure"
11102 #include "confdefs.h"
11104 #if HAVE_DLFCN_H
11105 #include <dlfcn.h>
11106 #endif
11108 #include <stdio.h>
11110 #ifdef RTLD_GLOBAL
11111 # define LT_DLGLOBAL RTLD_GLOBAL
11112 #else
11113 # ifdef DL_GLOBAL
11114 # define LT_DLGLOBAL DL_GLOBAL
11115 # else
11116 # define LT_DLGLOBAL 0
11117 # endif
11118 #endif
11120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11121 find out it does not work in some platform. */
11122 #ifndef LT_DLLAZY_OR_NOW
11123 # ifdef RTLD_LAZY
11124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11125 # else
11126 # ifdef DL_LAZY
11127 # define LT_DLLAZY_OR_NOW DL_LAZY
11128 # else
11129 # ifdef RTLD_NOW
11130 # define LT_DLLAZY_OR_NOW RTLD_NOW
11131 # else
11132 # ifdef DL_NOW
11133 # define LT_DLLAZY_OR_NOW DL_NOW
11134 # else
11135 # define LT_DLLAZY_OR_NOW 0
11136 # endif
11137 # endif
11138 # endif
11139 # endif
11140 #endif
11142 /* When -fvisbility=hidden is used, assume the code has been annotated
11143 correspondingly for the symbols needed. */
11144 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11145 void fnord () __attribute__((visibility("default")));
11146 #endif
11148 void fnord () { int i=42; }
11149 int main ()
11151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11152 int status = $lt_dlunknown;
11154 if (self)
11156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11157 else
11159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11160 else puts (dlerror ());
11162 /* dlclose (self); */
11164 else
11165 puts (dlerror ());
11167 return status;
11169 _LT_EOF
11170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11171 (eval $ac_link) 2>&5
11172 ac_status=$?
11173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11174 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11175 (./conftest; exit; ) >&5 2>/dev/null
11176 lt_status=$?
11177 case x$lt_status in
11178 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11179 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11180 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11181 esac
11182 else :
11183 # compilation failed
11184 lt_cv_dlopen_self=no
11187 rm -fr conftest*
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11192 $as_echo "$lt_cv_dlopen_self" >&6; }
11194 if test "x$lt_cv_dlopen_self" = xyes; then
11195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11197 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11198 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 if test "$cross_compiling" = yes; then :
11202 lt_cv_dlopen_self_static=cross
11203 else
11204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11205 lt_status=$lt_dlunknown
11206 cat > conftest.$ac_ext <<_LT_EOF
11207 #line 11207 "configure"
11208 #include "confdefs.h"
11210 #if HAVE_DLFCN_H
11211 #include <dlfcn.h>
11212 #endif
11214 #include <stdio.h>
11216 #ifdef RTLD_GLOBAL
11217 # define LT_DLGLOBAL RTLD_GLOBAL
11218 #else
11219 # ifdef DL_GLOBAL
11220 # define LT_DLGLOBAL DL_GLOBAL
11221 # else
11222 # define LT_DLGLOBAL 0
11223 # endif
11224 #endif
11226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11227 find out it does not work in some platform. */
11228 #ifndef LT_DLLAZY_OR_NOW
11229 # ifdef RTLD_LAZY
11230 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11231 # else
11232 # ifdef DL_LAZY
11233 # define LT_DLLAZY_OR_NOW DL_LAZY
11234 # else
11235 # ifdef RTLD_NOW
11236 # define LT_DLLAZY_OR_NOW RTLD_NOW
11237 # else
11238 # ifdef DL_NOW
11239 # define LT_DLLAZY_OR_NOW DL_NOW
11240 # else
11241 # define LT_DLLAZY_OR_NOW 0
11242 # endif
11243 # endif
11244 # endif
11245 # endif
11246 #endif
11248 /* When -fvisbility=hidden is used, assume the code has been annotated
11249 correspondingly for the symbols needed. */
11250 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11251 void fnord () __attribute__((visibility("default")));
11252 #endif
11254 void fnord () { int i=42; }
11255 int main ()
11257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11258 int status = $lt_dlunknown;
11260 if (self)
11262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11263 else
11265 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11266 else puts (dlerror ());
11268 /* dlclose (self); */
11270 else
11271 puts (dlerror ());
11273 return status;
11275 _LT_EOF
11276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11277 (eval $ac_link) 2>&5
11278 ac_status=$?
11279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11280 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11281 (./conftest; exit; ) >&5 2>/dev/null
11282 lt_status=$?
11283 case x$lt_status in
11284 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11285 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11286 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11287 esac
11288 else :
11289 # compilation failed
11290 lt_cv_dlopen_self_static=no
11293 rm -fr conftest*
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11298 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11301 CPPFLAGS="$save_CPPFLAGS"
11302 LDFLAGS="$save_LDFLAGS"
11303 LIBS="$save_LIBS"
11305 esac
11307 case $lt_cv_dlopen_self in
11308 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11309 *) enable_dlopen_self=unknown ;;
11310 esac
11312 case $lt_cv_dlopen_self_static in
11313 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11314 *) enable_dlopen_self_static=unknown ;;
11315 esac
11334 striplib=
11335 old_striplib=
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11337 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11338 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 else
11344 # FIXME - insert some real tests, host_os isn't really good enough
11345 case $host_os in
11346 darwin*)
11347 if test -n "$STRIP" ; then
11348 striplib="$STRIP -x"
11349 old_striplib="$STRIP -S"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11361 esac
11375 # Report which library types will actually be built
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11377 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11379 $as_echo "$can_build_shared" >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11382 $as_echo_n "checking whether to build shared libraries... " >&6; }
11383 test "$can_build_shared" = "no" && enable_shared=no
11385 # On AIX, shared libraries and static libraries use the same namespace, and
11386 # are all built from PIC.
11387 case $host_os in
11388 aix3*)
11389 test "$enable_shared" = yes && enable_static=no
11390 if test -n "$RANLIB"; then
11391 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11392 postinstall_cmds='$RANLIB $lib'
11396 aix[4-9]*)
11397 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11398 test "$enable_shared" = yes && enable_static=no
11401 esac
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11403 $as_echo "$enable_shared" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11406 $as_echo_n "checking whether to build static libraries... " >&6; }
11407 # Make sure either enable_shared or enable_static is yes.
11408 test "$enable_shared" = yes || enable_static=yes
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11410 $as_echo "$enable_static" >&6; }
11416 ac_ext=c
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11422 CC="$lt_save_CC"
11436 # Source file extension for Go test sources.
11437 ac_ext=go
11439 # Object file extension for compiled Go test sources.
11440 objext=o
11441 objext_GO=$objext
11443 # Code to be used in simple compile tests
11444 lt_simple_compile_test_code="package main; func main() { }"
11446 # Code to be used in simple link tests
11447 lt_simple_link_test_code='package main; func main() { }'
11449 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11456 # If no C compiler was specified, use CC.
11457 LTCC=${LTCC-"$CC"}
11459 # If no C compiler flags were specified, use CFLAGS.
11460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11462 # Allow CC to be a program name with arguments.
11463 compiler=$CC
11466 # save warnings/boilerplate of simple test code
11467 ac_outfile=conftest.$ac_objext
11468 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11469 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11470 _lt_compiler_boilerplate=`cat conftest.err`
11471 $RM conftest*
11473 ac_outfile=conftest.$ac_objext
11474 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11475 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11476 _lt_linker_boilerplate=`cat conftest.err`
11477 $RM -r conftest*
11480 # Allow CC to be a program name with arguments.
11481 lt_save_CC="$CC"
11482 lt_save_GCC="$GCC"
11483 GCC=yes
11484 CC=${GOC-"gccgo"}
11485 compiler=$CC
11486 compiler_GO=$CC
11487 LD_GO="$LD"
11488 for cc_temp in $compiler""; do
11489 case $cc_temp in
11490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11492 \-*) ;;
11493 *) break;;
11494 esac
11495 done
11496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11499 # Go did not exist at the time GCC didn't implicitly link libc in.
11500 archive_cmds_need_lc_GO=no
11502 old_archive_cmds_GO=$old_archive_cmds
11504 ## CAVEAT EMPTOR:
11505 ## There is no encapsulation within the following macros, do not change
11506 ## the running order or otherwise move them around unless you know exactly
11507 ## what you are doing...
11508 if test -n "$compiler"; then
11510 lt_prog_compiler_no_builtin_flag_GO=
11512 if test "$GCC" = yes; then
11513 case $cc_basename in
11514 nvcc*)
11515 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11517 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11518 esac
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11521 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 lt_cv_prog_compiler_rtti_exceptions=no
11526 ac_outfile=conftest.$ac_objext
11527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11528 lt_compiler_flag="-fno-rtti -fno-exceptions"
11529 # Insert the option either (1) after the last *FLAGS variable, or
11530 # (2) before a word containing "conftest.", or (3) at the end.
11531 # Note that $ac_compile itself does not contain backslashes and begins
11532 # with a dollar sign (not a hyphen), so the echo should work correctly.
11533 # The option is referenced via a variable to avoid confusing sed.
11534 lt_compile=`echo "$ac_compile" | $SED \
11535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11537 -e 's:$: $lt_compiler_flag:'`
11538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11539 (eval "$lt_compile" 2>conftest.err)
11540 ac_status=$?
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 if (exit $ac_status) && test -s "$ac_outfile"; then
11544 # The compiler can only warn and ignore the option if not recognized
11545 # So say no if there are warnings other than the usual output.
11546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11549 lt_cv_prog_compiler_rtti_exceptions=yes
11552 $RM conftest*
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11556 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11559 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11560 else
11568 lt_prog_compiler_wl_GO=
11569 lt_prog_compiler_pic_GO=
11570 lt_prog_compiler_static_GO=
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11573 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11575 if test "$GCC" = yes; then
11576 lt_prog_compiler_wl_GO='-Wl,'
11577 lt_prog_compiler_static_GO='-static'
11579 case $host_os in
11580 aix*)
11581 # All AIX code is PIC.
11582 if test "$host_cpu" = ia64; then
11583 # AIX 5 now supports IA64 processor
11584 lt_prog_compiler_static_GO='-Bstatic'
11586 lt_prog_compiler_pic_GO='-fPIC'
11589 amigaos*)
11590 case $host_cpu in
11591 powerpc)
11592 # see comment about AmigaOS4 .so support
11593 lt_prog_compiler_pic_GO='-fPIC'
11595 m68k)
11596 # FIXME: we need at least 68020 code to build shared libraries, but
11597 # adding the `-m68020' flag to GCC prevents building anything better,
11598 # like `-m68040'.
11599 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11601 esac
11604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11605 # PIC is the default for these OSes.
11608 mingw* | cygwin* | pw32* | os2* | cegcc*)
11609 # This hack is so that the source file can tell whether it is being
11610 # built for inclusion in a dll (and should export symbols for example).
11611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11612 # (--disable-auto-import) libraries
11613 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11616 darwin* | rhapsody*)
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 lt_prog_compiler_pic_GO='-fno-common'
11622 haiku*)
11623 # PIC is the default for Haiku.
11624 # The "-static" flag exists, but is broken.
11625 lt_prog_compiler_static_GO=
11628 hpux*)
11629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11631 # sets the default TLS model and affects inlining.
11632 case $host_cpu in
11633 hppa*64*)
11634 # +Z the default
11637 lt_prog_compiler_pic_GO='-fPIC'
11639 esac
11642 interix[3-9]*)
11643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11644 # Instead, we relocate shared libraries at runtime.
11647 msdosdjgpp*)
11648 # Just because we use GCC doesn't mean we suddenly get shared libraries
11649 # on systems that don't support them.
11650 lt_prog_compiler_can_build_shared_GO=no
11651 enable_shared=no
11654 *nto* | *qnx*)
11655 # QNX uses GNU C++, but need to define -shared option too, otherwise
11656 # it will coredump.
11657 lt_prog_compiler_pic_GO='-fPIC -shared'
11660 sysv4*MP*)
11661 if test -d /usr/nec; then
11662 lt_prog_compiler_pic_GO=-Kconform_pic
11667 lt_prog_compiler_pic_GO='-fPIC'
11669 esac
11671 case $cc_basename in
11672 nvcc*) # Cuda Compiler Driver 2.2
11673 lt_prog_compiler_wl_GO='-Xlinker '
11674 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11676 esac
11677 else
11678 # PORTME Check for flag to pass linker flags through the system compiler.
11679 case $host_os in
11680 aix*)
11681 lt_prog_compiler_wl_GO='-Wl,'
11682 if test "$host_cpu" = ia64; then
11683 # AIX 5 now supports IA64 processor
11684 lt_prog_compiler_static_GO='-Bstatic'
11685 else
11686 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11690 mingw* | cygwin* | pw32* | os2* | cegcc*)
11691 # This hack is so that the source file can tell whether it is being
11692 # built for inclusion in a dll (and should export symbols for example).
11693 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11696 hpux9* | hpux10* | hpux11*)
11697 lt_prog_compiler_wl_GO='-Wl,'
11698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11699 # not for PA HP-UX.
11700 case $host_cpu in
11701 hppa*64*|ia64*)
11702 # +Z the default
11705 lt_prog_compiler_pic_GO='+Z'
11707 esac
11708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11709 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11712 irix5* | irix6* | nonstopux*)
11713 lt_prog_compiler_wl_GO='-Wl,'
11714 # PIC (with -KPIC) is the default.
11715 lt_prog_compiler_static_GO='-non_shared'
11718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11719 case $cc_basename in
11720 # old Intel for x86_64 which still supported -KPIC.
11721 ecc*)
11722 lt_prog_compiler_wl_GO='-Wl,'
11723 lt_prog_compiler_pic_GO='-KPIC'
11724 lt_prog_compiler_static_GO='-static'
11726 # icc used to be incompatible with GCC.
11727 # ICC 10 doesn't accept -KPIC any more.
11728 icc* | ifort*)
11729 lt_prog_compiler_wl_GO='-Wl,'
11730 lt_prog_compiler_pic_GO='-fPIC'
11731 lt_prog_compiler_static_GO='-static'
11733 # Lahey Fortran 8.1.
11734 lf95*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 lt_prog_compiler_pic_GO='--shared'
11737 lt_prog_compiler_static_GO='--static'
11739 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11740 # Portland Group compilers (*not* the Pentium gcc compiler,
11741 # which looks to be a dead project)
11742 lt_prog_compiler_wl_GO='-Wl,'
11743 lt_prog_compiler_pic_GO='-fpic'
11744 lt_prog_compiler_static_GO='-Bstatic'
11746 ccc*)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 # All Alpha code is PIC.
11749 lt_prog_compiler_static_GO='-non_shared'
11751 xl* | bgxl* | bgf* | mpixl*)
11752 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11753 lt_prog_compiler_wl_GO='-Wl,'
11754 lt_prog_compiler_pic_GO='-qpic'
11755 lt_prog_compiler_static_GO='-qstaticlink'
11758 case `$CC -V 2>&1 | sed 5q` in
11759 *Sun\ F* | *Sun*Fortran*)
11760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11761 lt_prog_compiler_pic_GO='-KPIC'
11762 lt_prog_compiler_static_GO='-Bstatic'
11763 lt_prog_compiler_wl_GO=''
11765 *Sun\ C*)
11766 # Sun C 5.9
11767 lt_prog_compiler_pic_GO='-KPIC'
11768 lt_prog_compiler_static_GO='-Bstatic'
11769 lt_prog_compiler_wl_GO='-Wl,'
11771 esac
11773 esac
11776 newsos6)
11777 lt_prog_compiler_pic_GO='-KPIC'
11778 lt_prog_compiler_static_GO='-Bstatic'
11781 *nto* | *qnx*)
11782 # QNX uses GNU C++, but need to define -shared option too, otherwise
11783 # it will coredump.
11784 lt_prog_compiler_pic_GO='-fPIC -shared'
11787 osf3* | osf4* | osf5*)
11788 lt_prog_compiler_wl_GO='-Wl,'
11789 # All OSF/1 code is PIC.
11790 lt_prog_compiler_static_GO='-non_shared'
11793 rdos*)
11794 lt_prog_compiler_static_GO='-non_shared'
11797 solaris*)
11798 lt_prog_compiler_pic_GO='-KPIC'
11799 lt_prog_compiler_static_GO='-Bstatic'
11800 case $cc_basename in
11801 f77* | f90* | f95*)
11802 lt_prog_compiler_wl_GO='-Qoption ld ';;
11804 lt_prog_compiler_wl_GO='-Wl,';;
11805 esac
11808 sunos4*)
11809 lt_prog_compiler_wl_GO='-Qoption ld '
11810 lt_prog_compiler_pic_GO='-PIC'
11811 lt_prog_compiler_static_GO='-Bstatic'
11814 sysv4 | sysv4.2uw2* | sysv4.3*)
11815 lt_prog_compiler_wl_GO='-Wl,'
11816 lt_prog_compiler_pic_GO='-KPIC'
11817 lt_prog_compiler_static_GO='-Bstatic'
11820 sysv4*MP*)
11821 if test -d /usr/nec ;then
11822 lt_prog_compiler_pic_GO='-Kconform_pic'
11823 lt_prog_compiler_static_GO='-Bstatic'
11827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11828 lt_prog_compiler_wl_GO='-Wl,'
11829 lt_prog_compiler_pic_GO='-KPIC'
11830 lt_prog_compiler_static_GO='-Bstatic'
11833 unicos*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_can_build_shared_GO=no
11838 uts4*)
11839 lt_prog_compiler_pic_GO='-pic'
11840 lt_prog_compiler_static_GO='-Bstatic'
11844 lt_prog_compiler_can_build_shared_GO=no
11846 esac
11849 case $host_os in
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11851 *djgpp*)
11852 lt_prog_compiler_pic_GO=
11855 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11857 esac
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11859 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11864 # Check to make sure the PIC flag actually works.
11866 if test -n "$lt_prog_compiler_pic_GO"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11869 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 lt_cv_prog_compiler_pic_works_GO=no
11873 ac_outfile=conftest.$ac_objext
11874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11875 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11876 # Insert the option either (1) after the last *FLAGS variable, or
11877 # (2) before a word containing "conftest.", or (3) at the end.
11878 # Note that $ac_compile itself does not contain backslashes and begins
11879 # with a dollar sign (not a hyphen), so the echo should work correctly.
11880 # The option is referenced via a variable to avoid confusing sed.
11881 lt_compile=`echo "$ac_compile" | $SED \
11882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11884 -e 's:$: $lt_compiler_flag:'`
11885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11886 (eval "$lt_compile" 2>conftest.err)
11887 ac_status=$?
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 if (exit $ac_status) && test -s "$ac_outfile"; then
11891 # The compiler can only warn and ignore the option if not recognized
11892 # So say no if there are warnings other than the usual output.
11893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11896 lt_cv_prog_compiler_pic_works_GO=yes
11899 $RM conftest*
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11903 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11905 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11906 case $lt_prog_compiler_pic_GO in
11907 "" | " "*) ;;
11908 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11909 esac
11910 else
11911 lt_prog_compiler_pic_GO=
11912 lt_prog_compiler_can_build_shared_GO=no
11920 # Check to make sure the static flag actually works.
11922 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11925 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 lt_cv_prog_compiler_static_works_GO=no
11929 save_LDFLAGS="$LDFLAGS"
11930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11933 # The linker can only warn and ignore the option if not recognized
11934 # So say no if there are warnings
11935 if test -s conftest.err; then
11936 # Append any errors to the config.log.
11937 cat conftest.err 1>&5
11938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11940 if diff conftest.exp conftest.er2 >/dev/null; then
11941 lt_cv_prog_compiler_static_works_GO=yes
11943 else
11944 lt_cv_prog_compiler_static_works_GO=yes
11947 $RM -r conftest*
11948 LDFLAGS="$save_LDFLAGS"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11952 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11954 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11956 else
11957 lt_prog_compiler_static_GO=
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11965 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 lt_cv_prog_compiler_c_o_GO=no
11969 $RM -r conftest 2>/dev/null
11970 mkdir conftest
11971 cd conftest
11972 mkdir out
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11975 lt_compiler_flag="-o out/conftest2.$ac_objext"
11976 # Insert the option either (1) after the last *FLAGS variable, or
11977 # (2) before a word containing "conftest.", or (3) at the end.
11978 # Note that $ac_compile itself does not contain backslashes and begins
11979 # with a dollar sign (not a hyphen), so the echo should work correctly.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>out/conftest.err)
11986 ac_status=$?
11987 cat out/conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11990 then
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings
11993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11996 lt_cv_prog_compiler_c_o_GO=yes
11999 chmod u+w . 2>&5
12000 $RM conftest*
12001 # SGI C++ compiler will create directory out/ii_files/ for
12002 # template instantiation
12003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12004 $RM out/* && rmdir out
12005 cd ..
12006 $RM -r conftest
12007 $RM conftest*
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12011 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 lt_cv_prog_compiler_c_o_GO=no
12021 $RM -r conftest 2>/dev/null
12022 mkdir conftest
12023 cd conftest
12024 mkdir out
12025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027 lt_compiler_flag="-o out/conftest2.$ac_objext"
12028 # Insert the option either (1) after the last *FLAGS variable, or
12029 # (2) before a word containing "conftest.", or (3) at the end.
12030 # Note that $ac_compile itself does not contain backslashes and begins
12031 # with a dollar sign (not a hyphen), so the echo should work correctly.
12032 lt_compile=`echo "$ac_compile" | $SED \
12033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12035 -e 's:$: $lt_compiler_flag:'`
12036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12037 (eval "$lt_compile" 2>out/conftest.err)
12038 ac_status=$?
12039 cat out/conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12042 then
12043 # The compiler can only warn and ignore the option if not recognized
12044 # So say no if there are warnings
12045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12048 lt_cv_prog_compiler_c_o_GO=yes
12051 chmod u+w . 2>&5
12052 $RM conftest*
12053 # SGI C++ compiler will create directory out/ii_files/ for
12054 # template instantiation
12055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12056 $RM out/* && rmdir out
12057 cd ..
12058 $RM -r conftest
12059 $RM conftest*
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12063 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12068 hard_links="nottested"
12069 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12070 # do not overwrite the value of need_locks provided by the user
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12072 $as_echo_n "checking if we can lock with hard links... " >&6; }
12073 hard_links=yes
12074 $RM conftest*
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076 touch conftest.a
12077 ln conftest.a conftest.b 2>&5 || hard_links=no
12078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12080 $as_echo "$hard_links" >&6; }
12081 if test "$hard_links" = no; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12084 need_locks=warn
12086 else
12087 need_locks=no
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12095 runpath_var=
12096 allow_undefined_flag_GO=
12097 always_export_symbols_GO=no
12098 archive_cmds_GO=
12099 archive_expsym_cmds_GO=
12100 compiler_needs_object_GO=no
12101 enable_shared_with_static_runtimes_GO=no
12102 export_dynamic_flag_spec_GO=
12103 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12104 hardcode_automatic_GO=no
12105 hardcode_direct_GO=no
12106 hardcode_direct_absolute_GO=no
12107 hardcode_libdir_flag_spec_GO=
12108 hardcode_libdir_flag_spec_ld_GO=
12109 hardcode_libdir_separator_GO=
12110 hardcode_minus_L_GO=no
12111 hardcode_shlibpath_var_GO=unsupported
12112 inherit_rpath_GO=no
12113 link_all_deplibs_GO=unknown
12114 module_cmds_GO=
12115 module_expsym_cmds_GO=
12116 old_archive_from_new_cmds_GO=
12117 old_archive_from_expsyms_cmds_GO=
12118 thread_safe_flag_spec_GO=
12119 whole_archive_flag_spec_GO=
12120 # include_expsyms should be a list of space-separated symbols to be *always*
12121 # included in the symbol list
12122 include_expsyms_GO=
12123 # exclude_expsyms can be an extended regexp of symbols to exclude
12124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12126 # as well as any symbol that contains `d'.
12127 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12129 # platforms (ab)use it in PIC code, but their linkers get confused if
12130 # the symbol is explicitly referenced. Since portable code cannot
12131 # rely on this symbol name, it's probably fine to never include it in
12132 # preloaded symbol tables.
12133 # Exclude shared library initialization/finalization symbols.
12134 extract_expsyms_cmds=
12136 case $host_os in
12137 cygwin* | mingw* | pw32* | cegcc*)
12138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12139 # When not using gcc, we currently assume that we are using
12140 # Microsoft Visual C++.
12141 if test "$GCC" != yes; then
12142 with_gnu_ld=no
12145 interix*)
12146 # we just hope/assume this is gcc and not c89 (= MSVC++)
12147 with_gnu_ld=yes
12149 openbsd*)
12150 with_gnu_ld=no
12152 esac
12154 ld_shlibs_GO=yes
12156 # On some targets, GNU ld is compatible enough with the native linker
12157 # that we're better off using the native interface for both.
12158 lt_use_gnu_ld_interface=no
12159 if test "$with_gnu_ld" = yes; then
12160 case $host_os in
12161 aix*)
12162 # The AIX port of GNU ld has always aspired to compatibility
12163 # with the native linker. However, as the warning in the GNU ld
12164 # block says, versions before 2.19.5* couldn't really create working
12165 # shared libraries, regardless of the interface used.
12166 case `$LD -v 2>&1` in
12167 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12168 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12169 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12171 lt_use_gnu_ld_interface=yes
12173 esac
12176 lt_use_gnu_ld_interface=yes
12178 esac
12181 if test "$lt_use_gnu_ld_interface" = yes; then
12182 # If archive_cmds runs LD, not CC, wlarc should be empty
12183 wlarc='${wl}'
12185 # Set some defaults for GNU ld with shared library support. These
12186 # are reset later if shared libraries are not supported. Putting them
12187 # here allows them to be overridden if necessary.
12188 runpath_var=LD_RUN_PATH
12189 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12190 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12191 # ancient GNU ld didn't support --whole-archive et. al.
12192 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12193 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12194 else
12195 whole_archive_flag_spec_GO=
12197 supports_anon_versioning=no
12198 case `$LD -v 2>&1` in
12199 *GNU\ gold*) supports_anon_versioning=yes ;;
12200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12203 *\ 2.11.*) ;; # other 2.11 versions
12204 *) supports_anon_versioning=yes ;;
12205 esac
12207 # See if GNU ld supports shared libraries.
12208 case $host_os in
12209 aix[3-9]*)
12210 # On AIX/PPC, the GNU linker is very broken
12211 if test "$host_cpu" != ia64; then
12212 ld_shlibs_GO=no
12213 cat <<_LT_EOF 1>&2
12215 *** Warning: the GNU linker, at least up to release 2.19, is reported
12216 *** to be unable to reliably create shared libraries on AIX.
12217 *** Therefore, libtool is disabling shared libraries support. If you
12218 *** really care for shared libraries, you may want to install binutils
12219 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12220 *** You will then need to restart the configuration process.
12222 _LT_EOF
12226 amigaos*)
12227 case $host_cpu in
12228 powerpc)
12229 # see comment about AmigaOS4 .so support
12230 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 archive_expsym_cmds_GO=''
12233 m68k)
12234 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)'
12235 hardcode_libdir_flag_spec_GO='-L$libdir'
12236 hardcode_minus_L_GO=yes
12238 esac
12241 beos*)
12242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12243 allow_undefined_flag_GO=unsupported
12244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12245 # support --undefined. This deserves some investigation. FIXME
12246 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 else
12248 ld_shlibs_GO=no
12252 cygwin* | mingw* | pw32* | cegcc*)
12253 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12254 # as there is no search path for DLLs.
12255 hardcode_libdir_flag_spec_GO='-L$libdir'
12256 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12257 allow_undefined_flag_GO=unsupported
12258 always_export_symbols_GO=no
12259 enable_shared_with_static_runtimes_GO=yes
12260 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12263 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12264 # If the export-symbols file already is a .def file (1st line
12265 # is EXPORTS), use it as is; otherwise, prepend...
12266 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12267 cp $export_symbols $output_objdir/$soname.def;
12268 else
12269 echo EXPORTS > $output_objdir/$soname.def;
12270 cat $export_symbols >> $output_objdir/$soname.def;
12272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12273 else
12274 ld_shlibs_GO=no
12278 haiku*)
12279 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 link_all_deplibs_GO=yes
12283 interix[3-9]*)
12284 hardcode_direct_GO=no
12285 hardcode_shlibpath_var_GO=no
12286 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec_GO='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 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'
12295 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'
12298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12299 tmp_diet=no
12300 if test "$host_os" = linux-dietlibc; then
12301 case $cc_basename in
12302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12303 esac
12305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12306 && test "$tmp_diet" = no
12307 then
12308 tmp_addflag=
12309 tmp_sharedflag='-shared'
12310 case $cc_basename,$host_cpu in
12311 pgcc*) # Portland Group C compiler
12312 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'
12313 tmp_addflag=' $pic_flag'
12315 pgf77* | pgf90* | pgf95* | pgfortran*)
12316 # Portland Group f77 and f90 compilers
12317 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'
12318 tmp_addflag=' $pic_flag -Mnomain' ;;
12319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12320 tmp_addflag=' -i_dynamic' ;;
12321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12322 tmp_addflag=' -i_dynamic -nofor_main' ;;
12323 ifc* | ifort*) # Intel Fortran compiler
12324 tmp_addflag=' -nofor_main' ;;
12325 lf95*) # Lahey Fortran 8.1
12326 whole_archive_flag_spec_GO=
12327 tmp_sharedflag='--shared' ;;
12328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12329 tmp_sharedflag='-qmkshrobj'
12330 tmp_addflag= ;;
12331 nvcc*) # Cuda Compiler Driver 2.2
12332 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12333 compiler_needs_object_GO=yes
12335 esac
12336 case `$CC -V 2>&1 | sed 5q` in
12337 *Sun\ C*) # Sun C 5.9
12338 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'
12339 compiler_needs_object_GO=yes
12340 tmp_sharedflag='-G' ;;
12341 *Sun\ F*) # Sun Fortran 8.3
12342 tmp_sharedflag='-G' ;;
12343 esac
12344 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346 if test "x$supports_anon_versioning" = xyes; then
12347 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 case $cc_basename in
12354 xlf* | bgf* | bgxlf* | mpixlf*)
12355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12356 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12357 hardcode_libdir_flag_spec_GO=
12358 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12359 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12360 if test "x$supports_anon_versioning" = xyes; then
12361 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12363 echo "local: *; };" >> $output_objdir/$libname.ver~
12364 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12367 esac
12368 else
12369 ld_shlibs_GO=no
12373 netbsd*)
12374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12375 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12376 wlarc=
12377 else
12378 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12379 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12383 solaris*)
12384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12385 ld_shlibs_GO=no
12386 cat <<_LT_EOF 1>&2
12388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12389 *** create shared libraries on Solaris systems. Therefore, libtool
12390 *** is disabling shared libraries support. We urge you to upgrade GNU
12391 *** binutils to release 2.9.1 or newer. Another option is to modify
12392 *** your PATH or compiler configuration so that the native linker is
12393 *** used, and then restart.
12395 _LT_EOF
12396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12397 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 else
12400 ld_shlibs_GO=no
12404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12405 case `$LD -v 2>&1` in
12406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12407 ld_shlibs_GO=no
12408 cat <<_LT_EOF 1>&2
12410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12411 *** reliably create shared libraries on SCO systems. Therefore, libtool
12412 *** is disabling shared libraries support. We urge you to upgrade GNU
12413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12414 *** your PATH or compiler configuration so that the native linker is
12415 *** used, and then restart.
12417 _LT_EOF
12420 # For security reasons, it is highly recommended that you always
12421 # use absolute paths for naming shared libraries, and exclude the
12422 # DT_RUNPATH tag from executables and libraries. But doing so
12423 # requires that you compile everything twice, which is a pain.
12424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12425 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12426 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12428 else
12429 ld_shlibs_GO=no
12432 esac
12435 sunos4*)
12436 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12437 wlarc=
12438 hardcode_direct_GO=yes
12439 hardcode_shlibpath_var_GO=no
12443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12444 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12445 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12446 else
12447 ld_shlibs_GO=no
12450 esac
12452 if test "$ld_shlibs_GO" = no; then
12453 runpath_var=
12454 hardcode_libdir_flag_spec_GO=
12455 export_dynamic_flag_spec_GO=
12456 whole_archive_flag_spec_GO=
12458 else
12459 # PORTME fill in a description of your system's linker (not GNU ld)
12460 case $host_os in
12461 aix3*)
12462 allow_undefined_flag_GO=unsupported
12463 always_export_symbols_GO=yes
12464 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'
12465 # Note: this linker hardcodes the directories in LIBPATH if there
12466 # are no directories specified by -L.
12467 hardcode_minus_L_GO=yes
12468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12469 # Neither direct hardcoding nor static linking is supported with a
12470 # broken collect2.
12471 hardcode_direct_GO=unsupported
12475 aix[4-9]*)
12476 if test "$host_cpu" = ia64; then
12477 # On IA64, the linker does run time linking by default, so we don't
12478 # have to do anything special.
12479 aix_use_runtimelinking=no
12480 exp_sym_flag='-Bexport'
12481 no_entry_flag=""
12482 else
12483 # If we're using GNU nm, then we don't want the "-C" option.
12484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12485 # Also, AIX nm treats weak defined symbols like other global
12486 # defined symbols, whereas GNU nm marks them as "W".
12487 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12488 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'
12489 else
12490 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'
12492 aix_use_runtimelinking=no
12494 # Test if we are trying to use run time linking or normal
12495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12496 # need to do runtime linking.
12497 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12498 for ld_flag in $LDFLAGS; do
12499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12500 aix_use_runtimelinking=yes
12501 break
12503 done
12505 esac
12507 exp_sym_flag='-bexport'
12508 no_entry_flag='-bnoentry'
12511 # When large executables or shared objects are built, AIX ld can
12512 # have problems creating the table of contents. If linking a library
12513 # or program results in "error TOC overflow" add -mminimal-toc to
12514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12517 archive_cmds_GO=''
12518 hardcode_direct_GO=yes
12519 hardcode_direct_absolute_GO=yes
12520 hardcode_libdir_separator_GO=':'
12521 link_all_deplibs_GO=yes
12522 file_list_spec_GO='${wl}-f,'
12524 if test "$GCC" = yes; then
12525 case $host_os in aix4.[012]|aix4.[012].*)
12526 # We only want to do this on AIX 4.2 and lower, the check
12527 # below for broken collect2 doesn't work under 4.3+
12528 collect2name=`${CC} -print-prog-name=collect2`
12529 if test -f "$collect2name" &&
12530 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12531 then
12532 # We have reworked collect2
12534 else
12535 # We have old collect2
12536 hardcode_direct_GO=unsupported
12537 # It fails to find uninstalled libraries when the uninstalled
12538 # path is not listed in the libpath. Setting hardcode_minus_L
12539 # to unsupported forces relinking
12540 hardcode_minus_L_GO=yes
12541 hardcode_libdir_flag_spec_GO='-L$libdir'
12542 hardcode_libdir_separator_GO=
12545 esac
12546 shared_flag='-shared'
12547 if test "$aix_use_runtimelinking" = yes; then
12548 shared_flag="$shared_flag "'${wl}-G'
12550 else
12551 # not using gcc
12552 if test "$host_cpu" = ia64; then
12553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12554 # chokes on -Wl,-G. The following line is correct:
12555 shared_flag='-G'
12556 else
12557 if test "$aix_use_runtimelinking" = yes; then
12558 shared_flag='${wl}-G'
12559 else
12560 shared_flag='${wl}-bM:SRE'
12565 export_dynamic_flag_spec_GO='${wl}-bexpall'
12566 # It seems that -bexpall does not export symbols beginning with
12567 # underscore (_), so it is better to generate a list of symbols to export.
12568 always_export_symbols_GO=yes
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # Warning - without using the other runtime loading flags (-brtl),
12571 # -berok will link without error, but may produce a broken library.
12572 allow_undefined_flag_GO='-berok'
12573 # Determine the default libpath from the value encoded in an
12574 # empty executable.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12579 main ()
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12588 lt_aix_libpath_sed='
12589 /Import File Strings/,/^$/ {
12590 /^0/ {
12591 s/^0 *\(.*\)$/\1/
12595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 # Check for a 64-bit object if we didn't find anything.
12597 if test -z "$aix_libpath"; then
12598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12605 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12606 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"
12607 else
12608 if test "$host_cpu" = ia64; then
12609 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12610 allow_undefined_flag_GO="-z nodefs"
12611 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"
12612 else
12613 # Determine the default libpath from the value encoded in an
12614 # empty executable.
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12619 main ()
12623 return 0;
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12628 lt_aix_libpath_sed='
12629 /Import File Strings/,/^$/ {
12630 /^0/ {
12631 s/^0 *\(.*\)$/\1/
12635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636 # Check for a 64-bit object if we didn't find anything.
12637 if test -z "$aix_libpath"; then
12638 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12645 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12646 # Warning - without using the other run time loading flags,
12647 # -berok will link without error, but may produce a broken library.
12648 no_undefined_flag_GO=' ${wl}-bernotok'
12649 allow_undefined_flag_GO=' ${wl}-berok'
12650 if test "$with_gnu_ld" = yes; then
12651 # We only use this code for GNU lds that support --whole-archive.
12652 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653 else
12654 # Exported symbols can be pulled into shared objects from archives
12655 whole_archive_flag_spec_GO='$convenience'
12657 archive_cmds_need_lc_GO=yes
12658 # This is similar to how AIX traditionally builds its shared libraries.
12659 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'
12664 amigaos*)
12665 case $host_cpu in
12666 powerpc)
12667 # see comment about AmigaOS4 .so support
12668 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 archive_expsym_cmds_GO=''
12671 m68k)
12672 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)'
12673 hardcode_libdir_flag_spec_GO='-L$libdir'
12674 hardcode_minus_L_GO=yes
12676 esac
12679 bsdi[45]*)
12680 export_dynamic_flag_spec_GO=-rdynamic
12683 cygwin* | mingw* | pw32* | cegcc*)
12684 # When not using gcc, we currently assume that we are using
12685 # Microsoft Visual C++.
12686 # hardcode_libdir_flag_spec is actually meaningless, as there is
12687 # no search path for DLLs.
12688 hardcode_libdir_flag_spec_GO=' '
12689 allow_undefined_flag_GO=unsupported
12690 # Tell ltmain to make .lib files, not .a files.
12691 libext=lib
12692 # Tell ltmain to make .dll files, not .so files.
12693 shrext_cmds=".dll"
12694 # FIXME: Setting linknames here is a bad hack.
12695 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12696 # The linker will automatically build a .lib file if we build a DLL.
12697 old_archive_from_new_cmds_GO='true'
12698 # FIXME: Should let the user specify the lib program.
12699 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12700 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12701 enable_shared_with_static_runtimes_GO=yes
12704 darwin* | rhapsody*)
12707 archive_cmds_need_lc_GO=no
12708 hardcode_direct_GO=no
12709 hardcode_automatic_GO=yes
12710 hardcode_shlibpath_var_GO=unsupported
12711 if test "$lt_cv_ld_force_load" = "yes"; then
12712 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\"`'
12713 else
12714 whole_archive_flag_spec_GO=''
12716 link_all_deplibs_GO=yes
12717 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12718 case $cc_basename in
12719 ifort*) _lt_dar_can_shared=yes ;;
12720 *) _lt_dar_can_shared=$GCC ;;
12721 esac
12722 if test "$_lt_dar_can_shared" = "yes"; then
12723 output_verbose_link_cmd=func_echo_all
12724 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}"
12725 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12726 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}"
12727 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}"
12729 else
12730 ld_shlibs_GO=no
12735 dgux*)
12736 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737 hardcode_libdir_flag_spec_GO='-L$libdir'
12738 hardcode_shlibpath_var_GO=no
12741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12742 # support. Future versions do this automatically, but an explicit c++rt0.o
12743 # does not break anything, and helps significantly (at the cost of a little
12744 # extra space).
12745 freebsd2.2*)
12746 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12747 hardcode_libdir_flag_spec_GO='-R$libdir'
12748 hardcode_direct_GO=yes
12749 hardcode_shlibpath_var_GO=no
12752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12753 freebsd2.*)
12754 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_direct_GO=yes
12756 hardcode_minus_L_GO=yes
12757 hardcode_shlibpath_var_GO=no
12760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12761 freebsd* | dragonfly*)
12762 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12763 hardcode_libdir_flag_spec_GO='-R$libdir'
12764 hardcode_direct_GO=yes
12765 hardcode_shlibpath_var_GO=no
12768 hpux9*)
12769 if test "$GCC" = yes; then
12770 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'
12771 else
12772 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'
12774 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12775 hardcode_libdir_separator_GO=:
12776 hardcode_direct_GO=yes
12778 # hardcode_minus_L: Not really in the search PATH,
12779 # but as the default location of the library.
12780 hardcode_minus_L_GO=yes
12781 export_dynamic_flag_spec_GO='${wl}-E'
12784 hpux10*)
12785 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12786 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12787 else
12788 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12790 if test "$with_gnu_ld" = no; then
12791 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12792 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12793 hardcode_libdir_separator_GO=:
12794 hardcode_direct_GO=yes
12795 hardcode_direct_absolute_GO=yes
12796 export_dynamic_flag_spec_GO='${wl}-E'
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L_GO=yes
12803 hpux11*)
12804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12805 case $host_cpu in
12806 hppa*64*)
12807 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809 ia64*)
12810 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815 esac
12816 else
12817 case $host_cpu in
12818 hppa*64*)
12819 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12821 ia64*)
12822 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12827 esac
12829 if test "$with_gnu_ld" = no; then
12830 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12831 hardcode_libdir_separator_GO=:
12833 case $host_cpu in
12834 hppa*64*|ia64*)
12835 hardcode_direct_GO=no
12836 hardcode_shlibpath_var_GO=no
12839 hardcode_direct_GO=yes
12840 hardcode_direct_absolute_GO=yes
12841 export_dynamic_flag_spec_GO='${wl}-E'
12843 # hardcode_minus_L: Not really in the search PATH,
12844 # but as the default location of the library.
12845 hardcode_minus_L_GO=yes
12847 esac
12851 irix5* | irix6* | nonstopux*)
12852 if test "$GCC" = yes; then
12853 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'
12854 # Try to use the -exported_symbol ld option, if it does not
12855 # work, assume that -exports_file does not work either and
12856 # implicitly export all symbols.
12857 save_LDFLAGS="$LDFLAGS"
12858 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861 int foo(void) {}
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 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'
12867 rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LDFLAGS="$save_LDFLAGS"
12870 else
12871 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'
12872 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'
12874 archive_cmds_need_lc_GO='no'
12875 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator_GO=:
12877 inherit_rpath_GO=yes
12878 link_all_deplibs_GO=yes
12881 netbsd*)
12882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12883 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12884 else
12885 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12887 hardcode_libdir_flag_spec_GO='-R$libdir'
12888 hardcode_direct_GO=yes
12889 hardcode_shlibpath_var_GO=no
12892 newsos6)
12893 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_direct_GO=yes
12895 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_GO=:
12897 hardcode_shlibpath_var_GO=no
12900 *nto* | *qnx*)
12903 openbsd*)
12904 if test -f /usr/libexec/ld.so; then
12905 hardcode_direct_GO=yes
12906 hardcode_shlibpath_var_GO=no
12907 hardcode_direct_absolute_GO=yes
12908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12910 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12911 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12912 export_dynamic_flag_spec_GO='${wl}-E'
12913 else
12914 case $host_os in
12915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12916 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec_GO='-R$libdir'
12920 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12921 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12923 esac
12925 else
12926 ld_shlibs_GO=no
12930 os2*)
12931 hardcode_libdir_flag_spec_GO='-L$libdir'
12932 hardcode_minus_L_GO=yes
12933 allow_undefined_flag_GO=unsupported
12934 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'
12935 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938 osf3*)
12939 if test "$GCC" = yes; then
12940 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12941 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'
12942 else
12943 allow_undefined_flag_GO=' -expect_unresolved \*'
12944 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'
12946 archive_cmds_need_lc_GO='no'
12947 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12948 hardcode_libdir_separator_GO=:
12951 osf4* | osf5*) # as osf3* with the addition of -msym flag
12952 if test "$GCC" = yes; then
12953 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12954 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'
12955 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12956 else
12957 allow_undefined_flag_GO=' -expect_unresolved \*'
12958 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'
12959 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~
12960 $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'
12962 # Both c and cxx compiler support -rpath directly
12963 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12965 archive_cmds_need_lc_GO='no'
12966 hardcode_libdir_separator_GO=:
12969 solaris*)
12970 no_undefined_flag_GO=' -z defs'
12971 if test "$GCC" = yes; then
12972 wlarc='${wl}'
12973 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12974 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12976 else
12977 case `$CC -V 2>&1` in
12978 *"Compilers 5.0"*)
12979 wlarc=''
12980 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12981 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12985 wlarc='${wl}'
12986 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12987 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12990 esac
12992 hardcode_libdir_flag_spec_GO='-R$libdir'
12993 hardcode_shlibpath_var_GO=no
12994 case $host_os in
12995 solaris2.[0-5] | solaris2.[0-5].*) ;;
12997 # The compiler driver will combine and reorder linker options,
12998 # but understands `-z linker_flag'. GCC discards it without `$wl',
12999 # but is careful enough not to reorder.
13000 # Supported since Solaris 2.6 (maybe 2.5.1?)
13001 if test "$GCC" = yes; then
13002 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13003 else
13004 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13007 esac
13008 link_all_deplibs_GO=yes
13011 sunos4*)
13012 if test "x$host_vendor" = xsequent; then
13013 # Use $CC to link under sequent, because it throws in some extra .o
13014 # files that make .init and .fini sections work.
13015 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13016 else
13017 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_libdir_flag_spec_GO='-L$libdir'
13020 hardcode_direct_GO=yes
13021 hardcode_minus_L_GO=yes
13022 hardcode_shlibpath_var_GO=no
13025 sysv4)
13026 case $host_vendor in
13027 sni)
13028 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct_GO=yes # is this really true???
13031 siemens)
13032 ## LD is ld it makes a PLAMLIB
13033 ## CC just makes a GrossModule.
13034 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13035 reload_cmds_GO='$CC -r -o $output$reload_objs'
13036 hardcode_direct_GO=no
13038 motorola)
13039 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13040 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13042 esac
13043 runpath_var='LD_RUN_PATH'
13044 hardcode_shlibpath_var_GO=no
13047 sysv4.3*)
13048 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_shlibpath_var_GO=no
13050 export_dynamic_flag_spec_GO='-Bexport'
13053 sysv4*MP*)
13054 if test -d /usr/nec; then
13055 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_shlibpath_var_GO=no
13057 runpath_var=LD_RUN_PATH
13058 hardcode_runpath_var=yes
13059 ld_shlibs_GO=yes
13063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13064 no_undefined_flag_GO='${wl}-z,text'
13065 archive_cmds_need_lc_GO=no
13066 hardcode_shlibpath_var_GO=no
13067 runpath_var='LD_RUN_PATH'
13069 if test "$GCC" = yes; then
13070 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072 else
13073 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 sysv5* | sco3.2v5* | sco5v6*)
13079 # Note: We can NOT use -z defs as we might desire, because we do not
13080 # link with -lc, and that would cause any symbols used from libc to
13081 # always be unresolved, which means just about no library would
13082 # ever link correctly. If we're not using GNU ld we use -z text
13083 # though, which does catch some bad symbols but isn't as heavy-handed
13084 # as -z defs.
13085 no_undefined_flag_GO='${wl}-z,text'
13086 allow_undefined_flag_GO='${wl}-z,nodefs'
13087 archive_cmds_need_lc_GO=no
13088 hardcode_shlibpath_var_GO=no
13089 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13090 hardcode_libdir_separator_GO=':'
13091 link_all_deplibs_GO=yes
13092 export_dynamic_flag_spec_GO='${wl}-Bexport'
13093 runpath_var='LD_RUN_PATH'
13095 if test "$GCC" = yes; then
13096 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 else
13099 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 uts4*)
13105 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13106 hardcode_libdir_flag_spec_GO='-L$libdir'
13107 hardcode_shlibpath_var_GO=no
13111 ld_shlibs_GO=no
13113 esac
13115 if test x$host_vendor = xsni; then
13116 case $host in
13117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13118 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13120 esac
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13125 $as_echo "$ld_shlibs_GO" >&6; }
13126 test "$ld_shlibs_GO" = no && can_build_shared=no
13128 with_gnu_ld_GO=$with_gnu_ld
13136 # Do we need to explicitly link libc?
13138 case "x$archive_cmds_need_lc_GO" in
13139 x|xyes)
13140 # Assume -lc should be added
13141 archive_cmds_need_lc_GO=yes
13143 if test "$enable_shared" = yes && test "$GCC" = yes; then
13144 case $archive_cmds_GO in
13145 *'~'*)
13146 # FIXME: we may have to deal with multi-command sequences.
13148 '$CC '*)
13149 # Test whether the compiler implicitly links with -lc since on some
13150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13151 # to ld, don't add -lc before -lgcc.
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13154 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 $RM conftest*
13158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161 (eval $ac_compile) 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; } 2>conftest.err; then
13165 soname=conftest
13166 lib=conftest
13167 libobjs=conftest.$ac_objext
13168 deplibs=
13169 wl=$lt_prog_compiler_wl_GO
13170 pic_flag=$lt_prog_compiler_pic_GO
13171 compiler_flags=-v
13172 linker_flags=-v
13173 verstring=
13174 output_objdir=.
13175 libname=conftest
13176 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13177 allow_undefined_flag_GO=
13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13179 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13180 ac_status=$?
13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182 test $ac_status = 0; }
13183 then
13184 lt_cv_archive_cmds_need_lc_GO=no
13185 else
13186 lt_cv_archive_cmds_need_lc_GO=yes
13188 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13189 else
13190 cat conftest.err 1>&5
13192 $RM conftest*
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13196 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13197 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13199 esac
13202 esac
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13269 hardcode_action_GO=
13270 if test -n "$hardcode_libdir_flag_spec_GO" ||
13271 test -n "$runpath_var_GO" ||
13272 test "X$hardcode_automatic_GO" = "Xyes" ; then
13274 # We can hardcode non-existent directories.
13275 if test "$hardcode_direct_GO" != no &&
13276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13277 # have to relink, otherwise we might link with an installed library
13278 # when we should be linking with a yet-to-be-installed one
13279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13280 test "$hardcode_minus_L_GO" != no; then
13281 # Linking always hardcodes the temporary library directory.
13282 hardcode_action_GO=relink
13283 else
13284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13285 hardcode_action_GO=immediate
13287 else
13288 # We cannot hardcode anything, or else we can only hardcode existing
13289 # directories.
13290 hardcode_action_GO=unsupported
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13293 $as_echo "$hardcode_action_GO" >&6; }
13295 if test "$hardcode_action_GO" = relink ||
13296 test "$inherit_rpath_GO" = yes; then
13297 # Fast installation is not supported
13298 enable_fast_install=no
13299 elif test "$shlibpath_overrides_runpath" = yes ||
13300 test "$enable_shared" = no; then
13301 # Fast installation is not necessary
13302 enable_fast_install=needless
13313 ac_ext=c
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320 GCC=$lt_save_GCC
13321 CC="$lt_save_CC"
13326 ac_config_commands="$ac_config_commands libtool"
13331 # Only expand once:
13337 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13340 for ac_prog in gawk mawk nawk awk
13342 # Extract the first word of "$ac_prog", so it can be a program name with args.
13343 set dummy $ac_prog; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_AWK+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test -n "$AWK"; then
13350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_AWK="$ac_prog"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13369 AWK=$ac_cv_prog_AWK
13370 if test -n "$AWK"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13372 $as_echo "$AWK" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13379 test -n "$AWK" && break
13380 done
13383 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13386 # Check whether --enable-werror was given.
13387 if test "${enable_werror+set}" = set; then :
13388 enableval=$enable_werror;
13391 if test "x$enable_werror" != "xno"; then
13392 WERROR="-Werror"
13396 glibgo_toolexecdir=no
13397 glibgo_toolexeclibdir=no
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13400 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13401 # Check whether --enable-version-specific-runtime-libs was given.
13402 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13403 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13404 yes) version_specific_libs=yes ;;
13405 no) version_specific_libs=no ;;
13406 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13407 esac
13408 else
13409 version_specific_libs=no
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13413 $as_echo "$version_specific_libs" >&6; }
13415 # Version-specific runtime libs processing.
13416 if test $version_specific_libs = yes; then
13417 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13418 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13421 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13422 # Install a library built with a cross compiler in tooldir, not libdir.
13423 if test -n "$with_cross_host" &&
13424 test x"$with_cross_host" != x"no"; then
13425 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13426 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13427 else
13428 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13429 nover_glibgo_toolexeclibdir='${libdir}'
13431 multi_os_directory=`$GOC -print-multi-os-directory`
13432 case $multi_os_directory in
13433 .) ;; # Avoid trailing /.
13434 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13435 esac
13437 if test x"$glibgo_toolexecdir" = x"no"; then
13438 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13439 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13446 # See if the user wants to configure without libffi. Some
13447 # architectures don't support it. FIXME: We should set a default
13448 # based on the host.
13450 # Check whether --with-libffi was given.
13451 if test "${with_libffi+set}" = set; then :
13452 withval=$with_libffi; :
13453 else
13454 with_libffi=${with_libffi_default-yes}
13458 LIBFFI=
13459 LIBFFIINCS=
13460 if test "$with_libffi" != no; then
13462 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13464 LIBFFI=../libffi/libffi_convenience.la
13465 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13470 # See if the user wants to configure without libatomic. This is useful if we are
13471 # on an architecture for which libgo does not need an atomic support library and
13472 # libatomic does not support our C compiler.
13474 # Check whether --with-libatomic was given.
13475 if test "${with_libatomic+set}" = set; then :
13476 withval=$with_libatomic; :
13477 else
13478 with_libatomic=${with_libatomic_default-yes}
13482 LIBATOMIC=
13483 if test "$with_libatomic" != no; then
13484 LIBATOMIC=../libatomic/libatomic_convenience.la
13488 # Used to tell GNU make to include a file without telling automake to
13489 # include it.
13490 go_include="-include"
13493 # All known GOOS values. This is the union of all operating systems
13494 # supported by the gofrontend and all operating systems supported by
13495 # the gc toolchain.
13496 ALLGOOS="android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
13498 is_darwin=no
13499 is_freebsd=no
13500 is_irix=no
13501 is_linux=no
13502 is_netbsd=no
13503 is_openbsd=no
13504 is_dragonfly=no
13505 is_rtems=no
13506 is_solaris=no
13507 GOOS=unknown
13508 case ${host} in
13509 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13510 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13511 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13512 *-*-linux*) is_linux=yes; GOOS=linux ;;
13513 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13514 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13515 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13516 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13517 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13518 esac
13519 if test $is_darwin = yes; then
13520 LIBGO_IS_DARWIN_TRUE=
13521 LIBGO_IS_DARWIN_FALSE='#'
13522 else
13523 LIBGO_IS_DARWIN_TRUE='#'
13524 LIBGO_IS_DARWIN_FALSE=
13527 if test $is_freebsd = yes; then
13528 LIBGO_IS_FREEBSD_TRUE=
13529 LIBGO_IS_FREEBSD_FALSE='#'
13530 else
13531 LIBGO_IS_FREEBSD_TRUE='#'
13532 LIBGO_IS_FREEBSD_FALSE=
13535 if test $is_irix = yes; then
13536 LIBGO_IS_IRIX_TRUE=
13537 LIBGO_IS_IRIX_FALSE='#'
13538 else
13539 LIBGO_IS_IRIX_TRUE='#'
13540 LIBGO_IS_IRIX_FALSE=
13543 if test $is_linux = yes; then
13544 LIBGO_IS_LINUX_TRUE=
13545 LIBGO_IS_LINUX_FALSE='#'
13546 else
13547 LIBGO_IS_LINUX_TRUE='#'
13548 LIBGO_IS_LINUX_FALSE=
13551 if test $is_netbsd = yes; then
13552 LIBGO_IS_NETBSD_TRUE=
13553 LIBGO_IS_NETBSD_FALSE='#'
13554 else
13555 LIBGO_IS_NETBSD_TRUE='#'
13556 LIBGO_IS_NETBSD_FALSE=
13559 if test $is_openbsd = yes; then
13560 LIBGO_IS_OPENBSD_TRUE=
13561 LIBGO_IS_OPENBSD_FALSE='#'
13562 else
13563 LIBGO_IS_OPENBSD_TRUE='#'
13564 LIBGO_IS_OPENBSD_FALSE=
13567 if test $is_dragonfly = yes; then
13568 LIBGO_IS_DRAGONFLY_TRUE=
13569 LIBGO_IS_DRAGONFLY_FALSE='#'
13570 else
13571 LIBGO_IS_DRAGONFLY_TRUE='#'
13572 LIBGO_IS_DRAGONFLY_FALSE=
13575 if test $is_rtems = yes; then
13576 LIBGO_IS_RTEMS_TRUE=
13577 LIBGO_IS_RTEMS_FALSE='#'
13578 else
13579 LIBGO_IS_RTEMS_TRUE='#'
13580 LIBGO_IS_RTEMS_FALSE=
13583 if test $is_solaris = yes; then
13584 LIBGO_IS_SOLARIS_TRUE=
13585 LIBGO_IS_SOLARIS_FALSE='#'
13586 else
13587 LIBGO_IS_SOLARIS_TRUE='#'
13588 LIBGO_IS_SOLARIS_FALSE=
13591 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13592 LIBGO_IS_BSD_TRUE=
13593 LIBGO_IS_BSD_FALSE='#'
13594 else
13595 LIBGO_IS_BSD_TRUE='#'
13596 LIBGO_IS_BSD_FALSE=
13602 USE_DEJAGNU=no
13603 case ${host} in
13604 *-*-rtems*) USE_DEJAGNU=yes ;;
13605 ${build}) ;;
13606 *) USE_DEJAGNU=yes ;;
13607 esac
13610 # All known GOARCH values. This is the union of all architectures
13611 # supported by the gofrontend and all architectures supported by the
13612 # gc toolchain.
13613 # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
13614 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mipso32 mipsn32 mipso64 mipsn64 mips mipsle mips64 mips64le mips64p32 mips64pe32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
13616 # All known GOARCH_FAMILY values.
13617 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
13619 GOARCH=unknown
13620 GOARCH_FAMILY=unknown
13621 GOARCH_BIGENDIAN=0
13622 GOARCH_CACHELINESIZE=64
13623 GOARCH_PHYSPAGESIZE=4096
13624 GOARCH_PCQUANTUM=1
13625 GOARCH_INT64ALIGN=8
13626 GOARCH_HUGEPAGESIZE=0
13627 GOARCH_MINFRAMESIZE=0
13628 case ${host} in
13629 alpha*-*-*)
13630 GOARCH=alpha
13631 GOARCH_FAMILY=ALPHA
13632 GOARCH_PHYSPAGESIZE=8192
13633 GOARCH_PCQUANTUM=4
13635 aarch64-*-*)
13636 GOARCH=arm64
13637 GOARCH_FAMILY=ARM64
13638 GOARCH_CACHELINESIZE=32
13639 GOARCH_PHYSPAGESIZE=65536
13640 GOARCH_PCQUANTUM=4
13641 GOARCH_MINFRAMESIZE=8
13643 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13644 GOARCH=arm
13645 GOARCH_FAMILY=ARM
13646 GOARCH_CACHELINESIZE=32
13647 GOARCH_PCQUANTUM=4
13648 GOARCH_MINFRAMESIZE=4
13650 i[34567]86-*-* | x86_64-*-*)
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13654 #ifdef __x86_64__
13655 #error 64-bit
13656 #endif
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 GOARCH=386
13660 GOARCH_FAMILY=I386
13661 GOARCH_INT64ALIGN=4
13662 GOARCH_HUGEPAGESIZE="1 << 21"
13664 else
13665 GOARCH=amd64
13666 GOARCH_FAMILY=AMD64
13667 GOARCH_HUGEPAGESIZE="1 << 21"
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 ia64-*-*)
13673 GOARCH=ia64
13674 GOARCH_FAMILY=IA64
13675 GOARCH_CACHELINESIZE=16384
13676 GOARCH_PHYSPAGESIZE=65536
13678 m68k*-*-*)
13679 GOARCH=m68k
13680 GOARCH_FAMILY=M68K
13681 GOARCH_BIGENDIAN=1
13682 GOARCH_CACHELINESIZE=16
13683 GOARCH_PCQUANTUM=4
13684 GOARCH_INT64ALIGN=2
13686 mips*-*-*)
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 #if _MIPS_SIM != _ABIO32
13691 #error not o32
13692 #endif
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695 mips_abi="o32"
13696 else
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 #if _MIPS_SIM != _ABIN32
13701 #error not n32
13702 #endif
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 mips_abi="n32"
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13710 #if _MIPS_SIM != _ABI64
13711 #error not n64
13712 #endif
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"; then :
13715 mips_abi="n64"
13716 else
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13720 #if _MIPS_SIM != _ABIO64
13721 #error not o64
13722 #endif
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725 mips_abi="o64"
13726 else
13727 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13728 mips_abi="n32"
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 case "$mips_abi" in
13738 "o32") GOARCH=mipso32 ;;
13739 "n32") GOARCH=mipsn32 ;;
13740 "n64") GOARCH=mipsn64 ;;
13741 "o64") GOARCH=mipso64 ;;
13742 esac
13743 case "$mips_abi" in
13744 "o32" | "n32")
13745 GOARCH_FAMILY=MIPS
13746 GOARCH_MINFRAMESIZE=4
13748 "n64" | "o64")
13749 GOARCH_FAMILY=MIPS64
13750 GOARCH_MINFRAMESIZE=8
13752 esac
13753 case "${host}" in
13754 mips*el)
13757 GOARCH_BIGENDIAN=1
13759 esac
13760 GOARCH_CACHELINESIZE=32
13761 GOARCH_PHYSPAGESIZE=16384
13762 GOARCH_PCQUANTUM=4
13764 rs6000*-*-* | powerpc*-*-*)
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13768 #ifdef _ARCH_PPC64
13769 #error 64-bit
13770 #endif
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 GOARCH=ppc
13774 GOARCH_FAMILY=PPC
13775 GOARCH_BIGENDIAN=1
13777 else
13779 GOARCH_FAMILY=PPC64
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13783 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13784 #error 64be
13785 #endif
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788 GOARCH=ppc64le
13790 else
13791 GOARCH=ppc64
13792 GOARCH_BIGENDIAN=1
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798 GOARCH_PHYSPAGESIZE=65536
13799 GOARCH_PCQUANTUM=4
13800 GOARCH_MINFRAMESIZE=32
13802 s390*-*-*)
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13806 #if defined(__s390x__)
13807 #error 64-bit
13808 #endif
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811 GOARCH=s390
13812 GOARCH_FAMILY=S390
13813 GOARCH_MINFRAMESIZE=4
13815 else
13816 GOARCH=s390x
13817 GOARCH_FAMILY=S390X
13818 GOARCH_MINFRAMESIZE=8
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822 GOARCH_BIGENDIAN=1
13823 GOARCH_CACHELINESIZE=256
13824 GOARCH_PCQUANTUM=2
13826 sparc*-*-*)
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13830 #if defined(__sparcv9) || defined(__arch64__)
13831 #error 64-bit
13832 #endif
13833 _ACEOF
13834 if ac_fn_c_try_compile "$LINENO"; then :
13835 GOARCH=sparc
13836 GOARCH_FAMILY=SPARC
13838 else
13839 GOARCH=sparc64
13840 GOARCH_FAMILY=SPARC64
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 GOARCH_BIGENDIAN=1
13845 GOARCH_PHYSPAGESIZE=8192
13846 GOARCH_PCQUANTUM=4
13848 esac
13861 GO_LIBCALL_OS_FILE=
13862 GO_LIBCALL_OS_ARCH_FILE=
13863 GO_SYSCALL_OS_FILE=
13864 GO_SYSCALL_OS_ARCH_FILE=
13865 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13866 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
13868 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13869 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
13871 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13872 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
13874 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13875 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
13882 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13883 case "$target" in
13884 mips-sgi-irix6.5*)
13885 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13886 # msghdr in <sys/socket.h>.
13887 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13889 *-*-solaris2.1[01])
13890 # Solaris 10+ needs this so struct msghdr gets the msg_control
13891 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13892 # above doesn't work with C99.
13893 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13895 esac
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13899 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13900 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 CFLAGS_hold=$CFLAGS
13904 CFLAGS="$CFLAGS -fsplit-stack"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 int i;
13908 _ACEOF
13909 if ac_fn_c_try_compile "$LINENO"; then :
13910 libgo_cv_c_split_stack_supported=yes
13911 else
13912 libgo_cv_c_split_stack_supported=no
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 CFLAGS=$CFLAGS_hold
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13918 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13921 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13922 if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 cat > conftest1.c << EOF
13926 extern void f();
13927 int main() { f(); return 0; }
13929 cat > conftest2.c << EOF
13930 void f() {}
13932 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13933 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13934 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
13935 libgo_cv_c_linker_split_non_split=yes
13936 else
13937 libgo_cv_c_linker_split_non_split=no
13939 rm -f conftest1.* conftest2.* conftest
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13942 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
13944 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13945 SPLIT_STACK=-fsplit-stack
13947 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13949 else
13950 SPLIT_STACK=
13953 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
13954 USING_SPLIT_STACK_TRUE=
13955 USING_SPLIT_STACK_FALSE='#'
13956 else
13957 USING_SPLIT_STACK_TRUE='#'
13958 USING_SPLIT_STACK_FALSE=
13962 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
13963 GO_SPLIT_STACK=-fno-split-stack
13964 else
13965 GO_SPLIT_STACK=
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13970 $as_echo_n "checking whether linker supports split stack... " >&6; }
13971 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 libgo_cv_c_linker_supports_split_stack=no
13975 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13976 libgo_cv_c_linker_supports_split_stack=yes
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13980 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13981 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13983 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
13988 $as_echo_n "checking whether compiler is llgo... " >&6; }
13989 if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 libgo_cv_c_goc_is_llgo=no
13993 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
13994 libgo_cv_c_goc_is_llgo=yes
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
13998 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
13999 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14000 GOC_IS_LLGO_TRUE=
14001 GOC_IS_LLGO_FALSE='#'
14002 else
14003 GOC_IS_LLGO_TRUE='#'
14004 GOC_IS_LLGO_FALSE=
14008 MATH_LIBS=
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14010 $as_echo_n "checking for sqrt in -lm... " >&6; }
14011 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 ac_check_lib_save_LIBS=$LIBS
14015 LIBS="-lm $LIBS"
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14019 /* Override any GCC internal prototype to avoid an error.
14020 Use char because int might match the return type of a GCC
14021 builtin and then its argument prototype would still apply. */
14022 #ifdef __cplusplus
14023 extern "C"
14024 #endif
14025 char sqrt ();
14027 main ()
14029 return sqrt ();
14031 return 0;
14033 _ACEOF
14034 if ac_fn_c_try_link "$LINENO"; then :
14035 ac_cv_lib_m_sqrt=yes
14036 else
14037 ac_cv_lib_m_sqrt=no
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 LIBS=$ac_check_lib_save_LIBS
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14044 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14045 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14046 MATH_LIBS=-lm
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14052 $as_echo_n "checking for socket libraries... " >&6; }
14053 if test "${libgo_cv_lib_sockets+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 libgo_cv_lib_sockets=
14057 libgo_check_both=no
14058 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14059 if test "x$ac_cv_func_connect" = x""yes; then :
14060 libgo_check_socket=no
14061 else
14062 libgo_check_socket=yes
14065 if test "$libgo_check_socket" = "yes"; then
14066 unset ac_cv_func_connect
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14068 $as_echo_n "checking for main in -lsocket... " >&6; }
14069 if test "${ac_cv_lib_socket_main+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 ac_check_lib_save_LIBS=$LIBS
14073 LIBS="-lsocket $LIBS"
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14079 main ()
14081 return main ();
14083 return 0;
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 ac_cv_lib_socket_main=yes
14088 else
14089 ac_cv_lib_socket_main=no
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14096 $as_echo "$ac_cv_lib_socket_main" >&6; }
14097 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14098 libgo_cv_lib_sockets="-lsocket"
14099 else
14100 libgo_check_both=yes
14104 if test "$libgo_check_both" = "yes"; then
14105 libgo_old_libs=$LIBS
14106 LIBS="$LIBS -lsocket -lnsl"
14107 unset ac_cv_func_accept
14108 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14109 if test "x$ac_cv_func_accept" = x""yes; then :
14110 libgo_check_nsl=no
14111 libgo_cv_lib_sockets="-lsocket -lnsl"
14114 unset ac_cv_func_accept
14115 LIBS=$libgo_old_libs
14117 unset ac_cv_func_gethostbyname
14118 libgo_old_libs="$LIBS"
14119 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14120 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14122 else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14124 $as_echo_n "checking for main in -lnsl... " >&6; }
14125 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lnsl $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14135 main ()
14137 return main ();
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 ac_cv_lib_nsl_main=yes
14144 else
14145 ac_cv_lib_nsl_main=no
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14152 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14153 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14154 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14159 unset ac_cv_func_gethostbyname
14160 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14161 if test "x$ac_cv_func_sendfile" = x""yes; then :
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14165 $as_echo_n "checking for main in -lsendfile... " >&6; }
14166 if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-lsendfile $LIBS"
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14176 main ()
14178 return main ();
14180 return 0;
14182 _ACEOF
14183 if ac_fn_c_try_link "$LINENO"; then :
14184 ac_cv_lib_sendfile_main=yes
14185 else
14186 ac_cv_lib_sendfile_main=no
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14193 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14194 if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14195 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14200 LIBS=$libgo_old_libs
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14204 $as_echo "$libgo_cv_lib_sockets" >&6; }
14205 NET_LIBS="$libgo_cv_lib_sockets"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14209 $as_echo_n "checking whether -pthread is supported... " >&6; }
14210 if test "${libgo_cv_lib_pthread+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 CFLAGS_hold=$CFLAGS
14214 CFLAGS="$CFLAGS -pthread"
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 int i;
14218 _ACEOF
14219 if ac_fn_c_try_compile "$LINENO"; then :
14220 libgo_cv_lib_pthread=yes
14221 else
14222 libgo_cv_lib_pthread=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 CFLAGS=$CFLAGS_hold
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14228 $as_echo "$libgo_cv_lib_pthread" >&6; }
14229 PTHREAD_CFLAGS=
14230 if test "$libgo_cv_lib_pthread" = yes; then
14231 PTHREAD_CFLAGS=-pthread
14235 PTHREAD_LIBS=
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14237 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14238 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lpthread $LIBS"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char pthread_create ();
14254 main ()
14256 return pthread_create ();
14258 return 0;
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_lib_pthread_pthread_create=yes
14263 else
14264 ac_cv_lib_pthread_pthread_create=no
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14271 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14272 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14273 PTHREAD_LIBS=-lpthread
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14279 $as_echo_n "checking for library containing sched_yield... " >&6; }
14280 if test "${ac_cv_search_sched_yield+set}" = set; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 ac_func_search_save_LIBS=$LIBS
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14287 /* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14290 #ifdef __cplusplus
14291 extern "C"
14292 #endif
14293 char sched_yield ();
14295 main ()
14297 return sched_yield ();
14299 return 0;
14301 _ACEOF
14302 for ac_lib in '' rt; do
14303 if test -z "$ac_lib"; then
14304 ac_res="none required"
14305 else
14306 ac_res=-l$ac_lib
14307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14309 if ac_fn_c_try_link "$LINENO"; then :
14310 ac_cv_search_sched_yield=$ac_res
14312 rm -f core conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext
14314 if test "${ac_cv_search_sched_yield+set}" = set; then :
14315 break
14317 done
14318 if test "${ac_cv_search_sched_yield+set}" = set; then :
14320 else
14321 ac_cv_search_sched_yield=no
14323 rm conftest.$ac_ext
14324 LIBS=$ac_func_search_save_LIBS
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14327 $as_echo "$ac_cv_search_sched_yield" >&6; }
14328 ac_res=$ac_cv_search_sched_yield
14329 if test "$ac_res" != no; then :
14330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14335 $as_echo_n "checking for library containing nanosleep... " >&6; }
14336 if test "${ac_cv_search_nanosleep+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 ac_func_search_save_LIBS=$LIBS
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char nanosleep ();
14351 main ()
14353 return nanosleep ();
14355 return 0;
14357 _ACEOF
14358 for ac_lib in '' rt; do
14359 if test -z "$ac_lib"; then
14360 ac_res="none required"
14361 else
14362 ac_res=-l$ac_lib
14363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 ac_cv_search_nanosleep=$ac_res
14368 rm -f core conftest.err conftest.$ac_objext \
14369 conftest$ac_exeext
14370 if test "${ac_cv_search_nanosleep+set}" = set; then :
14371 break
14373 done
14374 if test "${ac_cv_search_nanosleep+set}" = set; then :
14376 else
14377 ac_cv_search_nanosleep=no
14379 rm conftest.$ac_ext
14380 LIBS=$ac_func_search_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14383 $as_echo "$ac_cv_search_nanosleep" >&6; }
14384 ac_res=$ac_cv_search_nanosleep
14385 if test "$ac_res" != no; then :
14386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14391 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14392 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 ac_func_search_save_LIBS=$LIBS
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char clock_gettime ();
14407 main ()
14409 return clock_gettime ();
14411 return 0;
14413 _ACEOF
14414 for ac_lib in '' rt; do
14415 if test -z "$ac_lib"; then
14416 ac_res="none required"
14417 else
14418 ac_res=-l$ac_lib
14419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14421 if ac_fn_c_try_link "$LINENO"; then :
14422 ac_cv_search_clock_gettime=$ac_res
14424 rm -f core conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext
14426 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14427 break
14429 done
14430 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14432 else
14433 ac_cv_search_clock_gettime=no
14435 rm conftest.$ac_ext
14436 LIBS=$ac_func_search_save_LIBS
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14439 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14440 ac_res=$ac_cv_search_clock_gettime
14441 if test "$ac_res" != no; then :
14442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14448 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14449 if test "${ac_cv_c_bigendian+set}" = set; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 ac_cv_c_bigendian=unknown
14453 # See if we're dealing with a universal compiler.
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #ifndef __APPLE_CC__
14457 not a universal capable compiler
14458 #endif
14459 typedef int dummy;
14461 _ACEOF
14462 if ac_fn_c_try_compile "$LINENO"; then :
14464 # Check for potential -arch flags. It is not universal unless
14465 # there are at least two -arch flags with different values.
14466 ac_arch=
14467 ac_prev=
14468 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14469 if test -n "$ac_prev"; then
14470 case $ac_word in
14471 i?86 | x86_64 | ppc | ppc64)
14472 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14473 ac_arch=$ac_word
14474 else
14475 ac_cv_c_bigendian=universal
14476 break
14479 esac
14480 ac_prev=
14481 elif test "x$ac_word" = "x-arch"; then
14482 ac_prev=arch
14484 done
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 if test $ac_cv_c_bigendian = unknown; then
14488 # See if sys/param.h defines the BYTE_ORDER macro.
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 #include <sys/types.h>
14492 #include <sys/param.h>
14495 main ()
14497 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14498 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14499 && LITTLE_ENDIAN)
14500 bogus endian macros
14501 #endif
14504 return 0;
14506 _ACEOF
14507 if ac_fn_c_try_compile "$LINENO"; then :
14508 # It does; now see whether it defined to BIG_ENDIAN or not.
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 #include <sys/types.h>
14512 #include <sys/param.h>
14515 main ()
14517 #if BYTE_ORDER != BIG_ENDIAN
14518 not big endian
14519 #endif
14522 return 0;
14524 _ACEOF
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526 ac_cv_c_bigendian=yes
14527 else
14528 ac_cv_c_bigendian=no
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 if test $ac_cv_c_bigendian = unknown; then
14535 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #include <limits.h>
14541 main ()
14543 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14544 bogus endian macros
14545 #endif
14548 return 0;
14550 _ACEOF
14551 if ac_fn_c_try_compile "$LINENO"; then :
14552 # It does; now see whether it defined to _BIG_ENDIAN or not.
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555 #include <limits.h>
14558 main ()
14560 #ifndef _BIG_ENDIAN
14561 not big endian
14562 #endif
14565 return 0;
14567 _ACEOF
14568 if ac_fn_c_try_compile "$LINENO"; then :
14569 ac_cv_c_bigendian=yes
14570 else
14571 ac_cv_c_bigendian=no
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 if test $ac_cv_c_bigendian = unknown; then
14578 # Compile a test program.
14579 if test "$cross_compiling" = yes; then :
14580 # Try to guess by grepping values from an object file.
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 short int ascii_mm[] =
14584 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14585 short int ascii_ii[] =
14586 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14587 int use_ascii (int i) {
14588 return ascii_mm[i] + ascii_ii[i];
14590 short int ebcdic_ii[] =
14591 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14592 short int ebcdic_mm[] =
14593 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14594 int use_ebcdic (int i) {
14595 return ebcdic_mm[i] + ebcdic_ii[i];
14597 extern int foo;
14600 main ()
14602 return use_ascii (foo) == use_ebcdic (foo);
14604 return 0;
14606 _ACEOF
14607 if ac_fn_c_try_compile "$LINENO"; then :
14608 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14609 ac_cv_c_bigendian=yes
14611 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14612 if test "$ac_cv_c_bigendian" = unknown; then
14613 ac_cv_c_bigendian=no
14614 else
14615 # finding both strings is unlikely to happen, but who knows?
14616 ac_cv_c_bigendian=unknown
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 else
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 $ac_includes_default
14626 main ()
14629 /* Are we little or big endian? From Harbison&Steele. */
14630 union
14632 long int l;
14633 char c[sizeof (long int)];
14634 } u;
14635 u.l = 1;
14636 return u.c[sizeof (long int) - 1] == 1;
14639 return 0;
14641 _ACEOF
14642 if ac_fn_c_try_run "$LINENO"; then :
14643 ac_cv_c_bigendian=no
14644 else
14645 ac_cv_c_bigendian=yes
14647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14648 conftest.$ac_objext conftest.beam conftest.$ac_ext
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14654 $as_echo "$ac_cv_c_bigendian" >&6; }
14655 case $ac_cv_c_bigendian in #(
14656 yes)
14657 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14658 ;; #(
14660 ;; #(
14661 universal)
14663 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14665 ;; #(
14667 as_fn_error "unknown endianness
14668 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14669 esac
14672 GCC_CHECK_UNWIND_GETIPINFO
14674 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14675 do :
14676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14678 eval as_val=\$$as_ac_Header
14679 if test "x$as_val" = x""yes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14682 _ACEOF
14686 done
14689 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14690 do :
14691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14693 #include <sys/socket.h>
14694 #endif
14697 eval as_val=\$$as_ac_Header
14698 if test "x$as_val" = x""yes; then :
14699 cat >>confdefs.h <<_ACEOF
14700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14701 _ACEOF
14705 done
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14709 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14710 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 CFLAGS_hold=$CFLAGS
14714 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 #include <sys/types.h>
14719 #ifdef HAVE_LINUX_FILTER_H
14720 #include <linux/filter.h>
14721 #endif
14722 #include <ustat.h>
14724 _ACEOF
14725 if ac_fn_c_try_compile "$LINENO"; then :
14726 libgo_cv_c_ustat_h=yes
14727 else
14728 libgo_cv_c_ustat_h=no
14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731 CFLAGS=$CFLAGS_hold
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14734 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14735 if test $libgo_cv_c_ustat_h = yes; then
14737 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14741 if test "$ac_cv_header_sys_mman_h" = yes; then
14742 HAVE_SYS_MMAN_H_TRUE=
14743 HAVE_SYS_MMAN_H_FALSE='#'
14744 else
14745 HAVE_SYS_MMAN_H_TRUE='#'
14746 HAVE_SYS_MMAN_H_FALSE=
14750 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
14751 do :
14752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14754 eval as_val=\$$as_ac_var
14755 if test "x$as_val" = x""yes; then :
14756 cat >>confdefs.h <<_ACEOF
14757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14758 _ACEOF
14761 done
14763 if test "$ac_cv_func_strerror_r" = yes; then
14764 HAVE_STRERROR_R_TRUE=
14765 HAVE_STRERROR_R_FALSE='#'
14766 else
14767 HAVE_STRERROR_R_TRUE='#'
14768 HAVE_STRERROR_R_FALSE=
14771 if test "$ac_cv_func_wait4" = yes; then
14772 HAVE_WAIT4_TRUE=
14773 HAVE_WAIT4_FALSE='#'
14774 else
14775 HAVE_WAIT4_TRUE='#'
14776 HAVE_WAIT4_FALSE=
14780 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14781 do :
14782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14784 eval as_val=\$$as_ac_var
14785 if test "x$as_val" = x""yes; then :
14786 cat >>confdefs.h <<_ACEOF
14787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14788 _ACEOF
14791 done
14793 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14794 if test "x$ac_cv_type_off_t" = x""yes; then :
14796 else
14798 cat >>confdefs.h <<_ACEOF
14799 #define off_t long int
14800 _ACEOF
14804 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14805 if test "x$ac_cv_type_loff_t" = x""yes; then :
14807 cat >>confdefs.h <<_ACEOF
14808 #define HAVE_LOFF_T 1
14809 _ACEOF
14815 LIBS_hold="$LIBS"
14816 LIBS="$LIBS -lm"
14817 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14818 do :
14819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14820 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14821 eval as_val=\$$as_ac_var
14822 if test "x$as_val" = x""yes; then :
14823 cat >>confdefs.h <<_ACEOF
14824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14825 _ACEOF
14828 done
14830 LIBS="$LIBS_hold"
14832 CFLAGS_hold="$CFLAGS"
14833 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14834 LIBS_hold="$LIBS"
14835 LIBS="$LIBS $PTHREAD_LIBS"
14836 for ac_func in sem_timedwait
14837 do :
14838 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14839 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14840 cat >>confdefs.h <<_ACEOF
14841 #define HAVE_SEM_TIMEDWAIT 1
14842 _ACEOF
14845 done
14847 CFLAGS="$CFLAGS_hold"
14848 LIBS="$LIBS_hold"
14850 LIBS_hold="$LIBS"
14851 LIBS="$LIBS $MATH_LIBS"
14852 for ac_func in matherr
14853 do :
14854 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14855 if test "x$ac_cv_func_matherr" = x""yes; then :
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_MATHERR 1
14858 _ACEOF
14861 done
14863 LIBS="$LIBS_hold"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14866 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14867 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14873 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14874 uint32 i;
14875 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14880 else
14881 libgo_cv_func___sync_bool_compare_and_swap_4=no
14883 rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14887 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14888 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14890 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14895 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14896 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14902 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14903 uint64 i;
14904 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14906 _ACEOF
14907 if ac_fn_c_try_link "$LINENO"; then :
14908 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14909 else
14910 libgo_cv_func___sync_bool_compare_and_swap_8=no
14912 rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14916 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14917 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14919 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14924 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14925 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14931 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14932 uint32 i;
14933 int main() { return __sync_fetch_and_add (&i, 1); }
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 libgo_cv_func___sync_fetch_and_add_4=yes
14938 else
14939 libgo_cv_func___sync_fetch_and_add_4=no
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14945 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14946 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14948 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14953 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14954 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14960 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14961 uint64 i;
14962 int main() { return __sync_add_and_fetch (&i, 1); }
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 libgo_cv_func___sync_add_and_fetch_8=yes
14967 else
14968 libgo_cv_func___sync_add_and_fetch_8=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14974 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14975 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14977 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14982 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14983 if test "${libgo_cv_c_stringops+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 CFLAGS_hold=$CFLAGS
14987 CFLAGS="$CFLAGS -minline-all-stringops"
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990 int i;
14991 _ACEOF
14992 if ac_fn_c_try_compile "$LINENO"; then :
14993 libgo_cv_c_stringops=yes
14994 else
14995 libgo_cv_c_stringops=no
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 CFLAGS=$CFLAGS_hold
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15001 $as_echo "$libgo_cv_c_stringops" >&6; }
15002 STRINGOPS_FLAG=
15003 if test "$libgo_cv_c_stringops" = yes; then
15004 STRINGOPS_FLAG=-minline-all-stringops
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15009 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15010 if test "${libgo_cv_c_fancymath+set}" = set; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15013 CFLAGS_hold=$CFLAGS
15014 CFLAGS="$CFLAGS -mfancy-math-387"
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 int i;
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020 libgo_cv_c_fancymath=yes
15021 else
15022 libgo_cv_c_fancymath=no
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 CFLAGS=$CFLAGS_hold
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15028 $as_echo "$libgo_cv_c_fancymath" >&6; }
15029 MATH_FLAG=
15030 if test "$libgo_cv_c_fancymath" = yes; then
15031 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15032 else
15033 MATH_FLAG="-ffp-contract=off"
15037 CFLAGS_hold=$CFLAGS
15038 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15039 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15040 if test "x$ac_cv_type_off64_t" = x""yes; then :
15042 cat >>confdefs.h <<_ACEOF
15043 #define HAVE_OFF64_T 1
15044 _ACEOF
15049 CFLAGS=$CFLAGS_hold
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15052 $as_echo_n "checking epoll_event size... " >&6; }
15053 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15058 else
15059 libgo_cv_c_epoll_event_size=0
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15064 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15065 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15069 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15070 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15071 $as_echo_n "(cached) " >&6
15072 else
15073 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15074 #include <sys/epoll.h>"; then :
15076 else
15077 libgo_cv_c_epoll_event_fd_offset=0
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15082 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15083 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 #include <sys/stat.h>
15090 _ACEOF
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15093 have_stat_timespec=yes
15094 else
15095 have_stat_timespec=no
15097 rm -f conftest*
15099 if test $have_stat_timespec = yes; then
15100 HAVE_STAT_TIMESPEC_TRUE=
15101 HAVE_STAT_TIMESPEC_FALSE='#'
15102 else
15103 HAVE_STAT_TIMESPEC_TRUE='#'
15104 HAVE_STAT_TIMESPEC_FALSE=
15108 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15110 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15111 libgo_has_struct_exception=yes
15112 else
15113 libgo_has_struct_exception=no
15116 if test "$libgo_has_struct_exception" = "yes"; then
15118 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15123 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15124 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 CFLAGS_hold="$CFLAGS"
15128 CFLAGS="$PTHREAD_CFLAGS"
15129 LIBS_hold="$LIBS"
15130 LIBS="$LIBS $PTHREAD_LIBS"
15131 # The cast to long int works around a bug in the HP C Compiler
15132 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15133 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15134 # This bug is HP SR number 8606223364.
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15136 $as_echo_n "checking size of void *... " >&6; }
15137 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15142 else
15143 if test "$ac_cv_type_void_p" = yes; then
15144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15146 { as_fn_set_status 77
15147 as_fn_error "cannot compute sizeof (void *)
15148 See \`config.log' for more details." "$LINENO" 5; }; }
15149 else
15150 ac_cv_sizeof_void_p=0
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15156 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15160 cat >>confdefs.h <<_ACEOF
15161 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15162 _ACEOF
15165 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15166 if test "$cross_compiling" = yes; then :
15167 case "$target:$ptr_type_size" in
15168 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15169 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15171 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15172 esac
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 #include <pthread.h>
15179 #include <stdlib.h>
15180 #include <ucontext.h>
15181 #include <unistd.h>
15183 __thread int tls;
15185 static char stack[10 * 1024 * 1024];
15186 static ucontext_t c;
15188 /* Called via makecontext/setcontext. */
15190 static void
15191 cfn (void)
15193 exit (tls);
15196 /* Called via pthread_create. */
15198 static void *
15199 tfn (void *dummy)
15201 /* The thread should still see this value after calling
15202 setcontext. */
15203 tls = 0;
15205 setcontext (&c);
15207 /* The call to setcontext should not return. */
15208 abort ();
15212 main ()
15214 pthread_t tid;
15216 /* The thread should not see this value. */
15217 tls = 1;
15219 if (getcontext (&c) < 0)
15220 abort ();
15222 c.uc_stack.ss_sp = stack;
15223 #ifdef MAKECONTEXT_STACK_TOP
15224 c.uc_stack.ss_sp += sizeof stack;
15225 #endif
15226 c.uc_stack.ss_flags = 0;
15227 c.uc_stack.ss_size = sizeof stack;
15228 c.uc_link = NULL;
15229 makecontext (&c, cfn, 0);
15231 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15232 abort ();
15234 if (pthread_join (tid, NULL) != 0)
15235 abort ();
15237 /* The thread should have called exit. */
15238 abort ();
15241 _ACEOF
15242 if ac_fn_c_try_run "$LINENO"; then :
15243 libgo_cv_lib_setcontext_clobbers_tls=no
15244 else
15245 libgo_cv_lib_setcontext_clobbers_tls=yes
15247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15248 conftest.$ac_objext conftest.beam conftest.$ac_ext
15251 CFLAGS="$CFLAGS_hold"
15252 LIBS="$LIBS_hold"
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15256 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15257 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15259 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15264 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15265 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15269 libgo_cv_ro_eh_frame=no
15270 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15271 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15272 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15273 libgo_cv_ro_eh_frame=yes
15274 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15275 | grep -v '#write' > /dev/null; then
15276 libgo_cv_ro_eh_frame=yes
15279 rm -f conftest.*
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15283 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15284 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15286 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15288 else
15290 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15295 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15296 if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15297 $as_echo_n "(cached) " >&6
15298 else
15299 CFLAGS_hold=$CFLAGS
15300 CFLAGS="$CFLAGS -Qunused-arguments"
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 int i;
15304 _ACEOF
15305 if ac_fn_c_try_compile "$LINENO"; then :
15306 libgo_cv_c_unused_arguments=yes
15307 else
15308 libgo_cv_c_unused_arguments=no
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 CFLAGS=$CFLAGS_hold
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15314 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15317 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15318 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15322 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15323 CFLAGS_hold=$CFLAGS
15324 if test "$libgo_cv_c_unused_arguments" = yes; then
15325 CFLAGS="$CFLAGS -Qunused-arguments"
15327 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15328 libgo_cv_as_comdat_gnu=yes
15329 else
15330 libgo_cv_as_comdat_gnu=no
15332 CFLAGS=$CFLAGS_hold
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15336 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15337 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15339 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15344 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15345 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15349 libgo_cv_as_x86_pcrel=yes
15350 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15351 CFLAGS_hold=$CFLAGS
15352 if test "$libgo_cv_c_unused_arguments" = yes; then
15353 CFLAGS="$CFLAGS -Qunused-arguments"
15355 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15356 libgo_cv_as_x86_pcrel=no
15358 CFLAGS=$CFLAGS_hold
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15362 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15363 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15365 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15370 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15371 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15375 libgo_cv_as_x86_64_unwind_section_type=yes
15376 echo '.section .eh_frame,"a",@unwind' > conftest.s
15377 CFLAGS_hold=$CFLAGS
15378 if test "$libgo_cv_c_unused_arguments" = yes; then
15379 CFLAGS="$CFLAGS -Qunused-arguments"
15381 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15382 libgo_cv_as_x86_64_unwind_section_type=no
15384 CFLAGS=$CFLAGS_hold
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15388 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15389 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15391 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15395 cat >confcache <<\_ACEOF
15396 # This file is a shell script that caches the results of configure
15397 # tests run on this system so they can be shared between configure
15398 # scripts and configure runs, see configure's option --config-cache.
15399 # It is not useful on other systems. If it contains results you don't
15400 # want to keep, you may remove or edit it.
15402 # config.status only pays attention to the cache file if you give it
15403 # the --recheck option to rerun configure.
15405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15407 # following values.
15409 _ACEOF
15411 # The following way of writing the cache mishandles newlines in values,
15412 # but we know of no workaround that is simple, portable, and efficient.
15413 # So, we kill variables containing newlines.
15414 # Ultrix sh set writes to stderr and can't be redirected directly,
15415 # and sets the high bit in the cache file unless we assign to the vars.
15417 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15418 eval ac_val=\$$ac_var
15419 case $ac_val in #(
15420 *${as_nl}*)
15421 case $ac_var in #(
15422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15424 esac
15425 case $ac_var in #(
15426 _ | IFS | as_nl) ;; #(
15427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15428 *) { eval $ac_var=; unset $ac_var;} ;;
15429 esac ;;
15430 esac
15431 done
15433 (set) 2>&1 |
15434 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15435 *${as_nl}ac_space=\ *)
15436 # `set' does not quote correctly, so add quotes: double-quote
15437 # substitution turns \\\\ into \\, and sed turns \\ into \.
15438 sed -n \
15439 "s/'/'\\\\''/g;
15440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15441 ;; #(
15443 # `set' quotes correctly as required by POSIX, so do not add quotes.
15444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15446 esac |
15447 sort
15449 sed '
15450 /^ac_cv_env_/b end
15451 t clear
15452 :clear
15453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15454 t end
15455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15456 :end' >>confcache
15457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15458 if test -w "$cache_file"; then
15459 test "x$cache_file" != "x/dev/null" &&
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15461 $as_echo "$as_me: updating cache $cache_file" >&6;}
15462 cat confcache >$cache_file
15463 else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15468 rm -f confcache
15470 if test ${multilib} = yes; then
15471 multilib_arg="--enable-multilib"
15472 else
15473 multilib_arg=
15476 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15479 ac_config_commands="$ac_config_commands default"
15482 cat >confcache <<\_ACEOF
15483 # This file is a shell script that caches the results of configure
15484 # tests run on this system so they can be shared between configure
15485 # scripts and configure runs, see configure's option --config-cache.
15486 # It is not useful on other systems. If it contains results you don't
15487 # want to keep, you may remove or edit it.
15489 # config.status only pays attention to the cache file if you give it
15490 # the --recheck option to rerun configure.
15492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15494 # following values.
15496 _ACEOF
15498 # The following way of writing the cache mishandles newlines in values,
15499 # but we know of no workaround that is simple, portable, and efficient.
15500 # So, we kill variables containing newlines.
15501 # Ultrix sh set writes to stderr and can't be redirected directly,
15502 # and sets the high bit in the cache file unless we assign to the vars.
15504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15505 eval ac_val=\$$ac_var
15506 case $ac_val in #(
15507 *${as_nl}*)
15508 case $ac_var in #(
15509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15511 esac
15512 case $ac_var in #(
15513 _ | IFS | as_nl) ;; #(
15514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15515 *) { eval $ac_var=; unset $ac_var;} ;;
15516 esac ;;
15517 esac
15518 done
15520 (set) 2>&1 |
15521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15522 *${as_nl}ac_space=\ *)
15523 # `set' does not quote correctly, so add quotes: double-quote
15524 # substitution turns \\\\ into \\, and sed turns \\ into \.
15525 sed -n \
15526 "s/'/'\\\\''/g;
15527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15528 ;; #(
15530 # `set' quotes correctly as required by POSIX, so do not add quotes.
15531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15533 esac |
15534 sort
15536 sed '
15537 /^ac_cv_env_/b end
15538 t clear
15539 :clear
15540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15541 t end
15542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15543 :end' >>confcache
15544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15545 if test -w "$cache_file"; then
15546 test "x$cache_file" != "x/dev/null" &&
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15548 $as_echo "$as_me: updating cache $cache_file" >&6;}
15549 cat confcache >$cache_file
15550 else
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15555 rm -f confcache
15557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15558 # Let make expand exec_prefix.
15559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15561 DEFS=-DHAVE_CONFIG_H
15563 ac_libobjs=
15564 ac_ltlibobjs=
15565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15566 # 1. Remove the extension, and $U if already installed.
15567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15570 # will be set to the directory where LIBOBJS objects are built.
15571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15573 done
15574 LIBOBJS=$ac_libobjs
15576 LTLIBOBJS=$ac_ltlibobjs
15579 if test -n "$EXEEXT"; then
15580 am__EXEEXT_TRUE=
15581 am__EXEEXT_FALSE='#'
15582 else
15583 am__EXEEXT_TRUE='#'
15584 am__EXEEXT_FALSE=
15587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15588 as_fn_error "conditional \"AMDEP\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15592 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15596 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15600 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15604 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15608 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15612 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15616 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15620 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15624 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15628 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15632 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15636 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15640 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15644 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15649 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15652 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15653 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15657 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15660 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15661 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665 : ${CONFIG_STATUS=./config.status}
15666 ac_write_fail=0
15667 ac_clean_files_save=$ac_clean_files
15668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15671 as_write_fail=0
15672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15673 #! $SHELL
15674 # Generated by $as_me.
15675 # Run this file to recreate the current configuration.
15676 # Compiler output produced by configure, useful for debugging
15677 # configure, is in config.log if it exists.
15679 debug=false
15680 ac_cs_recheck=false
15681 ac_cs_silent=false
15683 SHELL=\${CONFIG_SHELL-$SHELL}
15684 export SHELL
15685 _ASEOF
15686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15687 ## -------------------- ##
15688 ## M4sh Initialization. ##
15689 ## -------------------- ##
15691 # Be more Bourne compatible
15692 DUALCASE=1; export DUALCASE # for MKS sh
15693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15694 emulate sh
15695 NULLCMD=:
15696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15697 # is contrary to our usage. Disable this feature.
15698 alias -g '${1+"$@"}'='"$@"'
15699 setopt NO_GLOB_SUBST
15700 else
15701 case `(set -o) 2>/dev/null` in #(
15702 *posix*) :
15703 set -o posix ;; #(
15704 *) :
15706 esac
15710 as_nl='
15712 export as_nl
15713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15717 # Prefer a ksh shell builtin over an external printf program on Solaris,
15718 # but without wasting forks for bash or zsh.
15719 if test -z "$BASH_VERSION$ZSH_VERSION" \
15720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15721 as_echo='print -r --'
15722 as_echo_n='print -rn --'
15723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15724 as_echo='printf %s\n'
15725 as_echo_n='printf %s'
15726 else
15727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15729 as_echo_n='/usr/ucb/echo -n'
15730 else
15731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15732 as_echo_n_body='eval
15733 arg=$1;
15734 case $arg in #(
15735 *"$as_nl"*)
15736 expr "X$arg" : "X\\(.*\\)$as_nl";
15737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15738 esac;
15739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15741 export as_echo_n_body
15742 as_echo_n='sh -c $as_echo_n_body as_echo'
15744 export as_echo_body
15745 as_echo='sh -c $as_echo_body as_echo'
15748 # The user is always right.
15749 if test "${PATH_SEPARATOR+set}" != set; then
15750 PATH_SEPARATOR=:
15751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15753 PATH_SEPARATOR=';'
15758 # IFS
15759 # We need space, tab and new line, in precisely that order. Quoting is
15760 # there to prevent editors from complaining about space-tab.
15761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15762 # splitting by setting IFS to empty value.)
15763 IFS=" "" $as_nl"
15765 # Find who we are. Look in the path if we contain no directory separator.
15766 case $0 in #((
15767 *[\\/]* ) as_myself=$0 ;;
15768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15771 IFS=$as_save_IFS
15772 test -z "$as_dir" && as_dir=.
15773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15774 done
15775 IFS=$as_save_IFS
15778 esac
15779 # We did not find ourselves, most probably we were run as `sh COMMAND'
15780 # in which case we are not to be found in the path.
15781 if test "x$as_myself" = x; then
15782 as_myself=$0
15784 if test ! -f "$as_myself"; then
15785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15786 exit 1
15789 # Unset variables that we do not need and which cause bugs (e.g. in
15790 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15791 # suppresses any "Segmentation fault" message there. '((' could
15792 # trigger a bug in pdksh 5.2.14.
15793 for as_var in BASH_ENV ENV MAIL MAILPATH
15794 do eval test x\${$as_var+set} = xset \
15795 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15796 done
15797 PS1='$ '
15798 PS2='> '
15799 PS4='+ '
15801 # NLS nuisances.
15802 LC_ALL=C
15803 export LC_ALL
15804 LANGUAGE=C
15805 export LANGUAGE
15807 # CDPATH.
15808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15811 # as_fn_error ERROR [LINENO LOG_FD]
15812 # ---------------------------------
15813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15815 # script with status $?, using 1 if that was 0.
15816 as_fn_error ()
15818 as_status=$?; test $as_status -eq 0 && as_status=1
15819 if test "$3"; then
15820 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15821 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15823 $as_echo "$as_me: error: $1" >&2
15824 as_fn_exit $as_status
15825 } # as_fn_error
15828 # as_fn_set_status STATUS
15829 # -----------------------
15830 # Set $? to STATUS, without forking.
15831 as_fn_set_status ()
15833 return $1
15834 } # as_fn_set_status
15836 # as_fn_exit STATUS
15837 # -----------------
15838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15839 as_fn_exit ()
15841 set +e
15842 as_fn_set_status $1
15843 exit $1
15844 } # as_fn_exit
15846 # as_fn_unset VAR
15847 # ---------------
15848 # Portably unset VAR.
15849 as_fn_unset ()
15851 { eval $1=; unset $1;}
15853 as_unset=as_fn_unset
15854 # as_fn_append VAR VALUE
15855 # ----------------------
15856 # Append the text in VALUE to the end of the definition contained in VAR. Take
15857 # advantage of any shell optimizations that allow amortized linear growth over
15858 # repeated appends, instead of the typical quadratic growth present in naive
15859 # implementations.
15860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15861 eval 'as_fn_append ()
15863 eval $1+=\$2
15865 else
15866 as_fn_append ()
15868 eval $1=\$$1\$2
15870 fi # as_fn_append
15872 # as_fn_arith ARG...
15873 # ------------------
15874 # Perform arithmetic evaluation on the ARGs, and store the result in the
15875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15876 # must be portable across $(()) and expr.
15877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15878 eval 'as_fn_arith ()
15880 as_val=$(( $* ))
15882 else
15883 as_fn_arith ()
15885 as_val=`expr "$@" || test $? -eq 1`
15887 fi # as_fn_arith
15890 if expr a : '\(a\)' >/dev/null 2>&1 &&
15891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15892 as_expr=expr
15893 else
15894 as_expr=false
15897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15898 as_basename=basename
15899 else
15900 as_basename=false
15903 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15904 as_dirname=dirname
15905 else
15906 as_dirname=false
15909 as_me=`$as_basename -- "$0" ||
15910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15911 X"$0" : 'X\(//\)$' \| \
15912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15913 $as_echo X/"$0" |
15914 sed '/^.*\/\([^/][^/]*\)\/*$/{
15915 s//\1/
15918 /^X\/\(\/\/\)$/{
15919 s//\1/
15922 /^X\/\(\/\).*/{
15923 s//\1/
15926 s/.*/./; q'`
15928 # Avoid depending upon Character Ranges.
15929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15932 as_cr_digits='0123456789'
15933 as_cr_alnum=$as_cr_Letters$as_cr_digits
15935 ECHO_C= ECHO_N= ECHO_T=
15936 case `echo -n x` in #(((((
15937 -n*)
15938 case `echo 'xy\c'` in
15939 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15940 xy) ECHO_C='\c';;
15941 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15942 ECHO_T=' ';;
15943 esac;;
15945 ECHO_N='-n';;
15946 esac
15948 rm -f conf$$ conf$$.exe conf$$.file
15949 if test -d conf$$.dir; then
15950 rm -f conf$$.dir/conf$$.file
15951 else
15952 rm -f conf$$.dir
15953 mkdir conf$$.dir 2>/dev/null
15955 if (echo >conf$$.file) 2>/dev/null; then
15956 if ln -s conf$$.file conf$$ 2>/dev/null; then
15957 as_ln_s='ln -s'
15958 # ... but there are two gotchas:
15959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15961 # In both cases, we have to default to `cp -p'.
15962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15963 as_ln_s='cp -p'
15964 elif ln conf$$.file conf$$ 2>/dev/null; then
15965 as_ln_s=ln
15966 else
15967 as_ln_s='cp -p'
15969 else
15970 as_ln_s='cp -p'
15972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15973 rmdir conf$$.dir 2>/dev/null
15976 # as_fn_mkdir_p
15977 # -------------
15978 # Create "$as_dir" as a directory, including parents if necessary.
15979 as_fn_mkdir_p ()
15982 case $as_dir in #(
15983 -*) as_dir=./$as_dir;;
15984 esac
15985 test -d "$as_dir" || eval $as_mkdir_p || {
15986 as_dirs=
15987 while :; do
15988 case $as_dir in #(
15989 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15990 *) as_qdir=$as_dir;;
15991 esac
15992 as_dirs="'$as_qdir' $as_dirs"
15993 as_dir=`$as_dirname -- "$as_dir" ||
15994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15995 X"$as_dir" : 'X\(//\)[^/]' \| \
15996 X"$as_dir" : 'X\(//\)$' \| \
15997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15998 $as_echo X"$as_dir" |
15999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16000 s//\1/
16003 /^X\(\/\/\)[^/].*/{
16004 s//\1/
16007 /^X\(\/\/\)$/{
16008 s//\1/
16011 /^X\(\/\).*/{
16012 s//\1/
16015 s/.*/./; q'`
16016 test -d "$as_dir" && break
16017 done
16018 test -z "$as_dirs" || eval "mkdir $as_dirs"
16019 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16022 } # as_fn_mkdir_p
16023 if mkdir -p . 2>/dev/null; then
16024 as_mkdir_p='mkdir -p "$as_dir"'
16025 else
16026 test -d ./-p && rmdir ./-p
16027 as_mkdir_p=false
16030 if test -x / >/dev/null 2>&1; then
16031 as_test_x='test -x'
16032 else
16033 if ls -dL / >/dev/null 2>&1; then
16034 as_ls_L_option=L
16035 else
16036 as_ls_L_option=
16038 as_test_x='
16039 eval sh -c '\''
16040 if test -d "$1"; then
16041 test -d "$1/.";
16042 else
16043 case $1 in #(
16044 -*)set "./$1";;
16045 esac;
16046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16047 ???[sx]*):;;*)false;;esac;fi
16048 '\'' sh
16051 as_executable_p=$as_test_x
16053 # Sed expression to map a string onto a valid CPP name.
16054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16056 # Sed expression to map a string onto a valid variable name.
16057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16060 exec 6>&1
16061 ## ----------------------------------- ##
16062 ## Main body of $CONFIG_STATUS script. ##
16063 ## ----------------------------------- ##
16064 _ASEOF
16065 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 # Save the log message, to keep $0 and so on meaningful, and to
16069 # report actual input values of CONFIG_FILES etc. instead of their
16070 # values after options handling.
16071 ac_log="
16072 This file was extended by package-unused $as_me version-unused, which was
16073 generated by GNU Autoconf 2.64. Invocation command line was
16075 CONFIG_FILES = $CONFIG_FILES
16076 CONFIG_HEADERS = $CONFIG_HEADERS
16077 CONFIG_LINKS = $CONFIG_LINKS
16078 CONFIG_COMMANDS = $CONFIG_COMMANDS
16079 $ $0 $@
16081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16084 _ACEOF
16086 case $ac_config_files in *"
16087 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16088 esac
16090 case $ac_config_headers in *"
16091 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16092 esac
16095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16096 # Files that config.status was made for.
16097 config_files="$ac_config_files"
16098 config_headers="$ac_config_headers"
16099 config_commands="$ac_config_commands"
16101 _ACEOF
16103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 ac_cs_usage="\
16105 \`$as_me' instantiates files and other configuration actions
16106 from templates according to the current configuration. Unless the files
16107 and actions are specified as TAGs, all are instantiated by default.
16109 Usage: $0 [OPTION]... [TAG]...
16111 -h, --help print this help, then exit
16112 -V, --version print version number and configuration settings, then exit
16113 -q, --quiet, --silent
16114 do not print progress messages
16115 -d, --debug don't remove temporary files
16116 --recheck update $as_me by reconfiguring in the same conditions
16117 --file=FILE[:TEMPLATE]
16118 instantiate the configuration file FILE
16119 --header=FILE[:TEMPLATE]
16120 instantiate the configuration header FILE
16122 Configuration files:
16123 $config_files
16125 Configuration headers:
16126 $config_headers
16128 Configuration commands:
16129 $config_commands
16131 Report bugs to the package provider."
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_cs_version="\\
16136 package-unused config.status version-unused
16137 configured by $0, generated by GNU Autoconf 2.64,
16138 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16140 Copyright (C) 2009 Free Software Foundation, Inc.
16141 This config.status script is free software; the Free Software Foundation
16142 gives unlimited permission to copy, distribute and modify it."
16144 ac_pwd='$ac_pwd'
16145 srcdir='$srcdir'
16146 INSTALL='$INSTALL'
16147 MKDIR_P='$MKDIR_P'
16148 AWK='$AWK'
16149 test -n "\$AWK" || AWK=awk
16150 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 # The default lists apply if the user does not specify any file.
16154 ac_need_defaults=:
16155 while test $# != 0
16157 case $1 in
16158 --*=*)
16159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16161 ac_shift=:
16164 ac_option=$1
16165 ac_optarg=$2
16166 ac_shift=shift
16168 esac
16170 case $ac_option in
16171 # Handling of the options.
16172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16173 ac_cs_recheck=: ;;
16174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16175 $as_echo "$ac_cs_version"; exit ;;
16176 --debug | --debu | --deb | --de | --d | -d )
16177 debug=: ;;
16178 --file | --fil | --fi | --f )
16179 $ac_shift
16180 case $ac_optarg in
16181 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16182 esac
16183 as_fn_append CONFIG_FILES " '$ac_optarg'"
16184 ac_need_defaults=false;;
16185 --header | --heade | --head | --hea )
16186 $ac_shift
16187 case $ac_optarg in
16188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16189 esac
16190 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16191 ac_need_defaults=false;;
16192 --he | --h)
16193 # Conflict between --help and --header
16194 as_fn_error "ambiguous option: \`$1'
16195 Try \`$0 --help' for more information.";;
16196 --help | --hel | -h )
16197 $as_echo "$ac_cs_usage"; exit ;;
16198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16200 ac_cs_silent=: ;;
16202 # This is an error.
16203 -*) as_fn_error "unrecognized option: \`$1'
16204 Try \`$0 --help' for more information." ;;
16206 *) as_fn_append ac_config_targets " $1"
16207 ac_need_defaults=false ;;
16209 esac
16210 shift
16211 done
16213 ac_configure_extra_args=
16215 if $ac_cs_silent; then
16216 exec 6>/dev/null
16217 ac_configure_extra_args="$ac_configure_extra_args --silent"
16220 _ACEOF
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 if \$ac_cs_recheck; then
16223 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16224 shift
16225 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16226 CONFIG_SHELL='$SHELL'
16227 export CONFIG_SHELL
16228 exec "\$@"
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16233 exec 5>>config.log
16235 echo
16236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16237 ## Running $as_me. ##
16238 _ASBOX
16239 $as_echo "$ac_log"
16240 } >&5
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16245 # INIT-COMMANDS
16248 srcdir="$srcdir"
16249 host="$host"
16250 target="$target"
16251 with_multisubdir="$with_multisubdir"
16252 with_multisrctop="$with_multisrctop"
16253 with_target_subdir="$with_target_subdir"
16254 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16255 multi_basedir="$multi_basedir"
16256 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16257 CC="$CC"
16258 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16261 # The HP-UX ksh and POSIX shell print the target directory to stdout
16262 # if CDPATH is set.
16263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16265 sed_quote_subst='$sed_quote_subst'
16266 double_quote_subst='$double_quote_subst'
16267 delay_variable_subst='$delay_variable_subst'
16268 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16269 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16270 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16271 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16272 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16273 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16274 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16276 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16277 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16278 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16279 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16280 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16281 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16282 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16283 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16284 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16285 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16286 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16287 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16288 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16289 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16290 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16291 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16292 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16293 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16294 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16295 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16296 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16297 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16298 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16299 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16300 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16301 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16302 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16303 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16304 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16305 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16306 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16307 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16308 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16309 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16310 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16311 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16312 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16313 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16314 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16316 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"`'
16317 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16318 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16319 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16321 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16322 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16323 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16324 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16325 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16326 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16327 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16328 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16329 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16330 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16331 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16332 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16333 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16334 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16335 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16336 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16337 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16338 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16339 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16340 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16341 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16342 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16343 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16344 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16345 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16346 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16347 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16348 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16349 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16350 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16351 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16352 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16353 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16354 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16355 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16356 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16357 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16358 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16359 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16360 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16361 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16362 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16363 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16364 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16365 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16366 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16367 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16368 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16369 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16370 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16371 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16372 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16373 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16374 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16375 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16376 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16377 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16378 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16379 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16380 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16381 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16382 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16383 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16384 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16385 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16386 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16387 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16388 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16389 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16390 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16391 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16392 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16393 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16394 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16395 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16397 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16398 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16399 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16400 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16401 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16402 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16403 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16404 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16405 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16406 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16407 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16408 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16409 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16410 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16411 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16412 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16413 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16414 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16415 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16416 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16417 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16418 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16419 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16420 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16421 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16422 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16423 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16424 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16425 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16426 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16427 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16428 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16429 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16430 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16432 LTCC='$LTCC'
16433 LTCFLAGS='$LTCFLAGS'
16434 compiler='$compiler_DEFAULT'
16436 # A function that is used when there is no print builtin or printf.
16437 func_fallback_echo ()
16439 eval 'cat <<_LTECHO_EOF
16441 _LTECHO_EOF'
16444 # Quote evaled strings.
16445 for var in SED \
16446 GREP \
16447 EGREP \
16448 FGREP \
16449 SHELL \
16450 ECHO \
16451 LD \
16452 NM \
16453 LN_S \
16454 lt_SP2NL \
16455 lt_NL2SP \
16456 reload_flag \
16457 OBJDUMP \
16458 deplibs_check_method \
16459 file_magic_cmd \
16460 AR \
16461 AR_FLAGS \
16462 STRIP \
16463 RANLIB \
16464 CC \
16465 CFLAGS \
16466 compiler \
16467 lt_cv_sys_global_symbol_pipe \
16468 lt_cv_sys_global_symbol_to_cdecl \
16469 lt_cv_sys_global_symbol_to_c_name_address \
16470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16471 lt_prog_compiler_no_builtin_flag \
16472 lt_prog_compiler_wl \
16473 lt_prog_compiler_pic \
16474 lt_prog_compiler_static \
16475 lt_cv_prog_compiler_c_o \
16476 need_locks \
16477 DSYMUTIL \
16478 NMEDIT \
16479 LIPO \
16480 OTOOL \
16481 OTOOL64 \
16482 shrext_cmds \
16483 export_dynamic_flag_spec \
16484 whole_archive_flag_spec \
16485 compiler_needs_object \
16486 with_gnu_ld \
16487 allow_undefined_flag \
16488 no_undefined_flag \
16489 hardcode_libdir_flag_spec \
16490 hardcode_libdir_flag_spec_ld \
16491 hardcode_libdir_separator \
16492 fix_srcfile_path \
16493 exclude_expsyms \
16494 include_expsyms \
16495 file_list_spec \
16496 variables_saved_for_relink \
16497 libname_spec \
16498 library_names_spec \
16499 soname_spec \
16500 install_override_mode \
16501 finish_eval \
16502 old_striplib \
16503 striplib \
16504 LD_GO \
16505 reload_flag_GO \
16506 compiler_GO \
16507 lt_prog_compiler_no_builtin_flag_GO \
16508 lt_prog_compiler_wl_GO \
16509 lt_prog_compiler_pic_GO \
16510 lt_prog_compiler_static_GO \
16511 lt_cv_prog_compiler_c_o_GO \
16512 export_dynamic_flag_spec_GO \
16513 whole_archive_flag_spec_GO \
16514 compiler_needs_object_GO \
16515 with_gnu_ld_GO \
16516 allow_undefined_flag_GO \
16517 no_undefined_flag_GO \
16518 hardcode_libdir_flag_spec_GO \
16519 hardcode_libdir_flag_spec_ld_GO \
16520 hardcode_libdir_separator_GO \
16521 fix_srcfile_path_GO \
16522 exclude_expsyms_GO \
16523 include_expsyms_GO \
16524 file_list_spec_GO; do
16525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16526 *[\\\\\\\`\\"\\\$]*)
16527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16532 esac
16533 done
16535 # Double-quote double-evaled strings.
16536 for var in reload_cmds \
16537 old_postinstall_cmds \
16538 old_postuninstall_cmds \
16539 old_archive_cmds \
16540 extract_expsyms_cmds \
16541 old_archive_from_new_cmds \
16542 old_archive_from_expsyms_cmds \
16543 archive_cmds \
16544 archive_expsym_cmds \
16545 module_cmds \
16546 module_expsym_cmds \
16547 export_symbols_cmds \
16548 prelink_cmds \
16549 postinstall_cmds \
16550 postuninstall_cmds \
16551 finish_cmds \
16552 sys_lib_search_path_spec \
16553 sys_lib_dlsearch_path_spec \
16554 reload_cmds_GO \
16555 old_archive_cmds_GO \
16556 old_archive_from_new_cmds_GO \
16557 old_archive_from_expsyms_cmds_GO \
16558 archive_cmds_GO \
16559 archive_expsym_cmds_GO \
16560 module_cmds_GO \
16561 module_expsym_cmds_GO \
16562 export_symbols_cmds_GO \
16563 prelink_cmds_GO; do
16564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16565 *[\\\\\\\`\\"\\\$]*)
16566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16571 esac
16572 done
16574 ac_aux_dir='$ac_aux_dir'
16575 xsi_shell='$xsi_shell'
16576 lt_shell_append='$lt_shell_append'
16578 # See if we are running on zsh, and set the options which allow our
16579 # commands through without removal of \ escapes INIT.
16580 if test -n "\${ZSH_VERSION+set}" ; then
16581 setopt NO_GLOB_SUBST
16585 PACKAGE='$PACKAGE'
16586 VERSION='$VERSION'
16587 TIMESTAMP='$TIMESTAMP'
16588 RM='$RM'
16589 ofile='$ofile'
16596 # Variables needed in config.status (file generation) which aren't already
16597 # passed by autoconf.
16598 SUBDIRS="$SUBDIRS"
16601 _ACEOF
16603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605 # Handling of arguments.
16606 for ac_config_target in $ac_config_targets
16608 case $ac_config_target in
16609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16610 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16611 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16612 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16613 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16614 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16615 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16617 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16618 esac
16619 done
16622 # If the user did not use the arguments to specify the items to instantiate,
16623 # then the envvar interface is used. Set only those that are not.
16624 # We use the long form for the default assignment because of an extremely
16625 # bizarre bug on SunOS 4.1.3.
16626 if $ac_need_defaults; then
16627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16632 # Have a temporary directory for convenience. Make it in the build tree
16633 # simply because there is no reason against having it here, and in addition,
16634 # creating and moving files from /tmp can sometimes cause problems.
16635 # Hook for its removal unless debugging.
16636 # Note that there is a small window in which the directory will not be cleaned:
16637 # after its creation but before its name has been assigned to `$tmp'.
16638 $debug ||
16640 tmp=
16641 trap 'exit_status=$?
16642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16644 trap 'as_fn_exit 1' 1 2 13 15
16646 # Create a (secure) tmp directory for tmp files.
16649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16650 test -n "$tmp" && test -d "$tmp"
16651 } ||
16653 tmp=./conf$$-$RANDOM
16654 (umask 077 && mkdir "$tmp")
16655 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16657 # Set up the scripts for CONFIG_FILES section.
16658 # No need to generate them if there are no CONFIG_FILES.
16659 # This happens for instance with `./config.status config.h'.
16660 if test -n "$CONFIG_FILES"; then
16663 ac_cr=`echo X | tr X '\015'`
16664 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16665 # But we know of no other shell where ac_cr would be empty at this
16666 # point, so we can use a bashism as a fallback.
16667 if test "x$ac_cr" = x; then
16668 eval ac_cr=\$\'\\r\'
16670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16672 ac_cs_awk_cr='\r'
16673 else
16674 ac_cs_awk_cr=$ac_cr
16677 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16678 _ACEOF
16682 echo "cat >conf$$subs.awk <<_ACEOF" &&
16683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16684 echo "_ACEOF"
16685 } >conf$$subs.sh ||
16686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16687 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16688 ac_delim='%!_!# '
16689 for ac_last_try in false false false false false :; do
16690 . ./conf$$subs.sh ||
16691 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16694 if test $ac_delim_n = $ac_delim_num; then
16695 break
16696 elif $ac_last_try; then
16697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16698 else
16699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16701 done
16702 rm -f conf$$subs.sh
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16706 _ACEOF
16707 sed -n '
16709 s/^/S["/; s/!.*/"]=/
16712 s/^[^!]*!//
16713 :repl
16714 t repl
16715 s/'"$ac_delim"'$//
16716 t delim
16719 s/\(.\{148\}\).*/\1/
16720 t more1
16721 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16724 b repl
16725 :more1
16726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16729 s/.\{148\}//
16730 t nl
16731 :delim
16733 s/\(.\{148\}\).*/\1/
16734 t more2
16735 s/["\\]/\\&/g; s/^/"/; s/$/"/
16738 :more2
16739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16742 s/.\{148\}//
16743 t delim
16744 ' <conf$$subs.awk | sed '
16745 /^[^""]/{
16747 s/\n//
16749 ' >>$CONFIG_STATUS || ac_write_fail=1
16750 rm -f conf$$subs.awk
16751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16752 _ACAWK
16753 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16754 for (key in S) S_is_set[key] = 1
16755 FS = "\a"
16759 line = $ 0
16760 nfields = split(line, field, "@")
16761 substed = 0
16762 len = length(field[1])
16763 for (i = 2; i < nfields; i++) {
16764 key = field[i]
16765 keylen = length(key)
16766 if (S_is_set[key]) {
16767 value = S[key]
16768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16769 len += length(value) + length(field[++i])
16770 substed = 1
16771 } else
16772 len += 1 + keylen
16775 print line
16778 _ACAWK
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16781 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16783 else
16785 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16786 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16787 _ACEOF
16789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16791 # trailing colons and then remove the whole line if VPATH becomes empty
16792 # (actually we leave an empty line to preserve line numbers).
16793 if test "x$srcdir" = x.; then
16794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16795 s/:*\$(srcdir):*/:/
16796 s/:*\${srcdir}:*/:/
16797 s/:*@srcdir@:*/:/
16798 s/^\([^=]*=[ ]*\):*/\1/
16799 s/:*$//
16800 s/^[^=]*=[ ]*$//
16804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805 fi # test -n "$CONFIG_FILES"
16807 # Set up the scripts for CONFIG_HEADERS section.
16808 # No need to generate them if there are no CONFIG_HEADERS.
16809 # This happens for instance with `./config.status Makefile'.
16810 if test -n "$CONFIG_HEADERS"; then
16811 cat >"$tmp/defines.awk" <<\_ACAWK ||
16812 BEGIN {
16813 _ACEOF
16815 # Transform confdefs.h into an awk script `defines.awk', embedded as
16816 # here-document in config.status, that substitutes the proper values into
16817 # config.h.in to produce config.h.
16819 # Create a delimiter string that does not exist in confdefs.h, to ease
16820 # handling of long lines.
16821 ac_delim='%!_!# '
16822 for ac_last_try in false false :; do
16823 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16824 if test -z "$ac_t"; then
16825 break
16826 elif $ac_last_try; then
16827 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16828 else
16829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16831 done
16833 # For the awk script, D is an array of macro values keyed by name,
16834 # likewise P contains macro parameters if any. Preserve backslash
16835 # newline sequences.
16837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16838 sed -n '
16839 s/.\{148\}/&'"$ac_delim"'/g
16840 t rset
16841 :rset
16842 s/^[ ]*#[ ]*define[ ][ ]*/ /
16843 t def
16845 :def
16846 s/\\$//
16847 t bsnl
16848 s/["\\]/\\&/g
16849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16850 D["\1"]=" \3"/p
16851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16853 :bsnl
16854 s/["\\]/\\&/g
16855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16856 D["\1"]=" \3\\\\\\n"\\/p
16857 t cont
16858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16859 t cont
16861 :cont
16863 s/.\{148\}/&'"$ac_delim"'/g
16864 t clear
16865 :clear
16866 s/\\$//
16867 t bsnlc
16868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16870 :bsnlc
16871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16872 b cont
16873 ' <confdefs.h | sed '
16874 s/'"$ac_delim"'/"\\\
16875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 for (key in D) D_is_set[key] = 1
16879 FS = "\a"
16881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16882 line = \$ 0
16883 split(line, arg, " ")
16884 if (arg[1] == "#") {
16885 defundef = arg[2]
16886 mac1 = arg[3]
16887 } else {
16888 defundef = substr(arg[1], 2)
16889 mac1 = arg[2]
16891 split(mac1, mac2, "(") #)
16892 macro = mac2[1]
16893 prefix = substr(line, 1, index(line, defundef) - 1)
16894 if (D_is_set[macro]) {
16895 # Preserve the white space surrounding the "#".
16896 print prefix "define", macro P[macro] D[macro]
16897 next
16898 } else {
16899 # Replace #undef with comments. This is necessary, for example,
16900 # in the case of _POSIX_SOURCE, which is predefined and required
16901 # on some systems where configure will not decide to define it.
16902 if (defundef == "undef") {
16903 print "/*", prefix defundef, macro, "*/"
16904 next
16908 { print }
16909 _ACAWK
16910 _ACEOF
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16912 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16913 fi # test -n "$CONFIG_HEADERS"
16916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16917 shift
16918 for ac_tag
16920 case $ac_tag in
16921 :[FHLC]) ac_mode=$ac_tag; continue;;
16922 esac
16923 case $ac_mode$ac_tag in
16924 :[FHL]*:*);;
16925 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16926 :[FH]-) ac_tag=-:-;;
16927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16928 esac
16929 ac_save_IFS=$IFS
16930 IFS=:
16931 set x $ac_tag
16932 IFS=$ac_save_IFS
16933 shift
16934 ac_file=$1
16935 shift
16937 case $ac_mode in
16938 :L) ac_source=$1;;
16939 :[FH])
16940 ac_file_inputs=
16941 for ac_f
16943 case $ac_f in
16944 -) ac_f="$tmp/stdin";;
16945 *) # Look for the file first in the build tree, then in the source tree
16946 # (if the path is not absolute). The absolute path cannot be DOS-style,
16947 # because $ac_f cannot contain `:'.
16948 test -f "$ac_f" ||
16949 case $ac_f in
16950 [\\/$]*) false;;
16951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16952 esac ||
16953 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16954 esac
16955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16956 as_fn_append ac_file_inputs " '$ac_f'"
16957 done
16959 # Let's still pretend it is `configure' which instantiates (i.e., don't
16960 # use $as_me), people would be surprised to read:
16961 # /* config.h. Generated by config.status. */
16962 configure_input='Generated from '`
16963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16964 `' by configure.'
16965 if test x"$ac_file" != x-; then
16966 configure_input="$ac_file. $configure_input"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16968 $as_echo "$as_me: creating $ac_file" >&6;}
16970 # Neutralize special characters interpreted by sed in replacement strings.
16971 case $configure_input in #(
16972 *\&* | *\|* | *\\* )
16973 ac_sed_conf_input=`$as_echo "$configure_input" |
16974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16975 *) ac_sed_conf_input=$configure_input;;
16976 esac
16978 case $ac_tag in
16979 *:-:* | *:-) cat >"$tmp/stdin" \
16980 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16981 esac
16983 esac
16985 ac_dir=`$as_dirname -- "$ac_file" ||
16986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16987 X"$ac_file" : 'X\(//\)[^/]' \| \
16988 X"$ac_file" : 'X\(//\)$' \| \
16989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16990 $as_echo X"$ac_file" |
16991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16992 s//\1/
16995 /^X\(\/\/\)[^/].*/{
16996 s//\1/
16999 /^X\(\/\/\)$/{
17000 s//\1/
17003 /^X\(\/\).*/{
17004 s//\1/
17007 s/.*/./; q'`
17008 as_dir="$ac_dir"; as_fn_mkdir_p
17009 ac_builddir=.
17011 case "$ac_dir" in
17012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17015 # A ".." for each directory in $ac_dir_suffix.
17016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17017 case $ac_top_builddir_sub in
17018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17020 esac ;;
17021 esac
17022 ac_abs_top_builddir=$ac_pwd
17023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17024 # for backward compatibility:
17025 ac_top_builddir=$ac_top_build_prefix
17027 case $srcdir in
17028 .) # We are building in place.
17029 ac_srcdir=.
17030 ac_top_srcdir=$ac_top_builddir_sub
17031 ac_abs_top_srcdir=$ac_pwd ;;
17032 [\\/]* | ?:[\\/]* ) # Absolute name.
17033 ac_srcdir=$srcdir$ac_dir_suffix;
17034 ac_top_srcdir=$srcdir
17035 ac_abs_top_srcdir=$srcdir ;;
17036 *) # Relative name.
17037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17038 ac_top_srcdir=$ac_top_build_prefix$srcdir
17039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17040 esac
17041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17044 case $ac_mode in
17047 # CONFIG_FILE
17050 case $INSTALL in
17051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17053 esac
17054 ac_MKDIR_P=$MKDIR_P
17055 case $MKDIR_P in
17056 [\\/$]* | ?:[\\/]* ) ;;
17057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17058 esac
17059 _ACEOF
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17062 # If the template does not know about datarootdir, expand it.
17063 # FIXME: This hack should be removed a few years after 2.60.
17064 ac_datarootdir_hack=; ac_datarootdir_seen=
17065 ac_sed_dataroot='
17066 /datarootdir/ {
17070 /@datadir@/p
17071 /@docdir@/p
17072 /@infodir@/p
17073 /@localedir@/p
17074 /@mandir@/p'
17075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17076 *datarootdir*) ac_datarootdir_seen=yes;;
17077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17080 _ACEOF
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 ac_datarootdir_hack='
17083 s&@datadir@&$datadir&g
17084 s&@docdir@&$docdir&g
17085 s&@infodir@&$infodir&g
17086 s&@localedir@&$localedir&g
17087 s&@mandir@&$mandir&g
17088 s&\\\${datarootdir}&$datarootdir&g' ;;
17089 esac
17090 _ACEOF
17092 # Neutralize VPATH when `$srcdir' = `.'.
17093 # Shell code in configure.ac might set extrasub.
17094 # FIXME: do we really want to maintain this feature?
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 ac_sed_extra="$ac_vpsub
17097 $extrasub
17098 _ACEOF
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17102 s|@configure_input@|$ac_sed_conf_input|;t t
17103 s&@top_builddir@&$ac_top_builddir_sub&;t t
17104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17105 s&@srcdir@&$ac_srcdir&;t t
17106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17107 s&@top_srcdir@&$ac_top_srcdir&;t t
17108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17109 s&@builddir@&$ac_builddir&;t t
17110 s&@abs_builddir@&$ac_abs_builddir&;t t
17111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17112 s&@INSTALL@&$ac_INSTALL&;t t
17113 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17114 $ac_datarootdir_hack
17116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17117 || as_fn_error "could not create $ac_file" "$LINENO" 5
17119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17120 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17123 which seems to be undefined. Please make sure it is defined." >&5
17124 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17125 which seems to be undefined. Please make sure it is defined." >&2;}
17127 rm -f "$tmp/stdin"
17128 case $ac_file in
17129 -) cat "$tmp/out" && rm -f "$tmp/out";;
17130 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17131 esac \
17132 || as_fn_error "could not create $ac_file" "$LINENO" 5
17136 # CONFIG_HEADER
17138 if test x"$ac_file" != x-; then
17140 $as_echo "/* $configure_input */" \
17141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17142 } >"$tmp/config.h" \
17143 || as_fn_error "could not create $ac_file" "$LINENO" 5
17144 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17146 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17147 else
17148 rm -f "$ac_file"
17149 mv "$tmp/config.h" "$ac_file" \
17150 || as_fn_error "could not create $ac_file" "$LINENO" 5
17152 else
17153 $as_echo "/* $configure_input */" \
17154 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17155 || as_fn_error "could not create -" "$LINENO" 5
17157 # Compute "$ac_file"'s index in $config_headers.
17158 _am_arg="$ac_file"
17159 _am_stamp_count=1
17160 for _am_header in $config_headers :; do
17161 case $_am_header in
17162 $_am_arg | $_am_arg:* )
17163 break ;;
17165 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17166 esac
17167 done
17168 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17169 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17170 X"$_am_arg" : 'X\(//\)[^/]' \| \
17171 X"$_am_arg" : 'X\(//\)$' \| \
17172 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17173 $as_echo X"$_am_arg" |
17174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17175 s//\1/
17178 /^X\(\/\/\)[^/].*/{
17179 s//\1/
17182 /^X\(\/\/\)$/{
17183 s//\1/
17186 /^X\(\/\).*/{
17187 s//\1/
17190 s/.*/./; q'`/stamp-h$_am_stamp_count
17193 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17194 $as_echo "$as_me: executing $ac_file commands" >&6;}
17196 esac
17199 case $ac_file$ac_mode in
17200 "default-1":C)
17201 # Only add multilib support code if we just rebuilt the top-level
17202 # Makefile.
17203 case " $CONFIG_FILES " in
17204 *" Makefile "*)
17205 ac_file=Makefile . ${multi_basedir}/config-ml.in
17207 esac ;;
17208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17209 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17210 # are listed without --file. Let's play safe and only enable the eval
17211 # if we detect the quoting.
17212 case $CONFIG_FILES in
17213 *\'*) eval set x "$CONFIG_FILES" ;;
17214 *) set x $CONFIG_FILES ;;
17215 esac
17216 shift
17217 for mf
17219 # Strip MF so we end up with the name of the file.
17220 mf=`echo "$mf" | sed -e 's/:.*$//'`
17221 # Check whether this is an Automake generated Makefile or not.
17222 # We used to match only the files named `Makefile.in', but
17223 # some people rename them; so instead we look at the file content.
17224 # Grep'ing the first line is not enough: some people post-process
17225 # each Makefile.in and add a new line on top of each file to say so.
17226 # Grep'ing the whole file is not good either: AIX grep has a line
17227 # limit of 2048, but all sed's we know have understand at least 4000.
17228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17229 dirpart=`$as_dirname -- "$mf" ||
17230 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231 X"$mf" : 'X\(//\)[^/]' \| \
17232 X"$mf" : 'X\(//\)$' \| \
17233 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17234 $as_echo X"$mf" |
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236 s//\1/
17239 /^X\(\/\/\)[^/].*/{
17240 s//\1/
17243 /^X\(\/\/\)$/{
17244 s//\1/
17247 /^X\(\/\).*/{
17248 s//\1/
17251 s/.*/./; q'`
17252 else
17253 continue
17255 # Extract the definition of DEPDIR, am__include, and am__quote
17256 # from the Makefile without running `make'.
17257 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17258 test -z "$DEPDIR" && continue
17259 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17260 test -z "am__include" && continue
17261 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17262 # When using ansi2knr, U may be empty or an underscore; expand it
17263 U=`sed -n 's/^U = //p' < "$mf"`
17264 # Find all dependency output files, they are included files with
17265 # $(DEPDIR) in their names. We invoke sed twice because it is the
17266 # simplest approach to changing $(DEPDIR) to its actual value in the
17267 # expansion.
17268 for file in `sed -n "
17269 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17270 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17271 # Make sure the directory exists.
17272 test -f "$dirpart/$file" && continue
17273 fdir=`$as_dirname -- "$file" ||
17274 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275 X"$file" : 'X\(//\)[^/]' \| \
17276 X"$file" : 'X\(//\)$' \| \
17277 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17278 $as_echo X"$file" |
17279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17280 s//\1/
17283 /^X\(\/\/\)[^/].*/{
17284 s//\1/
17287 /^X\(\/\/\)$/{
17288 s//\1/
17291 /^X\(\/\).*/{
17292 s//\1/
17295 s/.*/./; q'`
17296 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17297 # echo "creating $dirpart/$file"
17298 echo '# dummy' > "$dirpart/$file"
17299 done
17300 done
17303 "libtool":C)
17305 # See if we are running on zsh, and set the options which allow our
17306 # commands through without removal of \ escapes.
17307 if test -n "${ZSH_VERSION+set}" ; then
17308 setopt NO_GLOB_SUBST
17311 cfgfile="${ofile}T"
17312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17313 $RM "$cfgfile"
17315 cat <<_LT_EOF >> "$cfgfile"
17316 #! $SHELL
17318 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17319 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17321 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17323 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17324 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17325 # Written by Gordon Matzigkeit, 1996
17327 # This file is part of GNU Libtool.
17329 # GNU Libtool is free software; you can redistribute it and/or
17330 # modify it under the terms of the GNU General Public License as
17331 # published by the Free Software Foundation; either version 2 of
17332 # the License, or (at your option) any later version.
17334 # As a special exception to the GNU General Public License,
17335 # if you distribute this file as part of a program or library that
17336 # is built using GNU Libtool, you may include this file under the
17337 # same distribution terms that you use for the rest of that program.
17339 # GNU Libtool is distributed in the hope that it will be useful,
17340 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17342 # GNU General Public License for more details.
17344 # You should have received a copy of the GNU General Public License
17345 # along with GNU Libtool; see the file COPYING. If not, a copy
17346 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17347 # obtained by writing to the Free Software Foundation, Inc.,
17348 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17351 # The names of the tagged configurations supported by this script.
17352 available_tags="GO "
17354 # ### BEGIN LIBTOOL CONFIG
17356 # A sed program that does not truncate output.
17357 SED=$lt_SED
17359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17360 Xsed="\$SED -e 1s/^X//"
17362 # A grep program that handles long lines.
17363 GREP=$lt_GREP
17365 # An ERE matcher.
17366 EGREP=$lt_EGREP
17368 # A literal string matcher.
17369 FGREP=$lt_FGREP
17371 # Shell to use when invoking shell scripts.
17372 SHELL=$lt_SHELL
17374 # An echo program that protects backslashes.
17375 ECHO=$lt_ECHO
17377 # Which release of libtool.m4 was used?
17378 macro_version=$macro_version
17379 macro_revision=$macro_revision
17381 # Whether or not to build shared libraries.
17382 build_libtool_libs=$enable_shared
17384 # Whether or not to build static libraries.
17385 build_old_libs=$enable_static
17387 # What type of objects to build.
17388 pic_mode=$pic_mode
17390 # Whether or not to optimize for fast installation.
17391 fast_install=$enable_fast_install
17393 # The host system.
17394 host_alias=$host_alias
17395 host=$host
17396 host_os=$host_os
17398 # The build system.
17399 build_alias=$build_alias
17400 build=$build
17401 build_os=$build_os
17403 # A BSD- or MS-compatible name lister.
17404 NM=$lt_NM
17406 # Whether we need soft or hard links.
17407 LN_S=$lt_LN_S
17409 # What is the maximum length of a command?
17410 max_cmd_len=$max_cmd_len
17412 # Object file suffix (normally "o").
17413 objext=$ac_objext
17415 # Executable file suffix (normally "").
17416 exeext=$exeext
17418 # whether the shell understands "unset".
17419 lt_unset=$lt_unset
17421 # turn spaces into newlines.
17422 SP2NL=$lt_lt_SP2NL
17424 # turn newlines into spaces.
17425 NL2SP=$lt_lt_NL2SP
17427 # An object symbol dumper.
17428 OBJDUMP=$lt_OBJDUMP
17430 # Method to check whether dependent libraries are shared objects.
17431 deplibs_check_method=$lt_deplibs_check_method
17433 # Command to use when deplibs_check_method == "file_magic".
17434 file_magic_cmd=$lt_file_magic_cmd
17436 # The archiver.
17437 AR=$lt_AR
17438 AR_FLAGS=$lt_AR_FLAGS
17440 # A symbol stripping program.
17441 STRIP=$lt_STRIP
17443 # Commands used to install an old-style archive.
17444 RANLIB=$lt_RANLIB
17445 old_postinstall_cmds=$lt_old_postinstall_cmds
17446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17448 # Whether to use a lock for old archive extraction.
17449 lock_old_archive_extraction=$lock_old_archive_extraction
17451 # A C compiler.
17452 LTCC=$lt_CC
17454 # LTCC compiler flags.
17455 LTCFLAGS=$lt_CFLAGS
17457 # Take the output of nm and produce a listing of raw symbols and C names.
17458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17460 # Transform the output of nm in a proper C declaration.
17461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17463 # Transform the output of nm in a C name address pair.
17464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17466 # Transform the output of nm in a C name address pair when lib prefix is needed.
17467 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17469 # The name of the directory that contains temporary libtool files.
17470 objdir=$objdir
17472 # Used to examine libraries when file_magic_cmd begins with "file".
17473 MAGIC_CMD=$MAGIC_CMD
17475 # Must we lock files when doing compilation?
17476 need_locks=$lt_need_locks
17478 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17479 DSYMUTIL=$lt_DSYMUTIL
17481 # Tool to change global to local symbols on Mac OS X.
17482 NMEDIT=$lt_NMEDIT
17484 # Tool to manipulate fat objects and archives on Mac OS X.
17485 LIPO=$lt_LIPO
17487 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17488 OTOOL=$lt_OTOOL
17490 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17491 OTOOL64=$lt_OTOOL64
17493 # Old archive suffix (normally "a").
17494 libext=$libext
17496 # Shared library suffix (normally ".so").
17497 shrext_cmds=$lt_shrext_cmds
17499 # The commands to extract the exported symbol list from a shared archive.
17500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17502 # Variables whose values should be saved in libtool wrapper scripts and
17503 # restored at link time.
17504 variables_saved_for_relink=$lt_variables_saved_for_relink
17506 # Do we need the "lib" prefix for modules?
17507 need_lib_prefix=$need_lib_prefix
17509 # Do we need a version for libraries?
17510 need_version=$need_version
17512 # Library versioning type.
17513 version_type=$version_type
17515 # Shared library runtime path variable.
17516 runpath_var=$runpath_var
17518 # Shared library path variable.
17519 shlibpath_var=$shlibpath_var
17521 # Is shlibpath searched before the hard-coded library search path?
17522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17524 # Format of library name prefix.
17525 libname_spec=$lt_libname_spec
17527 # List of archive names. First name is the real one, the rest are links.
17528 # The last name is the one that the linker finds with -lNAME
17529 library_names_spec=$lt_library_names_spec
17531 # The coded name of the library, if different from the real name.
17532 soname_spec=$lt_soname_spec
17534 # Permission mode override for installation of shared libraries.
17535 install_override_mode=$lt_install_override_mode
17537 # Command to use after installation of a shared archive.
17538 postinstall_cmds=$lt_postinstall_cmds
17540 # Command to use after uninstallation of a shared archive.
17541 postuninstall_cmds=$lt_postuninstall_cmds
17543 # Commands used to finish a libtool library installation in a directory.
17544 finish_cmds=$lt_finish_cmds
17546 # As "finish_cmds", except a single script fragment to be evaled but
17547 # not shown.
17548 finish_eval=$lt_finish_eval
17550 # Whether we should hardcode library paths into libraries.
17551 hardcode_into_libs=$hardcode_into_libs
17553 # Compile-time system search path for libraries.
17554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17556 # Run-time system search path for libraries.
17557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17559 # Whether dlopen is supported.
17560 dlopen_support=$enable_dlopen
17562 # Whether dlopen of programs is supported.
17563 dlopen_self=$enable_dlopen_self
17565 # Whether dlopen of statically linked programs is supported.
17566 dlopen_self_static=$enable_dlopen_self_static
17568 # Commands to strip libraries.
17569 old_striplib=$lt_old_striplib
17570 striplib=$lt_striplib
17573 # The linker used to build libraries.
17574 LD=$lt_LD
17576 # How to create reloadable object files.
17577 reload_flag=$lt_reload_flag
17578 reload_cmds=$lt_reload_cmds
17580 # Commands used to build an old-style archive.
17581 old_archive_cmds=$lt_old_archive_cmds
17583 # A language specific compiler.
17584 CC=$lt_compiler
17586 # Is the compiler the GNU compiler?
17587 with_gcc=$GCC
17589 # Compiler flag to turn off builtin functions.
17590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17592 # How to pass a linker flag through the compiler.
17593 wl=$lt_lt_prog_compiler_wl
17595 # Additional compiler flags for building library objects.
17596 pic_flag=$lt_lt_prog_compiler_pic
17598 # Compiler flag to prevent dynamic linking.
17599 link_static_flag=$lt_lt_prog_compiler_static
17601 # Does compiler simultaneously support -c and -o options?
17602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17604 # Whether or not to add -lc for building shared libraries.
17605 build_libtool_need_lc=$archive_cmds_need_lc
17607 # Whether or not to disallow shared libs when runtime libs are static.
17608 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17610 # Compiler flag to allow reflexive dlopens.
17611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17613 # Compiler flag to generate shared objects directly from archives.
17614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17616 # Whether the compiler copes with passing no objects directly.
17617 compiler_needs_object=$lt_compiler_needs_object
17619 # Create an old-style archive from a shared archive.
17620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17622 # Create a temporary old-style archive to link instead of a shared archive.
17623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17625 # Commands used to build a shared archive.
17626 archive_cmds=$lt_archive_cmds
17627 archive_expsym_cmds=$lt_archive_expsym_cmds
17629 # Commands used to build a loadable module if different from building
17630 # a shared archive.
17631 module_cmds=$lt_module_cmds
17632 module_expsym_cmds=$lt_module_expsym_cmds
17634 # Whether we are building with GNU ld or not.
17635 with_gnu_ld=$lt_with_gnu_ld
17637 # Flag that allows shared libraries with undefined symbols to be built.
17638 allow_undefined_flag=$lt_allow_undefined_flag
17640 # Flag that enforces no undefined symbols.
17641 no_undefined_flag=$lt_no_undefined_flag
17643 # Flag to hardcode \$libdir into a binary during linking.
17644 # This must work even if \$libdir does not exist
17645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17647 # If ld is used when linking, flag to hardcode \$libdir into a binary
17648 # during linking. This must work even if \$libdir does not exist.
17649 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17651 # Whether we need a single "-rpath" flag with a separated argument.
17652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17655 # DIR into the resulting binary.
17656 hardcode_direct=$hardcode_direct
17658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17659 # DIR into the resulting binary and the resulting library dependency is
17660 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17661 # library is relocated.
17662 hardcode_direct_absolute=$hardcode_direct_absolute
17664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17665 # into the resulting binary.
17666 hardcode_minus_L=$hardcode_minus_L
17668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17669 # into the resulting binary.
17670 hardcode_shlibpath_var=$hardcode_shlibpath_var
17672 # Set to "yes" if building a shared library automatically hardcodes DIR
17673 # into the library and all subsequent libraries and executables linked
17674 # against it.
17675 hardcode_automatic=$hardcode_automatic
17677 # Set to yes if linker adds runtime paths of dependent libraries
17678 # to runtime path list.
17679 inherit_rpath=$inherit_rpath
17681 # Whether libtool must link a program against all its dependency libraries.
17682 link_all_deplibs=$link_all_deplibs
17684 # Fix the shell variable \$srcfile for the compiler.
17685 fix_srcfile_path=$lt_fix_srcfile_path
17687 # Set to "yes" if exported symbols are required.
17688 always_export_symbols=$always_export_symbols
17690 # The commands to list exported symbols.
17691 export_symbols_cmds=$lt_export_symbols_cmds
17693 # Symbols that should not be listed in the preloaded symbols.
17694 exclude_expsyms=$lt_exclude_expsyms
17696 # Symbols that must always be exported.
17697 include_expsyms=$lt_include_expsyms
17699 # Commands necessary for linking programs (against libraries) with templates.
17700 prelink_cmds=$lt_prelink_cmds
17702 # Specify filename containing input files.
17703 file_list_spec=$lt_file_list_spec
17705 # How to hardcode a shared library path into an executable.
17706 hardcode_action=$hardcode_action
17708 # ### END LIBTOOL CONFIG
17710 _LT_EOF
17712 case $host_os in
17713 aix3*)
17714 cat <<\_LT_EOF >> "$cfgfile"
17715 # AIX sometimes has problems with the GCC collect2 program. For some
17716 # reason, if we set the COLLECT_NAMES environment variable, the problems
17717 # vanish in a puff of smoke.
17718 if test "X${COLLECT_NAMES+set}" != Xset; then
17719 COLLECT_NAMES=
17720 export COLLECT_NAMES
17722 _LT_EOF
17724 esac
17727 ltmain="$ac_aux_dir/ltmain.sh"
17730 # We use sed instead of cat because bash on DJGPP gets confused if
17731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17732 # text mode, it properly converts lines to CR/LF. This bash problem
17733 # is reportedly fixed, but why not run on old versions too?
17734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17735 || (rm -f "$cfgfile"; exit 1)
17737 case $xsi_shell in
17738 yes)
17739 cat << \_LT_EOF >> "$cfgfile"
17741 # func_dirname file append nondir_replacement
17742 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17743 # otherwise set result to NONDIR_REPLACEMENT.
17744 func_dirname ()
17746 case ${1} in
17747 */*) func_dirname_result="${1%/*}${2}" ;;
17748 * ) func_dirname_result="${3}" ;;
17749 esac
17752 # func_basename file
17753 func_basename ()
17755 func_basename_result="${1##*/}"
17758 # func_dirname_and_basename file append nondir_replacement
17759 # perform func_basename and func_dirname in a single function
17760 # call:
17761 # dirname: Compute the dirname of FILE. If nonempty,
17762 # add APPEND to the result, otherwise set result
17763 # to NONDIR_REPLACEMENT.
17764 # value returned in "$func_dirname_result"
17765 # basename: Compute filename of FILE.
17766 # value retuned in "$func_basename_result"
17767 # Implementation must be kept synchronized with func_dirname
17768 # and func_basename. For efficiency, we do not delegate to
17769 # those functions but instead duplicate the functionality here.
17770 func_dirname_and_basename ()
17772 case ${1} in
17773 */*) func_dirname_result="${1%/*}${2}" ;;
17774 * ) func_dirname_result="${3}" ;;
17775 esac
17776 func_basename_result="${1##*/}"
17779 # func_stripname prefix suffix name
17780 # strip PREFIX and SUFFIX off of NAME.
17781 # PREFIX and SUFFIX must not contain globbing or regex special
17782 # characters, hashes, percent signs, but SUFFIX may contain a leading
17783 # dot (in which case that matches only a dot).
17784 func_stripname ()
17786 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17787 # positional parameters, so assign one to ordinary parameter first.
17788 func_stripname_result=${3}
17789 func_stripname_result=${func_stripname_result#"${1}"}
17790 func_stripname_result=${func_stripname_result%"${2}"}
17793 # func_opt_split
17794 func_opt_split ()
17796 func_opt_split_opt=${1%%=*}
17797 func_opt_split_arg=${1#*=}
17800 # func_lo2o object
17801 func_lo2o ()
17803 case ${1} in
17804 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17805 *) func_lo2o_result=${1} ;;
17806 esac
17809 # func_xform libobj-or-source
17810 func_xform ()
17812 func_xform_result=${1%.*}.lo
17815 # func_arith arithmetic-term...
17816 func_arith ()
17818 func_arith_result=$(( $* ))
17821 # func_len string
17822 # STRING may not start with a hyphen.
17823 func_len ()
17825 func_len_result=${#1}
17828 _LT_EOF
17830 *) # Bourne compatible functions.
17831 cat << \_LT_EOF >> "$cfgfile"
17833 # func_dirname file append nondir_replacement
17834 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17835 # otherwise set result to NONDIR_REPLACEMENT.
17836 func_dirname ()
17838 # Extract subdirectory from the argument.
17839 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17840 if test "X$func_dirname_result" = "X${1}"; then
17841 func_dirname_result="${3}"
17842 else
17843 func_dirname_result="$func_dirname_result${2}"
17847 # func_basename file
17848 func_basename ()
17850 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17854 # func_stripname prefix suffix name
17855 # strip PREFIX and SUFFIX off of NAME.
17856 # PREFIX and SUFFIX must not contain globbing or regex special
17857 # characters, hashes, percent signs, but SUFFIX may contain a leading
17858 # dot (in which case that matches only a dot).
17859 # func_strip_suffix prefix name
17860 func_stripname ()
17862 case ${2} in
17863 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17864 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17865 esac
17868 # sed scripts:
17869 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17870 my_sed_long_arg='1s/^-[^=]*=//'
17872 # func_opt_split
17873 func_opt_split ()
17875 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17876 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17879 # func_lo2o object
17880 func_lo2o ()
17882 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17885 # func_xform libobj-or-source
17886 func_xform ()
17888 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17891 # func_arith arithmetic-term...
17892 func_arith ()
17894 func_arith_result=`expr "$@"`
17897 # func_len string
17898 # STRING may not start with a hyphen.
17899 func_len ()
17901 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17904 _LT_EOF
17905 esac
17907 case $lt_shell_append in
17908 yes)
17909 cat << \_LT_EOF >> "$cfgfile"
17911 # func_append var value
17912 # Append VALUE to the end of shell variable VAR.
17913 func_append ()
17915 eval "$1+=\$2"
17917 _LT_EOF
17920 cat << \_LT_EOF >> "$cfgfile"
17922 # func_append var value
17923 # Append VALUE to the end of shell variable VAR.
17924 func_append ()
17926 eval "$1=\$$1\$2"
17929 _LT_EOF
17931 esac
17934 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17935 || (rm -f "$cfgfile"; exit 1)
17937 mv -f "$cfgfile" "$ofile" ||
17938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17939 chmod +x "$ofile"
17942 cat <<_LT_EOF >> "$ofile"
17944 # ### BEGIN LIBTOOL TAG CONFIG: GO
17946 # The linker used to build libraries.
17947 LD=$lt_LD_GO
17949 # How to create reloadable object files.
17950 reload_flag=$lt_reload_flag_GO
17951 reload_cmds=$lt_reload_cmds_GO
17953 # Commands used to build an old-style archive.
17954 old_archive_cmds=$lt_old_archive_cmds_GO
17956 # A language specific compiler.
17957 CC=$lt_compiler_GO
17959 # Is the compiler the GNU compiler?
17960 with_gcc=$GCC_GO
17962 # Compiler flag to turn off builtin functions.
17963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17965 # How to pass a linker flag through the compiler.
17966 wl=$lt_lt_prog_compiler_wl_GO
17968 # Additional compiler flags for building library objects.
17969 pic_flag=$lt_lt_prog_compiler_pic_GO
17971 # Compiler flag to prevent dynamic linking.
17972 link_static_flag=$lt_lt_prog_compiler_static_GO
17974 # Does compiler simultaneously support -c and -o options?
17975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17977 # Whether or not to add -lc for building shared libraries.
17978 build_libtool_need_lc=$archive_cmds_need_lc_GO
17980 # Whether or not to disallow shared libs when runtime libs are static.
17981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17983 # Compiler flag to allow reflexive dlopens.
17984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17986 # Compiler flag to generate shared objects directly from archives.
17987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17989 # Whether the compiler copes with passing no objects directly.
17990 compiler_needs_object=$lt_compiler_needs_object_GO
17992 # Create an old-style archive from a shared archive.
17993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17995 # Create a temporary old-style archive to link instead of a shared archive.
17996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17998 # Commands used to build a shared archive.
17999 archive_cmds=$lt_archive_cmds_GO
18000 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18002 # Commands used to build a loadable module if different from building
18003 # a shared archive.
18004 module_cmds=$lt_module_cmds_GO
18005 module_expsym_cmds=$lt_module_expsym_cmds_GO
18007 # Whether we are building with GNU ld or not.
18008 with_gnu_ld=$lt_with_gnu_ld_GO
18010 # Flag that allows shared libraries with undefined symbols to be built.
18011 allow_undefined_flag=$lt_allow_undefined_flag_GO
18013 # Flag that enforces no undefined symbols.
18014 no_undefined_flag=$lt_no_undefined_flag_GO
18016 # Flag to hardcode \$libdir into a binary during linking.
18017 # This must work even if \$libdir does not exist
18018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18020 # If ld is used when linking, flag to hardcode \$libdir into a binary
18021 # during linking. This must work even if \$libdir does not exist.
18022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18024 # Whether we need a single "-rpath" flag with a separated argument.
18025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18028 # DIR into the resulting binary.
18029 hardcode_direct=$hardcode_direct_GO
18031 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18032 # DIR into the resulting binary and the resulting library dependency is
18033 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18034 # library is relocated.
18035 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18037 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18038 # into the resulting binary.
18039 hardcode_minus_L=$hardcode_minus_L_GO
18041 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18042 # into the resulting binary.
18043 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18045 # Set to "yes" if building a shared library automatically hardcodes DIR
18046 # into the library and all subsequent libraries and executables linked
18047 # against it.
18048 hardcode_automatic=$hardcode_automatic_GO
18050 # Set to yes if linker adds runtime paths of dependent libraries
18051 # to runtime path list.
18052 inherit_rpath=$inherit_rpath_GO
18054 # Whether libtool must link a program against all its dependency libraries.
18055 link_all_deplibs=$link_all_deplibs_GO
18057 # Fix the shell variable \$srcfile for the compiler.
18058 fix_srcfile_path=$lt_fix_srcfile_path_GO
18060 # Set to "yes" if exported symbols are required.
18061 always_export_symbols=$always_export_symbols_GO
18063 # The commands to list exported symbols.
18064 export_symbols_cmds=$lt_export_symbols_cmds_GO
18066 # Symbols that should not be listed in the preloaded symbols.
18067 exclude_expsyms=$lt_exclude_expsyms_GO
18069 # Symbols that must always be exported.
18070 include_expsyms=$lt_include_expsyms_GO
18072 # Commands necessary for linking programs (against libraries) with templates.
18073 prelink_cmds=$lt_prelink_cmds_GO
18075 # Specify filename containing input files.
18076 file_list_spec=$lt_file_list_spec_GO
18078 # How to hardcode a shared library path into an executable.
18079 hardcode_action=$hardcode_action_GO
18081 # ### END LIBTOOL TAG CONFIG: GO
18082 _LT_EOF
18085 "default":C) if test -n "$CONFIG_FILES"; then
18086 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18087 # that multilib installs will end up installed in the correct place.
18088 # The testsuite needs it for multilib-aware ABI baseline files.
18089 # To work around this not being passed down from config-ml.in ->
18090 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18091 # append it here. Only modify Makefiles that have just been created.
18093 # Also, get rid of this simulated-VPATH thing that automake does.
18094 cat > vpsed << \_EOF
18095 s!`test -f '$<' || echo '$(srcdir)/'`!!
18096 _EOF
18097 for i in $SUBDIRS; do
18098 case $CONFIG_FILES in
18099 *${i}/Makefile*)
18100 #echo "Adding MULTISUBDIR to $i/Makefile"
18101 sed -f vpsed $i/Makefile > tmp
18102 grep '^MULTISUBDIR =' Makefile >> tmp
18103 mv tmp $i/Makefile
18105 esac
18106 done
18107 rm vpsed
18111 esac
18112 done # for ac_tag
18115 as_fn_exit 0
18116 _ACEOF
18117 ac_clean_files=$ac_clean_files_save
18119 test $ac_write_fail = 0 ||
18120 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18123 # configure is writing to config.log, and then calls config.status.
18124 # config.status does its own redirection, appending to config.log.
18125 # Unfortunately, on DOS this fails, as config.log is still kept open
18126 # by configure, so config.status won't be able to write to it; its
18127 # output is simply discarded. So we exec the FD to /dev/null,
18128 # effectively closing config.log, so it can be properly (re)opened and
18129 # appended to by config.status. When coming back to configure, we
18130 # need to make the FD available again.
18131 if test "$no_create" != yes; then
18132 ac_cs_success=:
18133 ac_config_status_args=
18134 test "$silent" = yes &&
18135 ac_config_status_args="$ac_config_status_args --quiet"
18136 exec 5>/dev/null
18137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18138 exec 5>>config.log
18139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18140 # would make configure fail if this is the last instruction.
18141 $ac_cs_success || as_fn_exit $?
18143 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18145 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}